

Still, the demons suffered a setback, that\'s for sure.', cid) As long as evil is still existent in the soil of the plains, it won\'t be over. NpcHandler:say('You chopped down the demon oak?!? Unbelievable!! Let\'s hope it doesn\'t come back. If getPlayerStorageValue(cid, 35700) = 1 then NpcHandler:say('Did you really defeat it?', cid)Įlseif msgcontains(msg, 'yes') and talk_state = 2 then

If getPlayerStorageValue(cid, 35735) = 1 and msgcontains(msg, "infested area") or msgcontains(msg, "demon oak") then

NpcHandler:say('I won\'t discuss any further with you for now.', cid) NpcHandler:say('Good luck, I mean it.', cid) The world depends on you now, kid.', cid) NpcHandler:say('Take this axe and bring that damn demon oak down, report back to me when you are done. NpcHandler:say('I have searched for dareful heroes like you.', cid) If getPlayerStorageValue(cid, 35735) = 1 then NpcHandler:say('How do you know? Did you go into the infested area?', cid)Įlseif msgcontains(msg, 'yes') and talk_state = 1 then If msgcontains(msg, "infested area") or msgcontains(msg, "demon oak") then Remember that hi, bye and all that stuff is already handled by the npcsystem, so you do not have to take care of that yourself. Local npcHandler = NpcHandler:new(keywordHandler)įunction onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) endįunction onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) endįunction onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) endįunction onThink() npcHandler:onThink() endįunction creatureSa圜allback(cid, type, msg) Local keywordHandler = KeywordHandler:new()
