📄 defaultheader.h
字号:
int nAttr; // 阁胶磐 加己
int nHpMax; // 阁胶磐 HP
int nEpMax; // 阁胶磐 EP
int nStrikeDamage; // 拱府利 傍拜 单固瘤
int nStrikeRandom; // 拱府利 傍拜 单固瘤 函拳樊
int nMagicDamage; // 傍拜 付过 单固瘤
int nMagicRandom; // 傍拜 付过 单固瘤 函拳樊
int nCriticalRate; // 农府萍漠 犬伏
int nCriticalDamage; // 农府萍漠 单固瘤
int nPiercingStrike; // 拱府傍拜 乔绢教 犬伏
int nPiercingMagic; // 付过傍拜 乔绢教 犬伏
int Sel_Job_Alchemist;
int nAIBase; // 扁夯利牢 Npc AI 菩畔
int nAppearType; // 焊胶阁胶磐 殿厘包访 鸥涝
int nAIType; // Npc AI 力绢 困摹
int nAINo; // Npc AI 菩畔 锅龋
int nLvMin;
int nLvMax;
int Money_min;
int Money_Max;
int AttackDelay; // 0811 NPC KHS
int AccessDelay; // 0811 NPC KHS
int BackDelay; // 0811 NPC KHS
int PCfindDelay;
int nRvAp; // 傍拜仿 焊沥(窜困%)
int nRvLife; // Life 焊沥(窜困%)
int nRvExp; // 版氰摹 焊沥(窜困%)
int nAc; // 老馆 规绢仿(窜困%)
int nDpRate; // 掂倔 规绢仿 焊沥伏(窜困%)
int nApRate; // 掂倔 傍拜仿 焊沥伏(窜困%)
int nPhysical; // 拱府利 傍拜俊 措茄 规绢仿(窜困%)
int nFire; // 阂拌凯 傍拜 付过俊 措茄 历亲仿(窜困%)
int nIce; // 倔澜拌凯 傍拜 付过俊 措茄 历亲仿(窜困%)
int nElect; // 傈拜拌凯 傍拜 付过俊 措茄 历氢仿(窜困%)
int nHoly; // 脚仿拌凯 傍拜 付过俊 措茄 历亲仿(窜困%)
int nStun; // 付厚拌凯 历林 付过俊 措茄 历亲仿(窜困%)
int nSlow; // 加档历窍拌凯 历林 付过俊 措茄 历亲仿(窜困%)
int nPoison; // 吝刀拌凯 历林 付过俊 措茄 历亲仿(窜困%)
int nBlind; // 矫仿惑角拌凯 历林 付过俊 措茄 历亲仿(窜困%)
int nDrain; // 软呕拌凯 历林 付过俊 措茄 历亲仿(窜困%)
int nFreeze; // 趁悼拌凯 历林 付过俊 措茄 历亲仿(窜困%)
//int SpiritValue;
//int SpiritValue_Range;
//int PS[15];
//int Sel_Dice;
//int QuantityperLv;
//int WS[15] ;
//int Sel_Dice1;
//int QuantityperLv1;
//int Leathal_weapon1;
//int Leathal_weapon2;
//int Damage_weapon;
//int Leathal_attackws[9] ;
//int Damage_WP;
//int Leathal_WS;
//int Success;
//int Leathal_ps;
//int DamagePercent_ps;
int Inventory[15] ;
//int Amount_Dice;
//int Righthand;
//int Lefthand;
//int Body;
//int Helmet;
//int leg;
//int Leg_Probability;
//int neck;
//int neck_Probability ;
//int unique1;
//int Unique1_probalbility;
//int Unique2;
//int unique2_probability ;
//int Crapple;
//int swordmanship;
//int Archery;
//int Fencing;
//int Mace_fighting;
//int Pierce;
//int Whirl;
//int Hurl;
//int Parrying;
//int Double_Swordmanship ;
//int Double_MaceFighting ;
//int Magery;
//int Orison;
//int LV_Str;
//int Con;
//int Dex;
//int Wis;
//int Int;
int Movp;
//int Char;
//int Endu;
//int Mor;
//int Luck;
//int WS_PS;
//int Fullpoint;
//int Suplus_Resist_Death;
//int Suplus_Resist_Ston;
//int Suplus_Resist_Magic;
//int Suplus_Resist_Fire;
//int Suplus_Resist_Ice;
//int Suplus_Resist_Light;
//int DivideLv;
//int Resist_Range;
int Tamingable;
int Taming_min;
int Taming_max;
int Talkanimal_min;
int Talkanimal_max;
//int Resist;
//int Resist_range1;
int ValueHP;
int ValueSP;
//int Rely_value;
//int nor_range;
//int att_range;
int offset[20];
//int neglect_attack;
//int neglect_avoid;
//int check_pass;
//int party;
//int enemy_no;
//int levelgap;
//int apgap;
//int vpgap;
//int opendoor;
//int lockdoor;
//int closedoor;
//int breakdoor;
//int openobj;
//int lockbj;
//int closeobj;
//int breakobj;
//int act_month;
//int act_time;
//int act_bi;
//int act_chun;
//int act_nun ;
int Get_meat;
int Meat_amount;
int Get_skin;
int Skin_amount;
int Get_Wool;
int Wool_amount;
int Get_beewax;
int BeeWax_amount;
int mutant;
bool CanUse;
}; //> CSD-030806
///////////////////////////////////////////////////////////////////////////////
//
struct TimeData
{
int Year;
int Month;
int Day;
int DayofWeek;
TimeData()
{
Year=0;
Month=0;
Day=0;
DayofWeek=0;
}
};
//
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
//< CSD-030408
struct REGEN_MONSTER_INFO
{
int nMonsterNo;
int nMonsterType;
int nMonsterCount;
};
struct REGEN_PLACE_INFO
{
int nNumber;
int nPosX;
int nPosY;
int nScope;
};
//> CSD-030408
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
//< CSD-030506
struct k_nation_item_data
{
short int item_no;
short int fame;
int money;
};
//> CSD-030506
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
//< CSD-TW-030704
typedef struct tag_LottoUsers
{
int nLottoID;
char szID[20];
TIMESTAMP_STRUCT date;
int aNumbers[10];
}LOTTO_USER;
typedef struct tag_LottoEventInfo
{
int nLottoID;
tm StartDate;
tm LotteryDate;
int nWinNumCount;
int anWinNumbers[10]; // 10俺 瘤父 泅犁绰 4俺父 静牢促.
}LOTTO_EVENT_INFO;
typedef struct tag_DateCheck
{
int nDay;
int nHour;
int nMin;
}DATECHECK;
//> CSD-TW-030704
///////////////////////////////////////////////////////////////////////////////
struct START_UP_INFO
{ //< CSD-030723
DWORD idIndex;
int nApplyDay;
int nStartHour;
int nStartMinute;
int nEndHour;
int nEndMinute;
}; //> CSD-030723
struct CharacterParty
{ //< CSD-030723
short int On;
char Name[31];
int Face;
int Level;
int Gender;
int Str;
int Class;
}; //> CSD-030723
struct WINLOSEPOINT
{ //< CSD-030723
DWORD win:13;
DWORD defeat:12;
DWORD disconnect:7;
}; //> CSD-030723
struct Event_Join // 020115 LTS
{ //< CSD-030723
unsigned char Event1 : 1; // 捞亥飘 1狼 曼咯咯何
unsigned char Event2 : 1; // 捞亥飘 2狼 曼咯咯何
unsigned char Event3 : 1; // 捞亥飘 3狼 曼咯咯何
unsigned char Event4 : 1; // 捞亥飘 4狼 曼咯咯何
unsigned char Event5 : 1; // 捞亥飘 5狼 曼咯咯何
unsigned char Event6 : 1; // 捞亥飘 6狼 曼咯咯何
unsigned char Event7 : 1; // 捞亥飘 7狼 曼咯咯何
unsigned char Event8 : 1; // 捞亥飘 8狼 曼咯咯何
}; //> CSD-030723
struct DiseaseTable
{ //< CSD-030723
short int disease_number;
char han_name[31];
char name[31];
short int lv;
short int nut1_1;
short int nut2_1;
short int nut3_1;
short int probability_1;
short int andor_1;
short int checktime_1;
short int contact_char;
short int talk_char;
short int fuck_char;
short int contact_obj;
short int eat_obj;
short int nut1_2;
short int nut2_2;
short int nut3_2;
short int probability_2;
short int checktime_2;
short int andor_2;
short int dec_str;
short int dec_dex;
short int dec_con;
short int dec_wis;
short int dec_int;
short int dec_movp;
short int dec_char;
short int dec_endu;
short int dec_mor;
short int dec_luck;
short int dec_ws;
short int dec_ps;
short int recoverable;
short int life ;
short int health ;
short int mp ;
short int dp ;
short int max_ ;
short int damage ;
short int att_rate ;
short int depen_rate ;
short int ac ;
short int mad ;
short int poison ;
short int stony ;
short int sluggish ;
short int active ;
short int paralysis ;
short int active_time ;
short int maintain_time ;
short int natural_recovery ;
short int nut1_3 ;
short int nut2_3 ;
short int nut3_3 ;
short int probability_3 ;
short int checktime_3 ;
short int andor_3 ;
short int price_heal ;
short int price_prevent ;
}; //> CSD-030723
struct GodTable
{ //< CSD-030723
char meet_year_month;
char meet_year_day;
char meet_year_hour;
char meet_month_day;
char meet_month_hour;
char meet_day_hour;
}; //> CSD-030723
struct NW_Character // 010904 LTS // LTS CHAR
{ //< CSD-030723
DWORD WarNo : 7; // 傈里锅龋
DWORD WarfieldNo : 3; // 傈里磐 锅龋
DWORD SquadNo : 3; // 何措锅龋
DWORD isSquadLeader : 1; // 何措厘牢啊?
DWORD isCommander : 1; // 荤飞包牢啊?
DWORD isCommanderCandidater : 1; // 荤飞包 饶焊牢啊? // 010915 LTS
DWORD DoWarJoinVote : 1; // 傈里磐 曼咯 捧钎甫 沁唱?
DWORD DoCommanderVote : 1; // 荤飞包 捧钎甫 沁促
DWORD YL_JoinNation : 4; // 老胶牢版快 磊捞戚俊沁唱? 官捞辑胶俊 沁唱? // 惫啊锅龋
DWORD Reserved : 10; // 抗距..
}; //> CSD-030723
struct CCharRank
{ //< CSD-030723
DWORD nation :3; // 加茄唱扼 - 0:绝澜, 1, 2, 3:官捞辑胶, 4:磊捞戚, 5:庆霸葛聪酒, 6:老胶
DWORD guild_master:3; // 辨靛 付胶磐
DWORD king :1; // 唱扼 空
DWORD dwReserved :9; // 荤侩登瘤 臼澜
DWORD counselor :2; // 0 : 绝澜, 1: 雀荤 款康磊, 2: 霸烙郴 款康磊
DWORD ultra_nk3 :1; // 必厩乔纳捞 1004 YGI
DWORD ultra_nk4 :1; // 必厩乔纳捞 1004 YGI
DWORD ultra_nk6 :1; // 必厩乔纳捞 1004 YGI
DWORD reporter :1;
DWORD imsi :10; // 1004 YGI
}; //> CSD-030723
struct MAP_MOVE_INFO
{ //< CSD-HK-030829
int idUser;
int nMapPort;
int nX;
int nY;
}; //> CSD-HK-030829
#define LOG_ABNORMAL_PROTOCOL 0
#define LOG_DISCONNECT_LOGIN_SERVER 1
#define LOG_DISCONNECT_DB_DEMON 2
#define LOG_HANDLE_WRITING 3
#define LOG_EXCEPTION_FAIL 4
#define LOG_HANDLE_COMMAND 5
#define LOG_HANDLE_READING 6
#define LOG_INSERT_LOGINTABLE_ERROR 7
#define LOG_SEND_UPDATING_MESSAGE 8
#define LOG_EXCEPTION_ITEM_ABRASION_ERROR 9
#define LOG_HANDLE_WRITING_INSIDE 10
extern DWORD global_time;
extern DWORD g_alive_time;
extern DWORD g_curr_time;
extern DWORD g_curr_time_with_out_year; // 031009 CI YGI
extern int g_year;
extern int g_mon;
extern int g_yday;
extern int g_wday;
extern int g_day;
extern int g_hour;
extern int g_min;
extern int g_sec;
extern int g_count_ok;
extern int g_weatherflag;
extern bool g_block_attack;
extern bool g_block_magic;
extern bool g_block_steal;//030102 lsw
extern bool g_stop_please_give_life;
// 钢萍胶饭飘甫 困茄 Setting.
extern HANDLE g_hSema;
#include "../LowerLayers/MyLog.h"
#include "CharInfo.h" // CSD-030723
#include "MagicState.h" // CSD-030723
#include "ResistState.h" // CSD-030723
#include "CharList.h" // CSD-030723
#include "nation.h"
#include "ItemMgr.h"
#include "dr_network.h"
#include "MYSQL.H"
#include "ITEMLIST.H"
#include "Hong_Sub.h"
#include "OP_Chr_Status.h"
#include "NPCLIST.H"
#include "Object.h"
#include "NPC_Pattern.h"
#include "AREA.H"
#include "SkillMgr.h" //020214 lsw skill.h 昏力
#include "CrackMgr.h" //020214 lsw skill.h 昏力
#include "Map.h"
#include "RajaSystem.h"
#include <mmsystem.h> //020214 lsw
#include "RareEffectMgr.h"
#include "menuserver.h"
#include "Nationsys_define.h"
#include "LocalizingMgr.h"
#include "LottoSystem.h" // CSD-TW-030704
extern CRareEffectMgr RareEM;
extern void ResetAbility(CHARLIST *ch);//020303 lsw
extern int MAX_EXP_LEVEL; // CSD-040204
extern int MAX_TAC_LEVEL; // CSD-040204
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -