Çözüldü kalkan sorunu

  • Konuyu açan Konuyu açan enes turan
  • Açılış Tarihi Açılış Tarihi
  • Yanıt Yanıt 12
  • Gösterim Gösterim 162
Bu konu çözüme ulaştırılmıştır. Çözüm için konuya yazılan tüm yorumları okumayı unutmayın. Eğer konudaki yorumlar sorununuzu çözmediyse yeni bir konu açabilirsiniz.
Durum
İçerik kilitlendiği için mesaj gönderimine kapatıldı.

enes turan

Yardımsever Üye
Yardımsever Üye
MT Üye
Mesaj
559
Çözümler
35
Beğeni
281
Puan
909
Ticaret Puanı
0
Adsız.webp


kalkan takılıyor fakat slotta gözükmüyor

item proto:
Genişlet Daralt Kopyala
13000    ȣ½ň¯Ɛ+0    ITEM_ARMOR    ARMOR_SHIELD    1    NONE    NONE    WEAR_UNIQUE        400    400    13001    217    15    LEVEL    0    LIMIT_NONE    0    APPLY_MOV_SPEED    -2    APPLY_NONE    0    APPLY_NONE    0    0    3    0    0    0    0    0    0    0

length.h:
Genişlet Daralt Kopyala
enum EWearPositions
{
    WEAR_BODY,            // 0
    WEAR_HEAD,            // 1
    WEAR_FOOTS,            // 2
    WEAR_WRIST,            // 3
    WEAR_WEAPON,        // 4
    WEAR_NECK,            // 5
    WEAR_EAR,            // 6
#ifndef ENABLE_ADDITIONAL_EQUIPMENT_PAGE
    WEAR_UNIQUE1,        // 7
    WEAR_UNIQUE2,        // 8
#endif
    WEAR_ARROW,            // 7
    WEAR_SHIELD,        // 8
#ifdef ENABLE_ADDITIONAL_EQUIPMENT_PAGE
    WEAR_BELT,            // 9
    WEAR_PENDANT,        // 10 (PENDANT)
    WEAR_GLOVES,        // 11 (GLOVES)

    // Second Equipment
    WEAR_SECOND_BODY,    // 12
    WEAR_SECOND_HEAD,    // 13
    WEAR_SECOND_FOOTS,    // 14
    WEAR_SECOND_WRIST,    // 15
    WEAR_SECOND_WEAPON,    // 16
    WEAR_SECOND_NECK,    // 17
    WEAR_SECOND_EAR,    // 18
    WEAR_SECOND_ARROW,    // 19
    WEAR_SECOND_SHIELD,    // 20
    WEAR_SECOND_BELT,    // 21
    WEAR_SECOND_PENDANT,    // 22
    WEAR_SECOND_GLOVES,    // 23
#endif

#ifndef ENABLE_ADDITIONAL_EQUIPMENT_PAGE
    WEAR_ABILITY1,        // 11 - 10
    WEAR_ABILITY2,        // 12 - 11
    WEAR_ABILITY3,        // 13 - 12
    WEAR_ABILITY4,        // 14 - 13
    WEAR_ABILITY5,        // 15 - 14
    WEAR_ABILITY6,        // 16 - 15
    WEAR_ABILITY7,        // 17 - 16
    WEAR_ABILITY8,        // 18 - 17
#endif

