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.
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?
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