slaw
Software Developer
Code:
elseif isInArray(horizontalOpenDoors, item.itemid) == TRUE then
local newPosition = toPosition
newPosition.y = newPosition.y + 1
local doorPosition = fromPosition
doorPosition.stackpos = STACKPOS_TOP_MOVEABLE_ITEM_OR_CREATURE
local doorCreature = getThingfromPos(doorPosition)
if getTilePzInfo(doorPosition) == FALSE or getTilePzInfo(newPosition) == TRUE then
if doorCreature.itemid ~= 0 then
doTeleportThing(doorCreature.uid, newPosition, TRUE)
end
doTransformItem(item.uid, item.itemid - 1)
else
doPlayerSendCancel(cid, "Sorry, not possible.")
end
return TRUE
...P....
...D....
P- Player
D- Door
At this moment you can open door, but now:
...D...
...P...
"Sorry, not possible."
I was trying to fix it, and i fount it:
Code:
newPosition.y = newPosition.y + 1
I'm speaking about houses. After changing + to - to can open doors above you, but under you - "Sorry, not possible."