?? network.h
字號:
char mapnumber;
short int x,y;
char status;
}t_sealstone_status;
typedef struct sealstone_client_status
{
char mapnumber;
short int x,y;
char status;
}t_sealstone_client_status;
#define CMD_STEALSTONE_BREAKABLE 8894
#define CMD_STEALSTONE_NON_BREAKABLE 8896
#define CMD_STEALSTONE_NON_BREAKABLE_PEACE 8898
#define CMD_NATION2NATION_RELATION 8910
typedef struct nation2nation_relation
{
char a,b;
char relation;
short int year, mon, day, hour;
DWORD howlong;
}t_nation2nation_relation;
#define CMD_NATION2NATION_RELATION_RESULT 8912
typedef struct nation2nation_relation_result
{
BYTE why;
}t_nation2nation_relation_result;
#define CMD_JUST_ANI 8900
typedef struct just_ani
{
short int id;
char ani;
}t_just_ani;
#define CMD_FACE_DIRECTIONS 8920
typedef struct face_directions
{
char dir;
short int id;
}t_face_directions;
#define CMD_AGENT_SERVER_IP 8930
typedef struct agent_server_ip
{
char ip[18];
}t_agent_server_ip;
#define CMD_CHANGE_MAP_NOT 8940
#define CMD_CHANGEMAP_DATA_RECEIVED 8950
#define CMD_MANTLE_CANDLE 8960
typedef struct mantle_candle
{
DWORD id : 16;
DWORD mantleno : 14;
DWORD candle : 1;
}t_mantle_candle;
#define CMD_CANDLE_ON 8965
typedef struct candle_on
{
WORD id;
}t_candle_on;
#define CMD_CANDLE_OFF 8966
typedef struct candle_off
{
WORD id;
}t_candle_off;
#define CMD_INSTALL_TYPE 9000
typedef struct client_install_type
{
BYTE type;
}t_client_install_type;
#define CMD_CLOSE_CONNECTION_NORMAL 13001
#define CMD_CLOSE_CONNECTION_ABNORMAL 13002
#define CMD_CLOSE_CONNECTION_SAME_ID_LOGON 13003
#define CMD_CLOSE_CONNECTION_SLEPT_TOO_LONG_TIME 13004
#define CMD_SO_MUCH_LOGINUSER_WAIT_FOR_A_MIN 13005
#define CMD_LOGIN_FAIL_MASSAGE 13006
#define CMD_ORDER_DISCONNECT 9007
#pragma pack (push,1)
#include "network2.h"
#include "Network3.h"
#include "NetWork4.h" // 010904 LTS
#include "Network5.h"
#include "network6.h"
#include "Network7.h" // 021015 kyo
// 措父儈 肺弊牢 角菩 皋矯瘤
typedef struct client_login_fail_reason
{
int dwType; //肺弊牢撈 絹恫撈蠟俊輯 救登綽瘤狼 盔牢 . switch鞏 儈
char szExpireDate[12]; //場唱綽 朝樓啊 甸絹埃促.
char cPaytype; //搬力狼 輛幅啊 甸絹埃促. ex) 器牢飄, 朝樓. 殿殿
long dwPoint; //巢酒樂綽 器牢飄
char cReserverdData; //父距 鞍籃 鷗澇撈扼檔 版快俊 蝶扼輯 促弗 皋矯瘤啊 嘛囚具 且 版快甫 措厚茄 函薦.
}t_client_login_fail_reason;
typedef struct dragon_header
{
short int type;
short int size;
char crc;
} t_header;
//--------------------------------------------------------
typedef struct packet
{
union
{
char data[sizeof(t_header)];
t_header header;
} h;
union
{
char data[MAX_PACKET_SIZE];
t_server_weather server_weather;
t_server_npc_add server_npc_add;
t_server_npc_remove server_npc_remove;
t_client_attack client_attack;
t_server_attack server_attack;
t_server_modify_position server_modify_position;
t_client_modify_position client_modify_position;
t_server_modify_position_absolute server_modify_position_absolute;
t_server_item_add server_item_add;
t_server_item_remove server_item_remove;
t_server_you_got_item server_you_got_item;
t_client_item_drop client_item_drop;
t_client_item_take client_item_take;
t_client_item_status client_item_status;
t_server_item_status server_item_status;
t_client_bank client_bank;
CLIENTACCESSLOGIN ClientAccessLogin;
t_server_accept_login server_accept_login;
ACCESSJOIN AccessJoin;
t_server_accept_join server_accept_join;
t_server_assign_server_id server_assign_server_id;
t_all_ready all_ready;
t_client_connect_info client_connect_info;
t_server_connect_info server_connect_info;
t_client_chat_data client_chat_data;
t_server_chat_data server_chat_data;
t_client_move client_move;
t_server_move server_move;
t_client_create_char client_create_char;
t_client_delete_char client_delete_char;
t_client_event client_event;
t_item_attr_change item_attr_change;
t_item_door_open_close item_door_open_close;
t_client_item_box_break client_item_box_break;
t_server_item_box_break server_item_box_break;
t_client_item_box_break_result client_item_box_break_result;
t_client_item_box_magic_break client_item_box_magic_break;
t_server_item_box_magic_break_result server_item_box_magic_break_result;
t_client_just_attack_animation client_just_attack_animation;
t_server_change_map server_change_map;
t_server_foot_on_trap0 server_foot_on_trap0;
t_client_foot_on_trap0 client_foot_on_trap0;
t_server_foot_on_trap1 server_foot_on_trap1;
t_client_foot_on_trap1 client_foot_on_trap1;
t_server_steal_on_trap server_steal_on_trap;//011212 lsw
t_chr_item_info0 chr_item_info0;
t_chr_item_info1 chr_item_info1;
t_chr_item_info2 chr_item_info2;
t_char_info_basic char_info_basic;
t_char_info_tactic char_info_tactic; // CSD-TW-030624
t_char_info_magic char_info_magic;
t_char_info_skill char_info_skill;
t_other_info_basic other_info_basic;
t_server_give_item server_give_item;
k_client_item_inv client_item_inv; // 1218
t_char_info_tac_skillexp char_info_tac_skillexp;
t_req_pc_add req_pc_add;
t_req_npc_add req_npc_add;
t_req_item_add req_item_add;
t_server_user_db_data server_user_db_data;
t_server_user_add server_user_add;
t_server_envir_info server_envir_info;
t_server_user_remove server_user_remove;
t_item_ex_info item_ex_info ;
t_item_exchange item_exchange;
t_chr_status_info chr_status_info ;
t_server_change_equip server_change_equip ;
t_client_change_equip client_change_equip ;
t_mass_data mass_data ;
t_server_insert_magic server_insert_magic;
//t_inv_info inv_info ;
//t_equip_info equip_info ;
t_server_interface_battle server_interface_battle ;
t_server_interface_peace server_interface_peace ;
// Menu..
t_server_call_smallmenu server_call_smallmenu ;
t_server_store_itemlist server_store_itemlist;
t_client_item_buy client_item_buy ;
t_client_item_sell client_item_sell ;
t_server_menu_message server_menu_message;
t_server_guild_info server_guild_info;
t_client_learn_skill client_learn_skill;
t_server_learn_skill server_learn_skill;
t_server_learn_skillitem server_learn_skillitem; //### 1214 薦瀝
t_server_repair_itemlist server_repair_itemlist;
t_client_item_repair client_item_repair;
t_server_item_repair server_item_repair;
t_server_rumor_info server_rumor_info;
t_server_menu_message_title server_menu_message_title;
t_client_menu_message_title client_menu_message_title;
t_server_menu_message_text server_menu_message_text;
t_client_levelup_point client_levelup_point;
t_server_levelup_point server_levelup_point;
// Animation..
t_server_turn_dir server_turn_dir;
// Skill..
t_server_skill_info server_skill_info;
t_client_skill_info client_skill_info;
t_server_skill_result server_skill_result;
t_client_skill_result client_skill_result;
t_server_skill_animal_lore server_skill_animal_lore;
t_server_output_message server_output_message;
t_client_skill_item_matter client_skill_item_matter;
t_server_skill_itemmake_result server_skill_itemmake_result;
t_server_skill_result_fail server_skill_result_fail;
t_server_skill_result_toother server_skill_result_toother;
t_client_skill_cursor_view client_skill_cursor_view;
t_client_skill_gauge client_skill_gauge;
t_server_skill_gauge server_skill_gauge;
t_viewtype_change viewtype_change;
t_view_char_info view_char_info;
t_roof_open roof_open;
t_roof_close roof_close;
t_chat_set_result chat_set_result;
t_chat_set chat_set;
t_total_map_connections total_map_connections;
t_total_connections total_connections;
t_client_isthere_charname client_isthere_charname;
t_tame_command tame_command;
t_tame_name_change tame_name_change;
t_tame_host_name tame_host_name;
t_tame_command_result tame_command_result;
t_tame_end tame_end;
t_you_die you_die;
t_debug_server_req_char_info debug_server_req_char_info;
t_debug_client_req_char_info debug_client_req_char_info;
t_please_give_life please_give_life;
t_client_smile_face client_smile_face;
t_server_smile_face server_smile_face;
// 傍瘤葷親..
t_server_bbs server_bbs;
// 霸烙輯滾 牢僥
t_im_game_server im_game_server;
// 款康磊儈
t_absolute_logout absolute_logout;
t_make_ghost make_ghost;
t_give_life give_life;
// Update to LoginServer....
//t_update_char_db update_char_db;
t_server_update_binary_data0 server_update_binary_data0;
t_server_update_binary_data1 server_update_binary_data1;
t_server_update_script_data server_update_script_data;
t_server_update_inv_data server_update_inv_data;
t_server_update_item_data server_update_item_data;
t_server_update_bankitem_data server_update_bankitem_data;
// GameServer客 LoginServer客狼 Access Join包拌..
t_gs_req_insert_userid gs_req_insert_userid;
t_gs_req_delete_userid gs_req_delete_userid;
t_ls_joinable ls_joinable;
t_ls_not_joinable ls_not_joinable;
t_ls_updating ls_updating;
t_how_many_in_map how_many_in_map;
// Item Duration 皚家貿府....
t_item_duration_change item_duration_change;
// Client俊輯 NPC包府甫 困茄 橇肺配妮
// t_npc_attack npc_attack;
t_npc_chat_data npc_chat_data;
t_npcctrl_sealstone npcctrl_sealstone;
t_npcctrl_muri_8 npcctrl_muri_8;
t_npcctrl_muri_18 npcctrl_muri_18;
t_npcctrl_muri_28 npcctrl_muri_28;
t_npcctrl_wander_38 npcctrl_wander_38;
t_npcctrl_wander_maul npcctrl_wander_maul;
t_npcctrl_no_move npcctrl_no_move;
t_npcctrl_wander_guard npcctrl_wander_guard;
t_npcctrl_tame npcctrl_tame;
t_npc_modify_pos npc_modify_pos;
t_send_npc_parameter send_npc_parameter;
t_send_npc_string_parameter send_npc_string_parameter;
t_start_goodbad start_goodbad;
t_endof_goodbad endof_goodbad;
t_login_bbs login_bbs;
t_char_in_game char_in_game; // 霸烙輯滾俊 弊礬茄 仇撈 勒綽啊 絕綽啊甫 Check茄促.
t_login_close_login_id login_close_login_id;
t_update_very_important_status update_very_important_status;
t_update_very_important_tactics update_very_important_tactics;
t_tactics_parrying_exp tactics_parrying_exp;
t_debug_change_skill_exp debug_change_skill_exp;
// 0811 NPC KHS
t_server_npc_access_table_reload server_npc_access_table_reload;
// 憊啊傈俊 措茄 packet.
t_sealstone_warlefttime sealstone_warlefttime;
t_sealstone_war_start sealstone_war_start;
t_sealstone_client_warlefttime sealstone_client_warlefttime;
t_sealstone_result sealstone_result;
t_sealstone_fromking sealstone_fromking;
t_sealstone_status sealstone_status;
t_sealstone_client_status sealstone_client_status;
t_nation2nation_relation_result nation2nation_relation_result;
t_nation2nation_relation nation2nation_relation;
t_just_ani just_ani;
t_face_directions face_directions;
t_agent_server_ip agent_server_ip;
t_mantle_candle mantle_candle;
t_candle_on candle_on;
t_candle_off candle_off;
t_client_install_type client_install_type;
t_server_item_add_ziped server_item_add_ziped;
t_server_check_accel server_check_accel;//010604 lsw
t_SkillRareUpgrade SkillRareUpgrade;
t_SkillRareUpgradeResult SkillRareUpgradeResult;
t_server_call_smallmenucustom CallSmallMenuCustom;
t_RareUpgradeBBS RareUpgradeBBS;
t_DayLight DayLight;//020610 lsw
t_NowSkillPoint NowSkillPoint;//020815 lsw
t_OnConnectHselInit OnConnectHSELInit;
t_client_login_fail_reason client_login_fail_reason;
t_angra angra;
t_kein kein;
t_NationWar NationWar; // 010904 LTS
t_LocalWar LocalWar; // LTS LOCALWAR
t_battle battle;
t_strike strike;
t_magic magic;
t_combat combat;
t_dual dual;
t_arena arena; // CSD-030506
t_rm_change_weather RmChangeWeather;
t_AddEffect AddEffect;//020314 lsw
t_SearchPacketClient SearchPacketClient;
t_SearchResultList SearchResultList;
t_MerchantItemBuy MerchantItemBuy;
t_SellerItemRequest SellerItemRequest;
t_SellerItemRegister SellerItemRegister;
t_SellerItemDelete SellerItemDelete;
t_MerchantResultTake MerchantResultTake;//021025 lsw
t_MerchantExchangeRequest MerchantExchangeRequest;
t_Hwoarang Hwoa;//021111 lsw
t_quest_in_map quest_in_map; // 021010 kyo
t_show_msg show_msg; // 021014 kyo
t_script_timer script_timer; // 021022 kyo
t_script_counter script_counter; // 021023 kyo
t_script_spellmapmove spell_mapmove; // 021128 kyo
t_GUARDIANLIST GuardianList; // soto-030331
t_SYMBOL_ITEM_MSG Symbol_Item;//soto-030418
t_BUY_LOTTO Lotto_Buy;
t_CHECK_WINNER Check_Winner;
t_WINNER_MENU Lotto_Winner_Menu;
t_OPEN_LOTTO_MENU Lotto_Menu_Open;
t_ACCEL_TYPE Accel_Type; // CSD-030808
t_LOTTERY_INFO Lotto_BroadCast;//soto-HK030924
t_LOTTOPAPER_SEEK Lotto_Seek;//soto-Lotto眠啊.
} u;
struct packet *next;
} t_packet;
#pragma pack (pop, 1)
//--------------------------------------------------------
//--------------------------------------------------------
//--------------------------------------------------------
//#endif
//--------------------------------------------------------
//--------------------------------------------------------
//--------------------------------------------------------
typedef struct connection
{
SOCKET socket;
struct sockaddr_in addr;
int state;
t_packet *inbuf;
t_packet *outbuf;
int receive;
int receive_count;
DWORD connect_time;
DWORD monitor_time;
DWORD send_bytes;
DWORD receive_bytes;
int send_try; // 焊郴扁 冉薦...
int send_addlen;
char ip_address[128];
int last_year;
int last_mon;
int last_day;
int last_hour;
int last_min;
int login_year;
int login_mon;
int login_day;
int login_hour;
int login_min;
int login_sec;
t_packet packet;
int packet_pnt;
int packet_size;
int packet_status;
int packet_count[2];
char len[2]; // t_packet菊俊 坷綽 packet length...
WORD *udwp_len;
int kick_out;
DWORD kick_out_time;
int save_db;
DWORD save_db_time;
char id[ID_LENGTH];
char pw[PW_LENGTH];
char name[NM_LENGTH];
char mapname[NM_LENGTH];
//------------ NEW_APPEND -------------------------------
int server_check;
//-------------------------------------------------------
#ifndef __CLIENT_PROGRAM__
CHARLIST chrlst;
#
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -