function onStepIn(cid, item, pos)
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
if isPlayer(cid) == TRUE then
if isPremium(cid) == TRUE then
else
doMoveCreature(cid, newdir)
doPlayerSendTextMessage(cid,24, "you need premium account.")
end
end
end
Lua:function onStepIn(cid, item, position, fromPosition) if (not isPremium(cid) then doTeleportThing(cid, fromPosition) -- a moze return false by wystarczylo end return true end
function onStepIn(cid, item, position, fromPosition)
if (not isPremium(cid) then
doTeleportThing(cid, fromPosition, true) -- a moze umyj mi plecy
end
return true
end