Universo Maker
Gostaria de reagir a esta mensagem? Crie uma conta em poucos cliques ou inicie sessão para continuar.


Suporte e Recursos para Desenvolvedores de MMORPG
 
InícioÚltimas imagensRegistarEntrar
Entrar
Nome de usuário:
Senha:
Entrar automaticamente: 
:: Esqueci-me da senha
Últimos assuntos
» Perfect Engine
[ALL] Sistema de Resets. Icon_minitimeTer Jan 07, 2014 8:08 am por abner169

» Elysium engine Brasil 2.6 Modificada por Ryuuken
[ALL] Sistema de Resets. Icon_minitimeDom Nov 24, 2013 3:12 pm por cronos

» [ALL] Mensagem a todos a algum player entrar.
[ALL] Sistema de Resets. Icon_minitimeSeg Set 02, 2013 10:18 am por joaopaulo98

» a alguem q manja me ensinar
[ALL] Sistema de Resets. Icon_minitimeSeg Set 02, 2013 9:27 am por joaopaulo98

» Como aumentar mais de 10000 for, def etc...
[ALL] Sistema de Resets. Icon_minitimeSex Ago 17, 2012 7:38 pm por Silvaa

» [ALL] Sistema de Resets.
[ALL] Sistema de Resets. Icon_minitimeQua Ago 08, 2012 5:16 pm por Silvaa

» Como colidir dois objetos;
[ALL] Sistema de Resets. Icon_minitimeTer Ago 07, 2012 7:24 pm por BabyFusion

Os membros mais ativos da semana
Nenhum usuário
Os membros mais ativos do mês
Nenhum usuário

 

 [ALL] Sistema de Resets.

Ir para baixo 
2 participantes
AutorMensagem
Silvaa

Silvaa


Mensagens : 18
Créditos : 9

[ALL] Sistema de Resets. Empty
MensagemAssunto: [ALL] Sistema de Resets.   [ALL] Sistema de Resets. Icon_minitimeTer Ago 07, 2012 7:59 pm

-|Requerimentos|-
•Visual Basic
•Main.txt or Principal.txt
•Computador (LOL?)

-|Tutorial|-
•Server~Side

-|Inicio|-


Primeiramente proucure por


Código:

    CharInfo(20).Caption = "Index: " & Index

Abaixo adicione isso :

Código:

    CharInfo(21).Caption = "Resets: " & GetPlayerResets(Index)

certo agora em ModDataBase proucure por


Código:
    Player(Index).Char(i).Guildaccess = Val(GetVar(FileName, "CHAR" & i, "Guildaccess"))


Abaixo adicione :


Código:
    Player(Index).Char(i).Resets = Val(GetVar(FileName, "CHAR" & i, "Resets"))

Procure por :


Código:
Call PutVar(FileName, "CHAR" & i, "Guildaccess", STR(Player(Index).Char(i).Guildaccess))

Abaixo Adicione:

Código:

    Call PutVar(FileName, "CHAR" & i, "Resets", STR(Player(Index).Char(i).Resets))

Código:
mudando de Mod vamos para a modTypes, nela proucure por


Código:

    PK As Byte


Abaixo Adicione :

Código:

    Resets As Long

Agora procure por :


Código:
    Sub SetPlayerY(ByVal Index As Long, _
      ByVal y As Long)
        Player(Index).Char(Player(Index).CharNum).y = y
    End Sub

Logo abaixo adicione :


Código:
 Function GetPlayerResets(ByVal Index As Long) As Long
        GetPlayerResets = Player(Index).Char(Player(Index).CharNum).Resets
    End Function
    Sub SetPlayerResets(ByVal Index As Long, _
      ByVal Resets As Long)
        Player(Index).Char(Player(Index).CharNum).Resets = Resets
    End Sub


terminamos no modTypes agora vamos para o clsCommands!!

no Final da clsCommands adicione


Código:

    Function GetPlayerResets(ByVal Index As Long) As Long
        GetPlayerResets = Player(Index).Char(Player(Index).CharNum).Resets
    End Function

    Sub SetPlayerResets(ByVal Index As Long, _
      ByVal Resets As Long)
        Player(Index).Char(Player(Index).CharNum).Resets = Resets
    End Sub

agora para terminar na frmServer vai na aba Players proucure pela PicStats é onde fica os


Código:
    Account:
    Character:
    Level:
    HP:/
    ...


Abaixo do :

Código:

    Points:


adicione uma label nova!
mais facil você pegar copiar a index e colar da sim e mude a Caption dela para Resets.


Agora procure por :


Código:
 Call BattleMsg(Index, "Você possui " & GetPlayerPOINTS(Index) & " pontos.", 9, 0)

Abaixo adicione :




Código:
    If GetPlayerLevel(index) => 1000 Then
        Call PlayerMsg(index, "Você foi resetado com Sucesso!", 15)
        Call SetPlayerExp(index, 1)
          Call SetPlayerLevel(index, 1)
        Call SetPlayerPOINTS(index, GetPlayerPoints(index) + 100)
        Call SetPlayerResets(index, GetPlayerResets(index) + 1)
        Call SavePlayer(index)
              Call SendPOINTS(Index)
              Call SendStats(Index)
        End If

isso faz que resete level 1000 e ao resetar você ganhara + 100 pontos extras!



-|FIM|-

-|Observação|-
•Testado, Causo ocorra algum error Favor Avisar-me.

-|Creditos|-
•Gu1lh3rm3


E eu Silvaa por postar mereco creditos né Very Happy .
Ir para o topo Ir para baixo
Ryuuken




Mensagens : 2
Créditos : 1

[ALL] Sistema de Resets. Empty
MensagemAssunto: Re: [ALL] Sistema de Resets.   [ALL] Sistema de Resets. Icon_minitimeQua Ago 08, 2012 3:29 pm

excelente +1 credit
Ir para o topo Ir para baixo
Silvaa

Silvaa


Mensagens : 18
Créditos : 9

[ALL] Sistema de Resets. Empty
MensagemAssunto: Re: [ALL] Sistema de Resets.   [ALL] Sistema de Resets. Icon_minitimeQua Ago 08, 2012 5:16 pm

Muito obrigado, espero que os outros acham o mesmo

Att,LuizOtávio.
Ir para o topo Ir para baixo
Conteúdo patrocinado





[ALL] Sistema de Resets. Empty
MensagemAssunto: Re: [ALL] Sistema de Resets.   [ALL] Sistema de Resets. Icon_minitime

Ir para o topo Ir para baixo
 
[ALL] Sistema de Resets.
Ir para o topo 
Página 1 de 1

Permissões neste sub-fórumNão podes responder a tópicos
Universo Maker :: Engines :: Elysium Diamond-
Ir para: