Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
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!
Hey, i have doubt in one thing, i have item id 15465 and this item have in some places and player need use 8 of this items but he cant use it same item ... he need go to other place and use again ..Can someone help me?
If the item is added in the map on certain places and shouldn't be removed, you can add an uniqueid to it, then set the storage to that uniqueid.
Lua:
local storage = item.uid
If the item is something people get with a quest for example, you can set the same storage number but every item 1 extra value and remove the item after using.
Yes, i try do that but i found one problem..Each item i will need add different storage and i need only 1 storage to all item each item you use you gain +1 storage..
You can do both, storage with item.uid to check if someone already used the item, then add different storage with +1 value, so if you used all items, the value of that second storage will be 7 (or 8 if you set it to 0).
local table = {
[] = {storage = 1}
}
for k,v in pairs do
if item.uid == k then
if getPlayerStorageValue(cid,77878) <= 8 then
setPlayerStorageValue(cid, v.storage, getPlayerStorageValue(cid,v.storage) + 1)
doSendMagicEffect(toPosition,31)
end
end
end