代码拉取完成,页面将自动刷新
#pragma once
const int MAX_BAG_ITEMS = 99 ;
const int MAX_USE_ITEMS = 13 ;
//////////////////////////////////////////////////////////////////////////
// 鑒앴써뭐
//////////////////////////////////////////////////////////////////////////
__declspec(align(1)) struct sMirMessage
{
union
{
DWORD dwFlag;
struct
{
WORD wa;
WORD wb;
};
};
WORD wCmd;
WORD w1;
WORD w2;
WORD w3;
};
__declspec(align(1)) struct sAbility
{
//DWORD dwGold;
//WORD wCmd;
//BYTE bProf;
//BYTE bHair;
//BYTE bSex;
//BYTE bOO;
//WORD wUnknow;
BYTE bLevel;
BYTE bUnknow;
BYTE ACLow;
BYTE ACHi;
BYTE MACLow;
BYTE MACHi;
BYTE DCLow;
BYTE DCHi;
BYTE MCLow;
BYTE MCHi;
BYTE SCLow;
BYTE SCHi;
WORD Hp;
WORD Mp;
WORD MaxHp;
WORD MaxMp;
DWORD dwUnknow;
DWORD Exp;
DWORD MaxExp;
WORD BagWeight;
WORD MaxBagWeight;
BYTE BodyWeight;
BYTE MaxBodyWeight;
BYTE HandWeight;
BYTE MaxHandWeight;
};
__declspec(align(1)) struct sMessageBodyWL
{
DWORD lParam1;
DWORD lParam2;
DWORD lTag1;
DWORD lTag2;
};
__declspec(align(1)) struct sCharDesc
{
DWORD Feature;
DWORD Status;
};
__declspec(align(1)) struct sStdItem
{
BYTE NameLen;
char Name[14];
BYTE StdMode;
BYTE Shape;
BYTE Weight;
BYTE AniCount;
BYTE SpecialPwr;
BYTE ItemDesc;
WORD Looks;
WORD DuraMax ;
BYTE AC;
BYTE MaxAC;
BYTE MAC;
BYTE MaxMAC;
BYTE DC;
BYTE MaxDC;
BYTE MC;
BYTE MaxMC;
BYTE SC;
BYTE MaxSC;
BYTE Need; // 0:Level, 1:DC, 2:MC, 3:SC
BYTE NeedLevel;// 1..60 level value...
DWORD Price;
};
__declspec(align(1)) struct sClientItem
{
sStdItem S; //변경된 능력치는 여기에 적용됨.
DWORD MakeIndex;
WORD Dura;
WORD DuraMax;
};
typedef std::list<sClientItem> sClientItemList;
typedef sClientItemList::iterator itClientItem;
class fCompareMakeId{
private:
DWORD m_mid;
public:
fCompareMakeId(DWORD id):m_mid(id){}
bool operator()(const sClientItem& item)const{ return (item.MakeIndex==m_mid); }
};
__declspec(align(1)) struct sDefMagic
{
WORD MagicId;
BYTE MagicNameLen;
char MagicName[12]; //칸 늘릴것
BYTE EffectType;
BYTE Effect;
WORD Spell;
WORD MinPower;
BYTE NeedLevel[4];
long MaxTrain[4];
BYTE MaxTrainLevel; //수련 레벨
BYTE Job; //0: 전사 1:술사 2:도사 99:모두가능
long DelayTime; //한방 쏜다음에 다음 마법을 쓸 수 있는데 걸리는 시간
BYTE DefSpell;
BYTE DefMinPower;
WORD MaxPower;
BYTE DefMaxPower;
BYTE DescLen;
char Desc[15];
};
__declspec(align(1)) struct sClientMagic
{
char Key;
BYTE Level;
long CurTrain;
sDefMagic Def;
};
typedef std::vector<sClientMagic> sClientMagicList;
typedef sClientMagicList::iterator itClientMagic;
//누淪陋구貫零
const int U_DRESS = 0;
const int U_WEAPON = 1;
const int U_RIGHTHAND = 2;
const int U_NECKLACE = 3;
const int U_HELMET = 4;
const int U_ARMRINGL = 5;
const int U_ARMRINGR = 6;
const int U_RINGL = 7;
const int U_RINGR = 8;
const int U_BUJUK = 9;
const int U_BELT = 10;
const int U_BOOTS = 11;
const int U_CHARM = 12;
// For Login Process
const int CM_PROTOCOL = 2000;
const int CM_IDPASSWORD = 2001;
const int CM_ADDNEWUSER = 2002;
const int CM_CHANGEPASSWORD = 2003;
const int CM_UPDATEUSER = 2004;
const int CM_SELECTSERVER = 104;
const int SM_CHGPASSWD_SUCCESS = 506;
const int SM_CHGPASSWD_FAIL = 507;
const int SM_CERTIFICATION_FAIL = 501;
const int SM_ID_NOTFOUND = 502;
const int SM_PASSWD_FAIL = 503;
const int SM_NEWID_SUCCESS = 504;
const int SM_NEWID_FAIL = 505;
const int SM_PASSOK_SELECTSERVER = 529;
const int SM_SELECTSERVER_OK = 530;
const int SM_NEEDUPDATE_ACCOUNT = 531;
const int SM_UPDATEID_SUCCESS = 532;
const int SM_UPDATEID_FAIL = 533;
// For Select Character Process
const int CM_QUERYCHR = 100;
const int CM_NEWCHR = 101;
const int CM_DELCHR = 102;
const int CM_SELCHR = 103;
const int SM_QUERYCHR = 520;
const int SM_NEWCHR_SUCCESS = 521;
const int SM_NEWCHR_FAIL = 522;
const int SM_DELCHR_SUCCESS = 523;
const int SM_DELCHR_FAIL = 524;
const int SM_STARTPLAY = 525;
const int SM_STARTFAIL = 526;
const int SM_QUERYCHR_FAIL = 527;
const int SM_SENDNOTICE = 658;
// For game process
// Client To Server Commands
const int CM_QUERYUSERNAME = 80;
const int CM_QUERYBAGITEMS = 81;
const int CM_DROPITEM = 1000;
const int CM_PICKUP = 1001;
const int CM_TAKEONITEM = 1003;
const int CM_TAKEOFFITEM = 1004;
const int CM_BUTCH = 1007;
const int CM_MAGICKEYCHANGE = 1008;
const int CM_EAT = 1006;
const int CM_CLICKNPC = 1010;
const int CM_MERCHANTDLGSELECT = 1011;
const int CM_MERCHANTQUERYSELLPRICE = 1012;
const int CM_USERSELLITEM = 1013; //아이템 팔기
const int CM_USERBUYITEM = 1014;
const int CM_USERGETDETAILITEM = 1015;
const int CM_DROPGOLD = 1016;
const int CM_TEST = 1017; //테스트
const int CM_LOGINNOTICEOK = 1018;
const int CM_DEALTRY = 1025;
const int CM_WANTMINIMAP = 1033;
const int CM_TURN = 3010;
const int CM_WALK = 3011;
const int CM_SITDOWN = 3012;
const int CM_RUN = 3013;
const int CM_HIT = 3014;
const int CM_HEAVYHIT = 3015;
const int CM_BIGHIT = 3016;
const int CM_SPELL = 3017;
const int CM_POWERHIT = 3018;
const int CM_LONGHIT = 3019;
const int CM_WIDEHIT = 3024;
const int CM_FIREHIT = 3025;
const int CM_SAY = 3030;
const int CM_RIDE = 3031;
// Server to Client Commands
const int SM_RUSH = 6;
const int SM_FIREHIT = 8;
const int SM_BACKSTEP = 9;
const int SM_TURN = 10;
const int SM_WALK = 11;
const int SM_SITDOWN = 12;
const int SM_RUN = 13;
const int SM_HIT = 14;
const int SM_HEAVYHIT = 15;
const int SM_BIGHIT = 16;
const int SM_SPELL = 17;
const int SM_POWERHIT = 18;
const int SM_LONGHIT = 19;
const int SM_DIGUP = 20;
const int SM_DIGDOWN = 21;
const int SM_FLYAXE = 22;
const int SM_LIGHTING = 23;
const int SM_WIDEHIT = 24;
const int SM_ALIVE = 27;
const int SM_DISAPPEAR = 30;
const int SM_STRUCK = 31;
const int SM_DEATH = 32;
const int SM_SKELETON = 33;
const int SM_NOWDEATH = 34;
const int SM_HEAR = 40;
const int SM_FEATURECHANGED = 41;
const int SM_USERNAME = 42;
const int SM_WINEXP = 44;
const int SM_LEVELUP = 45;
const int SM_DAYCHANGING = 46;
const int SM_LOGON = 50;
const int SM_NEWMAP = 51;
const int SM_ABILITY = 52;
const int SM_HEALTHSPELLCHANGED = 53;
const int SM_MAPDESCRIPTION = 54;
const int SM_SPELL2 = 117;
const int SM_SYSMESSAGE = 100;
const int SM_GROUPMESSAGE = 101;
const int SM_CRY = 102;
const int SM_WHISPER = 103;
const int SM_GUILDMESSAGE = 104;
const int SM_ADDITEM = 200;
const int SM_BAGITEMS = 201;
const int SM_ADDMAGIC = 210;
const int SM_SENDMYMAGIC = 211;
const int SM_DROPITEM_SUCCESS = 600;
const int SM_DROPITEM_FAIL = 601;
const int SM_ITEMSHOW = 610;
const int SM_ITEMHIDE = 611;
const int SM_DOOROPEN = 612;
const int SM_TAKEON_OK = 615;
const int SM_TAKEON_FAIL = 616;
const int SM_TAKEOFF_OK = 619;
const int SM_TAKEOFF_FAIL = 620;
const int SM_SENDUSEITEMS = 621;
const int SM_WEIGHTCHANGED = 622;
const int SM_CLEAROBJECTS = 633;
const int SM_CHANGEMAP = 634;
const int SM_EAT_OK = 635;
const int SM_EAT_FAIL = 636;
const int SM_BUTCH = 637;
const int SM_MAGICFIRE = 638;
const int SM_MAGIC_LVEXP = 640;
const int SM_DURACHANGE = 642;
const int SM_MERCHANTSAY = 643;
const int SM_MERCHANTDLGCLOSE = 644;
const int SM_SENDGOODSLIST = 645;
const int SM_SENDUSERSELL = 646;
const int SM_SENDBUYPRICE = 647;
const int SM_USERSELLITEM_OK = 648;
const int SM_USERSELLITEM_FAIL = 649;
const int SM_BUYITEM_SUCCESS = 650;
const int SM_BUYITEM_FAIL = 651;
const int SM_SENDDETAILGOODSLIST = 652;
const int SM_GOLDCHANGED = 653;
const int SM_CHANGELIGHT = 654;
const int SM_CHANGENAMECOLOR = 656;
const int SM_CHARSTATUSCHANGED = 657;
const int SM_AREASTATE = 708; //안전,대련,일반..
const int SM_READMINIMAP_OK = 710;
const int SM_READMINIMAP_FAIL = 711;
const int SM_SUBABILITY = 752;
const int SM_MENU_OK = 767;
const int SM_SHOWEVENT = 804;
const int SM_HIDEEVENT = 805;
const int SM_OPENHEALTH = 1100;
const int SM_CLOSEHEALTH = 1101;
const int SM_CHANGEFACE = 1104;
const int SM_CHECK_CLIENTVALID = 1106; //클라이언트의 수정 여부 확인
const int SM_ITEMUPDATE = 1500;
const int SM_MONSTERSAY = 1501;
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。