diff options
author | Kenpachi Developer <Kenpachi.Developer@gmx.de> | 2020-02-09 07:00:14 +0100 |
---|---|---|
committer | Kenpachi Developer <Kenpachi.Developer@gmx.de> | 2020-02-11 10:24:21 +0100 |
commit | 1a410d241918f85010c59827dfd2fa3b1952d238 (patch) | |
tree | 56bcbb30a18d135d2f63b41d08e4e35043eb124d /doc | |
parent | c03722679a01e5f181c2138565e95a6b0981a124 (diff) | |
download | hercules-1a410d241918f85010c59827dfd2fa3b1952d238.tar.gz hercules-1a410d241918f85010c59827dfd2fa3b1952d238.tar.bz2 hercules-1a410d241918f85010c59827dfd2fa3b1952d238.tar.xz hercules-1a410d241918f85010c59827dfd2fa3b1952d238.zip |
Add unitiswalking() script command
Diffstat (limited to 'doc')
-rw-r--r-- | doc/script_commands.txt | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/doc/script_commands.txt b/doc/script_commands.txt index 1d8ed786b..c1b318beb 100644 --- a/doc/script_commands.txt +++ b/doc/script_commands.txt @@ -6957,6 +6957,37 @@ Examples: --------------------------------------- +*unitiswalking({<GID>}) + +This command checks, if a unit is walking or not. +If <GID> is omitted, the currently attached character is used. +Returns 1 if the unit is walking, 0 if the unit is not walking and -1 on error. + +Note: There's no differentiation between script and client initiated walking. + +Example: + +prontera,155,185,5 script Check Walking 1_F_MARIA,{ + mes("Enter character name."); + mes(""); + input(.@name$); + .@GID = getcharid(CHAR_ID_ACCOUNT, .@name$); + if (.@GID != 0) { + .@iswalking = unitiswalking(.@GID); + if (.@iswalking == 1) + mesf("%s is walking.", .@name$); + else if (.@iswalking == 0) + mesf("%s is not walking.", .@name$); + else + mesf("Can't get %s's walking state.", .@name$); + } else { + mesf("%s not found!", .@name$); + } + close(); +} + +--------------------------------------- + *unitkill(<GID>) *unitwarp(<GID>, <Mapname>, <x>, <y>) *unitattack(<GID>, <Target ID>) |