Gsp
RP
- Joined
- Jan 3, 2008
- Messages
- 250
- Solutions
- 1
- Reaction score
- 4
Code:
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
local talkState = {}
function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end
function onThink() npcHandler:onThink() end
function selfMoveTo(x, y, z)
local position = {x = 88, y = 58, z = 7}
if (msgcontains(msg, 'yes')) and (isValidPosition(position)) then
doSteerCreature(getNpcId(), position)
end
return true
end
npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)
npcHandler:addModule(FocusModule:new())
hi guys =] i'm trying to make this npc walk to a position but it just stands still. i don't know what is wrong
i get no errors but it doesnt work. help!