Ayyıldız2 | 2008 TR Yapısı • 1-99 Orta Emek Destan • Oto Avsız • 10 Temmuz 21:00 HEMEN TIKLA!
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)
Benzer konular
- Cevaplar
- 13
- Görüntüleme
- 880
- Cevaplar
- 8
- Görüntüleme
- 1K
- Cevaplar
- 37
- Görüntüleme
- 2K