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

Kingsday Jailing

poopsiedoodle

Gibe moni plos
Joined
Nov 23, 2011
Messages
2,458
Reaction score
586
Location
Georgia
Hey there guys! I'm making it kingsday when I start my OT, and so I was wondering if someone could give me some help with making it so that if you say Fuck to the king, he sends you to a jail cell in the thais jail? I also need a script for a teleport that shows up 5 minutes after each hour that teleports you out of the jail cell. I tried taking a little bit from a boat NPC, but you'd have to say "yes" also for it to teleport you, and that'd kinda ruin it.
 
Code:
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)



-- OTServ event handling functions start
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
-- OTServ event handling functions end


local travelNode = keywordHandler:addKeyword({'fuck'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'GUARDS!'} StdModule.travel, {npcHandler = npcHandler, destination = {x=997, y=1002, z=5} })

npcHandler:addModule(FocusModule:new())
 
Last edited:
Back
Top