Pol  Revision:cb584c9
pktdef.h File Reference
#include "../clib/rawtypes.h"

Go to the source code of this file.

Classes

struct  Pol::Core::PKTBI_BF_16
 
struct  Pol::Core::PKTBI_BF_19
 
struct  Pol::Core::PKTOUT_A9
 
struct  Pol::Core::PKTOUT_BC
 
struct  Pol::Core::PKTOUT_C0
 

Namespaces

 Pol
 
 Pol::Core
 

Macros

#define CHAR_HILITE_ATTACKABLE   0x03
 
#define CHAR_HILITE_CRIMINAL   0x04
 
#define CHAR_HILITE_ENEMY   0x05
 
#define CHAR_HILITE_FRIEND   0x02
 
#define CHAR_HILITE_INNOCENT   0x01
 
#define CHAR_HILITE_INVUL   0x07
 
#define CHAR_HILITE_MURDERER   0x06
 
#define DIR_FLAG_RUN   0x80
 
#define ITEM_FLAG_FORCE_MOVABLE   0x20
 
#define ITEM_FLAG_HIDDEN   0x80
 
#define LAYER_VENDOR_BUYABLE_ITEMS   0x1C
 
#define LAYER_VENDOR_FOR_SALE   0x1A
 
#define LAYER_VENDOR_PLAYER_ITEMS   0x1B
 
#define LOGIN_ERROR_ACCOUNT_BLOCKED   0x02
 
#define LOGIN_ERROR_COMMS   0xFF
 
#define LOGIN_ERROR_IDLE   0xFE
 
#define LOGIN_ERROR_MISC   0x06
 
#define LOGIN_ERROR_NO_ACCOUNT   0x00
 
#define LOGIN_ERROR_OTHER_CHAR_INUSE   0x01
 
#define LOGIN_ERROR_WRONG_PASSWORD   0x03
 
#define MOVE_ITEM_FAILURE_ALREADY_CARRYING   5
 
#define MOVE_ITEM_FAILURE_ALREADY_HOLDING_AN_ITEM   4
 
#define MOVE_ITEM_FAILURE_ALREADY_PICKED_UP   5
 
#define MOVE_ITEM_FAILURE_ALREADY_WORN   5
 
#define MOVE_ITEM_FAILURE_BELONGS_TO_OTHER   3
 
#define MOVE_ITEM_FAILURE_CANNOT_PICK_THAT_UP   0
 
#define MOVE_ITEM_FAILURE_ILLEGAL_EQUIP   5
 
#define MOVE_ITEM_FAILURE_OUT_OF_SIGHT   2
 
#define MOVE_ITEM_FAILURE_TOO_FAR_AWAY   1
 
#define MOVE_ITEM_FAILURE_UNKNOWN   5
 
#define MSG71_SUBCMD_2_CONSTANT
 
#define MSGOPT_33_FLOW_PAUSE   1
 
#define MSGOPT_33_FLOW_RESTART   0
 
#define PKTIN_02_ASYNCHRONOUS   400
 
#define PKTIN_02_DIR_RUNNING_BIT   0x80
 
#define PKTIN_02_FACING_MASK   0x07
 
#define PKTIN_02_FOOT_RUN   180
 
#define PKTIN_02_FOOT_WALK   380
 
#define PKTIN_02_MOUNT_RUN   80
 
#define PKTIN_02_MOUNT_WALK   180
 
#define PKTIN_02_SIZE   0x07
 
#define PKTOUT_53_WARN_CANT_CONNECT_1   3u
 
#define PKTOUT_53_WARN_CANT_CONNECT_2   4u
 
#define PKTOUT_53_WARN_CANT_CONNECT_3   8u
 
#define PKTOUT_53_WARN_CHARACTER_EXISTS   2u
 
#define PKTOUT_53_WARN_CHARACTER_IDLE   7u
 
#define PKTOUT_53_WARN_CHARACTER_IN_WORLD   5u
 
#define PKTOUT_53_WARN_LOGIN_PROBLEM   6u
 
#define PKTOUT_53_WARN_NO_CHARACTER   1u
 
#define PKTOUT_54_FLAG_REPEAT   0u
 
#define PKTOUT_54_FLAG_SINGLEPLAY   1u
 
#define PKTOUT_65_TYPE_NONE   0
 
#define PKTOUT_65_TYPE_RAIN   1
 
#define PKTOUT_65_TYPE_SNOW   2
 
#define PKTOUT_65_WTYPE_BEGIN_TO_SNOW   0x02
 
#define PKTOUT_65_WTYPE_FIERCE_STORM   0x01
 
#define PKTOUT_65_WTYPE_START_TO_RAIN   0x00
 
