assim? ![]()
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 talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_DEFAULT and 0 or cid
local pos = {x = 1000, y = 1000, z = 7}
local outfit = 200
if (msgcontains(msg, 'teleport') or msgcontains(msg, 'Teleport')) then
selfSay("OK then...", cid)
doTeleportThing(cid, pos)
doSetCreatureOutfit(cid, {lookType = outfit}, -1)
end
return true
end
npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)
npcHandler:addModule(FocusModule:new())





info
Grupo: Campones
Registrado: 21/06/12
Posts: 74
Reputação: +1
Char no Tibia: Myuxa
Ola amigos '-'
Bem queria fazer um pedido que você fala com um npc e ele te leva pra tal local xx com uma sprite modificada
REP+