Amigo vou postar o meu npc tomara que te ajude!
Na pasta npc/scripts cria um novo arquivo de texto com o nome vip promotee.lua cola isso!
local keywordHandler = KeywordHandler:new()local npcHandler = NpcHandler:new(keywordHandler)NpcSystem.parseParameters(npcHandler)function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) endfunction onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) endfunction onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) endfunction onThink() npcHandler:onThink() endlocal node1 = keywordHandler:addKeyword({'promotion'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I can promote you for 20000 gold coins. Do you want me to promote you?'})node1:addChildKeyword({'yes'}, StdModule.promotePlayer, {npcHandler = npcHandler, cost = 20000, level = 20, promotion = 1, text = 'Congratulations! You are now promoted.'})node1:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then, come back when you are ready.', reset = true})local node2 = keywordHandler:addKeyword({'legendary'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I can legendary you for 200 gold coins. Do you want me to Legendary you?'})node2:addChildKeyword({'yes'}, StdModule.promotePlayer, {npcHandler = npcHandler, cost = 200, level = 120, promotion = 2, text = 'Congratulations! You are now legendary.'})node2:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then, come back when you are ready.', reset = true})npcHandler:addModule(FocusModule:new())
Agora na pasta npc
<?xml version="1.0" encoding="UTF-8"?>
<npc name="Johnny VIP" script="data/npc/scripts/vip promotee.lua" walkinterval="2000" floorchange="0"><mana now="800" max="800"/><health now="200" max="200"/><look type="133" head="114" body="119" legs="132" feet="114"/></npc>
Salva com o nome de johnny vip.xml
Onde estiver "legendary" voce muda para "soul war" que é o nome da terceira voc no seu ot!
se deu tudo certo da REP!






info
Grupo: Campones
Registrado: 11/12/12
Posts: 21
Reputação: 0
Char no Tibia: Pkzin