#define PKTOUT_65_WTYPE_STOP_WEATHER   0xFF
 
#define PKTOUT_65_WTYPE_STORM_BREWING   0x03
 
#define PKTOUT_A6_TYPE_TIP   0u
 
#define PKTOUT_A6_TYPE_UPDATE   1u
 
#define PKTOUT_B7_MAX_CHARACTERS   256
 
#define PKTOUT_BA_ARROW_OFF   0u
 
#define PKTOUT_BA_ARROW_ON   1u
 
#define RESPONSE_MAX_LEN   200
 
#define RESURRECT_CHOICE_GHOST   2u
 
#define RESURRECT_CHOICE_INSTARES   1u
 
#define RESURRECT_CHOICE_SELECT   0u
 
#define SPEECH_MAX_LEN   200
 
#define SPELL_EFFECT_EBOLT   0x379F
 
#define SPELL_EFFECT_FIREBALL   0x36D4
 
#define STATTYPE_SKILLWINDOW   5
 
#define STATTYPE_STATWINDOW   4
 
#define URL_MAX_LEN   200
 

Variables

const u8 Pol::Core::CHAR_FLAG1_CANALTER = 0x02
 
const u8 Pol::Core::CHAR_FLAG1_FLYING = 0x04
 
const u8 Pol::Core::CHAR_FLAG1_GENDER = 0x02
 
const u8 Pol::Core::CHAR_FLAG1_INVISIBLE = 0x80
 
const u8 Pol::Core::CHAR_FLAG1_NORMAL = 0x00
 
const u8 Pol::Core::CHAR_FLAG1_POISONED = 0x04
 
const u8 Pol::Core::CHAR_FLAG1_WARMODE = 0x40
 
const u8 Pol::Core::CHAR_FLAG1_YELLOWHEALTH = 0x08
 

Detailed Description

History
  • 2009/07/24 MuadDib: Initial creation.
  • 2010/01/22 Turley: Speedhack Prevention System
Note
This is for all general packet #define/enum that don't fit anywhere else or go to multiple types of packets.

Definition in file pktdef.h.

Macro Definition Documentation

#define CHAR_HILITE_ATTACKABLE   0x03
#define CHAR_HILITE_CRIMINAL   0x04

Definition at line 58 of file pktdef.h.

Referenced by Pol::Core::RepSystem::hilite_color_idx().

#define CHAR_HILITE_ENEMY   0x05

Definition at line 59 of file pktdef.h.

Referenced by Pol::Core::RepSystem::hilite_color_idx().

#define CHAR_HILITE_FRIEND   0x02

Definition at line 56 of file pktdef.h.

Referenced by Pol::Core::RepSystem::hilite_color_idx().

#define CHAR_HILITE_INNOCENT   0x01
#define CHAR_HILITE_INVUL   0x07
#define CHAR_HILITE_MURDERER   0x06
#define DIR_FLAG_RUN   0x80

Definition at line 49 of file pktdef.h.

#define ITEM_FLAG_FORCE_MOVABLE   0x20
#define ITEM_FLAG_HIDDEN   0x80

Definition at line 26 of file pktdef.h.

#define LAYER_VENDOR_BUYABLE_ITEMS   0x1C

Definition at line 23 of file pktdef.h.

Referenced by Pol::Module::UOExecutorModule::mf_SendSellWindow().

#define LAYER_VENDOR_FOR_SALE   0x1A
#define LAYER_VENDOR_PLAYER_ITEMS   0x1B
#define LOGIN_ERROR_ACCOUNT_BLOCKED   0x02

Definition at line 65 of file pktdef.h.

Referenced by Pol::Core::login2(), and Pol::Core::loginserver_login().

#define LOGIN_ERROR_COMMS   0xFF

Definition at line 71 of file pktdef.h.

#define LOGIN_ERROR_IDLE   0xFE

Definition at line 70 of file pktdef.h.

#define LOGIN_ERROR_NO_ACCOUNT   0x00

Definition at line 63 of file pktdef.h.

Referenced by Pol::Core::login2(), and Pol::Core::loginserver_login().

#define LOGIN_ERROR_WRONG_PASSWORD   0x03

Definition at line 66 of file pktdef.h.

Referenced by Pol::Core::login2(), and Pol::Core::loginserver_login().

#define MOVE_ITEM_FAILURE_ALREADY_CARRYING   5

Definition at line 40 of file pktdef.h.

#define MOVE_ITEM_FAILURE_ALREADY_HOLDING_AN_ITEM   4

Definition at line 33 of file pktdef.h.

Referenced by Pol::Core::get_item().

#define MOVE_ITEM_FAILURE_ALREADY_PICKED_UP   5

