📄 skillmgr.h
字号:
// SkillMgr.h: interface for the CSkillMgr class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_SKILLMGR_H__6108FBB6_55CB_4499_832C_6B1598CC6824__INCLUDED_)
#define AFX_SKILLMGR_H__6108FBB6_55CB_4499_832C_6B1598CC6824__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#define SKILL_EXP_FIX_ 10000
#define SKILL_ABILITY_FIX_ 10000
#define NPC_ITEM_TABLE_X 61
#define NPC_ITEM_TABLE_Y 64
#define NPC_ITEM_TABLE_TOTAL_ITEM 60 //惑磊 救俊 乐绰 酒捞袍狼 荐//
#define NPC_ITEM_TABLE_START_ITEM_POS 2 //硅凯救狼 困摹
#define NPC_ITEM_TABLE_PROBABILITY_POS 62 //硅凯救狼 困摹.角力肺绰 50锅掳 困摹.
#define NPC_ITEM_TABLE_BETWEEN_POS 63 //硅凯救狼 困摹.
#define NPC_ITEM_TABLE_LEVEL_POS 1 //硅凯救狼 困摹.
const int MAX_ITEM_SKILL_COUNT = 10000;//020527 lsw
const int SADONIX_NO = 1046;
const int BLESSLEAF_NO = 1047;
const int STATIC_RARE_VIEW_FORCE_TIME = 60;
#define SKILLFAIL_NO_TOOL 1 // 鞘夸 档备啊 绝娇.
#define SKILLFAIL_NO_MATTER 2 // 鞘夸 犁丰啊 绝娇.
#define SKILL_LEVEL_EXP_TABLE_MAX_ 100
#define SKILL_EXP_TABLE_MAX_ 100
const int HP_RECOVER_RATE = 5 ;//1雀 磊悼 雀汗 欺季抛捞瘤
const int DEFAULT_RECOVER_HP_MAX_PERCENT = 50 ;//弥措 磊悼 雀汗 欺季抛捞瘤
const int DEFAULT_RECOVER_HP_TIME = 25000 ;//剐府技牧靛
const int MANA_RECOVER_RATE = 5 ;//1雀 磊悼 雀汗 欺季抛捞瘤
const int DEFAULT_RECOVER_MANA_MAX_PERCENT = 50 ;//弥措 磊悼 雀汗 欺季抛捞瘤
const int DEFAULT_RECOVER_MANA_TIME = 30000 ;//剐府技牧靛
const int DIVINE_RECOVER_RATE = 5 ;//1雀 磊悼 雀汗 欺季抛捞瘤
const int DEFAULT_RECOVER_DIVINE_MAX_PERCENT = 100 ;//弥措 磊悼 雀汗 欺季抛捞瘤
const int DEFAULT_RECOVER_DIVINE_TIME = 20000 ;//剐府技牧靛 己流磊啊 距埃歹 狐福促
const int HUNGRY_CHANGE_RATE = 5 ;//1雀 磊悼 雀汗 欺季抛捞瘤
const int DEFAULT_CHANGE_HUNGRY_MAX_PERCENT = 100 ;//弥措 磊悼 雀汗 欺季抛捞瘤
const int DEFAULT_CHANGE_HUNGRY_TIME = 10000 ;//剐府技牧靛
const int CP_CHANGE_RATE = 2 ;//1雀 磊悼 雀汗 欺季抛捞瘤
const int DEFAULT_CHANGE_CP_MAX_PERCENT = 100 ;//弥措 磊悼 雀汗 欺季抛捞瘤
const int DEFAULT_RECOVER_CP_TIME = 10000 ;//剐府技牧靛
const int COMBAT_RECOVERY_TIME = 5000 ;//5檬 弧府 cp 棵覆 // 030415 kyo
////////////////////////////////////////////////////////////////
// 胶懦 角菩 恐 窍绰啊 包访等芭
#define ITEMMAKE_YOUCAN 10000
#define ITEMMAKE_UNKNOWN -1
#define ITEMMAKE_NOT_RESOURCE -2
#define ITEMMAKE_NOT_TOOL -3
#define ITEMMAKE_NOT_FLATFORM -4
#define ITEMMAKE_TIRED -5
#define ITEM_MAKE_NO_JOIN -6
#define ITEMMAKE_GOGOGO -7 // 积己犬伏 100% 累诀阑 困秦 泪矫 父电绢敌 Definition...
#define ITEMMAKE_NO -8
#define SKILLFAIL_NOT_PROPER_PLACE -9 // 扁贱阑 困茄 利寸茄 厘家啊 酒凑聪促.
#define SKILLFAIL_UNKNOWN_ITEM -10
#define SKILLFAIL_NOT_RESOURCE -20
#define SKILLFAIL_NOT_FLATFORM -40
#define SKILLFAIL_TIRED -41
#define SKILLFAIL_NOT_TOOL48 -48
#define SKILLFAIL_NOT_TOOL49 -49
#define SKILLFAIL_NOT_TOOL50 -50
#define SKILLFAIL_NOT_TOOL51 -51
#define SKILLFAIL_NOT_TOOL52 -52
#define SKILLFAIL_NOT_TOOL53 -53
#define SKILLFAIL_NOT_TOOL54 -54
#define SKILLFAIL_NOT_TOOL55 -55
#define SKILLFAIL_NOT_TOOL56 -56
#define SKILLFAIL_NOT_TOOL57 -57
#define SKILLFAIL_NOT_TOOL58 -58
#define SKILLFAIL_NOT_TOOL59 -59
#define SKILLFAIL_NOT_TOOL60 -60
#define SKILLFAIL_NOT_TOOL61 -61
#define SKILLFAIL_NOT_TOOL62 -62
#define SKILLFAIL_NOT_TOOL63 -63
#define SKILLFAIL_NOT_TOOL64 -64
#define SKILLFAIL_NOT_TOOL65 -65
#define SKILLFAIL_NOT_TOOL66 -66
#define SKILLFAIL_NOT_TOOL67 -67
#define SKILLFAIL_NOT_TOOL68 -68
#define SKILLFAIL_NOT_TOOL69 -69
#define SKILLFAIL_NOT_TOOL70 -70
#define SKILLFAIL_NOT_TOOL71 -71
#define SKILLFAIL_NOT_TOOL72 -72
#define SKILLFAIL_NOT_TOOL73 -73
#define SKILLFAIL_NOT_TOOL74 -74
#define SKILLFAIL_NOT_TOOL75 -75
#define SKILLFAIL_NOT_TOOL76 -76
#define SKILLFAIL_NOT_TOOL77 -77
#define SKILLFAIL_NOT_TOOL78 -78
#define SKILLFAIL_NOT_TOOL79 -79
#define SKILLFAIL_NOT_TOOL80 -80
#define SKILLFAIL_NOT_TOOL81 -81
#define SKILLFAIL_NOT_TOOL82 -82
#define SKILLFAIL_NOT_TOOL83 -83
#define SKILLFAIL_NOT_TOOL84 -84
#define SKILLFAIL_NOT_TOOL85 -85
#define SKILLFAIL_NOT_TOOL86 -86
#define SKILLFAIL_NOT_TOOL87 -87
#define SKILLFAIL_NO_SHEAR -100
#define SKILLFAIL_NO_MEET -101
#define SKILLFAIL_NO_MINING -102 // 歹捞惑 颇尘巴捞 绝绢咯..
#define SKILLFAIL_NO_DIGGING -103 // 歹捞惑 某尘 距檬啊 绝绢咯.
#define SKILLFAIL_NO_CUTTING -104 // 歹捞惑 肋扼尘 唱公啊 绝绢咯.
#define SKILLFAIL_NO_SEED -105 // 累拱捞 酒聪扼辑 荐犬且荐 绝嚼聪促.
#define SKILLFAIL_NOT_YET_HARVEST -106 // 酒累 荐犬且锭啊 登瘤 臼疽嚼聪促.
#define SKILLFAIL_NOT_YET_SOW -107 // 顶捞 么冠窍芭唱 茄焙措俊 呈公 腹捞 缴菌嚼聪促.
#define SKILLFAIL_NO_MORE_RACLAIM -108 // 弊父 俺埃秦档 邓聪促.
#define SKILLFAIL_NO_FISHING -109 // 歹捞惑 拱绊扁啊 绝嚼聪促
#define SKILLFAIL_LOW_LEVEL_TO_TAMING -110 //taming且 荐 绝绰 瓷仿摹甫 蜡历啊 啊瘤绊 乐促
#define SKILLFAIL_NO_TAMING_ALLOWED -111 //taming且 荐 绝绰 措惑
#define SKILLFAIL_TARGET_IS_NOT_NPC -112 //taming且 胶 乐绰 NPC啊 酒聪促
#define MAX_EARTHSKILL 5000
////////////////////////////////////////////////////////////////////////
// 胶懦 砒 辆幅
#define TOOL_FARMING 1
#define TOOL_MINING 2
#define TOOL_FISHING 3
#define TOOL_CHOPPING 4
#define TOOL_HUB 5
#define TOOL_NPC_GENER 6
#define TOOL_DONTSKILL 7
#define SKILLTARGETTYPE_ITEM_ 10
#define SKILLTARGETTYPE_CHAR_ 20
#define SKILLTARGETTYPE_MAP_ 30
#define SKILLTARGETTYPE_HERO_ 40
#define SKILLTARGETTYPE_TABLE_ 50
#define SKILLTARGETTYPE_2NDGM_ 50
////////////////////////////////////////////////////////////////////////
class CItem_Join
{
public :
int no;
int item_id;
char item_name[31];
int item_amount;
char han_name[31];
int need_know;
int teach_place;
int need_skill1;
int skill1_minimum;
int skill1_maximum;
int need_skill2;
int skill2_minimum;
int skill2_maximum;
int tech_price;
int Tool_kind;
int Flatform_kind;
int resource1;
int resource1_amount;
int resource2;
int resource2_amount;
int resource3;
int resource3_amount;
int resource4;
int resource4_amount;
int Result_resource1;
int Result_resource1_amount;
int Result_resource2;
int Result_resource2_amount;
int reutilizerble;
int k1;
int k2;
char explain[500]; // 0710 YGI
char txt[220];
public :
void ReadItemJoin( char *string );
};
#define MAX_LEARN_ITEM_CONVERT 40
typedef struct LEARNITEMCONVERT
{
int iBeforeItemNo;
int iAfterItemNo;
}t_LearnItemConvert;
extern LEARNITEMCONVERT LIC[MAX_LEARN_ITEM_CONVERT];
#define RETURN_SMT_ITEMNO 0
#define RETURN_SMT_DEMAND 1
typedef struct tagMAPSKILLTABLE
{
int type; //老馆利牢 扁贱包访 鸥老牢 版快->0 / NPC 积己 困摹 沥狼->1
int x, y; //秦寸 扁贱加己阑 瘤囱 鸥老狼 谅钎(鸥老窜困) //扁裙夸备->牢磐其捞胶狼 荤侩祈狼 刘措
int skillno; //扁贱加己 绊蜡锅龋
int tile_Range; //秦寸鸥老肺何磐 瓤苞啊 蜡瓤茄 鸥老 芭府(馆瘤抚)
int probability; //秦寸扁贱捞 己傍且 犬伏
int type_Num; //NPC 绊蜡 鸥涝 锅龋(0~99) // NPC老版快俊父 荤侩...
int subType; //秦寸 扁贱狼 窍困 包访 单捞磐蔼
struct tagMAPSKILLTABLE *prev; //捞傈 胶懦 加己 抛捞喉 器牢磐
struct tagMAPSKILLTABLE *next; //促澜 胶懦 加己 器牢磐
} MAPSKILLTABLE, *lpMAPSKILLTABLE;
typedef struct
{
short reclaim_old[ MAX_EARTHSKILL ];
short reclaim[ MAX_EARTHSKILL ];
short reclaimcount;
short mining_old[ MAX_EARTHSKILL ];
short mining[ MAX_EARTHSKILL ];
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -