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

setstoragevalue tile

Thunder Beam

New Member
Joined
Apr 23, 2008
Messages
107
Reaction score
0
Hello,

I need a tile which set a Storage value, if you walk on it you will get value: 9999, then you go to a door and the door check if you have the storagevalue 9999, if you have, you can pass, if not send cancel.

who can help me with this ?

Thunder Beam
 
movements/scripts/

PHP:
function onStepIn(cid, item, position, fromPosition)
	if item.actionid == 999 and getPlayerStorageValue(cid, 9999) ~= TRUE then
		setPlayerStorageValue(cid, 9999, 1)
	end
	return TRUE
end

movements.xml

PHP:
<movevent type="StepIn" itemid="ITEM_ID_OF_STEP_IN" event="script" value="tileStor.lua"/>

You need to set the action id of the tile to 999 and in movements.xml change ITEM_ID_OF_STEP_IN to the itemid of the tile with the action id 999!
 
Back
Top