Bom, eu tenho esse npc aqui, queria que vocês me ajudassem a configurar esse npc pra poder teleportar a um canto, npc de barco, só que quando tento falar, hi travel, na hora que falo yes, da erro de call back, alguém pode me ajudar?
local keywordHandler = KeywordHandler:new()local npcHandler = NpcHandler:new(keywordHandler)NpcSystem.parseParameters(npcHandler)local talkState = {}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 itemId = 8261local countItem = 1function creatureSayCallback(cid, type, msg)if(not npcHandler:isFocused(cid)) thenreturn falseendlocal talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_DEFAULT and 0 or cidif msgcontains(msg, 'mission') thenif getPlayerStorageValue(cid, 30012) == -1 thennpcHandler:say('Good, I need you to infiltre the shadow mountain and get one '.. getItemNameById(itemId) ..' for me, you think you can do this task?', cid)talkState[talkUser] = 1elsenpcHandler:say('I remember you.', cid)endelseif msgcontains(msg, 'yes') and talkState[talkUser] == 1 thennpcHandler:say('Nice, i will wait you.', cid)setPlayerStorageValue(cid, 30012, 1)talkState[talkUser] = 0elseif msgcontains(msg, 'treasure') thenif getPlayerStorageValue(cid, 30013) == -1 thenif getPlayerItemCount(cid, 8261) == 1 thendoPlayerRemoveItem (cid, 8261, 1)setPlayerStorageValue(cid, 30013, 1)npcHandler:say('I really dont beliave, you geet my treasure, niceee!!! brother, now you can travel with me for galdronia.', cid)elsenpcHandler:say('You do not have my treasure.', cid)endelsenpcHandler:say('Thank for give my treasure for me.', cid)endposicao = {x=1077, y=1082, z=7}elseif msgcontains(msg, 'galdronia') or msgcontains(msg, 'travel') thennpcHandler:say('Really do you want travel to galdronia? this will cost 50 valys.', cid)talkState[talkUser] = 2elseif msgcontains(msg, 'yes') and talkState[talkUser] == 2 thenif doPlayerRemoveMoney(cid, 50) thendoTeleportThing(cid, posicao)talkState[talkUser] = 0elseselfSay('You don\'t have enough money.', cid)endendendnpcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)npcHandler:addModule(FocusModule:new())