Horizon Official Technical Documentation
|
|
Main object for the aegis packet: ZC_ACK_TOUSESKILL. More...
#include <TransmittedPackets.hpp>
Public Member Functions | |
ZC_ACK_TOUSESKILL (std::shared_ptr< ZoneSession > s) | |
virtual | ~ZC_ACK_TOUSESKILL () |
void | deliver (int16_t skill_id, int32_t message_type, int32_t item_id, skill_use_fail_cause_type cause) |
ZC_ACK_TOUSESKILL. More... | |
ByteBuffer & | serialize () |
![]() | |
NetworkPacket (uint16_t packet_id, std::shared_ptr< ZoneSession > s) | |
virtual | ~NetworkPacket () |
void | set_packet_id (uint16_t id) |
uint16_t | get_packet_id () |
ByteBuffer & | buf () |
std::shared_ptr< ZoneSession > | get_session () |
Retrieves the session from this handler instance. More... | |
virtual void | handle (ByteBuffer &&buf) |
virtual void | deserialize (ByteBuffer &buf) |
void | transmit () |
Send an Asynchronous packet by queueing a buffer of a particular size to the connected session. More... | |
void | transmit (std::size_t size) |
Send an Asynchronous packet by queueing a buffer of a particular size to the connected session. More... | |
Public Attributes | |
int16_t | _skill_id {0} |
int32_t | _message_type {0} |
message type: (only used when skill id = NV_BASIC and cause = 0): 0 = "skill failed" MsgStringTable[159] 1 = "no emotions" MsgStringTable[160] 2 = "no sit" MsgStringTable[161] 3 = "no chat" MsgStringTable[162] 4 = "no party" MsgStringTable[163] 5 = "no shout" MsgStringTable[164] 6 = "no PKing" MsgStringTable[165] 7 = "no aligning" MsgStringTable[383] ? = ignored More... | |
int32_t | _item_id {0} |
int8_t | _flag {0} |
int8_t | _cause {0} |
cause: 0 = "not enough skill level" MsgStringTable[214] (AL_WARP) "steal failed" MsgStringTable[205] (TF_STEAL) "envenom failed" MsgStringTable[207] (TF_POISON) "skill failed" MsgStringTable[204] (otherwise) ... = More... | |
Additional Inherited Members | |
![]() | |
ByteBuffer | _buffer |
Buffer storage facility for the packet stream. More... | |
uint16_t | _packet_id |
ID of the network packet. More... | |
Main object for the aegis packet: ZC_ACK_TOUSESKILL.
|
inline |
|
inlinevirtual |
void ZC_ACK_TOUSESKILL::deliver | ( | int16_t | skill_id, |
int32_t | message_type, | ||
int32_t | item_id, | ||
skill_use_fail_cause_type | cause | ||
) |
References _cause, _flag, _item_id, _message_type, _skill_id, serialize(), and Horizon::Base::NetworkPacket< ZoneSession >::transmit().
Referenced by Horizon::Zone::ZoneClientInterface::notify_skill_fail().
ByteBuffer & ZC_ACK_TOUSESKILL::serialize | ( | ) |
References _cause, _flag, _item_id, _message_type, Horizon::Base::NetworkPacket< ZoneSession >::_packet_id, _skill_id, and Horizon::Base::NetworkPacket< ZoneSession >::buf().
Referenced by deliver().
int8_t Horizon::Zone::ZC_ACK_TOUSESKILL::_cause {0} |
cause: 0 = "not enough skill level" MsgStringTable[214] (AL_WARP) "steal failed" MsgStringTable[205] (TF_STEAL) "envenom failed" MsgStringTable[207] (TF_POISON) "skill failed" MsgStringTable[204] (otherwise) ... =
Referenced by deliver(), and serialize().
int8_t Horizon::Zone::ZC_ACK_TOUSESKILL::_flag {0} |
Referenced by deliver(), and serialize().
int32_t Horizon::Zone::ZC_ACK_TOUSESKILL::_item_id {0} |
Referenced by deliver(), and serialize().
int32_t Horizon::Zone::ZC_ACK_TOUSESKILL::_message_type {0} |
message type: (only used when skill id = NV_BASIC and cause = 0): 0 = "skill failed" MsgStringTable[159] 1 = "no emotions" MsgStringTable[160] 2 = "no sit" MsgStringTable[161] 3 = "no chat" MsgStringTable[162] 4 = "no party" MsgStringTable[163] 5 = "no shout" MsgStringTable[164] 6 = "no PKing" MsgStringTable[165] 7 = "no aligning" MsgStringTable[383] ? = ignored
Referenced by deliver(), and serialize().
int16_t Horizon::Zone::ZC_ACK_TOUSESKILL::_skill_id {0} |
Referenced by deliver(), and serialize().