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!
It's very simple, I suppose some must already have FIX but most do not.
When you give Guild War Under Map if an Observer from your guild enters War and the enemy kills it, the counter will count it causing you to lose the war if they are many observers., although it can only kill you once, it continues to be an advantage.
Search in battle.cpp
after this add:
When you give Guild War Under Map if an Observer from your guild enters War and the enemy kills it, the counter will count it causing you to lose the war if they are many observers., although it can only kill you once, it continues to be an advantage.
Search in battle.cpp
C++:
bool battle_is_attackable(LPCHARACTER ch, LPCHARACTER victim)
{
if (victim->IsDead())
return false;
after this add:
C++:
if (victim->IsObserverMode())
return false;
its should like this for sure
bool battle_is_attackable(LPCHARACTER ch, LPCHARACTER victim)
{
if (victim->IsDead() || victim->IsObserverMode())
return false;
if (ch->IsStun() || ch->IsDead() || ch->IsObserverMode())
return false;
.
.
.
.
bool battle_is_attackable(LPCHARACTER ch, LPCHARACTER victim)
{
if (victim->IsDead() || victim->IsObserverMode())
return false;
if (ch->IsStun() || ch->IsDead() || ch->IsObserverMode())
return false;
.
.
.
.
its should like this for sure
bool battle_is_attackable(LPCHARACTER ch, LPCHARACTER victim)
{
if (victim->IsDead() || victim->IsObserverMode())
return false;
if (ch->IsStun() || ch->IsDead() || ch->IsObserverMode())
return false;
.
.
.
.
The "||" they are as "if" you put a different "if", I don't understand why repeat so many IsDead, the correct thing with yours would be.
C++:
bool battle_is_attackable(LPCHARACTER ch, LPCHARACTER victim)
{
if (victim->IsDead() || victim->IsObserverMode() || ch->IsStun() )
return false;
No need to place as much control
An
C++:
if (condition1 || condition2)
equals
C++:
if (condition1) {
...
}
if (condition2) {
...
}
An
C++:
if (condition1 && condition2)
equals
C++:
if (condition1) {
if (condition2) {
...
}
}
Son düzenleme:
Şu an konuyu görüntüleyenler (Toplam : 0, Üye: 0, Misafir: 0)
Benzer konular
- Cevaplar
- 7
- Görüntüleme
- 2K
Altın Konu
[C++] Prevent Ride in War (PvP) Maps
- Cevaplar
- 7
- Görüntüleme
- 2K
- Cevaplar
- 8
- Görüntüleme
- 4K
- Cevaplar
- 38
- Görüntüleme
- 13K
