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

Item worth, can it be a decimal?

kevin1

New Member
Joined
Feb 3, 2009
Messages
123
Reaction score
0
Gold coin is worth 1
Platinum Coin is worth 100
Crystal Coin is worth 10,000

Is it possible to change the "worth" to a decimal, example:

Change this:

<item id="2148" article="a" name="gold coin" plural="gold coins">
<attribute key="weight" value="10" />
<attribute key="worth" value="1" />

To this:

<item id="2148" article="a" name="gold coin" plural="gold coins">
<attribute key="weight" value="10" />
<attribute key="worth" value="0.01" />

Or does it have to be a whole number?
 
It is possible if you add more coin types, but you would have to edit the source for NPCs to recognize the new money system.
 
It has to be a whole number, whats one hundredth of a gold coin?



It is possible if you add more coin types, but you would have to edit the source for NPCs to recognize the new money system.

Ehm, is it possible or not? I know I have to edit source and that but what I am asking is if the value on the worth atribute can be 0.01.

Why do I want 0.01?

Because I want a currency system that has currency less than the standard value.

Example:

I want Dollars and cent. 1 cent would have a worth of 0.01 - Otherwise if something costs 1000 dollars, it would be 10000 cents..

right? There are probably ways of overcoming this though..
 
Back
Top