• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Npc very short script

Onizuka

Member
Joined
Jul 5, 2008
Messages
2,291
Reaction score
14
I need a lua script for npc



Player says Hi on default channel
He automaticly gets teleported to newposition.


Thanks ;p
 
Try this:
PHP:
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
npcHandler:setCallback(CALLBACK_GREET, function(cid) if(isPlayer(cid)) then doTeleportThing(cid, {x=1,y=1,z=1}, true) end end)

npcHandler:addModule(FocusModule:new())
 
Back
Top Bottom