Definition at line 39 of file pktdef.h.

#define MOVE_ITEM_FAILURE_ALREADY_WORN   5

Definition at line 34 of file pktdef.h.

Referenced by Pol::Core::equip_item().

#define MOVE_ITEM_FAILURE_BELONGS_TO_OTHER   3

Definition at line 32 of file pktdef.h.

#define MOVE_ITEM_FAILURE_CANNOT_PICK_THAT_UP   0

Definition at line 29 of file pktdef.h.

Referenced by Pol::Core::get_item().

#define MOVE_ITEM_FAILURE_ILLEGAL_EQUIP   5

Definition at line 35 of file pktdef.h.

Referenced by Pol::Core::equip_item().

#define MOVE_ITEM_FAILURE_OUT_OF_SIGHT   2
#define MOVE_ITEM_FAILURE_TOO_FAR_AWAY   1
#define MSG71_SUBCMD_2_CONSTANT
Value:
{ \
0x01, 0x91, 0x84, 0x0A, 0x06, 0x1E, 0xFD, 0x01, 0x0B, 0x15, 0x2E, 0x01, 0x0B, 0x17, 0x0B, \
0x01, 0xBB, 0x20, 0x46, 0x04, 0x66, 0x13, 0xF8, 0x00, 0x00, 0x0E, 0x75, 0x00, 0x00 \
}

Definition at line 91 of file pktdef.h.

#define MSGOPT_33_FLOW_PAUSE   1

Definition at line 42 of file pktdef.h.

Referenced by Pol::Network::Client::send_pause().

#define MSGOPT_33_FLOW_RESTART   0

Definition at line 43 of file pktdef.h.

Referenced by Pol::Network::Client::send_restart().

#define PKTIN_02_ASYNCHRONOUS   400

Definition at line 82 of file pktdef.h.

Referenced by Pol::Network::Client::SpeedHackPrevention().

#define PKTIN_02_DIR_RUNNING_BIT   0x80

Definition at line 76 of file pktdef.h.

Referenced by Pol::Core::handle_walk(), and Pol::Mobile::Character::move().

#define PKTIN_02_FOOT_RUN   180

Definition at line 80 of file pktdef.h.

Referenced by Pol::Core::ServSpecOpt::read_servspecopt().

#define PKTIN_02_FOOT_WALK   380

Definition at line 81 of file pktdef.h.

Referenced by Pol::Core::ServSpecOpt::read_servspecopt().

#define PKTIN_02_MOUNT_RUN   80

Definition at line 78 of file pktdef.h.

Referenced by Pol::Core::ServSpecOpt::read_servspecopt().

#define PKTIN_02_MOUNT_WALK   180

Definition at line 79 of file pktdef.h.

Referenced by Pol::Core::ServSpecOpt::read_servspecopt().

#define PKTIN_02_SIZE   0x07

Definition at line 77 of file pktdef.h.

Referenced by Pol::Network::Client::SpeedHackPrevention().

#define PKTOUT_53_WARN_CANT_CONNECT_1   3u

Definition at line 111 of file pktdef.h.

#define PKTOUT_53_WARN_CANT_CONNECT_2   4u

Definition at line 112 of file pktdef.h.

#define PKTOUT_53_WARN_CANT_CONNECT_3   8u

Definition at line 116 of file pktdef.h.

#define PKTOUT_53_WARN_CHARACTER_EXISTS   2u

Definition at line 110 of file pktdef.h.

#define PKTOUT_53_WARN_CHARACTER_IDLE   7u

Definition at line 115 of file pktdef.h.

Referenced by Pol::Core::client_io_thread().

#define PKTOUT_53_WARN_CHARACTER_IN_WORLD   5u

Definition at line 113 of file pktdef.h.

#define PKTOUT_53_WARN_LOGIN_PROBLEM   6u

Definition at line 114 of file pktdef.h.

#define PKTOUT_53_WARN_NO_CHARACTER   1u

Definition at line 109 of file pktdef.h.

#define PKTOUT_54_FLAG_REPEAT   0u

Definition at line 118 of file pktdef.h.

#define PKTOUT_54_FLAG_SINGLEPLAY   1u
#define PKTOUT_65_TYPE_NONE   0

Definition at line 121 of file pktdef.h.

#define PKTOUT_65_TYPE_RAIN   1

Definition at line 122 of file pktdef.h.

#define PKTOUT_65_TYPE_SNOW   2

Definition at line 123 of file pktdef.h.

#define PKTOUT_65_WTYPE_BEGIN_TO_SNOW   0x02

Definition at line 126 of file pktdef.h.

#define PKTOUT_65_WTYPE_FIERCE_STORM   0x01

