diff options
author | Haru <haru@dotalux.com> | 2019-07-01 01:46:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-01 01:46:51 +0200 |
commit | 3fe9300612136c75678f55fd699f2f0b75899e11 (patch) | |
tree | 660dbb77e3a9255abef686c6e0aec7f04eb49964 /doc | |
parent | 33b0658e174fdd50e513daa807a8824f959ded44 (diff) | |
parent | b20054a678fc5a2786819e879f085e5dcf02c052 (diff) | |
download | hercules-3fe9300612136c75678f55fd699f2f0b75899e11.tar.gz hercules-3fe9300612136c75678f55fd699f2f0b75899e11.tar.bz2 hercules-3fe9300612136c75678f55fd699f2f0b75899e11.tar.xz hercules-3fe9300612136c75678f55fd699f2f0b75899e11.zip |
Merge pull request #2487 from guilherme-gm/201906-1-identify
Add identify/identifyidx script commands and identifyall atcommand
Diffstat (limited to 'doc')
-rw-r--r-- | doc/atcommands.txt | 6 | ||||
-rw-r--r-- | doc/script_commands.txt | 18 |
2 files changed, 24 insertions, 0 deletions
diff --git a/doc/atcommands.txt b/doc/atcommands.txt index 4acc30ae6..c909440a7 100644 --- a/doc/atcommands.txt +++ b/doc/atcommands.txt @@ -584,6 +584,12 @@ Opens the Identification window if any unappraised items are in your inventory. --------------------------------------- +@identifyall + +Identifies all unappraised items in your inventory. + +--------------------------------------- + @trade <player name> Opens the trade window with the specified player. diff --git a/doc/script_commands.txt b/doc/script_commands.txt index 5cc3ea186..567d0ad56 100644 --- a/doc/script_commands.txt +++ b/doc/script_commands.txt @@ -3369,6 +3369,24 @@ This will set a Hat Effect onto the player. The state field allows you to enable (true) or disable (false) the effect on the player. --------------------------------------- + +*identify(<Item ID>) + +This function identifies the first <Item ID> item in attached player's inventory. + +Returns -2 if an error happens, -1 if no unidentified <Item ID> was found. +Otherwise, returns the idx of the identified item. + +--------------------------------------- + +*identifyidx(<Inventory Index>) + +This will identify item at attached player's <Inventory Index> inventory index. + +Returns true if the item was identified, false otherwise. +Note: If the item was already identified, it returns false. + +--------------------------------------- //===================================== 2.1 - End of Item-Related Commands //===================================== |