Hey guys, a friend of mine has a bug in his POI...
He can get all the 3 items (arbalest, arcane staff and avenger), and not only one.
Here is the script:
The uniqueids are correct, I checked the chests in-game.
In my server I got the same script and the same uniqueids on chests but it works perfectly.
Can anybody help?
He can get all the 3 items (arbalest, arcane staff and avenger), and not only one.
Here is the script:
Code:
function onUse(cid, item, frompos, item2, topos)
if item.uid == 10544 then
if getPlayerStorageValue(cid,10544) == -1 then
doPlayerSendTextMessage(cid,25,"You have chosen an arcane staff.")
doPlayerAddItem(cid,2453,1)
setPlayerStorageValue(cid,10544,1)
else
doPlayerSendTextMessage(cid,25,"It is empty.")
end
elseif item.uid == 10545 then
if getPlayerStorageValue(cid,10544) == -1 then
doPlayerSendTextMessage(cid,25,"You have chosen the avenger.")
doPlayerAddItem(cid,6528,1)
setPlayerStorageValue(cid,10544,1)
else
doPlayerSendTextMessage(cid,25,"It is empty.")
end
elseif item.uid == 10546 then
if getPlayerStorageValue(cid,10544) == -1 then
doPlayerSendTextMessage(cid,25,"You have chosen an arbalest.")
doPlayerAddItem(cid,5803,1)
setPlayerStorageValue(cid,10544,1)
else
doPlayerSendTextMessage(cid,25,"It is empty.")
end
The uniqueids are correct, I checked the chests in-game.
In my server I got the same script and the same uniqueids on chests but it works perfectly.
Can anybody help?