Desineria RPG Maker
Você esta conectado na Desineria RPG Maker!

Participe do fórum, é rápido e fácil

Desineria RPG Maker
Você esta conectado na Desineria RPG Maker!
Desineria RPG Maker
Gostaria de reagir a esta mensagem? Crie uma conta em poucos cliques ou inicie sessão para continuar.

Botão de dar Level Pelo Server Modificado

Ir para baixo

Botão de dar Level Pelo Server Modificado Empty Botão de dar Level Pelo Server Modificado

Mensagem  Mapper Seg Nov 07, 2011 1:59 pm

Abra o Server~Side va na FrmServer e adicione 1 commandButton com Caption: Dar Level de 2 clicks e adicione:

Código:
picLevel.Visible = True

agora crie 1 picture com Name: PicLevel
Dentro dessa picture crie 1 TxtBox com Name: txtLevel
Em baixo da txtLevel adicione 2 CommandButton com Caption: Executar e Cancelar
De 2 clicks em Cancelar e adicione:

Código:
picLevel.Visible = False


de 2 clicks em executar e adicione:

Código:
Dim Index As Long

    If IsNumeric(txtLevel.text) = False Then
        MsgBox "Digite um valor numérico!"
        Exit Sub
    End If

    If txtLevel.text >= 0 Then
        Call GlobalMsg("O servidor deu " & txtLevel.text & " Leveis para todos!", BrightGreen)
        For Index = 1 To MAX_PLAYERS


          If IsPlaying(Index) = True Then
                Call SetPlayerPOINTS(Index, GetPlayerPOINTS(Index) + 3 + txtLevel.text)
                Call SetPlayerLevel(Index, GetPlayerLevel(Index) + txtLevel.text)
                Call CheckPlayerLevelUp(Index)
                Call SendStats(Index)
                End If
        Next
    End If
    picLevel.Visible = False


em cima da txtLevel crie 1 label com Caption: Level:

OBS: a picLevel tem q ta com Visible=False

agora e so compilar !

Créditos: Thales12
Mapper
Mapper
Novato
Novato

Mensagens : 35
Pontos : 102
Reputação : 6
Data de inscrição : 06/11/2011

Desineria RPG Maker
Nível de atividade Nível de atividade:
Botão de dar Level Pelo Server Modificado Left_bar_bleue101/1000Botão de dar Level Pelo Server Modificado Empty_bar_bleue  (101/1000)

Ir para o topo Ir para baixo

Ir para o topo

- Tópicos semelhantes

 
Permissões neste sub-fórum
Não podes responder a tópicos