• 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!

I need npc script

Code:
   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

                      storage = 19745
                        if exhaustion.get(cid, storage) then
                            selfSay('Your ticket has not expired yet.', cid)
                        elseif not doPlayerRemoveMoney(cid, 250) then
                            selfSay('You need 250 gold coins to buy me a ticket.', cid)
                        else
                            exhaustion.set(cid, storage, 60 * 60 * 24 * 7)
                            selfSay('There, I gave you a ticket that lasts 7 days.', cid)
                        end

npcHandler:addModule(FocusModule:new())
+ yes or no and ? in npc.lua
 
Back
Top