From ea8dbdb04470859abe00eabc39990ee23adb398e Mon Sep 17 00:00:00 2001 From: Asheraf Date: Sat, 9 Dec 2017 01:13:36 +0000 Subject: Add support for packet ZC_PROGRESS_ACTOR --- doc/script_commands.txt | 6 ++++++ src/map/clif.c | 26 +++++++++++++++++++++++++- src/map/clif.h | 1 + src/map/packets_struct.h | 10 ++++++++++ src/map/script.c | 23 +++++++++++++++++++++++ 5 files changed, 65 insertions(+), 1 deletion(-) diff --git a/doc/script_commands.txt b/doc/script_commands.txt index 465804061..a91a212e7 100644 --- a/doc/script_commands.txt +++ b/doc/script_commands.txt @@ -6915,6 +6915,7 @@ Examples: --------------------------------------- *progressbar("", ) +*progressbar_unit("", {, }) This command works almost like sleep2(), but displays a progress bar above the head of the currently attached character (like cast bar). Once the @@ -6923,6 +6924,11 @@ while the progress bar progresses, it is aborted and the script ends. The color format is in RGB (0xRRGGBB). The color is currently ignored by the client and appears always green. +progressbar_unit works only for PACKETVER >= 20130821 +The progressbar will show on the given unit id but it will not +put the unit in timeout (the progressbar would be just an animation). +if GID is not given use the attached player. + --------------------------------------- //===================================== 5.1 - End of Time-related commands diff --git a/src/map/clif.c b/src/map/clif.c index 5f7cf3b5d..14a8a22b6 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -9914,7 +9914,6 @@ void clif_parse_Hotkey(int fd, struct map_session_data *sd) { /// Displays cast-like progress bar (ZC_PROGRESS). /// 02f0 .L