• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Lua doSaveHouse [HELP]

LucasFerraz

Systems Analyst
Joined
Jun 10, 2010
Messages
2,857
Reaction score
96
Location
Brazil
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:
Sem título.jpg
 
Back
Top