From bcbbca056a352dddb5fab32d4d0755c456870fa5 Mon Sep 17 00:00:00 2001 From: NotAdam Date: Fri, 8 Mar 2019 00:26:41 +1100 Subject: [PATCH] fix recast time truncated by field size, correctly send actionstart --- src/common/Network/CommonActorControl.h | 10 ++++----- .../playeractions/conjurer/ActionCure120.cpp | 22 +++++++++++++++++++ .../whitemage/ActionAsylum3569.cpp | 22 +++++++++++++++++++ src/world/Action/Action.cpp | 21 +++++++++--------- src/world/Action/Action.h | 4 ++-- src/world/Action/EventAction.cpp | 2 +- 6 files changed, 63 insertions(+), 18 deletions(-) create mode 100644 src/scripts/action/playeractions/conjurer/ActionCure120.cpp create mode 100644 src/scripts/action/playeractions/whitemage/ActionAsylum3569.cpp diff --git a/src/common/Network/CommonActorControl.h b/src/common/Network/CommonActorControl.h index 2cc3515f..e204e931 100644 --- a/src/common/Network/CommonActorControl.h +++ b/src/common/Network/CommonActorControl.h @@ -36,13 +36,13 @@ enum ActorControlType : uint16_t CastInterrupt = 0x0F, /*! - * @brief Sets the cooldown for an action + * @brief Sent when a player uses an action * - * @param param1 Seems to be always 1 from what I've seen, needs more research - * @param param2 The actionid to set the cooldown for - * @param param3 The time in milliseconds to apply the cooldown for, 0 resets the cooldown + * param1 Seems to be always 1 from what I've seen, needs more research + * param2 The actionid + * param3 The action cooldown in ms / 10 */ - SetActionCooldown = 0x11, + ActionStart = 0x11, StatusEffectGain = 0x14, StatusEffectLose = 0x15, diff --git a/src/scripts/action/playeractions/conjurer/ActionCure120.cpp b/src/scripts/action/playeractions/conjurer/ActionCure120.cpp new file mode 100644 index 00000000..9d6bc8a7 --- /dev/null +++ b/src/scripts/action/playeractions/conjurer/ActionCure120.cpp @@ -0,0 +1,22 @@ +#include