📄 itemmgr.h
字号:
// ItemMgr.h: interface for the CItemMgr class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_ITEMMGR_H__CA091E53_778D_4AE5_85BC_B3E5D27503CF__INCLUDED_)
#define AFX_ITEMMGR_H__CA091E53_778D_4AE5_85BC_B3E5D27503CF__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
enum eGenderType
{
FEMALE =0,
MALE =1,
};
enum eSpellType
{
WIZARD_SPELL = 0,
PRIEST_SPELL = 1,
ACTIVE_COMBAT = 3,
PASSIVE_COMBAT = 4,
RECOVERY_COMBAT= 5,// 030415 kyo
};
const int MAX_MONEY = 1000000;
const int MAX_DIVIDE_ITEM = 1000000;
enum eDefinedItemNo
{
IN_COIN = 10029,
IN_COINS = 10030,
IN_NEW_COIN = 10122,
IN_NEW_COINS = 10123,
IN_RED_SIGNET = 10058,
IN_BLUE_SIGNET = 10059,
IN_STEAL_RESULT = 10180,//归厘固
};
//give rare item 俊辑 静绰芭
#define RARE_ABLE 0x0001 //备泅 登绢 乐唱?
#define RARE_ABLE_SQUAD 0x0002 //何措饭绢
#define RARE_ABLE_GAMBLE_ROOM_4 0x0004 //白喉 4锅
#define RARE_ABLE_GAMBLE_ROOM_5 0x0008 //白喉 5锅
#define RARE_ABLE_OTHER 0x0010 //
////////////////////////////////////////////////////////////////////////////////////////
// CharacterItemMgr 俊辑 荤侩
////////////////////////////////////////////////////////////////////////////////////////
const int ITEM_EQUIP_MAX =8;
const int ITEM_QUICK_MAX =6;
const int ITEM_INV_MAX =72; //3*3*8
const int ITEM_BANK_MAX =90; //5*3*6
const int ITEM_HAND_MAX =1;
const int ITEM_BUFFER_MAX =1;
enum eHighLv
{
H_LV_NO_HIGH_ITEM = 0,
H_LV_HIGH_ITEM = 1,
H_LV_LEGEND_ITEM = 2,
};
///////////////////////////////////////////////////////////////////////////
// ITEMATTR 包访 备炼眉
///////////////////////////////////////////////////////////////////////////
typedef struct ITEMATTR//011130 lsw
{
short int item_no;
unsigned int attr[6];//捞芭 unsigned 滑巴 .. 唱吝俊
} ItemAttr, *lpItemAttr;
const int SIZE_OF_INV =(ITEM_INV_MAX * sizeof( ITEMATTR ));
const int SIZE_OF_EQUIP =(ITEM_EQUIP_MAX * sizeof( ITEMATTR ));
const int SIZE_OF_QUICK =(ITEM_QUICK_MAX * sizeof( ITEMATTR ));
const int SIZE_OF_BANKITEM =(ITEM_BANK_MAX * sizeof( ITEMATTR ));
const int SIZE_OF_HAND =(ITEM_HAND_MAX * sizeof( ITEMATTR ));
const int SIZE_OF_BUFFER =(ITEM_BUFFER_MAX * sizeof( ITEMATTR ));
#define BASIC_ANI_MAX 4//酒捞袍俊 狼秦辑 焊捞绰 局聪皋捞记 肮荐 WT_ARMOR, WT_HELMET, WT_WEAPON, WT_SHIELD 4啊瘤
#define EXTENSION_ANI_MAX 3//酒捞袍俊 狼秦辑 焊捞绰 局聪皋捞记 犬厘蒲 ぱぱ;; 噶肚客 卖..
typedef struct ITEMRAREMAIN
{
DWORD grade : 4;//殿鞭
DWORD soksung1 : 8;//加己1
DWORD soksung2 : 8;//加己2 钢萍 加己
DWORD soksung3 : 8;//矫埃殿鞭
DWORD iHighLevel : 3;//敲矾胶 鸥涝 蔼捞 乐促搁 IsDynamicRare-->绰 馆靛矫 0 捞绢具 茄促
DWORD IsDynamicRare : 1;//1 捞搁 扁瓷 酒捞袍 0 捞搁 饭绢 酒捞袍
}RareMain, *LPRareMain;
typedef struct t_POS
{
char type ;
short int p1, p2, p3 ;
} POS ;
typedef struct tag_K_ITEM
{
ITEMATTR item_attr;
POS item_pos;
}K_ITEM, *lpITEM;
// 040105 YGI 焊拱
///////////////////////////////////////////////////////
struct CTreasureMapItem
{
DWORD mapnumber :7;
DWORD x :10;
DWORD y :10;
// DWORD use :1; // 荤侩沁绰啊?
DWORD isChecked :1; // 积己茄 饶俊 谅钎甫 掘绢 吭绰啊?
DWORD offset :2;
DWORD offset2 :2;
};
extern CTreasureMapItem GetTreasureAttr( ItemAttr *item );
///////////////////////////////////////////////////////////////////////////
// 胶懦 包访
///////////////////////////////////////////////////////////////////////////
const int MAX_SKILL_EXP = 45;
typedef struct SkillExp
{
DWORD skillexp: 20 ;//胶懦 版氰摹
DWORD rare : 12 ;//饭绢 己傍伏
}t_skillexp, *LPSKILLEXP;
typedef struct SkillExp2
{
DWORD skillexp : 20 ;//胶懦 版氰摹
DWORD makecount : 6 ;//父电 肮荐
DWORD day : 3 ;//历厘等 朝楼
DWORD month : 3 ;//历厘等 朝楼
}t_skillexp2, *LPSKILLEXP2;
typedef struct SkillExp3//021030 lsw
{
DWORD skillType : 8 ;//胶懦鸥涝
DWORD year : 12 ;//斥档
DWORD day : 12 ;//朝楼
}t_SkillExp3,*LPSKILLEXP3;
///////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////
// 饭绢 捞棋飘
///////////////////////////////////////////////////////////////////////////
typedef struct STATICRAREEFFECT
{
short nPower ;//酒捞袍狼 拱府利 Damage 刘啊
short nAccurate ;//拱府利 傍拜 己傍伏 刘啊 (鸥拜矫 miss 犬伏 皑家)
short nWise ;//付过 某胶泼 矫埃 00父怒 窜绵 short nPhysicDmg ;//单固瘤 固府 备窍扁
short nBear ;//某胶泼 蜡瘤 矫埃 00父怒 刘啊 short nPhysicDmgPlusRate ;//010607 lsw 单固瘤 欺季飘 刘啊啦
short nDistant ;//傍拜 裹困啊 钢菌阑 锭狼 单固瘤 刘啊 (泅犁 100%/90%/85%肺 皑家)
short nVigor ;//酒捞袍狼 拱府利 Damage % 刘啊 short nPhysicAttackRate ;
short nCurse ;//磊脚捞 矫傈茄 历林 拌凯 付过 瓤苞 瘤加 矫埃 00 刘啊 short nPhysicDefenceRate ;
short nAid ;//磊脚捞 矫傈茄 焊炼 拌凯 付过 瓤苞 瘤加 矫埃 00 刘啊
short nMasking ;//磊脚捞 矫傈茄 焊龋 拌凯 付过 瓤苞 瘤加 矫埃 00 刘啊 short nAc ;
short nPiercing ;//00% 犬伏肺 惑措狼 焊龋 拌凯 付过阑 公矫窍咯 拱府利 单固瘤甫 涝塞 short nMoveSpeed ;
short nBasicResist ;//00% 犬伏肺 惑措狼 付过 历亲仿阑 公矫(扁夯历亲仿)窍咯 付过 单固瘤甫 涝塞
short nHardest ;//ac 刘啊 int iHpMax ;
short nSmart ;//拱府利 傍拜 雀乔啦 刘啊 (惑措啊 拱府利 鸥拜矫 miss 犬伏 刘啊) int iManaMax ;
short nResist_freeze ;//倔澜历亲仿 刘啊 int iDivineMax ;
short nResist_venom ;//刀历亲仿 刘啊 int iHealthMax ;
short nResist_lightning ;//傈拜历亲仿 刘啊
short nResist_blaze ;//阂历亲仿 刘啊 short nHpMaxPlusRate ;
short nResist_paralysis ;//付厚历亲仿 刘啊 short nManaMaxPlusRate ;
short nResist_holy ;//脚过历亲仿 刘啊 short nDivineMaxPlusRate ;
short nResist_all ;//葛电 历亲仿 刘啊
short nSpeed ;//捞悼 加档 刘啊
short nLife ;//Life max 刘啊 short nStr ;
short nMana ;//Mana max 刘啊 short nDex ;
short nDivine ;//Divine max 刘啊 short nCon ;
short nHealth ;//Health max 刘啊 short nWis ;
short nBrood ;//Life max % 刘啊 short nInt ;
short nMind ;//Mana max % 刘啊 short nChar ;
short nSpirit ;//Divine max % 刘啊 short nEndu ;
short nYouth ;//Health max % 刘啊 short nMoveP ;
short nFatal ;//Life 1雀 磊悼 雀汗樊 刘啊 short nMoral ;
short nMagic ;//Mana 1雀 磊悼 雀汗樊 刘啊 short nLuck ;
short nNature ;//Divine 1雀 磊悼 雀汗樊 刘啊 short nWs ;
short nStrength ;//str 刘啊 short nPs ;
short nDexterity ;//dex 刘啊
short nConstitution ;//con 刘啊 short nResistIce ;
short nWisdom ;//wis 刘啊 short nResistElect ;
short nIntelligence ;//int 刘啊 short nResistFire ;
short nCharisma ;//cha 刘啊 short nResistHoly ;
short nEndurance ;//endu 刘啊 short nResistPoison;
short nMovement ;//movp 刘啊 short nResistCurse ;
short nMoral ;//mor 刘啊
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -