farkmt2official 1
farkmt2official
TuZaKK 1
TuZaKK
Test5410 1
Test5410
Sinqapur 1
Sinqapur
Bvural41 1
Bvural41
emirhanHCL 1
emirhanHCL
Hikaye Ekle

Cannot attack mob if my level is too hight

This little code let you not attack mob if difference between you level and mob lever is over 15

C++:
//Battle.cpp
//in bool battle_is_attackable(LPCHARACTER ch, LPCHARACTER victim) search:

    if (victim->IsDead())
        return false;
  
//Add Under:

    if (!(victim->IsPC()))
    {
        if (ch->GetLevel() - victim->GetLevel() > 15)
        {
            return false;
        }
    }

 
Son düzenleme:

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

Geri
Üst