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

Script of teleporte

ka9

New Member
Joined
Jul 25, 2009
Messages
32
Reaction score
0
Well, I made a scrip that when the god speaks / end, teleports all players who have these areas of the temple.


local players = getPlayersOnline()

function onSay(cid, words, param, channel)

local arenas = {arena1,arena2,arena3,arena4,arena5}

local arena1 = {
frompos = {x=452, y=742, z=7},
topos = {x=524, y=811, z=7},
exit = {x=15027, y=15987, z=5}
}

local arena2 = {
frompos = {x=470, y=764, z=6},
topos = {x=506, y=791, z=6},
exit = {x=15027, y=15987, z=5}
}

local arena3 = {
frompos = {x=470, y=764, z=5},
topos = {x=506, y=791, z=5},
exit = {x=15027, y=15987, z=5}
}

local arena4 = {
frompos = {x=470, y=764, z=4},
topos = {x=506, y=791, z=4},
exit = {x=15027, y=15987, z=5}
}

local arena5 = {
frompos = {x=470, y=764, z=3},
topos = {x=506, y=791, z=3},
exit = {x=15027, y=15987, z=5}
}

for i=1,5 do
for j=1,#players do
local playerpos = getCreaturePosition(getPlayerByNameWildcard(players[j]))
if isInArea(playerspos, arenas.frompos, arenas.topos) then
if doTeleportThing(cid, arenas.exit) == TRUE then
doSendMagicEffect(arenas.exit, 10)
end
end
end
end

return TRUE
end



Help-me please
 
Back
Top