Hello,
When a player passes on top of a chest of quest, automatically he is pushd for outside of the even. its not permitted that the player stay on top of the chest of the quest. Well... When my server was hosted in Windows this problem didnt exist and, when I passed for Linux came I disturb him.
In the moment, the player is going to stay on top of the chest and alone with GOD is possible removes him. The following error appears in my console:
Here my script (walkback):
Someone help me?
gave rep+
When a player passes on top of a chest of quest, automatically he is pushd for outside of the even. its not permitted that the player stay on top of the chest of the quest. Well... When my server was hosted in Windows this problem didnt exist and, when I passed for Linux came I disturb him.
In the moment, the player is going to stay on top of the chest and alone with GOD is possible removes him. The following error appears in my console:
Code:
[Error - MoveEvents Interface]
data/movements/scripts/walkback.lua:onStepIn
Description:
data/movements/scripts/walkback.lua:8: attempt to call global 'isContainer' (a nil value)
stack traceback:
data/movements/scripts/walkback.lua:8: in function <data/movements/scripts/walkback.lua:3>
Here my script (walkback):
Code:
local SPECIAL_QUESTS = {2001}
function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor)
if(not isPlayer(cid)) then
return true
end
if(isContainer(item.uid)) then
if(not isInArray(SPECIAL_QUESTS, item.actionid) and item.uid > 65535) then
return true
end
elseif(getTileInfo(position).creatures <= 1) then
return true
end
if(fromPosition.x == 0) then -- player just logged in
fromPosition = getTownTemplePosition(getPlayerTown(cid))
doSendMagicEffect(fromPosition, CONST_ME_TELEPORT)
end
doTeleportThing(cid, fromPosition, true)
return true
end
Someone help me?
gave rep+