LucasFerraz
Systems Analyst
Hello guys
,
This script below is a feature(OnMove) posted here in OTLand and It's checking if player is moving something inside of a house.
If inside a house then script must save PLAYER(doPlayerSave(cid)) and HOUSE(doSaveHouse({getHouseByPlayerGUID(getPlayerGUID(cid))} to save player's house)).
The problem is: this player can be only an guess.
How can I save this house if the player who's moving is NOT the owner?
I must fix it to update this: GlobalEvent Server Save [Optimized, less lag] v1.8
Your credits will be posted. I just tried a LOT and couldn't fix it myself.
This script below is a feature(OnMove) posted here in OTLand and It's checking if player is moving something inside of a house.
If inside a house then script must save PLAYER(doPlayerSave(cid)) and HOUSE(doSaveHouse({getHouseByPlayerGUID(getPlayerGUID(cid))} to save player's house)).
The problem is: this player can be only an guess.
How can I save this house if the player who's moving is NOT the owner?
LUA:
function onMoveItem(cid, item, formPosition, toPosition, fromItem, toItem, fromGround, toGround, status)
if (getTileInfo(fromPosition).house) then
doPlayerSave(cid)
doSaveHouse({getHouseByPlayerGUID(getPlayerGUID(cid))})
end
return true
end
I must fix it to update this: GlobalEvent Server Save [Optimized, less lag] v1.8
Your credits will be posted. I just tried a LOT and couldn't fix it myself.