Vanitas
Anaerobe
- Joined
- Jul 7, 2008
- Messages
- 34
- Reaction score
- 0
I tried to do something like that:
"some my code" works good without Jido's system
Jido's system works good without "some my code"
When I put them together NPC doesn't answer any hi, hello or trade.
How can I join together those scripts to work correctly?
My example code:
Lua:
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
some my code here
npcHandler:addModule(FocusModule:new())
Jido's system works good without "some my code"
When I put them together NPC doesn't answer any hi, hello or trade.
How can I join together those scripts to work correctly?
My example code:
Lua:
if msg=="hi" or msg=="hello" then
selfSay("Welcome!", cid, TRUE)
end