noisiv 1
noisiv
Manwe Work 1
Manwe Work
kralhakan2009 1
kralhakan2009
Vahsi Uzman 1
Vahsi Uzman
Cannn6161 1
Cannn6161
onur akbaş 1
onur akbaş
PrimeAC 1
PrimeAC
Mt2Hizmet 1
Mt2Hizmet
romegames 1
romegames
Fethi Polat 1
Fethi Polat
xranzei 1
xranzei
Hikaye Ekle
Reklam vermek için turkmmo@gmail.com

Fix - Check kingdom players

  • Konuyu başlatan Konuyu başlatan muchomor1337
  • Başlangıç tarihi Başlangıç tarihi
  • Cevaplar Cevaplar 1
  • Görüntüleme Görüntüleme 603

muchomor1337

Level 2
Üye
Katılım
24 May 2018
Konular
35
Mesajlar
64
Online süresi
16d 13h
Reaksiyon Skoru
89
Altın Konu
0
TM Yaşı
8 Yıl 16 Gün
Başarım Puanı
97
Yaş
34
MmoLira
8,533
DevLira
75
Ticaret - 0%
0   0   0

ROHAN2 WORLD 1-120 TR TİPİ OFFICIAL YOHARA, BALATHOR VE AMON! 80. GÜNÜNDE! +10.000 ONLİNE! HİLE VE BOT %100 ENGELLİ HEMEN TIKLA!

Hello, once upon a time I met a fool who had such a bug in Source that the player was in a different kingdom than he should have been. He didnt have kingdoms 1, 2, 3 but only 0 or 4, which created problems in the game as he didnt have any kingdom. I had never come across such an error in my life, but once I wrote a simple fix for these types of situations, so here you go:
You dont have to have this bug, this fix is for idiots who cant do anything right and take on metin2 and create new bugs

Open:

input_login.cpp
Kod:
Find:

void CInputLogin::CharacterSelect(LPDESC d, const char * data)
{

add before:

bool FixByMuchomor(LPDESC d)
{
    switch (d->GetEmpire())
    {
        case 1:
        case 2:
        case 3:
        return false;
    }

    return true;
}

Now again go:
void CInputLogin::CharacterSelect(LPDESC d, const char * data)

Find:
    player_load_packet.account_id    = c_r.id;
    player_load_packet.player_id    = c_r.players[pinfo->index].dwID;
    player_load_packet.account_index    = pinfo->index;

add after:
    if (FixByMuchomor(d))
    {
        sys_err("FixByMuchomor %d\n", c_r.id);
        d->DelayedDisconnect(0);
        return;
    }

now every player is verified, if he has other kingdom than 1,2,3 then kick from server
 
eüğ thank you.
 

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

Geri
Üst