    WEAR_COSTUME_BODY,    // 24
    WEAR_COSTUME_HAIR,    // 25
#ifdef ENABLE_ACCE_SYSTEM
    WEAR_COSTUME_ACCE,//26
#endif

#ifdef ENABLE_ADDITIONAL_EQUIPMENT_PAGE
    WEAR_UNIQUE1,        // 27
    WEAR_UNIQUE2,        // 28
#else
    WEAR_RING1,            // 22 - 21    :New ring slot 1 (left)
    WEAR_RING2,            // 23 - 22    : New ring slot 2 (right)
    WEAR_BELT,            // 24 - 21    : New belt slot
#endif

itemdata.h:
Genişlet Daralt Kopyala
        enum EWearPositions
        {
            WEAR_BODY,          // 0
            WEAR_HEAD,          // 1
            WEAR_FOOTS,         // 2
            WEAR_WRIST,         // 3
            WEAR_WEAPON,        // 4
            WEAR_NECK,          // 5
            WEAR_EAR,           // 6
#ifndef ENABLE_ADDITIONAL_EQUIPMENT_PAGE
            WEAR_UNIQUE1,       // 7
            WEAR_UNIQUE2,       // 8
#endif
            WEAR_ARROW,         // 9 (7)
            WEAR_SHIELD,        // 10 (8)
#ifdef ENABLE_ADDITIONAL_EQUIPMENT_PAGE
            WEAR_BELT,            // 11 (9)
#endif
            WEAR_COSTUME_BODY,
            WEAR_COSTUME_HAIR,
#ifdef ENABLE_ACCE_SYSTEM
            WEAR_COSTUME_ACCE,
#endif
#ifdef ENABLE_ADDITIONAL_EQUIPMENT_PAGE
            WEAR_UNIQUE1,        // 24 - 23
            WEAR_UNIQUE2,        // 25 - 24
#endif
            WEAR_MAX_NUM,
 
Çözüm
bir müslümanın başına gelirse kafayı yemesin hatayı bulabildim :D

item.cpp:
Genişlet Daralt Kopyala
    else if (GetType() == ITEM_COSTUME)
    {
        if (GetSubType() == COSTUME_BODY)
        {
            return WEAR_COSTUME_BODY;
        }
        else if (GetSubType() == COSTUME_HAIR)
        {
            return WEAR_COSTUME_HAIR;
        }
#ifdef ENABLE_WEAPON_COSTUME_SYSTEM
        else if (GetSubType() == COSTUME_WEAPON)
            return WEAR_COSTUME_WEAPON;
#endif
#ifdef __SASH_SYSTEM__
        else if (GetSubType() == COSTUME_SASH)
            return WEAR_COSTUME_SASH;
#endif
    }
    
normalde böyle olması gerekiyor ama ben 19. satırdaki '}' işaretinden sonra ekleme yaptığım için böyle bir hataya yol açıyormus build sırasında herhangi bir hata...
kalkan typeleri wear shield olucak wear unique değil
 
kalkan typeleri wear shield olucak wear unique değil
Kod:
Genişlet Daralt Kopyala
13000    ȣ½ň¯Ɛ+0    ITEM_ARMOR    ARMOR_SHIELD    1    NONE    NONE    WEAR_SHIELD        400    400    13001    217    15    LEVEL    0    LIMIT_NONE    0    APPLY_MOV_SPEED    -2    APPLY_NONE    0    APPLY_NONE    0    0    3    0    0    0    0    0    0    0

şeklinde düzenledim fakat sonuç yine aynı takılıyor fakat slotta gözükmüyor
 
Kod:
Genişlet Daralt Kopyala
13000    ȣ½ň¯Ɛ+0    ITEM_ARMOR    ARMOR_SHIELD    1    NONE    NONE    WEAR_SHIELD        400    400    13001    217    15    LEVEL    0    LIMIT_NONE    0    APPLY_MOV_SPEED    -2    APPLY_NONE    0    APPLY_NONE    0    0    3    0    0    0    0    0    0    0

şeklinde düzenledim fakat sonuç yine aynı takılıyor fakat slotta gözükmüyor
client ve gamedeki sayıları doğru say önceki konudaki çözüm sayısı yanlış olmuş olabilir. yanlış hatırlamıyorsam 26 olması lazım o sayının. teker teker arttıra arttıra dene sonuca ulaşırsın.
 
client ve gamedeki sayıları doğru say önceki konudaki çözüm sayısı yanlış olmuş olabilir. yanlış hatırlamıyorsam 26 olması lazım o sayının. teker teker arttıra arttıra dene sonuca ulaşırsın.
const DWORD c_New_Equipment_Start = c_Equipment_Start + 27;

25 26 28 29 denedim 25 ve 26 da slotlar kayıyor fakat yükseltince birşey değişmiyor sonuç aynı
 
Kod:
Genişlet Daralt Kopyala
    WEAR_BODY,            // 0
    WEAR_HEAD,            // 1
    WEAR_FOOTS,            // 2
    WEAR_WRIST,            // 3
    WEAR_WEAPON,        // 4
    WEAR_NECK,            // 5
    WEAR_EAR,            // 6
#ifndef ENABLE_ADDITIONAL_EQUIPMENT_PAGE
    WEAR_UNIQUE1,        // 7
    WEAR_UNIQUE2,        // 8
#endif
    WEAR_ARROW,            // 7
    WEAR_SHIELD,        // 8
#ifdef ENABLE_ADDITIONAL_EQUIPMENT_PAGE
    WEAR_BELT,            // 9
    WEAR_PENDANT,        // 10 (PENDANT)
    WEAR_GLOVES,        // 11 (GLOVES)

