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

Teleportation by movements for days of the week.

Mudrock

Member
Joined
Jan 25, 2017
Messages
102
Reaction score
19
Location
Minas Gerais - Brazil
Hello I'm needing help finding a script that moves to where the player will be teleported for days of weeks.
For example:
Monday x position
Tuesday position y
Wednesday position z

and so on, I will be eternally grateful if anyone can help me!
 
Solution
local Days = {
["Monday"] = {
Position = {x = 1000, y = 1000, z = 7}
},
["Tuesday"] = {
Position = {x = 1000, y = 1000, z = 7}
},
["Wednesday"] = {
Position = {x = 1000, y = 1000, z = 7}
},
["Thursday"] = {
Position = {x = 1000, y = 1000, z = 7}
},
["Friday"] = {
Position = {x = 1000, y = 1000, z = 7}
},
["Saturday"] = {
Position = {x = 1000, y = 1000, z = 7}
},
["Sunday"] = {
Position = {x = 1000, y = 1000, z = 7}
},
}

function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor)
local Teleport = Days[os.date("%A")]
if Teleport then
doTeleportThing(cid, Teleport.Position, true)
doSendMagicEffect(Teleport.Position, CONST_ME_TELEPORT)
end
return true
end
local Days = {
["Monday"] = {
Position = {x = 1000, y = 1000, z = 7}
},
["Tuesday"] = {
Position = {x = 1000, y = 1000, z = 7}
},
["Wednesday"] = {
Position = {x = 1000, y = 1000, z = 7}
},
["Thursday"] = {
Position = {x = 1000, y = 1000, z = 7}
},
["Friday"] = {
Position = {x = 1000, y = 1000, z = 7}
},
["Saturday"] = {
Position = {x = 1000, y = 1000, z = 7}
},
["Sunday"] = {
Position = {x = 1000, y = 1000, z = 7}
},
}

function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor)
local Teleport = Days[os.date("%A")]
if Teleport then
doTeleportThing(cid, Teleport.Position, true)
doSendMagicEffect(Teleport.Position, CONST_ME_TELEPORT)
end
return true
end
 
Solution
Back
Top