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

Storage Values

Tibia Rox

Member
Joined
Feb 4, 2009
Messages
1,181
Reaction score
9
Location
U.S.A
Hey everyone,
I was wondering if someone could explain to me what exactly storage values are, what they're used for, and what they do.

Much appreciated.
 
EXAMPLE: you can make a quest and when you open the chest the player gets storage ID 9999 and then he can enter an another door which needs storage ID 9999.
 
@up
precisely: storage nr."9999" with value nr."1"

to go through the quest door, door storage nr."9999" must have value greater than "0".. - standard, because you can change the script itself,
for example, so:

Lua:
	if(door.specialDoor) then
		if (item.aid ~= 0 and item.uid == 0 and getCreatureStorage(cid, item.aid) > 0) then
			return doorEnter(cid, item.uid, door.transformUseTo, toPosition)
		end

		doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "The door seems to be sealed against unwanted intruders.")
		return true
	end
-->
Lua:
	if(door.specialDoor) then
		if item.aid == 100 or
		(item.aid ~= 0 and item.uid == 0 and getCreatureStorage(cid, item.aid) > 0) or
		(item.aid ~= 0 and item.uid ~= 0 and getCreatureStorage(cid, item.uid) == item.aid - 1000) then
			return doorEnter(cid, item.uid, door.transformUseTo, toPosition)
		end

		doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "The door seems to be sealed against unwanted intruders.")
		return true
	end
 
Back
Top Bottom