    // Second Equipment
    WEAR_SECOND_BODY,    // 12
    WEAR_SECOND_HEAD,    // 13
    WEAR_SECOND_FOOTS,    // 14
    WEAR_SECOND_WRIST,    // 15
    WEAR_SECOND_WEAPON,    // 16
    WEAR_SECOND_NECK,    // 17
    WEAR_SECOND_EAR,    // 18
    WEAR_SECOND_ARROW,    // 19
    WEAR_SECOND_SHIELD,    // 20
    WEAR_SECOND_BELT,    // 21
    WEAR_SECOND_PENDANT,    // 22
    WEAR_SECOND_GLOVES,    // 23
#endif

#ifndef ENABLE_ADDITIONAL_EQUIPMENT_PAGE
    WEAR_ABILITY1,        // 11 - 10
    WEAR_ABILITY2,        // 12 - 11
    WEAR_ABILITY3,        // 13 - 12
    WEAR_ABILITY4,        // 14 - 13
    WEAR_ABILITY5,        // 15 - 14
    WEAR_ABILITY6,        // 16 - 15
    WEAR_ABILITY7,        // 17 - 16
    WEAR_ABILITY8,        // 18 - 17
#endif

    WEAR_COSTUME_BODY,    // 24
    WEAR_COSTUME_HAIR,    // 25
#ifdef ENABLE_ACCE_SYSTEM
    WEAR_COSTUME_ACCE,    //26
#endif

#ifdef ENABLE_ADDITIONAL_EQUIPMENT_PAGE
    WEAR_UNIQUE1,        // 27
    WEAR_UNIQUE2,        // 28
#else
    WEAR_RING1,            // 22 - 21    :New ring slot 1 (left)
    WEAR_RING2,            // 23 - 22    : New ring slot 2 (right)
    WEAR_BELT,            // 24 - 21    : New belt slot
#endif

    WEAR_MAX = 32,

@hasanmacit doğru saymışmıyım müsaitsen bakabilirmisin rica etsem ?
 
Kod:
Genişlet Daralt Kopyala
    WEAR_BODY,            // 0
    WEAR_HEAD,            // 1
    WEAR_FOOTS,            // 2
    WEAR_WRIST,            // 3
    WEAR_WEAPON,        // 4
    WEAR_NECK,            // 5
    WEAR_EAR,            // 6
#ifndef ENABLE_ADDITIONAL_EQUIPMENT_PAGE
    WEAR_UNIQUE1,        // 7
    WEAR_UNIQUE2,        // 8
#endif
    WEAR_ARROW,            // 7
    WEAR_SHIELD,        // 8
#ifdef ENABLE_ADDITIONAL_EQUIPMENT_PAGE
    WEAR_BELT,            // 9
    WEAR_PENDANT,        // 10 (PENDANT)
    WEAR_GLOVES,        // 11 (GLOVES)

    // Second Equipment
    WEAR_SECOND_BODY,    // 12
    WEAR_SECOND_HEAD,    // 13
    WEAR_SECOND_FOOTS,    // 14
    WEAR_SECOND_WRIST,    // 15
    WEAR_SECOND_WEAPON,    // 16
    WEAR_SECOND_NECK,    // 17
    WEAR_SECOND_EAR,    // 18
    WEAR_SECOND_ARROW,    // 19
    WEAR_SECOND_SHIELD,    // 20
    WEAR_SECOND_BELT,    // 21
    WEAR_SECOND_PENDANT,    // 22
    WEAR_SECOND_GLOVES,    // 23
#endif

#ifndef ENABLE_ADDITIONAL_EQUIPMENT_PAGE
    WEAR_ABILITY1,        // 11 - 10
    WEAR_ABILITY2,        // 12 - 11
    WEAR_ABILITY3,        // 13 - 12
    WEAR_ABILITY4,        // 14 - 13
    WEAR_ABILITY5,        // 15 - 14
    WEAR_ABILITY6,        // 16 - 15
    WEAR_ABILITY7,        // 17 - 16
    WEAR_ABILITY8,        // 18 - 17
#endif

    WEAR_COSTUME_BODY,    // 24
    WEAR_COSTUME_HAIR,    // 25
#ifdef ENABLE_ACCE_SYSTEM
    WEAR_COSTUME_ACCE,    //26
#endif

#ifdef ENABLE_ADDITIONAL_EQUIPMENT_PAGE
    WEAR_UNIQUE1,        // 27
    WEAR_UNIQUE2,        // 28
#else
    WEAR_RING1,            // 22 - 21    :New ring slot 1 (left)
    WEAR_RING2,            // 23 - 22    : New ring slot 2 (right)
    WEAR_BELT,            // 24 - 21    : New belt slot
#endif

    WEAR_MAX = 32,

@hasanmacit doğru saymışmıyım müsaitsen bakabilirmisin rica etsem ?
26dan başlatman lazım bir de game ve clientteki sayı tam eşit değil eminim paylaşan çocuk yanlış paylaşmış ona dikkat etmen lazım ikisinide tek tek say gerekirse defineleri sil.
 
26dan başlatman lazım bir de game ve clientteki sayı tam eşit değil eminim paylaşan çocuk yanlış paylaşmış ona dikkat etmen lazım ikisinide tek tek say gerekirse defineleri sil.
herşeyi ayarladım sonuç bu bir türlü düzelmiyor
Adsız.webp


length.h:
Genişlet Daralt Kopyala
enum EWearPositions
{
    WEAR_BODY,            // 0
    WEAR_HEAD,            // 1
    WEAR_FOOTS,            // 2
    WEAR_WRIST,            // 3
    WEAR_WEAPON,        // 4
    WEAR_NECK,            // 5
    WEAR_EAR,            // 6
    WEAR_ARROW,            // 7
    WEAR_SHIELD,        // 8
    WEAR_BELT,            // 9
    WEAR_PENDANT,        // 10 (PENDANT)
    WEAR_GLOVES,        // 11 (GLOVES)
    WEAR_SECOND_BODY,    // 12
    WEAR_SECOND_HEAD,    // 13
    WEAR_SECOND_FOOTS,    // 14
    WEAR_SECOND_WRIST,    // 15
    WEAR_SECOND_WEAPON,    // 16
    WEAR_SECOND_NECK,    // 17
    WEAR_SECOND_EAR,    // 18
    WEAR_SECOND_ARROW,    // 19
    WEAR_SECOND_SHIELD,    // 20
    WEAR_SECOND_BELT,    // 21
    WEAR_SECOND_PENDANT,    // 22
    WEAR_SECOND_GLOVES,    // 23
    WEAR_UNIQUE1,        // 24
    WEAR_UNIQUE2,        // 25

    WEAR_COSTUME_BODY,    // 26
    WEAR_COSTUME_HAIR,    // 27
#ifdef ENABLE_ACCE_SYSTEM
    WEAR_COSTUME_ACCE,    //28
#endif

#ifndef ENABLE_ADDITIONAL_EQUIPMENT_PAGE
    WEAR_ABILITY1,       
    WEAR_ABILITY2,       
    WEAR_ABILITY3,       
    WEAR_ABILITY4,       
    WEAR_ABILITY5,       
    WEAR_ABILITY6,       
    WEAR_ABILITY7,       
    WEAR_ABILITY8,       
#endif
    WEAR_MAX = 32,
};

item_length.h:
Genişlet Daralt Kopyala
enum EItemWearableFlag
{
    WEARABLE_BODY    = (1 << 0),
    WEARABLE_HEAD    = (1 << 1),
    WEARABLE_FOOTS    = (1 << 2),
    WEARABLE_WRIST    = (1 << 3),
    WEARABLE_WEAPON    = (1 << 4),
    WEARABLE_NECK    = (1 << 5),
    WEARABLE_EAR    = (1 << 6),
    WEARABLE_ARROW            = (1 << 7),
    WEARABLE_SHIELD            = (1 << 8),
    WEARABLE_BELT            = (1 << 9),
    WEARABLE_PENDANT        = (1 << 10),
    WEARABLE_GLOVES            = (1 << 11),
    WEARABLE_UNIQUE            = (1 << 12),
    WEARABLE_COSTUME_BODY    = (1 << 13),
    WEARABLE_COSTUME_HAIR    = (1 << 14),
#ifdef ENABLE_ACCE_SYSTEM
    WEARABLE_COSTUME_ACCE    = (1 << 15),
#endif

    WEARABLE_ABILITY        = (1 << 16),


};


ItemData.h:
Genişlet Daralt Kopyala
        enum EWearPositions
        {
            WEAR_BODY,            // 0
            WEAR_HEAD,            // 1
            WEAR_FOOTS,            // 2
            WEAR_WRIST,            // 3
            WEAR_WEAPON,        // 4
            WEAR_NECK,            // 5
            WEAR_EAR,            // 6
            WEAR_ARROW,            // 7
            WEAR_SHIELD,        // 8
            WEAR_BELT,            // 9
            WEAR_PENDANT,        // 10 (PENDANT)
            WEAR_GLOVES,        // 11 (GLOVES)
            WEAR_SECOND_BODY,    // 12
            WEAR_SECOND_HEAD,    // 13
            WEAR_SECOND_FOOTS,    // 14
            WEAR_SECOND_WRIST,    // 15
            WEAR_SECOND_WEAPON,    // 16
            WEAR_SECOND_NECK,    // 17
            WEAR_SECOND_EAR,    // 18
            WEAR_SECOND_ARROW,    // 19
            WEAR_SECOND_SHIELD,    // 20
            WEAR_SECOND_BELT,    // 21
            WEAR_SECOND_PENDANT,    // 22
            WEAR_SECOND_GLOVES,    // 23
            WEAR_UNIQUE1,        // 24
            WEAR_UNIQUE2,        // 25

