LucasFerraz
Systems Analyst
How can I save this house?
Player who is moving item can or not be owner of this house.
LUA:function onMoveItem(cid, item, formPosition, toPosition, fromItem, toItem, fromGround, toGround, status) if (getTileInfo(fromPosition).house) then --doSaveHouse({getHouseByPlayerGUID(getPlayerGUID(cid))}) It will save the house of player who is moving item no matter if he is inside of his house of anyone else --doSaveHouse({getTileInfo(fromPosition).house)}) Will it work?? --doSaveHouse({getHouseByPlayerGUID(getTileInfo(fromPosition).house)}) Will it work?? end return true end
Error here (if (getTileInfo(fromPosition).house) then), print: