Bvural41 1
Bvural41
emirhanHCL 1
emirhanHCL
R 1
Roksam
[DEV]AB 1
[DEV]AB
farkmt2official 1
farkmt2official
TuZaKK 1
TuZaKK
Mt2Hizmet 1
Mt2Hizmet
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