            WEAR_COSTUME_BODY,    // 26
            WEAR_COSTUME_HAIR,    // 27
        #ifdef ENABLE_ACCE_SYSTEM
            WEAR_COSTUME_ACCE,    //28
        #endif

        #ifndef ENABLE_ADDITIONAL_EQUIPMENT_PAGE
            WEAR_ABILITY1,        // 11 - 10
            WEAR_ABILITY2,        // 12 - 11
            WEAR_ABILITY3,        // 13 - 12
            WEAR_ABILITY4,        // 14 - 13
            WEAR_ABILITY5,        // 15 - 14
            WEAR_ABILITY6,        // 16 - 15
            WEAR_ABILITY7,        // 17 - 16
            WEAR_ABILITY8,        // 18 - 17
        #endif
            WEAR_MAX_NUM,
        };

        enum EItemWearableFlag
        {
            WEARABLE_BODY    = (1 << 0),
            WEARABLE_HEAD    = (1 << 1),
            WEARABLE_FOOTS    = (1 << 2),
            WEARABLE_WRIST    = (1 << 3),
            WEARABLE_WEAPON    = (1 << 4),
            WEARABLE_NECK    = (1 << 5),
            WEARABLE_EAR    = (1 << 6),
            WEARABLE_ARROW            = (1 << 7),
            WEARABLE_SHIELD            = (1 << 8),
            WEARABLE_BELT            = (1 << 9),
            WEARABLE_PENDANT        = (1 << 10),
            WEARABLE_GLOVES            = (1 << 11),
            WEARABLE_UNIQUE            = (1 << 12),
            WEARABLE_COSTUME_BODY    = (1 << 13),
            WEARABLE_COSTUME_HAIR    = (1 << 14),
        #ifdef ENABLE_ACCE_SYSTEM
            WEARABLE_COSTUME_ACCE    = (1 << 15),
        #endif

            WEARABLE_ABILITY        = (1 << 16),


        };

GameType.h:
Genişlet Daralt Kopyala
#ifdef ENABLE_ADDITIONAL_EQUIPMENT_PAGE
const DWORD c_Equipment_Body            = c_Equipment_Start + 0;
const DWORD c_Equipment_Head            = c_Equipment_Start + 1;
const DWORD c_Equipment_Shoes            = c_Equipment_Start + 2;
const DWORD c_Equipment_Wrist            = c_Equipment_Start + 3;
const DWORD c_Equipment_Weapon            = c_Equipment_Start + 4;
const DWORD c_Equipment_Neck            = c_Equipment_Start + 5;
const DWORD c_Equipment_Ear                = c_Equipment_Start + 6;
const DWORD c_Equipment_Arrow            = c_Equipment_Start + 7;
const DWORD c_Equipment_Shield            = c_Equipment_Start + 8;
const DWORD c_Equipment_Belt            = c_Equipment_Start + 9;
const DWORD c_Equipment_Pendant            = c_Equipment_Start + 10;
const DWORD c_Equipment_Gloves            = c_Equipment_Start + 11;

const DWORD c_Second_Equipment_Body        = c_Equipment_Start + 12;
const DWORD c_Second_Equipment_Head        = c_Equipment_Start + 13;
const DWORD c_Second_Equipment_Shoes    = c_Equipment_Start + 14;
const DWORD c_Second_Equipment_Wrist    = c_Equipment_Start + 15;
const DWORD c_Second_Equipment_Weapon    = c_Equipment_Start + 16;
const DWORD c_Second_Equipment_Neck        = c_Equipment_Start + 17;
const DWORD c_Second_Equipment_Ear        = c_Equipment_Start + 18;
const DWORD c_Second_Equipment_Arrow    = c_Equipment_Start + 19;
const DWORD c_Second_Equipment_Shield    = c_Equipment_Start + 20;
const DWORD c_Second_Equipment_Belt        = c_Equipment_Start + 21;
const DWORD c_Second_Equipment_Pendant    = c_Equipment_Start + 22;
const DWORD c_Second_Equipment_Gloves    = c_Equipment_Start + 23;

const DWORD c_Equipment_Second_Start    = c_Second_Equipment_Body;

#endif

// 새로 추가된 신규 반지 & 벨트
// 장착형 아이템에 할당할 수 있는 위치가 기존 장비, 채기랍 퀘스트 보상, 코스튬 시스템 등으로 인해서 공간이 잘려있다.
// 이게 다 채기랍 보상 버프를 장착아이템처럼 구현한 ㅅㄲ 때문에 난리났따... ㅆㅂ
//
// 정리하면, 기존 장비창들은 서버DB상 아이템 포지션이 90 ~ 102 이고,
// 2013년 초에 새로 추가되는 슬롯들은 111 ~ 부터 시작한다. 착용 장비에서 최대로 사용할 수 있는 값은 121 까지이고, 122부터는 용혼석에서 사용한다.
#ifdef ENABLE_NEW_EQUIPMENT_SYSTEM

