summaryrefslogtreecommitdiff
path: root/doc/script_commands.txt
diff options
context:
space:
mode:
authorsmokexyz <sagunkho@hotmail.com>2017-05-22 20:47:05 +0800
committersmokexyz <sagunkho@hotmail.com>2017-05-23 00:34:20 +0800
commit1570d3abbbc999ebc3242d99f87a5bd3b283e479 (patch)
tree17c30507cf1c5fddc7ed3afaa60445fd219f553d /doc/script_commands.txt
parentb1b7b031c1dd97ff63c28549c86528800952a752 (diff)
downloadhercules-1570d3abbbc999ebc3242d99f87a5bd3b283e479.tar.gz
hercules-1570d3abbbc999ebc3242d99f87a5bd3b283e479.tar.bz2
hercules-1570d3abbbc999ebc3242d99f87a5bd3b283e479.tar.xz
hercules-1570d3abbbc999ebc3242d99f87a5bd3b283e479.zip
Documentation update for getequippercentrefinery() and refine_db.confs
Diffstat (limited to 'doc/script_commands.txt')
-rw-r--r--doc/script_commands.txt21
1 files changed, 16 insertions, 5 deletions
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(<equipment slot>)
+*getequippercentrefinery(<equipment slot>{, <type>})
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/<re/pre-re>/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");
---------------------------------------