Scarlet 1
Scarlet
Bvural41 1
Bvural41
mavzermete 1
mavzermete
Fethi Polat 1
Fethi Polat
xranzei 1
xranzei
Hikaye Ekle

Altın Konu MaviAyGames | Grup Tecrübe Paylaşımı Mesafe Kontrolü

HERAKLES Otomatik Avlı kalıcı sunucu. 19 Haziran'da açılıyor. Atius & Wizard güvencesiyle hemen kayıt ol, ön kayıt ödülleri aktif. HEMEN TIKLA!

Grup ile kasılındığı zaman grup üyesi uzakta olduğunda exp gitmiyordu bu düzenleme ile bunun önüne geçilmiş bulunulmaktadır.
Service.h
Kod:
#define ENABLE_PARTY_EXP_FIX

Char_battle.cpp

Arat:

Kod:
        LPCHARACTER pAttacker = CHARACTER_MANAGER::instance().Find(c_VID);

        // NPC°¡ ¶§¸®±âµµ Çϳª? -.-;
        if (!pAttacker || pAttacker->IsNPC() || DISTANCE_APPROX(GetX() - pAttacker->GetX(), GetY() - pAttacker->GetY()) > 5000)
            continue;
Değiştir:
Kod:
#ifdef ENABLE_PARTY_EXP_FIX
        LPCHARACTER pAttacker = CHARACTER_MANAGER::instance().Find(c_VID);

        // NPC°¡ ¶§¸®±âµµ Çϳª? -.-;
        if(!pAttacker || !pAttacker->IsPC())
            continue;

        // Block exp award based on distance
        // Groups have DOUBLE the exp distance to prevent the "exploit" where the party leader gets full exp bonus and some party members don't get exp.
        int dist = DISTANCE_APPROX(GetX()-pAttacker->GetX(), GetY()-pAttacker->GetY());
        if(dist > 10000 || (dist > 5000 && !pAttacker->GetParty()))
            continue;
#else
        LPCHARACTER pAttacker = CHARACTER_MANAGER::instance().Find(c_VID);

        // NPC°¡ ¶§¸®±âµµ Çϳª? -.-;
        if (!pAttacker || pAttacker->IsNPC() || DISTANCE_APPROX(GetX() - pAttacker->GetX(), GetY() - pAttacker->GetY()) > 5000)
            continue;
#endif
 
Son düzenleme:
Service.h
Kod:
#define ENABLE_PARTY_EXP_FIX

Char_battle.cpp

Arat:

Kod:
        LPCHARACTER pAttacker = CHARACTER_MANAGER::instance().Find(c_VID);

        // NPC°¡ ¶§¸®±âµµ Çϳª? -.-;
        if (!pAttacker || pAttacker->IsNPC() || DISTANCE_APPROX(GetX() - pAttacker->GetX(), GetY() - pAttacker->GetY()) > 5000)
            continue;
Değiştir:
Kod:
#ifdef ENABLE_PARTY_EXP_FIX
        LPCHARACTER pAttacker = CHARACTER_MANAGER::instance().Find(c_VID);

        // NPC°¡ ¶§¸®±âµµ Çϳª? -.-;
        if(!pAttacker || !pAttacker->IsPC())
            continue;

        // Block exp award based on distance
        // Groups have DOUBLE the exp distance to prevent the "exploit" where the party leader gets full exp bonus and some party members don't get exp.
        int dist = DISTANCE_APPROX(GetX()-pAttacker->GetX(), GetY()-pAttacker->GetY());
        if(dist > 10000 || (dist > 5000 && !pAttacker->GetParty()))
            continue;
#else
        LPCHARACTER pAttacker = CHARACTER_MANAGER::instance().Find(c_VID);

        // NPC°¡ ¶§¸®±âµµ Çϳª? -.-;
        if (!pAttacker || pAttacker->IsNPC() || DISTANCE_APPROX(GetX() - pAttacker->GetX(), GetY() - pAttacker->GetY()) > 5000)
            continue;
#endif
bu grup kutsamadaki mesafe oranı nerden ayarlanıyor ona bakar mısın?
 
Service.h
Kod:
#define ENABLE_PARTY_EXP_FIX

Char_battle.cpp

Arat:

Kod:
        LPCHARACTER pAttacker = CHARACTER_MANAGER::instance().Find(c_VID);

        // NPC°¡ ¶§¸®±âµµ Çϳª? -.-;
        if (!pAttacker || pAttacker->IsNPC() || DISTANCE_APPROX(GetX() - pAttacker->GetX(), GetY() - pAttacker->GetY()) > 5000)
            continue;
Değiştir:
Kod:
#ifdef ENABLE_PARTY_EXP_FIX
        LPCHARACTER pAttacker = CHARACTER_MANAGER::instance().Find(c_VID);

        // NPC°¡ ¶§¸®±âµµ Çϳª? -.-;
        if(!pAttacker || !pAttacker->IsPC())
            continue;

        // Block exp award based on distance
        // Groups have DOUBLE the exp distance to prevent the "exploit" where the party leader gets full exp bonus and some party members don't get exp.
        int dist = DISTANCE_APPROX(GetX()-pAttacker->GetX(), GetY()-pAttacker->GetY());
        if(dist > 10000 || (dist > 5000 && !pAttacker->GetParty()))
            continue;
#else
        LPCHARACTER pAttacker = CHARACTER_MANAGER::instance().Find(c_VID);

        // NPC°¡ ¶§¸®±âµµ Çϳª? -.-;
        if (!pAttacker || pAttacker->IsNPC() || DISTANCE_APPROX(GetX() - pAttacker->GetX(), GetY() - pAttacker->GetY()) > 5000)
            continue;
#endif
Paylaşım için teşekkürler.
 

Şu an konuyu görüntüleyenler (Toplam : 0, Üye: 0, Misafir: 0)

Geri
Üst