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

Teleport from tile ^_^

Pro Warbringer

Retired with developing
Joined
Sep 23, 2008
Messages
3,582
Reaction score
24
Location
Austria
well i just started yesterday and i make rly big fails
so if ya want if its correct watch it :)
Code:
local text = "You're already a GOD"
local text2 = "You're now a GOD"
local place = {x=xxxx, y=xxxx, z=xxxx} --Where they will be teleported to
function onStepIn(cid, item, position, fromPosition)
if item.uid == 1234 then and getPlayerGroupId (cid) ~= 3 then
if getPlayerLookDir(cid) == 0 then
newdir = 2
elseif getPlayerLookDir(cid) == 1 then
newdir = 3
elseif getPlayerLookDir(cid) == 2 then
newdir = 0
else
newdir = 1
end

setPlayerGroupId(cid, 3)
if item.uid == 1234 and getPlayerGroupId(cid) ~= 3 then
setPlayerGroupId(cid, 3)
doTeleportThing(cid, place)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, text2)
else
doPlayerSendCancel(cid, text)
doMoveCreature(cid, newdir)
end
end


REP++ PLZ?:0
 
Last edited by a moderator:
Back
Top