antiblock
https://arwen2.global/
  • Chatbox

    You don't have permission to chat.
    Load More
Sign in to follow this  
ρєily

Desbugar O Hp

10 posts in this topic

Bem Pessoal Hoje Vos Trago Um Tutorial 100%

[sOBRE QUE ?]

Bem Então Hoje Vamos Desbugar o HP ,

Muitos Servidores Tem o HP Bugado Depois Dos 32000 De Vida.

Então Hoje Decidi Postar Aqui Um Tutorial Meu Para Ajudar a Comunidade a Resolver Esse BUG

[TuTu]

Primeiro Ligam a Maquina Virtual [VirtualBox]

Depois Digitamos o Comando :

/etc/rc.d/netif restart

Logo a Seguir Abrimos o Navicat e Vamos a Palyer

Com o Botão Direito Do Rato Clicamos Em Cima Da Tabela Player

E Selecionamos a Opção

[Disign Table]

Print: http://desmond.image...png&res=landing

Depois Disso Ira Aparecer Uma Janela Com Varias Linhas, Nos Vamos Procurar e Editar o Seguinte :

Name|Type|Length|Decimals|Allow Null

hp__smallint__4______0_____[_]

Editam o [Type] Para :

Name|Type|Length|Decimals|Allow Null

hp____int___4______0______[_]

Guardam , Reboot na Maquina e Pronto

o Seu HP Não Vai Bugar Mais Caso Aconteça Pode Mudar o [Type] Para :

Name|Type|Length|Decimals|Allow Null

hp__bigint___4______0______[_]

Esta Com o [bigint] Nunca Testei.

Créditos Meu 100%

Share this post


Link to post
Share on other sites
antiblock
https://arwen2.global/

Em meu servidor nenhuma das duas opções resolveu o problema.

Tentei o INT e o BIGINT... Do mesmo jeito personagens com mais de 32k de HP inicia negativo.

Esta solução talves só sirva em alguns casos... Outros não.

Share this post


Link to post
Share on other sites

Em meu servidor nenhuma das duas opções resolveu o problema.

Tentei o INT e o BIGINT... Do mesmo jeito personagens com mais de 32k de HP inicia negativo.

Esta solução talves só sirva em alguns casos... Outros não.

Sempre podes fazer por quest.

quest bug_hp beginstate start begin  when login begin   if pc.get_hp() < 1 then    affect.add_collect(apply.HP,X,60*60*24*365*60)   end  endendend
Em X metes a quantidade de experiência a receber.

Tens é que ter muito cuidado, pois o tempo, é permanente, a quantidade que puseres em X irá durar para sempre e o jogador irá acumular esse hp todo que tem sido recebido.

Share this post


Link to post
Share on other sites

Sempre podes fazer por quest.

quest bug_hp beginstate start begin  when login begin   if pc.get_hp() < 1 then	affect.add_collect(apply.HP,X,60*60*24*365*60)   end  endendend
Em X metes a quantidade de experiência a receber.Tens é que ter muito cuidado, pois o tempo, é permanente, a quantidade que puseres em X irá durar para sempre e o jogador irá acumular esse hp todo que tem sido recebido.
Me explica esta linha melhor ?affect.add_collect(apply.HP,X,60*60*24*365*60)

Share this post


Link to post
Share on other sites

não funcionou alguem tem uma forma de resolver o erro?

Share this post


Link to post
Share on other sites
quest bug_hp begin    state start begin	    when login begin		    pc.get_hp()		    pc.get_sp()		    if pc.hp <0 then		    affect.add_collect(apply.HP_REGEN, 100000, 5)		    end		    if pc.sp <0 then		    affect.add_collect(apply.SP_REGEN, 100000, 5)		    end	    end    endend 
Uso essa quest

Share this post


Link to post
Share on other sites

isso adiciona 100k de hp a todos os players :X

Share this post


Link to post
Share on other sites

isso adiciona 100k de hp a todos os players :X

Tipo vc loga e ta -100k de hp vai regenerar sosinho, se tiver -10 vai regenerar.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this