        const DWORD c_New_Equipment_Start = c_Equipment_Start + 24;
        const DWORD c_New_Equipment_Count = 2;
        const DWORD c_Equipment_Unique1 = c_New_Equipment_Start + 0;
        const DWORD c_Equipment_Unique2 = c_New_Equipment_Start + 1;

#endif
#ifdef ENABLE_COSTUME_SYSTEM
    const DWORD c_Costume_Slot_Start    = c_Equipment_Start + 26;    // [주의] 숫자(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;
#ifdef ENABLE_ACCE_SYSTEM
    const DWORD    c_Costume_Slot_Acce        = c_Costume_Slot_Start + 2;
#endif

    const DWORD c_Costume_Slot_Count    = 3;

    const DWORD c_Costume_Slot_End        = c_Costume_Slot_Start + c_Costume_Slot_Count;
#endif


varı yoğu pc den silmek üzereyim :D
 
herşeyi ayarladım sonuç bu bir türlü düzelmiyor
17995 eklentisini görüntüle

length.h:
Genişlet Daralt Kopyala
enum EWearPositions
{
    WEAR_BODY,            // 0
    WEAR_HEAD,            // 1
    WEAR_FOOTS,            // 2
    WEAR_WRIST,            // 3
    WEAR_WEAPON,        // 4
    WEAR_NECK,            // 5
    WEAR_EAR,            // 6
    WEAR_ARROW,            // 7
    WEAR_SHIELD,        // 8
    WEAR_BELT,            // 9
    WEAR_PENDANT,        // 10 (PENDANT)
    WEAR_GLOVES,        // 11 (GLOVES)
    WEAR_SECOND_BODY,    // 12
    WEAR_SECOND_HEAD,    // 13
    WEAR_SECOND_FOOTS,    // 14
    WEAR_SECOND_WRIST,    // 15
    WEAR_SECOND_WEAPON,    // 16
    WEAR_SECOND_NECK,    // 17
    WEAR_SECOND_EAR,    // 18
    WEAR_SECOND_ARROW,    // 19
    WEAR_SECOND_SHIELD,    // 20
    WEAR_SECOND_BELT,    // 21
    WEAR_SECOND_PENDANT,    // 22
    WEAR_SECOND_GLOVES,    // 23
    WEAR_UNIQUE1,        // 24
    WEAR_UNIQUE2,        // 25

    WEAR_COSTUME_BODY,    // 26
    WEAR_COSTUME_HAIR,    // 27
#ifdef ENABLE_ACCE_SYSTEM
    WEAR_COSTUME_ACCE,    //28
#endif

#ifndef ENABLE_ADDITIONAL_EQUIPMENT_PAGE
    WEAR_ABILITY1,      
    WEAR_ABILITY2,      
    WEAR_ABILITY3,      
    WEAR_ABILITY4,      
    WEAR_ABILITY5,      
    WEAR_ABILITY6,      
    WEAR_ABILITY7,      
    WEAR_ABILITY8,      
#endif
    WEAR_MAX = 32,
};

item_length.h:
Genişlet Daralt Kopyala
enum EItemWearableFlag
{
    WEARABLE_BODY    = (1 << 0),
    WEARABLE_HEAD    = (1 << 1),
    WEARABLE_FOOTS    = (1 << 2),
    WEARABLE_WRIST    = (1 << 3),
    WEARABLE_WEAPON    = (1 << 4),
    WEARABLE_NECK    = (1 << 5),
    WEARABLE_EAR    = (1 << 6),
    WEARABLE_ARROW            = (1 << 7),
    WEARABLE_SHIELD            = (1 << 8),
    WEARABLE_BELT            = (1 << 9),
    WEARABLE_PENDANT        = (1 << 10),
    WEARABLE_GLOVES            = (1 << 11),
    WEARABLE_UNIQUE            = (1 << 12),
    WEARABLE_COSTUME_BODY    = (1 << 13),
    WEARABLE_COSTUME_HAIR    = (1 << 14),
#ifdef ENABLE_ACCE_SYSTEM
    WEARABLE_COSTUME_ACCE    = (1 << 15),
#endif

