summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorEmistry Haoyan <equinox1991@gmail.com>2019-07-29 22:23:19 +0800
committerEmistry Haoyan <equinox1991@gmail.com>2019-07-29 22:23:19 +0800
commit381c7d3a5a7d893810cf6ee648beeecba0294a1c (patch)
tree323c66d0cea7a0fff29728cf1c5fad0241f26d21 /doc
parent0edf2360b185f0e1c68bb6ddbbbe3720af5651b3 (diff)
downloadhercules-381c7d3a5a7d893810cf6ee648beeecba0294a1c.tar.gz
hercules-381c7d3a5a7d893810cf6ee648beeecba0294a1c.tar.bz2
hercules-381c7d3a5a7d893810cf6ee648beeecba0294a1c.tar.xz
hercules-381c7d3a5a7d893810cf6ee648beeecba0294a1c.zip
Update *getequiprefinerycnt script command
- allow to specify more than one equipment slots. - return the total of refine of specified equipment slots.
Diffstat (limited to 'doc')
-rw-r--r--doc/script_commands.txt22
1 files changed, 12 insertions, 10 deletions
diff --git a/doc/script_commands.txt b/doc/script_commands.txt
index bab4287c1..8c26ff832 100644
--- a/doc/script_commands.txt
+++ b/doc/script_commands.txt
@@ -2999,18 +2999,20 @@ of equipment slots see getequipid().
---------------------------------------
-*getequiprefinerycnt(<equipment slot>)
+*getequiprefinerycnt(<equipment slot>{, <equipment slot>{, <equipment slot>}})
-Returns the current number of pluses for the item in the specified
-equipment slot. For a list of equipment slots see 'getequipid'.
+Returns the total of refine of item equipped in the equipment slots.
+For a list of equipment slots, see 'getequipid'.
-Can be used to check if you have reached a maximum refine value, default
-for this is +10:
-
- if (getequiprefinerycnt(EQI_HEAD_TOP) < 10)
- mes("I will now upgrade your "+getequipname(EQI_HEAD_TOP));
- else
- mes("Sorry, it's not possible to refine hats better than +10");
+For example:
+ if (getequiprefinerycnt(EQI_HEAD_TOP) > 10) {
+ mes("You equipped a headgear (top) with above 10 refine.");
+ }
+
+For example:
+ if (getequiprefinerycnt(EQI_ARMOR, EQI_SHOES) > 20) {
+ mes("Total refine of Armor and Shoes exceed 20.");
+ }
---------------------------------------