📄 network.h
字号:
unsigned char name[ NM_LENGTH ];
char title[ TEXT_LENGTH];
}t_server_menu_message_title;
typedef struct client_menu_message_title
{
unsigned char type;
unsigned char no;
}t_client_menu_message_title;
typedef struct server_menu_message_text
{
char text[ TEXT_LENGTH];
}t_server_menu_message_text;
//---------------------------------------------------------------------------------------
#define CMD_NOTIFY_JOIN_OK 400
#define CMD_LEVELUP_POINT 410
#define CMD_LEVELUP_POINT_OK 420
#define CMD_LEVELUP_POINT_NO 430
//----------------- Animation---------------------
//----------------- Animation---------------------
#define CMD_TURN_DIR 500
// ----------------- House -------------------------
// ----------------- House -------------------------
// ----------------- House -------------------------
#define CMD_ROOF_OPEN 8000
#define CMD_ROOF_CLOSE 8001
typedef struct roof_open
{
short int roofno;
}t_roof_open;
typedef struct roof_close
{
short int roofno;
}t_roof_close;
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
typedef struct server_interface_peace
{
short int client_id ;
}t_server_interface_peace;
typedef struct server_interface_battle
{
short int client_id ;
}t_server_interface_battle;
//--------------------------------------------------------
typedef struct server_weather
{
unsigned int weather;
unsigned int another;
unsigned int rainstart;
unsigned int rainend;
short amount;
short temperature;
} t_server_weather;
typedef struct server_npc_add // Monster
{
char name[ NM_LENGTH];
int fame_pk; // 010915 LTS //Fame_PK -> NWCharacter肺 背眉 DB俊绰 角力肺 NWCharacter狼 蔼捞 甸绢癌聪促.
NW_Character NWCharacter; // 010915 LTS
char spell;
short int npc_id;
char status;
BYTE sprno;
short int x;
short int y;
// short int homex;
// short int homey;
} t_server_npc_add;
typedef struct server_npc_remove
{
short int server_id;
} t_server_npc_remove;
//........... Magic............................................
//............Magic............................................
//........... Magic............................................
typedef struct client_starting_magic
{
short int magic_no;
} t_client_starting_magic;
typedef struct server_starting_magic
{
short int server_id;
short int magic_no;
} t_server_starting_magic;
typedef struct client_doing_magic
{
short int target_id;
short int x;
short int y;
short int magic_no;
bool firePattern;
} t_client_doing_magic;
typedef struct server_doing_magic
{
short int server_id;
short int target_id;
short int x;
short int y;
short int magic_no;
bool firePattern;
} t_server_doing_magic;
typedef struct t_server_change_equip
{
unsigned int server_id;
unsigned char equip[4];
short int mantle; //011018 KHS 噶肚
}server_change_equip;
typedef struct t_client_change_equip
{
unsigned char equip[4];
}client_change_equip;
// Attack........................................
// Attack........................................
// Attack........................................
typedef struct client_attack
{
short int target_id;
} t_client_attack;
typedef struct server_attack
{
short int server_id;
short int target_id;
} t_server_attack;
// Item......................................
// Item......................................
// Item......................................
typedef struct server_item_add
{
short int item_id;
ItemAttr item;
short int offx, offy;
short int x, y;
} t_server_item_add;
typedef struct server_item_remove
{
short int item_id;
} t_server_item_remove;
typedef struct server_you_got_item
{
short int item_id;
} t_server_you_got_item;
typedef struct client_item_drop
{
ItemAttr item;
short int x,y;
} t_client_item_drop;
typedef struct client_item_take
{
short int item_id;
} t_client_item_take;
typedef struct client_item_status
{
short int item_id;
unsigned int attr[6];
} t_client_item_status;
typedef struct server_item_status
{
short int item_id;
unsigned int attr[6];
} t_server_item_status;
typedef struct chr_item_info0
{
char ar0;
char ar1;
ItemAttr inv[8];
} t_chr_item_info0;
typedef struct chr_item_info1
{
ItemAttr equip[8];
} t_chr_item_info1;
typedef struct chr_item_info2
{
ItemAttr quick[6];
} t_chr_item_info2;
typedef struct chr_name_info
{
char name[ NM_LENGTH];
char login_id[20];
} t_chr_name_info;
//---
// Bank........................................
// Bank........................................
// Bank........................................
typedef struct client_bank
{
int total_money;
int money;
int char_money;
DWORD time;
} t_client_bank;
// Event ................................................ ###0923
// Event ................................................
// Event ................................................
typedef struct client_event
{
short int type;
short int event_no;
} t_client_event;
typedef struct item_attr_change
{
short int item_id;
char array;
unsigned int attr;
}t_item_attr_change;
/// Change Map .........................................
/// Change Map .........................................
/// Change Map .........................................
typedef struct server_change_map
{
char mapname[ NM_LENGTH ];
char ip[3][18];
int port;
short int x;
short int y;
} t_server_change_map;
// Log In ... Select Character.........................
// Log In ... Select Character.........................
// Log In ... Select Character.........................
//--------------------------------------------------------
//1207 zhh
#define MaxCorp 5 //泅力 辆樊力 窍绊 乐绰 诀眉狼 荐
#define Nownuri 0 //WhatLineUse俊 甸绢啊绰锅龋
#define Thrunet 1
#define Channel_i 2
#define Unitel 3
#define Netsgo 4
const int MAX_MY_STRING = 20;
typedef struct CLIENTACCESSLOGIN
{
HSEL_INITIAL init;
char id[ID_LENGTH];
char pw[PW_LENGTH];
short int version;
short int mycode;
char mystring[MAX_MY_STRING];
char ip[40]; //Added by zoung
WORD wPort; // Added by chan78 at 2000/12/17
short int Corp_Code; //诀眉 内靛
char User_ID[ID_LENGTH]; //辆樊力 诀眉侩 ID
char GateWayIP[40];
int GateWayPORT;
}t_ClientAccessLogin, *LPCLIENTACCESSLOGIN;
//--------------------------------------------------------
typedef struct server_accept_login
{
short int server_id;
char name[ MAX_CHARACTEROFID][NM_LENGTH];
unsigned char level[ MAX_CHARACTEROFID];
unsigned char job[ MAX_CHARACTEROFID];
unsigned char cla[ MAX_CHARACTEROFID];
unsigned char gender[ MAX_CHARACTEROFID];
unsigned char bodyr[ MAX_CHARACTEROFID];
unsigned char bodyg[ MAX_CHARACTEROFID];
unsigned char bodyb[ MAX_CHARACTEROFID];
unsigned char clothr[ MAX_CHARACTEROFID];
unsigned char clothg[ MAX_CHARACTEROFID];
unsigned char clothb[ MAX_CHARACTEROFID];
short int age[ MAX_CHARACTEROFID];
unsigned int money[ MAX_CHARACTEROFID];
unsigned char acc_equip1[ MAX_CHARACTEROFID];
unsigned char acc_equip2[ MAX_CHARACTEROFID];
unsigned char acc_equip3[ MAX_CHARACTEROFID];
unsigned char acc_equip4[ MAX_CHARACTEROFID];
char nation;
short int remained_day;
char id[ ID_LENGTH]; // 010129 KHS
} t_server_accept_login;
//--------------------------------------------------------
typedef struct client_connect_info
{
char name[NM_LENGTH];
char startposition;
char startmap;
} t_client_connect_info;
typedef struct server_connect_info // 荤侩救窃.
{
char ip[3][18];
int port;
char startposition;
} t_server_connect_info;
//--------------------------------------------------------
typedef struct client_chat_data
{
short int range;
unsigned char type;
unsigned char length;
char text[TEXT_LENGTH];
} t_client_chat_data;
//--------------------------------------------------------
typedef struct server_chat_data
{
short int server_id;
unsigned char type;
unsigned char length;
char text[TEXT_LENGTH];
} t_server_chat_data;
//--------------------------------------------------------
typedef struct client_move
{
short int server_id;
short int length;
unsigned char movetype;
short int movep;
short int sx;
short int sy;
short int gox;
short int goy;
unsigned char dir_tbl[MAX_DIR_TABLE];
} t_client_move;
//--------------------------------------------------------
typedef struct server_move
{
short int server_id;
short int length;
unsigned char movetype;
short int sx;
short int sy;
short int gox;
short int goy;
short int targetid;
unsigned int desttime;
unsigned char dir_tbl[MAX_DIR_TABLE];
} t_server_move;
//--------------------------------------------------------
typedef struct client_create_char
{
char name[NM_LENGTH];
unsigned char gender;
unsigned char face;
short int age;
unsigned char arigement; // CSD-030324
unsigned char body_r, body_g, body_b;
unsigned char cloth_r, cloth_g, cloth_b;
unsigned char tactics;
unsigned char Class;
unsigned char job;
unsigned char spell;
} t_client_create_char;
typedef struct client_delete_char//020820 lsw
{
char szName[ NM_LENGTH];
char szSecretKeyCode[ 51];
}t_client_delete_char;
typedef struct server_assign_server_id
{
short int server_id;
short int x, y;
}t_server_assign_server_id;
//// LoginServer客 GameServer埃狼 Access Join包拌..
#define CMD_REQ_INSERT_USERID 34
#define CMD_REQ_DELETE_USERID 35
#define CMD_JOINABLE 36
#define CMD_NOT_JOINABLE 37
#define CMD_UPDATING 38
typedef struct gs_req_insert_userid
{
short int server_id;
char id[ ID_LENGTH];
char pw[ PW_LENGTH];
char name[ NM_LENGTH];
char mapname[ NM_LENGTH];
}t_gs_req_insert_userid;
typedef struct gs_req_delete_userid
{
short int server_id;
char id[ ID_LENGTH];
char mapname[ NM_LENGTH];
}t_gs_req_delete_userid;
typedef struct ls_joinable
{
short int server_id;
}t_ls_joinable;
typedef struct ls_not_joinable
{
short int server_id;
}t_ls_not_joinable;
typedef struct ls_updating // LoginServer -> GameServer. 夸没茄 User绰 泅犁 Data甫 Updating窍绊 乐扁 锭巩俊 泪矫 扁促妨具 钦聪促.
{
short int server_id;
}t_ls_updating;
//--------------------------------------------------------
typedef struct server_user_db_data
{
short int lev;
DWORD exp;
char name[NM_LENGTH];
short int Attr[ 10]; //MAX_CHARACTERDATA];
short int Avility[20];
DWORD money;
int nLife;
int nMaxHp;
int nMana;
int nMaxMp;
int nHungry;
int nMaxHungry;
char spell;
/////////////////////// 1228 捞痹绕 荐沥 //////////////////////
BYTE condition;
//////////////////////////////////////////////////////////////
short int sprno;
short int x;
short int y;
unsigned char acc_equip1;
unsigned char acc_equip2;
unsigned char acc_equip3;
unsigned char acc_equip4;
char mapname[NM_LENGTH];
unsigned char bodyr, bodyg, bodyb;
unsigned char clothr,clothg,clothb;
int sight;
short int Age;
short int openhouse;
short int reserved_point;
char viewtype;
short int social_status;
short int fame;
short int fame_pk; // 010915 LTS //Fame_PK -> NWCharacter肺 背眉 DB俊绰 角力肺 NWCharacter狼 蔼捞 甸绢癌聪促.
NW_Character NWCharacter; // 010915 LTS
short int nk3;
short int nk4;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -