TuZaKK 1
TuZaKK
Mt2Hizmet 1
Mt2Hizmet
Agora Metin2 1
Agora Metin2
Bvural41 1
Bvural41
kaptanmikro1 1
kaptanmikro1
R 1
Roksam
[DEV]AB 1
[DEV]AB
Sevdamsın 1
Sevdamsın
farkmt2official 1
farkmt2official
emirhanHCL 1
emirhanHCL
Scarlet 1
Scarlet
Hikaye Ekle

Altın Konu ITEM_GIFTBOX ( Sandık'dan İtem Çıkınca Duyuru ) C++

Türkiye'de ilk Mobil & PC Aynı Anda Metin2 Oyna. Triarchonline kalıcı ve uzun ömürlü yapısı ile 24 Temmuz'da açılıyor. | 1-99 Mobil Metin2 Triarch HEMEN TIKLA!

Mantık : Örnek Bir Sandık Açıldıgında içerisinde 183 : Zehir Kılıcı +3 Duyuru geçer..

char_item.cpp açılır. ve aratılır
[CODE lang="cpp" title="c++"]
case ITEM_GIFTBOX:
[/CODE]

içerisinde bulunur.
[CODE lang="cpp" title="c++"]
if (item_gets)
{
if (dwCounts > 1)
ChatPacket(CHAT_TYPE_INFO, LC_TEXT("»óÀÚ¿¡¼ %s °¡ %d °³ ³ª¿Ô½À´Ï´Ù."), item_gets->GetName(), dwCounts);
else
ChatPacket(CHAT_TYPE_INFO, LC_TEXT("»óÀÚ¿¡¼ %s °¡ ³ª¿Ô½À´Ï´Ù."), item_gets->GetName());
}[/CODE]

değiştirilir.
[CODE lang="cpp" title="c++"]
if (item_gets)
{
if (dwCounts > 1)
ChatPacket(CHAT_TYPE_INFO, LC_TEXT("»óÀÚ¿¡¼ %s °¡ %d °³ ³ª¿Ô½À´Ï´Ù."), item_gets->GetName(), dwCounts);
else
ChatPacket(CHAT_TYPE_INFO, LC_TEXT("»óÀÚ¿¡¼ %s °¡ ³ª¿Ô½À´Ï´Ù."), item_gets->GetName());

if (dwVnums == 71084 || dwVnums == 183 || dwVnums == 3160 || dwVnums == 2172 || dwVnums == 1130 || dwVnums == 5120)
{
char szBuf[256];
snprintf(szBuf, sizeof(szBuf), "%s, %s sandığından %s kazandı!", GetName(), item->GetName(), item_gets->GetName());
BroadcastNotice(szBuf);
}
}[/CODE]


dwVnums == 71084 item kodları ayarlayabilirsiniz.
 
Mantık : Örnek Bir Sandık Açıldıgında içerisinde 183 : Zehir Kılıcı +3 Duyuru geçer..

char_item.cpp açılır. ve aratılır
[CODE lang="cpp" title="c++"]
case ITEM_GIFTBOX:
[/CODE]

içerisinde bulunur.
[CODE lang="cpp" title="c++"]
if (item_gets)
{
if (dwCounts > 1)
ChatPacket(CHAT_TYPE_INFO, LC_TEXT("»óÀÚ¿¡¼ %s °¡ %d °³ ³ª¿Ô½À´Ï´Ù."), item_gets->GetName(), dwCounts);
else
ChatPacket(CHAT_TYPE_INFO, LC_TEXT("»óÀÚ¿¡¼ %s °¡ ³ª¿Ô½À´Ï´Ù."), item_gets->GetName());
}[/CODE]

değiştirilir.
[CODE lang="cpp" title="c++"]
if (item_gets)
{
if (dwCounts > 1)
ChatPacket(CHAT_TYPE_INFO, LC_TEXT("»óÀÚ¿¡¼ %s °¡ %d °³ ³ª¿Ô½À´Ï´Ù."), item_gets->GetName(), dwCounts);
else
ChatPacket(CHAT_TYPE_INFO, LC_TEXT("»óÀÚ¿¡¼ %s °¡ ³ª¿Ô½À´Ï´Ù."), item_gets->GetName());

if (dwVnums == 71084 || dwVnums == 183 || dwVnums == 3160 || dwVnums == 2172 || dwVnums == 1130 || dwVnums == 5120)
{
char szBuf[256];
snprintf(szBuf, sizeof(szBuf), "%s, %s sandığından %s kazandı!", GetName(), item->GetName(), item_gets->GetName());
BroadcastNotice(szBuf);
}
}[/CODE]


dwVnums == 71084 item kodları ayarlayabilirsiniz.

paylaşım için thanks
 

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

Geri
Üst