Date:
28.02.2014 - 02:08:46
Author:
Rewrite:
Type here:
function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor) if(not(isPlayer(cid))) then return true end local pos = getPlayerPosition(cid) local postemple = getThingFromPos({x = , y = , z = , stackpos = 2}, {x = , y = , z =, stackpos = 2}) if(not(isInArray(pos, postemple))) then return true end if(postemple) then if(getCreatureLookDirection(cid) == NORTH) then doMoveCreature(cid, SOUTH) elseif(getCreatureLookDirection(cid) == EAST) then doMoveCreature(cid, WEST) elseif(getCreatureLookDirection(cid) == SOUTH) then doMoveCreature(cid, NORTH) elseif(getCreatureLookDirection(cid) == WEST) then doMoveCreature(cid, EAST) end end return true end