From e171deb58c7ebbc010d0a40b0e2e66651a0d7913 Mon Sep 17 00:00:00 2001 From: smokexyz Date: Sun, 21 May 2017 12:00:05 +0800 Subject: Refine rate correction from kRO. Normal Ores: http://ro.gnjoy.com/news/probability/View.asp?category=4&seq=1941553&curpage=1 Enriched Ores: http://ro.gnjoy.com/news/probability/View.asp?category=4&seq=1941565&curpage=1 Event Normal Ores: http://ro.gnjoy.com/news/probability/View.asp?category=4&seq=1941558&curpage=1 Event Enriched Ores: http://ro.gnjoy.com/news/probability/View.asp?category=4&seq=1941567&curpage=1 --- db/pre-re/refine_db.conf | 124 ++++++++++++++---- db/re/refine_db.conf | 324 ++++++++++++++++++++++++++++++++++++----------- 2 files changed, 346 insertions(+), 102 deletions(-) (limited to 'db') diff --git a/db/pre-re/refine_db.conf b/db/pre-re/refine_db.conf index 0d59c8faa..523c2605c 100644 --- a/db/pre-re/refine_db.conf +++ b/db/pre-re/refine_db.conf @@ -39,10 +39,10 @@ Armors/WeaponLevel1~4: { // Specifies weapon level or armor type // Random bonus start level. This is only applied for weapons, and not displayed client-side. Rates: { // Per level configuration of the refine rates. Lv1~10: { // Level of refine - Chance: value (int, optional, defaults to 100) // Chance of successful refine (100 = 100%) + NormalChance: value (int, optional, defaults to 100) // Chance of successful refine (100 = 100%) Bonus: value (int, optional, defaults to 0) // Bonus for this level of refine } - // Note: Refine levels that use default values need not be listed. (Example: Lv1: Chance: 100 Bonus: 0) + // Note: Refine levels that use default values need not be listed. (Example: Lv1: NormalChance: 100 Bonus: 0) } } **************************************************************************/ @@ -53,22 +53,40 @@ Armors: { RandomBonusValue: 0 Rates: { Lv5: { - Chance: 60 + NormalChance: 60 + EnrichedChance: 90 + EventNormalChance: 60 + EventEnrichedChance: 95 } Lv6: { - Chance: 40 + NormalChance: 40 + EnrichedChance: 70 + EventNormalChance: 40 + EventEnrichedChance: 80 } Lv7: { - Chance: 40 + NormalChance: 40 + EnrichedChance: 70 + EventNormalChance: 40 + EventEnrichedChance: 80 } Lv8: { - Chance: 20 + NormalChance: 20 + EnrichedChance: 40 + EventNormalChance: 20 + EventEnrichedChance: 60 } Lv9: { - Chance: 20 + NormalChance: 20 + EnrichedChance: 40 + EventNormalChance: 20 + EventEnrichedChance: 50 } Lv10: { - Chance: 10 + NormalChance: 9 + EnrichedChance: 20 + EventNormalChance: 9 + EventEnrichedChance: 35 } } } @@ -78,13 +96,22 @@ WeaponLevel1: { RandomBonusValue: 300 Rates: { Lv8: { - Chance: 60 + NormalChance: 60 + EnrichedChance: 90 + EventNormalChance: 60 + EventEnrichedChance: 95 } Lv9: { - Chance: 40 + NormalChance: 40 + EnrichedChance: 70 + EventNormalChance: 40 + EventEnrichedChance: 85 } Lv10: { - Chance: 20 + NormalChance: 19 + EnrichedChance: 30 + EventNormalChance: 19 + EventEnrichedChance: 55 } } } @@ -94,16 +121,28 @@ WeaponLevel2: { RandomBonusValue: 500 Rates: { Lv7: { - Chance: 60 + NormalChance: 60 + EnrichedChance: 90 + EventNormalChance: 60 + EventEnrichedChance: 95 } Lv8: { - Chance: 40 + NormalChance: 40 + EnrichedChance: 70 + EventNormalChance: 40 + EventEnrichedChance: 85 } Lv9: { - Chance: 20 + NormalChance: 20 + EnrichedChance: 40 + EventNormalChance: 20 + EventEnrichedChance: 60 } Lv10: { - Chance: 20 + NormalChance: 19 + EnrichedChance: 30 + EventNormalChance: 19 + EventEnrichedChance: 45 } } } @@ -113,19 +152,34 @@ WeaponLevel3: { RandomBonusValue: 800 Rates: { Lv6: { - Chance: 60 + NormalChance: 60 + EnrichedChance: 90 + EventNormalChance: 60 + EventEnrichedChance: 95 } Lv7: { - Chance: 50 + NormalChance: 50 + EnrichedChance: 80 + EventNormalChance: 50 + EventEnrichedChance: 90 } Lv8: { - Chance: 20 + NormalChance: 20 + EnrichedChance: 40 + EventNormalChance: 20 + EventEnrichedChance: 70 } Lv9: { - Chance: 20 + NormalChance: 20 + EnrichedChance: 40 + EventNormalChance: 20 + EventEnrichedChance: 60 } Lv10: { - Chance: 20 + NormalChance: 19 + EnrichedChance: 30 + EventNormalChance: 19 + EventEnrichedChance: 45 } } } @@ -135,22 +189,40 @@ WeaponLevel4: { RandomBonusValue: 1300 Rates: { Lv5: { - Chance: 60 + NormalChance: 60 + EnrichedChance: 90 + EventNormalChance: 60 + EventEnrichedChance: 95 } Lv6: { - Chance: 40 + NormalChance: 40 + EnrichedChance: 70 + EventNormalChance: 40 + EventEnrichedChance: 80 } Lv7: { - Chance: 40 + NormalChance: 40 + EnrichedChance: 70 + EventNormalChance: 40 + EventEnrichedChance: 80 } Lv8: { - Chance: 20 + NormalChance: 20 + EnrichedChance: 40 + EventNormalChance: 20 + EventEnrichedChance: 60 } Lv9: { - Chance: 20 + NormalChance: 20 + EnrichedChance: 40 + EventNormalChance: 20 + EventEnrichedChance: 50 } Lv10: { - Chance: 10 + NormalChance: 9 + EnrichedChance: 20 + EventNormalChance: 9 + EventEnrichedChance: 35 } } } diff --git a/db/re/refine_db.conf b/db/re/refine_db.conf index 927e2d6bf..3c0e66070 100644 --- a/db/re/refine_db.conf +++ b/db/re/refine_db.conf @@ -39,10 +39,10 @@ Armors/WeaponLevel1~4: { // Specifies weapon level or armor type // Random bonus start level. This is only applied for weapons, and not displayed client-side. Rates: { // Per level configuration of the refine rates. Lv1~10: { // Level of refine - Chance: value (int, optional, defaults to 100) // Chance of successful refine (100 = 100%) + NormalChance: value (int, optional, defaults to 100) // Chance of successful refine (100 = 100%) Bonus: value (int, optional, defaults to 0) // Bonus for this level of refine } - // Note: Refine levels that use default values need not be listed. (Example: Lv1: Chance: 100 Bonus: 0) + // Note: Refine levels that use default values need not be listed. (Example: Lv1: NormalChance: 100 Bonus: 0) } } // A note about renewal Armors, there may or may not be another bonus, according to iRO wiki: Every upgrade gives floor[( 3 + current upgrade ) / 4] @@ -66,67 +66,105 @@ Armors: { Bonus: 100 } Lv5: { - Chance: 60 + NormalChance: 60 + EnrichedChance: 90 + EventNormalChance: 60 + EventEnrichedChance: 95 Bonus: 200 } Lv6: { - Chance: 40 + NormalChance: 40 + EnrichedChance: 70 + EventNormalChance: 40 + EventEnrichedChance: 80 Bonus: 200 } Lv7: { - Chance: 40 + NormalChance: 40 + EnrichedChance: 70 + EventNormalChance: 40 + EventEnrichedChance: 80 Bonus: 200 } Lv8: { - Chance: 20 + NormalChance: 20 + EnrichedChance: 40 + EventNormalChance: 20 + EventEnrichedChance: 60 Bonus: 200 } Lv9: { - Chance: 20 + NormalChance: 20 + EnrichedChance: 40 + EventNormalChance: 20 + EventEnrichedChance: 50 Bonus: 300 } Lv10: { - Chance: 10 + NormalChance: 9 + EnrichedChance: 20 + EventNormalChance: 9 + EventEnrichedChance: 35 Bonus: 300 } Lv11: { - Chance: 8 + NormalChance: 8 + EventNormalChance: 20 + EventEnrichedChance: 20 Bonus: 300 } Lv12: { - Chance: 8 + NormalChance: 8 + EventNormalChance: 20 + EventEnrichedChance: 20 Bonus: 300 } Lv13: { - Chance: 8 + NormalChance: 8 + EventNormalChance: 16 + EventEnrichedChance: 16 Bonus: 400 } Lv14: { - Chance: 8 + NormalChance: 8 + EventNormalChance: 16 + EventEnrichedChance: 16 Bonus: 400 } Lv15: { - Chance: 7 + NormalChance: 7 + EventNormalChance: 15 + EventEnrichedChance: 15 Bonus: 400 } Lv16: { - Chance: 7 + NormalChance: 7 + EventNormalChance: 15 + EventEnrichedChance: 15 Bonus: 400 } Lv17: { - Chance: 7 + NormalChance: 7 + EventNormalChance: 14 + EventEnrichedChance: 14 Bonus: 500 } Lv18: { - Chance: 7 + NormalChance: 7 + EventNormalChance: 14 + EventEnrichedChance: 14 Bonus: 500 } Lv19: { - Chance: 5 + NormalChance: 5 + EventNormalChance: 10 + EventEnrichedChance: 10 Bonus: 500 } Lv20: { - Chance: 5 + NormalChance: 5 + EventNormalChance: 10 + EventEnrichedChance: 10 Bonus: 500 } } @@ -137,47 +175,76 @@ WeaponLevel1: { RandomBonusValue: 300 Rates: { Lv8: { - Chance: 60 + NormalChance: 60 + EnrichedChance: 90 + EventNormalChance: 60 + EventEnrichedChance: 95 } Lv9: { - Chance: 40 + NormalChance: 40 + EnrichedChance: 70 + EventNormalChance: 40 + EventEnrichedChance: 85 } Lv10: { - Chance: 20 + NormalChance: 19 + EnrichedChance: 30 + EventNormalChance: 19 + EventEnrichedChance: 55 } Lv11: { - Chance: 18 + NormalChance: 18 + EventNormalChance: 40 + EventEnrichedChance: 40 } Lv12: { - Chance: 18 + NormalChance: 18 + EventNormalChance: 40 + EventEnrichedChance: 40 } Lv13: { - Chance: 18 + NormalChance: 18 + EventNormalChance: 35 + EventEnrichedChance: 35 } Lv14: { - Chance: 18 + NormalChance: 18 + EventNormalChance: 35 + EventEnrichedChance: 35 } Lv15: { - Chance: 18 + NormalChance: 18 + EventNormalChance: 30 + EventEnrichedChance: 30 } Lv16: { - Chance: 17 + NormalChance: 17 + EventNormalChance: 30 + EventEnrichedChance: 30 Bonus: 300 } Lv17: { - Chance: 17 + NormalChance: 17 + EventNormalChance: 20 + EventEnrichedChance: 20 Bonus: 300 } Lv18: { - Chance: 17 + NormalChance: 17 + EventNormalChance: 20 + EventEnrichedChance: 20 Bonus: 300 } Lv19: { - Chance: 15 + NormalChance: 15 + EventNormalChance: 15 + EventEnrichedChance: 15 Bonus: 300 } Lv20: { - Chance: 15 + NormalChance: 15 + EventNormalChance: 15 + EventEnrichedChance: 15 Bonus: 300 } } @@ -188,50 +255,82 @@ WeaponLevel2: { RandomBonusValue: 500 Rates: { Lv7: { - Chance: 60 + NormalChance: 60 + EnrichedChance: 90 + EventNormalChance: 60 + EventEnrichedChance: 95 } Lv8: { - Chance: 40 + NormalChance: 40 + EnrichedChance: 70 + EventNormalChance: 40 + EventEnrichedChance: 85 } Lv9: { - Chance: 20 + NormalChance: 20 + EnrichedChance: 40 + EventNormalChance: 20 + EventEnrichedChance: 60 } Lv10: { - Chance: 20 + NormalChance: 19 + EnrichedChance: 30 + EventNormalChance: 19 + EventEnrichedChance: 45 } Lv11: { - Chance: 18 + NormalChance: 18 + EventNormalChance: 40 + EventEnrichedChance: 40 } Lv12: { - Chance: 18 + NormalChance: 18 + EventNormalChance: 40 + EventEnrichedChance: 40 } Lv13: { - Chance: 18 + NormalChance: 18 + EventNormalChance: 35 + EventEnrichedChance: 35 } Lv14: { - Chance: 18 + NormalChance: 18 + EventNormalChance: 35 + EventEnrichedChance: 35 } Lv15: { - Chance:18 + NormalChance:18 + EventNormalChance: 30 + EventEnrichedChance: 30 } Lv16: { - Chance: 17 + NormalChance: 17 + EventNormalChance: 30 + EventEnrichedChance: 30 Bonus: 600 } Lv17: { - Chance: 17 + NormalChance: 17 + EventNormalChance: 20 + EventEnrichedChance: 20 Bonus: 600 } Lv18: { - Chance: 17 + NormalChance: 17 + EventNormalChance: 20 + EventEnrichedChance: 20 Bonus: 600 } Lv19: { - Chance: 15 + NormalChance: 15 + EventNormalChance: 15 + EventEnrichedChance: 15 Bonus: 600 } Lv20: { - Chance: 15 + NormalChance: 15 + EventNormalChance: 15 + EventEnrichedChance: 15 Bonus: 600 } } @@ -242,53 +341,88 @@ WeaponLevel3: { RandomBonusValue: 800 Rates: { Lv6: { - Chance: 60 + NormalChance: 60 + EnrichedChance: 90 + EventNormalChance: 60 + EventEnrichedChance: 95 } Lv7: { - Chance: 50 + NormalChance: 50 + EnrichedChance: 80 + EventNormalChance: 50 + EventEnrichedChance: 90 } Lv8: { - Chance: 20 + NormalChance: 20 + EnrichedChance: 40 + EventNormalChance: 20 + EventEnrichedChance: 70 } Lv9: { - Chance: 20 + NormalChance: 20 + EnrichedChance: 40 + EventNormalChance: 20 + EventEnrichedChance: 60 } Lv10: { - Chance: 20 + NormalChance: 19 + EnrichedChance: 30 + EventNormalChance: 19 + EventEnrichedChance: 45 } Lv11: { - Chance: 18 + NormalChance: 18 + EventNormalChance: 40 + EventEnrichedChance: 40 } Lv12: { - Chance: 18 + NormalChance: 18 + EventNormalChance: 40 + EventEnrichedChance: 40 } Lv13: { - Chance: 18 + NormalChance: 18 + EventNormalChance: 35 + EventEnrichedChance: 35 } Lv14: { - Chance: 18 + NormalChance: 18 + EventNormalChance: 35 + EventEnrichedChance: 35 } Lv15: { - Chance: 18 + NormalChance: 18 + EventNormalChance: 30 + EventEnrichedChance: 30 } Lv16: { - Chance: 17 + NormalChance: 17 + EventNormalChance: 30 + EventEnrichedChance: 30 Bonus: 900 } Lv17: { - Chance: 17 + NormalChance: 17 + EventNormalChance: 20 + EventEnrichedChance: 20 Bonus: 900 } Lv18: { - Chance: 17 + NormalChance: 17 + EventNormalChance: 20 + EventEnrichedChance: 20 Bonus: 900 } Lv19: { - Chance: 15 + NormalChance: 15 + EventNormalChance: 15 + EventEnrichedChance: 15 Bonus: 900 } Lv20: { - Chance: 15 + NormalChance: 15 + EventNormalChance: 15 + EventEnrichedChance: 15 Bonus: 900 } } @@ -299,56 +433,94 @@ WeaponLevel4: { RandomBonusValue: 1400 Rates: { Lv5: { - Chance: 60 + NormalChance: 60 + EnrichedChance: 90 + EventNormalChance: 60 + EventEnrichedChance: 95 } Lv6: { - Chance: 40 + NormalChance: 40 + EnrichedChance: 70 + EventNormalChance: 40 + EventEnrichedChance: 80 } Lv7: { - Chance: 40 + NormalChance: 40 + EnrichedChance: 70 + EventNormalChance: 40 + EventEnrichedChance: 80 } Lv8: { - Chance: 20 + NormalChance: 20 + EnrichedChance: 40 + EventNormalChance: 20 + EventEnrichedChance: 60 } Lv9: { - Chance: 20 + NormalChance: 20 + EnrichedChance: 40 + EventNormalChance: 20 + EventEnrichedChance: 50 } Lv10: { - Chance: 10 + NormalChance: 9 + EnrichedChance: 20 + EventNormalChance: 9 + EventEnrichedChance: 35 } Lv11: { - Chance: 8 + NormalChance: 8 + EventNormalChance: 20 + EventEnrichedChance: 20 } Lv12: { - Chance: 8 + NormalChance: 8 + EventNormalChance: 20 + EventEnrichedChance: 20 } Lv13: { - Chance: 8 + NormalChance: 8 + EventNormalChance: 16 + EventEnrichedChance: 16 } Lv14: { - Chance: 8 + NormalChance: 8 + EventNormalChance: 16 + EventEnrichedChance: 16 } Lv15: { - Chance: 7 + NormalChance: 7 + EventNormalChance: 15 + EventEnrichedChance: 15 } Lv16: { - Chance: 7 + NormalChance: 7 + EventNormalChance: 15 + EventEnrichedChance: 15 Bonus: 1200 } Lv17: { - Chance: 7 + NormalChance: 7 + EventNormalChance: 14 + EventEnrichedChance: 14 Bonus: 1200 } Lv18: { - Chance: 7 + NormalChance: 7 + EventNormalChance: 14 + EventEnrichedChance: 14 Bonus: 1200 } Lv19: { - Chance: 5 + NormalChance: 5 + EventNormalChance: 10 + EventEnrichedChance: 10 Bonus: 1200 } Lv20: { - Chance: 5 + NormalChance: 5 + EventNormalChance: 10 + EventEnrichedChance: 10 Bonus: 1200 } } -- cgit v1.2.3-60-g2f50 From 1570d3abbbc999ebc3242d99f87a5bd3b283e479 Mon Sep 17 00:00:00 2001 From: smokexyz Date: Mon, 22 May 2017 20:47:05 +0800 Subject: Documentation update for getequippercentrefinery() and refine_db.confs --- db/pre-re/refine_db.conf | 29 ++++++++++++++++------------- db/re/refine_db.conf | 30 ++++++++++++++++-------------- doc/script_commands.txt | 21 ++++++++++++++++----- 3 files changed, 48 insertions(+), 32 deletions(-) (limited to 'db') diff --git a/db/pre-re/refine_db.conf b/db/pre-re/refine_db.conf index 523c2605c..dd3bcdb41 100644 --- a/db/pre-re/refine_db.conf +++ b/db/pre-re/refine_db.conf @@ -30,19 +30,22 @@ /************************************************************************** ************* Entry structure ******************************************** ************************************************************************** -Armors/WeaponLevel1~4: { // Specifies weapon level or armor type - - For armors, values of 100 add 1 armor defense. - - For weapons, values of 100 add 1 ATK. - StatsPerLevel: value (int) // This value is applied for ever level. - RandomBonusStartLevel: level (int) // This value specifies the start point for those levels that give a random bonus value (usually the first unsafe upgrade). - RandomBonusValue: value (int) // A random number between 0 and (Random bonus start level - Upgrade level + 1) * this value is applied for all upgrades past. - // Random bonus start level. This is only applied for weapons, and not displayed client-side. - Rates: { // Per level configuration of the refine rates. - Lv1~10: { // Level of refine - NormalChance: value (int, optional, defaults to 100) // Chance of successful refine (100 = 100%) - Bonus: value (int, optional, defaults to 0) // Bonus for this level of refine - } - // Note: Refine levels that use default values need not be listed. (Example: Lv1: NormalChance: 100 Bonus: 0) +Armors/WeaponLevel1~4: { // Specifies weapon level or armor type. + // - For armors, values of 100 add 1 armor defense. + // - For weapons, values of 100 add 1 ATK. + StatsPerLevel: (int) // This value is applied for ever level. + RandomBonusStartLevel: (int) // This value specifies the start point for those levels that give a random bonus value (usually the first unsafe upgrade). + // - RandomBonusStartLevel is only applied for weapons, and not displayed client-side. + RandomBonusValue: (int) // A random number between 0 and (Random bonus start level - Upgrade level + 1) * this value is applied for all upgrades past. + Rates: { // Per level configuration of the refine rates. + Lv1~10: { // Lv1 ~ Lv10. + NormalChance: (int) // (optional, defaults to 100) Chance of successful refine using normal ores (100 = 100%). + EnrichedChance: (int) // (optional, defaults to 100 for weapons below refine level 10, otherwise 0.) Chance of successful refine using enriched ores (100 = 100%). + EventNormalChance: (int) // (optional, defaults to 100) Chance of successful refine using normal ores (100 = 100%) during a refine event. + EventEnrichedChance: (int) // (optional, defaults to 100 for weapons below refine level 10, otherwise 0.) Chance of successful refine using enriched ores (100 = 100%) during a refine event. + Bonus: (int) // (optional, defaults to 0) Bonus (Armor) for this level of refine. + } + // Note: Refine levels that use default values need not be listed. (Example: Lv1: { NormalChance: 100 Bonus: 0 }) } } **************************************************************************/ diff --git a/db/re/refine_db.conf b/db/re/refine_db.conf index 3c0e66070..4974e0033 100644 --- a/db/re/refine_db.conf +++ b/db/re/refine_db.conf @@ -30,22 +30,24 @@ /************************************************************************** ************* Entry structure ******************************************** ************************************************************************** -Armors/WeaponLevel1~4: { // Specifies weapon level or armor type - - For armors, values of 100 add 1 armor defense. - - For weapons, values of 100 add 1 ATK&MATK. - StatsPerLevel: value (int) // This value is applied for ever level. - RandomBonusStartLevel: level (int) // This value specifies the start point for those levels that give a random bonus value (usually the first unsafe upgrade). - RandomBonusValue: value (int) // A random number between 0 and (Random bonus start level - Upgrade level + 1) * this value is applied for all upgrades past. - // Random bonus start level. This is only applied for weapons, and not displayed client-side. - Rates: { // Per level configuration of the refine rates. - Lv1~10: { // Level of refine - NormalChance: value (int, optional, defaults to 100) // Chance of successful refine (100 = 100%) - Bonus: value (int, optional, defaults to 0) // Bonus for this level of refine - } - // Note: Refine levels that use default values need not be listed. (Example: Lv1: NormalChance: 100 Bonus: 0) +Armors/WeaponLevel1~4: { // Specifies weapon level or armor type. + // - For armors, values of 100 add 1 armor defense. + // - For weapons, values of 100 add 1 ATK & MATK. + StatsPerLevel: (int) // This value is applied for ever level. + RandomBonusStartLevel: (int) // This value specifies the start point for those levels that give a random bonus value (usually the first unsafe upgrade). + // - RandomBonusStartLevel is only applied for weapons, and not displayed client-side. + RandomBonusValue: (int) // A random number between 0 and (Random bonus start level - Upgrade level + 1) * this value is applied for all upgrades past. + Rates: { // Per level configuration of the refine rates. + Lv1~20: { // Lv1 ~ Lv20. + NormalChance: (int) // (optional, defaults to 100) Chance of successful refine using normal ores (100 = 100%). + EnrichedChance: (int) // (optional, defaults to 100 for weapons below refine level 20, otherwise 0.) Chance of successful refine using enriched ores (100 = 100%). + EventNormalChance: (int) // (optional, defaults to 100) Chance of successful refine using normal ores (100 = 100%) during a refine event. + EventEnrichedChance: (int) // (optional, defaults to 100 for weapons below refine level 10, otherwise 0.) Chance of successful refine using enriched ores (100 = 100%) during a refine event. + Bonus: (int) // (optional, defaults to 0) Bonus (Armor) for this level of refine. + } + // Note: Refine levels that use default values need not be listed. (Example: Lv1: { NormalChance: 100 Bonus: 0 }) } } -// A note about renewal Armors, there may or may not be another bonus, according to iRO wiki: Every upgrade gives floor[( 3 + current upgrade ) / 4] **************************************************************************/ Armors: { diff --git a/doc/script_commands.txt b/doc/script_commands.txt index 0ba350ad1..b54b0721d 100644 --- a/doc/script_commands.txt +++ b/doc/script_commands.txt @@ -2993,21 +2993,32 @@ Examples: --------------------------------------- -*getequippercentrefinery() +*getequippercentrefinery({, }) This function calculates and returns the percent value chance to successfully refine the item found in the specified equipment slot of the -invoking character by +1. There is no actual formula, the success rate for -a given weapon level of a certain refine level is found in the -db/refine_db.txt file. For a list of equipment slots see getequipid(). +invoking character by +1. Refine rates are defined in the db//refine_db.conf +files. For a list of equipment slots see getequipid(). These values can be displayed for the player to see, or used to calculate the random change of a refine succeeding or failing and then going through with it (which is what the official NPC refinery scripts use it for). +Refine Chance Type Constants - +REFINE_CHANCE_TYPE_NORMAL: 0 (Normal Ores) +REFINE_CHANCE_TYPE_ENRICHED: 1 (Enriched Ores) +REFINE_CHANCE_TYPE_E_NORMAL: 2 (Event Normal Ores) +REFINE_CHANCE_TYPE_E_ENRICHED: 3 (Event Enriched Ores) + +Refine rate information - +Normal Ores: http://ro.gnjoy.com/news/probability/View.asp?category=4&seq=1941553&curpage=1 +Enriched Ores: http://ro.gnjoy.com/news/probability/View.asp?category=4&seq=1941565&curpage=1 +Event Normal Ores: http://ro.gnjoy.com/news/probability/View.asp?category=4&seq=1941558&curpage=1 +Event Enriched Ores: http://ro.gnjoy.com/news/probability/View.asp?category=4&seq=1941567&curpage=1 + // This will find a random number from 0 - 99 and if that is equal to or // more than the value recovered by this command it will show a message - if (getequippercentrefinery(EQI_HAND_L) <= rand(100)) + if (getequippercentrefinery(EQI_HAND_L, REFINE_CHANCE_TYPE_NORMAL) <= rand(100)) mes("Aww"); --------------------------------------- -- cgit v1.2.3-60-g2f50