• 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 Back to learn more

Dexftw

Total Boss
Joined
Jan 30, 2011
Messages
317
Reaction score
8
So I haven't been using tibia in a long time, but I want to come back to try and relearn some more about lua, working on an ot server right now, pretty much lost all the stuff I once knew, and gonna have to read about it but I wanted to ask about this script.

Code:
function onUse(cid, item, frompos, item2, topos)

         if item.itemid == 1378 then
             if (getPlayerStorageValue(cid,12005) == -1) then
                doPlayerSendTextMessage(cid,21,"Congratulations, you've achieved the second oriental addon!!")
                doPlayerAddOutfitId(cid,11,3)
                setPlayerStorageValue(cid,12005,1)
        else
                doPlayerSendCancel(cid,25,"You Already got the Oriental addons.")
end
end
end
On the storage value number, How do I figure out what storage number to use exactly? Can I just use any number once per script, or am I limited to a set ammount/specific ones?
 
Back
Top