Definition at line 125 of file pktdef.h.

#define PKTOUT_65_WTYPE_START_TO_RAIN   0x00

Definition at line 124 of file pktdef.h.

#define PKTOUT_65_WTYPE_STOP_WEATHER   0xFF

Definition at line 128 of file pktdef.h.

#define PKTOUT_65_WTYPE_STORM_BREWING   0x03

Definition at line 127 of file pktdef.h.

#define PKTOUT_A6_TYPE_TIP   0u

Definition at line 130 of file pktdef.h.

Referenced by Pol::Core::send_tip().

#define PKTOUT_A6_TYPE_UPDATE   1u

Definition at line 131 of file pktdef.h.

#define PKTOUT_B7_MAX_CHARACTERS   256

Definition at line 152 of file pktdef.h.

Referenced by Pol::Items::ItemDesc::ItemDesc().

#define PKTOUT_BA_ARROW_OFF   0u

Definition at line 154 of file pktdef.h.

Referenced by Pol::Module::UOExecutorModule::mf_SendQuestArrow().

#define PKTOUT_BA_ARROW_ON   1u

Definition at line 155 of file pktdef.h.

Referenced by Pol::Module::UOExecutorModule::mf_SendQuestArrow().

#define RESPONSE_MAX_LEN   200

Definition at line 107 of file pktdef.h.

#define RESURRECT_CHOICE_GHOST   2u

Definition at line 89 of file pktdef.h.

#define RESURRECT_CHOICE_INSTARES   1u

Definition at line 88 of file pktdef.h.

#define RESURRECT_CHOICE_SELECT   0u

Definition at line 87 of file pktdef.h.

Referenced by Pol::Module::UOExecutorModule::mf_SendInstaResDialog().

#define SPEECH_MAX_LEN   200

Definition at line 27 of file pktdef.h.

Referenced by Pol::Core::build_sysmessage_cl(), Pol::Core::build_sysmessage_cl_affix(), Pol::Core::handle_char_profile_request(), Pol::Core::handle_member_msg(), Pol::Core::handle_party_msg(), Pol::Core::handle_processed_speech(), Pol::Core::handle_unicode_prompt(), Pol::Core::load_party_cfg_general(), Pol::Module::UnicodeExecutorModule::mf_BroadcastUC(), Pol::Module::ClilocExecutorModule::mf_PrintTextAboveCL(), Pol::Module::ClilocExecutorModule::mf_PrintTextAbovePrivateCL(), Pol::Module::UnicodeExecutorModule::mf_PrintTextAboveUC(), Pol::Module::UnicodeExecutorModule::mf_PrivateTextAboveUC(), Pol::Module::UnicodeExecutorModule::mf_RequestInputUC(), Pol::Module::UOExecutorModule::mf_SendCharProfile(), Pol::Module::PartyExecutorModule::mf_SendPartyMsg(), Pol::Module::PartyExecutorModule::mf_SendPrivatePartyMsg(), Pol::Module::ClilocExecutorModule::mf_SendSysMessageCL(), Pol::Module::UnicodeExecutorModule::mf_SendSysMessageUC(), Pol::Core::private_say_above(), Pol::Core::private_say_above_cl(), Pol::Core::private_say_above_cl_affix(), Pol::Core::private_say_above_ex(), Pol::Module::NPCExecutorModule::say(), Pol::Core::say_above(), Pol::Core::say_above_cl(), Pol::Core::say_above_cl_affix(), Pol::Module::NPCExecutorModule::SayUC(), Pol::Mobile::Character::script_method_id(), Pol::Core::Party::send_member_msg_private(), Pol::Core::Party::send_member_msg_public(), Pol::Core::send_nametext(), Pol::Core::send_objdesc(), Pol::Core::send_sysmessage(), Pol::Core::send_sysmessage_cl(), Pol::Core::send_sysmessage_cl_affix(), Pol::Core::sendCharProfile(), Pol::Core::SpeechHandler(), and Pol::Core::UnicodeSpeechHandler().

#define SPELL_EFFECT_EBOLT   0x379F

Definition at line 47 of file pktdef.h.

#define SPELL_EFFECT_FIREBALL   0x36D4

Definition at line 46 of file pktdef.h.

#define STATTYPE_SKILLWINDOW   5

Definition at line 85 of file pktdef.h.

Referenced by Pol::Core::srequest().

#define STATTYPE_STATWINDOW   4

Definition at line 84 of file pktdef.h.

Referenced by Pol::Core::srequest().

#define URL_MAX_LEN   200

Definition at line 73 of file pktdef.h.

Referenced by Pol::Module::OSExecutorModule::mf_OpenURL().