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

Lua Tile Script

owned

Excellent OT User
Joined
Nov 9, 2008
Messages
2,001
Solutions
3
Reaction score
558
Location
New York
can someone help me out with a script that if a certain tile has a unique id(xxx) then if they stand on that tile for 30 minutes then they will be teleported to a spot and kicked
 
Lua:
local newPos = {x=, y=, z=}
local time = 60 * 30


function tooLong(cid)
    doTeleportThing(cid, newPos)
    doRemoveCreature(cid)
end

local tid = 0
function onStepIn(cid)
    tid = addEvent(tooLong, 1000 * time, cid)
    return true
end

function onStepOut(cid)
    stopEvent(tid)
    return true
end
 
Lua:
local newPos = {x=, y=, z=}
local time = 60 * 30


function tooLong(cid)
    doTeleportThing(cid, newPos)
    doRemoveCreature(cid)
end

local tid = 0
function onStepIn(cid)
    tid = addEvent(tooLong, 1000 * time, cid)
    return true
end

function onStepOut(cid)
    stopEvent(tid)
    return true
end

Du baxa min rep! xd
Ville ju göra den!
 
Back
Top