From 381c7d3a5a7d893810cf6ee648beeecba0294a1c Mon Sep 17 00:00:00 2001 From: Emistry Haoyan Date: Mon, 29 Jul 2019 22:23:19 +0800 Subject: Update *getequiprefinerycnt script command - allow to specify more than one equipment slots. - return the total of refine of specified equipment slots. --- doc/script_commands.txt | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) (limited to 'doc') 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() +*getequiprefinerycnt({, {, }}) -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."); + } --------------------------------------- -- cgit v1.2.3-70-g09d2