• 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!

[movement] storage tile

Allesn

Member
Joined
May 4, 2011
Messages
204
Solutions
1
Reaction score
24
I would move that when a player stepping on the tile, ganheuma storage, and when leaving the same tile, the storage was deleted from the player.

thank you
 
XML:
	<movevent type="StepOut" actionid="9002" event="script" value="lolz.lua"/>
	<movevent type="StepIn" actionid="9003" event="script" value="lolz.lua"/>

LUA:
local storage = 9000
function onStepIn(cid, item, pos)
	setPlayerStorageValue(cid, storage, 1)
	return TRUE
end
 
function onStepOut(cid, item, pos)
	setPlayerStorageValue(cid, storage, -1)
	return TRUE
end
 
Back
Top