Pra mudar vida máxima usa: setCreatureMaxHealth(cid, health)
Pra mudar a mana máxima usa: doCreatureChangeMaxHealth
aqui nesse tópico tem uma lista de funções de otserver
Para mudar skill se não me engano tem que executar uma query na db, da uma olhada nesse tutorial aqui:
e nesse script aqui
que devem te ajudara entender e arrumar seu script





info
Grupo: Campones
Registrado: 23/05/11
Posts: 5
Reputação: 0
Char no Tibia: BoyZinhO
if msgcontains(msg, 'valan') then if getPlayerLevel(cid) >= 500 then if getPlayerVocation(cid) <= 4 then if getPlayerItemCount(cid,13685) >= 10 then doPlayerMagicLevel(cid,10) doPlayerAddSkill(cid,0,10) doPlayerAddSkill(cid,1,10) doPlayerAddSkill(cid,2,10) doPlayerAddSkill(cid,3,10) doPlayerAddSkill(cid,4,10) doPlayerAddSkill(cid,5,10) doPlayerAddSkill(cid,6,10) doPlayerAddExp(cid,4200) doCreatureChangeMaxHealth(cid,185) doCreatureAddHealth(cid,185) doCreatureChangeMaxMana(cid,35) doPlayerAddMana(cid,35) doPlayerSetVocation(cid, getPlayerVocation(cid)+4) selfSay('Parabens, você foi promovido!') doPlayerTakeItem(cid,13685,10) talk_state = 0 else selfSay('Desculpe, você não tem 10kk para ser promovido.') talk_state = 0 end else selfSay('Desculpe, você não tem a vocação correta.') talk_state = 0 end else selfSay('Desculpe, você não é nivel 500 ainda.') talk_state = 0 endPessoal preciso de ajuda, eu não manjo muito de cod.
preciso que este npc resete a vida,mana,lvl,cap,skill,ml etc
Alguém pode me ajudar?