    WEARABLE_ABILITY        = (1 << 16),


};


ItemData.h:
Genişlet Daralt Kopyala
        enum EWearPositions
        {
            WEAR_BODY,            // 0
            WEAR_HEAD,            // 1
            WEAR_FOOTS,            // 2
            WEAR_WRIST,            // 3
            WEAR_WEAPON,        // 4
            WEAR_NECK,            // 5
            WEAR_EAR,            // 6
            WEAR_ARROW,            // 7
            WEAR_SHIELD,        // 8
            WEAR_BELT,            // 9
            WEAR_PENDANT,        // 10 (PENDANT)
            WEAR_GLOVES,        // 11 (GLOVES)
            WEAR_SECOND_BODY,    // 12
            WEAR_SECOND_HEAD,    // 13
            WEAR_SECOND_FOOTS,    // 14
            WEAR_SECOND_WRIST,    // 15
            WEAR_SECOND_WEAPON,    // 16
            WEAR_SECOND_NECK,    // 17
            WEAR_SECOND_EAR,    // 18
            WEAR_SECOND_ARROW,    // 19
            WEAR_SECOND_SHIELD,    // 20
            WEAR_SECOND_BELT,    // 21
            WEAR_SECOND_PENDANT,    // 22
            WEAR_SECOND_GLOVES,    // 23
            WEAR_UNIQUE1,        // 24
            WEAR_UNIQUE2,        // 25

            WEAR_COSTUME_BODY,    // 26
            WEAR_COSTUME_HAIR,    // 27
        #ifdef ENABLE_ACCE_SYSTEM
            WEAR_COSTUME_ACCE,    //28
        #endif

        #ifndef ENABLE_ADDITIONAL_EQUIPMENT_PAGE
            WEAR_ABILITY1,        // 11 - 10
            WEAR_ABILITY2,        // 12 - 11
            WEAR_ABILITY3,        // 13 - 12
            WEAR_ABILITY4,        // 14 - 13
            WEAR_ABILITY5,        // 15 - 14
            WEAR_ABILITY6,        // 16 - 15
            WEAR_ABILITY7,        // 17 - 16
            WEAR_ABILITY8,        // 18 - 17
        #endif
            WEAR_MAX_NUM,
        };

        enum EItemWearableFlag
        {
            WEARABLE_BODY    = (1 << 0),
            WEARABLE_HEAD    = (1 << 1),
            WEARABLE_FOOTS    = (1 << 2),
            WEARABLE_WRIST    = (1 << 3),
            WEARABLE_WEAPON    = (1 << 4),
            WEARABLE_NECK    = (1 << 5),
            WEARABLE_EAR    = (1 << 6),
            WEARABLE_ARROW            = (1 << 7),
            WEARABLE_SHIELD            = (1 << 8),
            WEARABLE_BELT            = (1 << 9),
            WEARABLE_PENDANT        = (1 << 10),
            WEARABLE_GLOVES            = (1 << 11),
            WEARABLE_UNIQUE            = (1 << 12),
            WEARABLE_COSTUME_BODY    = (1 << 13),
            WEARABLE_COSTUME_HAIR    = (1 << 14),
        #ifdef ENABLE_ACCE_SYSTEM
            WEARABLE_COSTUME_ACCE    = (1 << 15),
        #endif

            WEARABLE_ABILITY        = (1 << 16),


        };

GameType.h:
Genişlet Daralt Kopyala
#ifdef ENABLE_ADDITIONAL_EQUIPMENT_PAGE
const DWORD c_Equipment_Body            = c_Equipment_Start + 0;
const DWORD c_Equipment_Head            = c_Equipment_Start + 1;
const DWORD c_Equipment_Shoes            = c_Equipment_Start + 2;
const DWORD c_Equipment_Wrist            = c_Equipment_Start + 3;
const DWORD c_Equipment_Weapon            = c_Equipment_Start + 4;
const DWORD c_Equipment_Neck            = c_Equipment_Start + 5;
const DWORD c_Equipment_Ear                = c_Equipment_Start + 6;
const DWORD c_Equipment_Arrow            = c_Equipment_Start + 7;
const DWORD c_Equipment_Shield            = c_Equipment_Start + 8;
const DWORD c_Equipment_Belt            = c_Equipment_Start + 9;
const DWORD c_Equipment_Pendant            = c_Equipment_Start + 10;
const DWORD c_Equipment_Gloves            = c_Equipment_Start + 11;

const DWORD c_Second_Equipment_Body        = c_Equipment_Start + 12;
const DWORD c_Second_Equipment_Head        = c_Equipment_Start + 13;
const DWORD c_Second_Equipment_Shoes    = c_Equipment_Start + 14;
const DWORD c_Second_Equipment_Wrist    = c_Equipment_Start + 15;
const DWORD c_Second_Equipment_Weapon    = c_Equipment_Start + 16;
const DWORD c_Second_Equipment_Neck        = c_Equipment_Start + 17;
const DWORD c_Second_Equipment_Ear        = c_Equipment_Start + 18;
const DWORD c_Second_Equipment_Arrow    = c_Equipment_Start + 19;
const DWORD c_Second_Equipment_Shield    = c_Equipment_Start + 20;
const DWORD c_Second_Equipment_Belt        = c_Equipment_Start + 21;
const DWORD c_Second_Equipment_Pendant    = c_Equipment_Start + 22;
const DWORD c_Second_Equipment_Gloves    = c_Equipment_Start + 23;

const DWORD c_Equipment_Second_Start    = c_Second_Equipment_Body;

#endif

// 새로 추가된 신규 반지 & 벨트
// 장착형 아이템에 할당할 수 있는 위치가 기존 장비, 채기랍 퀘스트 보상, 코스튬 시스템 등으로 인해서 공간이 잘려있다.
// 이게 다 채기랍 보상 버프를 장착아이템처럼 구현한 ㅅㄲ 때문에 난리났따... ㅆㅂ
//
// 정리하면, 기존 장비창들은 서버DB상 아이템 포지션이 90 ~ 102 이고,
// 2013년 초에 새로 추가되는 슬롯들은 111 ~ 부터 시작한다. 착용 장비에서 최대로 사용할 수 있는 값은 121 까지이고, 122부터는 용혼석에서 사용한다.
#ifdef ENABLE_NEW_EQUIPMENT_SYSTEM

