• 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!

NPC Problem Please Help

Ravauvial

Member
Joined
Mar 19, 2009
Messages
186
Reaction score
8
Location
Stanwood, Washington, USA
The Forgotten Server, version 0.3.1 (Crying Damson) 8.40
Having a problem with NPC's.
1st I created new coins 5 of them Bronze, Emerald, Garnet, Ruby, and Saphire.
the value is like gold, platnium, crystal, Bronze and so on.
When I buy something from an NPC and I have say 50 ruby coins and the item I am buying is 10 gold The npc takes the 10 gold and all my ruby coins too. It happens with all the new coins,
Can you tell me were to go to fix that.
 

Attachments

Last edited:
Ok figured it out and thought I would share. in the Items.xml

each coin you add you have to add 2 zeros to each after.

<item id="10062" article="a" name="bronze coin" plural="bronze coins">
<attribute key="weight" value="10"/>
<attribute key="worth" value="1000000"/>
</item>
next would be emerald = 100000000 and so on.
All mine were set to 1, so the NPC saw those as 1 gold coin.
 
Back
Top