Sami_san
New Member
- Joined
- May 20, 2016
- Messages
- 76
- Reaction score
- 1
Is it normal that in any tfs with rl map you get , youll get npc without scripts? i mean that they just say on hi -> Greetings , player name
example script of an npc
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
function onCreatureAppear(cid) npcHandler
nCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler
nCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg) npcHandler
nCreatureSay(cid, type, msg) end
function onThink() npcHandler
nThink() end
npcHandler:addModule(FocusModule:new())
and all he does is say greetings player name thats all .
example script of an npc
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
function onCreatureAppear(cid) npcHandler
function onCreatureDisappear(cid) npcHandler
function onCreatureSay(cid, type, msg) npcHandler
function onThink() npcHandler
npcHandler:addModule(FocusModule:new())
and all he does is say greetings player name thats all .