G0

Jiddo, Problema !

Por G0han, 16 de jul. de 2008 em NPCs, monsters e raids

script
2
1.2k
G0hanG
16 de julho de 2008 às 21:56

To com um grande problema aqui, to tentando coloca um npc no meu ot, em jiddo

è npc de promotion, só que quando voce fala yes, pra promotion, ele nao responde nada

Aqui ta o script.. o que devo fazer?

local keywordHandler = KeywordHandler:new()

local npcHandler = NpcHandler:new(keywordHandler)

NpcSystem.parseParameters(npcHandler)

 

function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end

function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end

function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end

function onThink() npcHandler:onThink() end

 

local node1 = keywordHandler:addKeyword({'promot'}, 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, text = 'Congratulations! You are now promoted.'})

node1:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Allright then. Come back when you are ready.', reset = true})

 

npcHandler:addModule(FocusModule:new())

G0hanG
17 de julho de 2008 às 03:06

Por favor, ajudem, to desesperado, é só isso que falta pra abri meu OT