• 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

DextaaH

Member
Joined
Jul 24, 2011
Messages
335
Reaction score
7
In items
PHP:
<item id="2197" article="a" name="stone skin amulet">
		<attribute key="weight" value="760"/>
		<attribute key="slotType" value="necklace"/>
		<attribute key="charges" value="5"/>
		<attribute key="showcharges" value="5"/>
		<attribute key="absorbPercentPhysical" value="80"/>
		<attribute key="absorbPercentDeath" value="80"/>
		<attribute key="showattributes" value="1"/>
	</item>

In game of monsters:
PHP:
You see a stone skin amulet (protection physical +80%, death +80%) that has 1 charge left.
It weighs 7.60 oz.

From Npc
PHP:
You see a stone skin amulet (protection physical +80%, death +80%) that has 5 charges left.
It weighs 7.60 oz.

Any idea?
 
XML:
<attribute key="showcharges" value="5"/>
It's bad. You can use only 0/1, because this is boolean. Example:
XML:
<attribute key="showcharges" value="0"/> <!-- no -->
<attribute key="showcharges" value="1"/> <!-- yes -->
~~~
In monsters XML file try use for item node
XML:
subtype="5"
 
What you need to do to get SSA's with the correct charges in all monsters is use notepad++ or simular softwares replace all function (for all files - backup first.)

Here's an example using subtype for might ring.
Code:
<item id="2164" subtype="10" chance="500"/>

So with notepad++ replace all function you would look for:
<item id="2164"
with the space after it then replace it with
<item id="2164" subtype="10"
Note the space after the final " on each line.

Alternatively you could just do it manually.
 
Back
Top