Excesso de EXP
3 participantes
Página 1 de 1
Excesso de EXP
O char pode ter mais exp do que o limite, quando ele está no
nível máximo. Isso faz que, ao atingir certa quantia de Exp, o server
feche.
Para corrigir, localize o modPlayer > SetPlayerExp e adicione abaixo do Player(index).exp = exp este código:
Créditos: A mim por postar
nível máximo. Isso faz que, ao atingir certa quantia de Exp, o server
feche.
Para corrigir, localize o modPlayer > SetPlayerExp e adicione abaixo do Player(index).exp = exp este código:
- Código:
If GetPlayerLevel(index) = MAX_LEVELS And Player(index).exp > GetPlayerNextLevel(index) Then
Player(index).exp = GetPlayerNextLevel(index)
Exit Sub
End If
- Código:
Function GetPlayerNextLevel(ByVal index As Long) As Long
' If debug mode, handle error then exit out
If Options.Debug = 1 Then On Error GoTo errorhandler
If index > MAX_PLAYERS Then Exit Function
GetPlayerNextLevel = (50 / 3) * ((GetPlayerLevel(index) + 1) ^ 3 - (6
* (GetPlayerLevel(index) + 1) ^ 2) + 17 * (GetPlayerLevel(index) + 1) -
12)
' Error handler
Exit Function
errorhandler:
HandleError "GetPlayerNextLevel", "modDatabase", Err.Number, Err.Description, Err.Source, Err.HelpContext
Err.Clear
Exit Function
End Function
- Código:
If GetPlayerLevel(index) = MAX_LEVELS And Player(index).EXP > GetPlayerNextLevel(index) Then
Player(index).EXP = GetPlayerNextLevel(index)
Exit Sub
End If
Créditos: A mim por postar
Re: Excesso de EXP
thales, Tem conta em quantos fóruns?
✖ -!Jutѳɳ.- Modelador
- Mensagens : 5
Estrelas Makers : 10
Creditos : 3
Data de inscrição : 16/10/2011
Re: Excesso de EXP
Prezado ✖ -!Jutѳɳ. ,
O seu comentário está fora de argumento com o tópico (flood)... Espero não ter que avisar denovo, peço-lhe que leia o tópico (https://makersbrasil.forumeiros.com/t605-tutorial-detalhado-sobre-flood),e quando for postar algo assim, utilize a área Off-Tópic (https://makersbrasil.forumeiros.com/f21-off-topic-diversao)
Preste a atenção para não ser punido, leia as regras ok? ;D
O seu comentário está fora de argumento com o tópico (flood)... Espero não ter que avisar denovo, peço-lhe que leia o tópico (https://makersbrasil.forumeiros.com/t605-tutorial-detalhado-sobre-flood),e quando for postar algo assim, utilize a área Off-Tópic (https://makersbrasil.forumeiros.com/f21-off-topic-diversao)
Preste a atenção para não ser punido, leia as regras ok? ;D
- Estrelas Makers : 0
Data de inscrição : 31/12/1969
Página 1 de 1
Permissões neste sub-fórum
Não podes responder a tópicos
|
|
Sex Dez 05, 2014 10:00 am por Fabio-3dgames
» Lost In Dreams chapter 01
Seg Nov 24, 2014 7:22 pm por slipknot
» A Makers Brasil ressuscitara em breve!!
Sáb Nov 01, 2014 2:26 pm por Francisco Souza
» Elysium Diamond 3.3.2
Sáb Nov 01, 2014 2:17 pm por Francisco Souza
» personagens e objetos 3d game builder
Seg Jul 28, 2014 2:33 pm por Reginaldo Aparecido Zanus
» fala galera \o obs auhsaush digita galera asygasyga
Dom Jul 06, 2014 1:40 am por anastiel
» tutorial headshot fps creator
Seg Jun 09, 2014 6:08 pm por EspinhosoGamer
» SnakeMod fps creator
Seg Jun 09, 2014 5:55 pm por EspinhosoGamer
» serial fps creator
Seg maio 26, 2014 7:35 pm por slipknot