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 end
Pessoal 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?