        const DWORD c_New_Equipment_Start = c_Equipment_Start + 24;
        const DWORD c_New_Equipment_Count = 2;
        const DWORD c_Equipment_Unique1 = c_New_Equipment_Start + 0;
        const DWORD c_Equipment_Unique2 = c_New_Equipment_Start + 1;

#endif
#ifdef ENABLE_COSTUME_SYSTEM
    const DWORD c_Costume_Slot_Start    = c_Equipment_Start + 26;    // [주의] 숫자(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;
#ifdef ENABLE_ACCE_SYSTEM
    const DWORD    c_Costume_Slot_Acce        = c_Costume_Slot_Start + 2;
#endif

    const DWORD c_Costume_Slot_Count    = 3;

    const DWORD c_Costume_Slot_End        = c_Costume_Slot_Start + c_Costume_Slot_Count;
#endif


varı yoğu pc den silmek üzereyim :D
uniquenin sırasını 24e almışsın ama envantere daha fazla item giyiliyor. öyle çalışmaması normal. 3 hafta sonra kendi dosyalarımı paylaşabilirim.
 

uniquenin sırasını 24e almışsın ama envantere daha fazla item giyiliyor. öyle çalışmaması normal. 3 hafta sonra kendi dosyalarımı paylaşabilirim.
Hmm
O zaman orjinal sıralamanın üzerine değişiklikleri ve eklenenleri sıralamayı bozmadan eklemeyi deneyeyim
 
Hmm
O zaman orjinal sıralamanın üzerine değişiklikleri ve eklenenleri sıralamayı bozmadan eklemeyi deneyeyim
önce game ve clienti eşitle. daha sonra

Kod:
Genişlet Daralt Kopyala
const DWORD c_New_Equipment_Start = c_Equipment_Start + 24;

buradaki 24 wear uniquenin ilkinin sayısal değerine gelicek şekilde yaz. ama wear unique en sonda olacak ona dikkat et. bunları düzgün yaparsan çözülecektir sıkıntı.
 
bir müslümanın başına gelirse kafayı yemesin hatayı bulabildim :D

item.cpp:
Genişlet Daralt Kopyala
    else if (GetType() == ITEM_COSTUME)
    {
        if (GetSubType() == COSTUME_BODY)
        {
            return WEAR_COSTUME_BODY;
        }
        else if (GetSubType() == COSTUME_HAIR)
        {
            return WEAR_COSTUME_HAIR;
        }
#ifdef ENABLE_WEAPON_COSTUME_SYSTEM
        else if (GetSubType() == COSTUME_WEAPON)
            return WEAR_COSTUME_WEAPON;
#endif
#ifdef __SASH_SYSTEM__
        else if (GetSubType() == COSTUME_SASH)
            return WEAR_COSTUME_SASH;
#endif
    }
    
normalde böyle olması gerekiyor ama ben 19. satırdaki '}' işaretinden sonra ekleme yaptığım için böyle bir hataya yol açıyormus build sırasında herhangi bir hata vermiyor
tekrar tekrar kontrol edince gözüme çarptı.
 
Çözüm
Durum
İçerik kilitlendiği için mesaj gönderimine kapatıldı.
Üst