<movevent type="StepIn" actionid="2025" event="script" value="one_per_tile.lua"/>
function getBottomPlayer(pos)
for i = 1, getTileInfo(pos).things do
pos.stackpos = getTileInfo(pos).things-i
local cid = getThingFromPos(pos).uid
if isPlayer(cid) then
return cid
end
end
return 0
end
function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor)
if not isPlayer(cid) then
return doTeleportThing(cid, fromPosition, false)
end
if isPlayer(getBottomPlayer(position)) and cid ~= getBottomPlayer(position) then
doPlayerSendCancel(cid, 'This tile only allows 1 player in it.')
return doTeleportThing(cid, fromPosition, false)
end
return true
end
non-logout tile in mapeditor?YOU ARE MY BOSS!!!!!!! but when first player logout at glowing switch and second player will stand at glowing switch.... and first player will login then they can standing together with 2 player at glowing switch
can you add to this script when someone is standing at this glowing switch.. the second player which want to login in the same glowing switch he will be moved to temple?
cbrm ,,, he said player can logoutnon-logout tile in mapeditor?
just make it non logout on the dam rme, takes you like 60 seconds! dont be so selfishso make it if you can please
Would you please bump each 24 hours? That's pretty annoying.bump