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
Char_battle.cpp
Arat:
Değiştir:
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;
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:
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:
Değiştir:Kod:LPCHARACTER pAttacker = CHARACTER_MANAGER::instance().Find(c_VID); // NPC°¡ ¶§¸®±âµµ Çϳª? -.-; if (!pAttacker || pAttacker->IsNPC() || DISTANCE_APPROX(GetX() - pAttacker->GetX(), GetY() - pAttacker->GetY()) > 5000) continue;
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
Service.h
Kod:#define ENABLE_PARTY_EXP_FIX
Char_battle.cpp
Arat:
Değiştir:Kod:LPCHARACTER pAttacker = CHARACTER_MANAGER::instance().Find(c_VID); // NPC°¡ ¶§¸®±âµµ Çϳª? -.-; if (!pAttacker || pAttacker->IsNPC() || DISTANCE_APPROX(GetX() - pAttacker->GetX(), GetY() - pAttacker->GetY()) > 5000) continue;
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.
Yorumun için teşekkürler.Paylaşım için teşekkürler.
Grup bugu denilen olayı aktifleştirmiş oluyorsunuz bu kodlar ile kullanacak olan arkadaşlar bu yorumumu okusunlar.
Şu an konuyu görüntüleyenler (Toplam : 0, Üye: 0, Misafir: 0)
Benzer konular
- Cevaplar
- 6
- Görüntüleme
- 294
- Cevaplar
- 14
- Görüntüleme
- 715
- Cevaplar
- 37
- Görüntüleme
- 2K
- Cevaplar
- 8
- Görüntüleme
- 2K
