arti1194
New Member
- Joined
- Jun 6, 2009
- Messages
- 96
- Reaction score
- 3
Hello everyone, I have problem with pacc rune. Everything works fine, but when I have two or more pacc rune and I will use it immediately removes two. Please help. TFS 0.4 revision 3777
Here is my code:
Here is my code:
Code:
function onUse(cid, item, frompos, item2, topos)
local storage = getPlayerStorageValue(cid, 12570)
if storage == -1 then
setPlayerStorageValue(cid, 12570, 1)
elseif storage ~= -1 then
setPlayerStorageValue(cid, 12570, storage+1)
end
doPlayerAddPremiumDays(cid, 7)
doSendMagicEffect(topos , 14)
doCreatureSay(cid, "7 Days Premium Account Added", TALKTYPE_ORANGE_1)
doRemoveItem(item.uid , 1)
end