diff options
author | kisuka <kisuka@kisuka.com> | 2018-10-23 16:52:46 -0700 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2019-02-01 20:26:09 +0100 |
commit | 9d582035fc69ffd706077add90e9276550b49565 (patch) | |
tree | 885448099b7811f666fbea7221b74356443be551 /doc | |
parent | 4b01ca6dcd84ed49b27039eb872c7e89eaf169b6 (diff) | |
download | hercules-9d582035fc69ffd706077add90e9276550b49565.tar.gz hercules-9d582035fc69ffd706077add90e9276550b49565.tar.bz2 hercules-9d582035fc69ffd706077add90e9276550b49565.tar.xz hercules-9d582035fc69ffd706077add90e9276550b49565.zip |
Added countnameditem script command.
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/script_commands.txt | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/doc/script_commands.txt b/doc/script_commands.txt index 4812a2cf2..66b6cff90 100644 --- a/doc/script_commands.txt +++ b/doc/script_commands.txt @@ -5340,6 +5340,30 @@ Check getitem2() to understand the arguments of the function. --------------------------------------- +*countnameditem(<item id>, "<character name>") +*countnameditem(<item id>, <character ID>) +*countnameditem("<item name>", "<character name>") +*countnameditem("<item name>", <character ID>) + +This function will return the number of signed items for the specified item ID +that the invoking character has in their inventory. + + mes("[Item Checker]"); + if (countnameditem(Apple) > 0) { + mes("You have an apple with your name on it!"); + } else { + mes("You do not have an apple with your name on it."); + } + next(); + mes("[Item Checker]"); + mesf("You have %d apples with John's name on it!", countnameditem(Apple, "John")); + close(); + +Like getnameditem(), this function will also accept an 'english name' from the +database as an argument. + +--------------------------------------- + *groupranditem(<item id>) Returns the item_id of a random item picked from the item container specified. There |