Floris
Member
I was thinking about using all movement scripts in 1 file, assigning them all to the same aid, but I don't know if it's good to do so. Maybe it's looping too much or idk.
Like this:
Will this cause lagg?
Like this:
Will this cause lagg?
Code:
function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor)
if getTopCreature({x = 31607, y = 30753, z = 9}).uid > 0 then
doTeleportThing(cid,{x = 31405, y = 31755, z = 9})
elseif getTopCreature({x = 32237, y = 30753, z = 9}).uid > 0 then
doTeleportThing(cid,{x = 33015, y = 31015, z = 9})
elseif getTopCreature({x = 32347, y = 30753, z = 9}).uid > 0 then
doTeleportThing(cid,{x = 31305, y = 31515, z = 9})
elseif getTopCreature({x = 31237, y = 30753, z = 9}).uid > 0 then
doTeleportThing(cid,{x = 35032, y = 31435, z = 9})
elseif getTopCreature({x = 32237, y = 30753, z = 9}).uid > 0 then
doTeleportThing(cid,{x = 36015, y = 31715, z = 9})
elseif getTopCreature({x = 32337, y = 30753, z = 9}).uid > 0 then
doTeleportThing(cid,{x = 31603, y = 31845, z = 9})
elseif getTopCreature({x = 32437, y = 30753, z = 9}).uid > 0 then
doTeleportThing(cid,{x = 31204, y = 31935, z = 9})
Last edited: