Sim testei e aqui ele está respondendo... estranho vou verificar novamente, peço que aguarde.
Agora vai funcionar, achei o erro:
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
local talkState = {}
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
function creatureSayCallback(cid, type, msg)
if(not npcHandler:isFocused(cid)) then
return false
end
local stg = 1458
local talkUser = NPCHANDLER_CONVbehavior == CONVERSATION_DEFAULT and 0 or cid
if(msgcontains(msg, 'missao')) and getPlayerStorageValue(cid, stg) >= 1 then
selfSay('Você já me ajudou.', cid)
talkState[talkUser] = 0
end
if(msgcontains(msg, 'missao')) and getPlayerStorageValue(cid, stg) <= 0 then
if getPlayerItemCount(cid, item1, qtd) then
setPlayerStorageValue(cid, stg, 1)
selfSay('Muito obrigado, como recompensa aqui está sua experiência por ter me ajudado!', cid)
doPlayerAddLevel(cid, level)
else
selfSay('Você não tem '..qtd..' {"..getItemNameById(item1).."s}. Volte aqui quando tiver', cid)
end
end
return TRUE
end
npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)
npcHandler:addModule(FocusModule:new())






info
Grupo: Artesão
Registrado: 01/08/10
Posts: 108
Reputação: 0
Char no Tibia: mylorc
Sim,deixe me perguntar você testou também?
O meu ot é 8.54 pode haver algum erro por isso?