Nem a helyére megy és a funkciója is rossz

Indította Deadly2000, 2018-10-19, 16:14:16

#ifdef ENABLE_NEW_EQUIPMENT_SYSTEM
// #ifdef ENABLE_SASH_SYSTEM
// const DWORD c_New_Equipment_Start = c_Equipment_Start + 21 + 1;
// #else
// const DWORD c_New_Equipment_Start = c_Equipment_Start + 21;
// #endif
const DWORD c_New_Equipment_Start = c_Equipment_Start + 26;
const DWORD c_New_Equipment_Count = 3;
const DWORD c_Equipment_Ring1 = c_New_Equipment_Start + 0;
const DWORD c_Equipment_Ring2 = c_New_Equipment_Start + 1;
const DWORD c_Equipment_Belt  = c_New_Equipment_Start + 2;;
#endif


//BODY,HAIR,WEAPON,MOUNT,SASH,BODY_E,WEAPON_E --- 7



#ifdef ENABLE_COSTUME_SYSTEM
const DWORD c_Costume_Slot_Start = c_Equipment_Start + 19; // [ÁÖŔÇ] ĽýŔÚ(19) ÇϵĺÄÚµů ÁÖŔÇ. ÇöŔç Ľ­ąöżˇĽ­ ÄÚ˝şĂő ˝˝·ÔŔş 19şÎĹÍŔÓ. Ľ­ąö common/length.h ĆÄŔĎŔÇ EWearPositions ż­°ĹÇü Âü°í.
const DWORD c_Costume_Slot_Body = c_Costume_Slot_Start + 0;
const DWORD c_Costume_Slot_Hair = c_Costume_Slot_Start + 1;
const DWORD c_Costume_Slot_Weapon = c_Costume_Slot_Start + 2;
const DWORD c_Costume_Slot_Mount = c_Costume_Slot_Start + 3;
// const DWORD c_Costume_Slot_Acce = c_Costume_Slot_Start + 4;
#ifdef ENABLE_SASH_SYSTEM
const DWORD c_Costume_Slot_Sash = c_Costume_Slot_Start + 4;
const DWORD c_Costume_Effect_Body = c_Costume_Slot_Start + 5;
const DWORD c_Costume_Effect_Weapon = c_Costume_Slot_Start + 6;
#endif
const DWORD c_Costume_Slot_Count = 7;
// #ifdef ENABLE_SASH_SYSTEM
// const DWORD c_Costume_Slot_Count = 3;
// #else
// const DWORD c_Costume_Slot_Count = 2;
// #endif
const DWORD c_Costume_Slot_End = c_Costume_Slot_Start + c_Costume_Slot_Count;
#endif


Beszélünk egy ilyenről (hasonló rendszer mint a pánt
const DWORD c_Costume_Effect_Body = c_Costume_Slot_Start + 5;
const DWORD c_Costume_Effect_Weapon = c_Costume_Slot_Start + 6;


Nos elvileg beállítottam mit hova vegyen fel ,de nem jött össze, a pántot venné fel kosztümfegyinek és ezeket pedig pánt helyett veszi fel

A length.h így néz ki


enum EWearPositions
{
WEAR_BODY, // 0
WEAR_HEAD, // 1
WEAR_FOOTS, // 2
WEAR_WRIST, // 3
WEAR_WEAPON, // 4
WEAR_NECK, // 5
WEAR_EAR, // 6
WEAR_UNIQUE1, // 7
WEAR_UNIQUE2, // 8
WEAR_ARROW, // 9
WEAR_SHIELD, // 10
    WEAR_ABILITY1,  // 11
    WEAR_ABILITY2,  // 12
    WEAR_ABILITY3,  // 13
    WEAR_ABILITY4,  // 14
    WEAR_ABILITY5,  // 15
    WEAR_ABILITY6,  // 16
    WEAR_ABILITY7,  // 17
    WEAR_ABILITY8,  // 18
WEAR_COSTUME_BODY, // 19
WEAR_COSTUME_HAIR, // 20
WEAR_COSTUME_WEAPON,// 21
WEAR_COSTUME_MOUNT, // 22
#ifdef __SASH_SYSTEM__
WEAR_COSTUME_SASH, // 23
#endif

WEAR_EFFECT_ARMOR,  // 24
WEAR_EFFECT_WEAPON, // 25
WEAR_RING1, // 26 : ˝Ĺ±Ô ąÝÁö˝˝·Ô1 (żŢÂĘ)
WEAR_RING2, // 27 : ˝Ĺ±Ô ąÝÁö˝˝·Ô2 (żŔ¸ĄÂĘ)

WEAR_BELT, // 28 : ˝Ĺ±Ô ş§Ć®˝˝·Ô

WEAR_MAX = 32 //
};