Loremaster7
New Member
- Joined
- Oct 16, 2017
- Messages
- 29
- Reaction score
- 4
Help! My stone skin amulet it's bugged in the quest.
The Stone Skin Amulet comes with 1 charge and infinit...
but a i need "5" charges...
look:
23:00 You see a stone skin amulet (protection physical +80%) that has 1 charge left.
It weighs 7.00 oz.
my items.xml:
<item id="2197" article="a" name="stone skin amulet">
<attribute key="weight" value="700"/>
<attribute key="slotType" value="necklace"/>
<attribute key="charges" value="5"/>
<attribute key="showcharges" value="1"/>
<attribute key="absorbPercentPhysical" value="80"/>
<attribute key="showattributes" value="1"/>
my script quest:
function onUse(cid, item, frompos, item2, topos)
if item.uid == 65482 then
queststatus = getPlayerStorageValue(cid,65482)
if queststatus == -1 or queststatus == 0 then
doPlayerSendTextMessage(cid,22,"You have found a stone skin amulet.")
item_uid = doPlayerAddItem(cid,2197,1)
setPlayerStorageValue(cid,65482,1)
else
doPlayerSendTextMessage(cid,22,"it\'s empty.")
end
else
return 0
end
return 1
end
**********************
My server is OTX... 7.72
The Stone Skin Amulet comes with 1 charge and infinit...
but a i need "5" charges...
look:
23:00 You see a stone skin amulet (protection physical +80%) that has 1 charge left.
It weighs 7.00 oz.
my items.xml:
<item id="2197" article="a" name="stone skin amulet">
<attribute key="weight" value="700"/>
<attribute key="slotType" value="necklace"/>
<attribute key="charges" value="5"/>
<attribute key="showcharges" value="1"/>
<attribute key="absorbPercentPhysical" value="80"/>
<attribute key="showattributes" value="1"/>
my script quest:
function onUse(cid, item, frompos, item2, topos)
if item.uid == 65482 then
queststatus = getPlayerStorageValue(cid,65482)
if queststatus == -1 or queststatus == 0 then
doPlayerSendTextMessage(cid,22,"You have found a stone skin amulet.")
item_uid = doPlayerAddItem(cid,2197,1)
setPlayerStorageValue(cid,65482,1)
else
doPlayerSendTextMessage(cid,22,"it\'s empty.")
end
else
return 0
end
return 1
end
**********************
My server is OTX... 7.72