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

[Request] Jail Timer

knightfire

New Member
Joined
Jul 25, 2007
Messages
114
Reaction score
2
Location
Lake Michigan
I suck so bad and understand 0% about this addEvent function.
I was wondering if someone can make a script in talkactions that teleports a player to jail then after 20 minutes, the person in jail gets teleported to another location.
 
Talaturen told me how it worked, so I'll tell it to you now.

First, you create the addEvent(functionName, delayInSeconds, parameters)
example that you have in your script:
addEvent(Unjail,60*20,{cid = cid, item = item, frompos = frompos} (and so on...)

then
you create a function like this:

function Unjail(parameters)
doTeleportCreature(parameters.cid, {x=100, y=100, z=7}, TRUE)
end

Cant remember all the functions so may be diffrent from whats used in TFS because I'm used to ol' 7.6 :p
 
Talaturen told me how it worked, so I'll tell it to you now.

First, you create the addEvent(functionName, delayInSeconds, parameters)
example that you have in your script:
addEvent(Unjail,60*20,{cid = cid, item = item, frompos = frompos} (and so on...)

then
you create a function like this:

function Unjail(parameters)
doTeleportCreature(parameters.cid, {x=100, y=100, z=7}, TRUE)
end

Cant remember all the functions so may be diffrent from whats used in TFS because I'm used to ol' 7.6 :p

That's the hard way there are easyer ways to make it, but i dont know if oyu are bale to add a timer..
 
Talaturen told me how it worked, so I'll tell it to you now.

First, you create the addEvent(functionName, delayInSeconds, parameters)
example that you have in your script:
addEvent(Unjail,60*20,{cid = cid, item = item, frompos = frompos} (and so on...)

then
you create a function like this:

function Unjail(parameters)
doTeleportCreature(parameters.cid, {x=100, y=100, z=7}, TRUE)
end

Cant remember all the functions so may be diffrent from whats used in TFS because I'm used to ol' 7.6 :p

Dont get it?
 
Back
Top