Bvural41 1
Bvural41
mannaxxx 1
mannaxxx
Agora Metin2 1
Agora Metin2
Mt2Hizmet 1
Mt2Hizmet
berkmenoo 1
berkmenoo
Hikaye Ekle

Rank Points Adjustment with Alignment Limit

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


Ranks point with automat Limit

Char_item.cpp code (When value0 in item_proto > eg. 1000)

Kod:
    case 71107:
    case 39032:
        {
            int MuchomorTuByl = item->GetValue(0);

            if (GetAlignment() >= 200000)
            {
                ChatPacket(CHAT_TYPE_INFO, ("You Have Limit!"));
                return false;
            }

            if (GetAlignment() + MuchomorTuByl * 10 > 200000)
            {
                MuchomorTuByl = (200000 - GetAlignment()) / 10;
                if ((200000 - GetAlignment()) % 10 > 0)
                {
                    MuchomorTuByl += 1;
                }
            }

            UpdateAlignment(MuchomorTuByl * 10);
            item->SetCount(item->GetCount() - 1);

            ChatPacket(CHAT_TYPE_INFO, ("Added - %d ranks points."), MuchomorTuByl);
        }
        break;
 


Rangsorolja a pontot automata Limittel

Char_item.cpp kód (Amikor value0 az item_proto > pl. 1000)

Kod:
 71107-es eset:
    39032 eset:
        {
            int MuchomorTuByl = item->GetValue(0);

            if (GetAlignment() >= 200000)
            {
                ChatPacket(CHAT_TYPE_INFO, ("Van határod!"));
                return false;
            }

            if (GetAlignment() + MuchomorTuByl * 10 > 200000)
            {
                MuchomorTuByl = (200000 - GetAlignment()) / 10;
                if ((200000 - GetAlignment()) % 10 > 0)
                {
                    MuchomorTuByl += 1;
                }
            }

            UpdateAlignment (MuchomorTuByl * 10);
            item->SetCount(elem->GetCount() - 1);

            ChatPacket(CHAT_TYPE_INFO, ("Hozzáadva - %d pontot rangsorol."), MuchomorTuByl);
        }
        szünet;
[/KÓD]
[/QUOTE]
t
 

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

Geri
Üst