• 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 STONE SKIN AMULET BUG!!!

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
 
change in your quest script
item_uid = doPlayerAddItem(cid,2197,1)

1 are the charges

Look now :

01:19 You see a stone skin amulet (protection physical +80%) that has 5 charges left.
It weighs 7.00 oz.

But, this do not work, it is still infinite the charges do not down.

Hey now working ty!
 
Last edited by a moderator:
Back
Top