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
you're writing wrong...see..is form not from...no have bug's, it's a great and very valuable script to sources
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
you're writing wrong...see..is form not from...no have bug's, it's a great and very valuable script to sources