change the format to look like other new item_db.conf ?
http://pastebin.com/raw.php?i=YSepT1DR
refine: ({ TYPE: ARMOR STAT_PER_LEVEL: 0 RATE: { 100:100, // +1 refine RATE:randome bonus rate 100:100, // +2 refine RATE:randome bonus rate 100:100, // +3 refine RATE:randome bonus rate 100:100, // +4 refine RATE:randome bonus rate 100:100, // +5 refine RATE:randome bonus rate 100:100, // +6 refine RATE:randome bonus rate // etc.... }}, { TYPE: WEAPON LEVEL: 1 STAT_PER_LEVEL: 200 RATE: { 100:100, // +1 refine RATE:randome bonus rate 100:100, // +2 refine RATE:randome bonus rate 100:100, // +3 refine RATE:randome bonus rate 100:100, // +4 refine RATE:randome bonus rate 100:100, // +5 refine RATE:randome bonus rate 100:100, // +6 refine RATE:randome bonus rate // etc.... }},{ TYPE: WEAPON LEVEL: 2 STAT_PER_LEVEL: 300 RATE: { 100:100, // +1 refine RATE:randome bonus rate 100:100, // +2 refine RATE:randome bonus rate 100:100, // +3 refine RATE:randome bonus rate 100:100, // +4 refine RATE:randome bonus rate 100:100, // +5 refine RATE:randome bonus rate 100:100, // +6 refine RATE:randome bonus rate // etc.... }},{ TYPE: WEAPON LEVEL: 3 STAT_PER_LEVEL: 500 RATE: { 100:100, // +1 refine RATE:randome bonus rate 100:100, // +2 refine RATE:randome bonus rate 100:100, // +3 refine RATE:randome bonus rate 100:100, // +4 refine RATE:randome bonus rate 100:100, // +5 refine RATE:randome bonus rate 100:100, // +6 refine RATE:randome bonus rate // etc.... }},{ TYPE: WEAPON LEVEL: 4 STAT_PER_LEVEL: 700 RATE: { 100:100, // +1 refine RATE:randome bonus rate 100:100, // +2 refine RATE:randome bonus rate 100:100, // +3 refine RATE:randome bonus rate 100:100, // +4 refine RATE:randome bonus rate 100:100, // +5 refine RATE:randome bonus rate 100:100, // +6 refine RATE:randome bonus rate // etc.... }})
Propose:
Overhaul the structure
Passing the refine rate into server based on MAX_REFINE
if want other customization ... maybe another field for "Bonus_Script" ?? that give bonus to all items that have specific refine ??
About the passing refine rate based on server MAX_REFINE:
if a rate is set for the refine rate, then it's passed into the server ...
but.. if the MAX_REFINE doesnt match with the max refine in the refine_db , then the extra non-exist refine rate just simply pass in the value of -1 ? or maybe 0 ? with this other users can just simply add in a check using this
getequippercentrefinery(<equipment slot>)
if value returned is equal or below 0 , then failed to refine ..
Current issue that is known for current refine_db
If the MAX_REFINE doesnt match with the entry inside the refine_db , whenever players try to refine in server, they simply get 100% of refine rate, and the server get some errors about lack of entry for refine_db during the start-up too .
a bit hard for user to find and edit refine rate ...
Advantages :
easier to read or configure
allow users to prevent players from refine abusing IF the admin ignored all these missing entry error due to MAX_REFINE ...
Disadvantages :
larger file size
longer passing time ?