Sevdamsın 1
Sevdamsın
Best Studio 1
Best Studio
abdullahaltnbs 1
abdullahaltnbs
Reklam vermek için turkmmo@gmail.com

/COSTUME CORE DOWNER FİX

Yanlış anlama
aslında costume komutu çalışıyor core vermiyor

Karakterin Kostüm Envanterindeki itemleri sıralıyor
Takılan itemleri söylüyor ayriyetten karakter üzerindeki efsun bilgilerini veriyor..
Core vermemesi gerekir normalde

 
Son düzenleme:
FİXLEME YÖNTEMİNE BAYILDIM

FONKSİYONU KULLANMAK İSTİYENLER
CMD_GENERAL.CPP AÇ
do_costume fonksiyonu içinde;
ARAT
Kod:
    if (pHair)
    {
        const char* itemName = pHair->GetName();
        ch->ChatPacket(CHAT_TYPE_INFO, "  HAIR : %s", itemName);

        for (int i = 0; i < pHair->GetAttributeCount(); ++i)
        {
            const TPlayerItemAttribute& attr = pHair->GetAttribute(i);
            if (0 < attr.bType)
            {
                snprintf(buf, bufferSize, FN_point_string(attr.bType), attr.sValue);
                ch->ChatPacket(CHAT_TYPE_INFO, "     %s", buf);
            }
        }

        if (pHair->IsEquipped() && arg1[0] == 'h')
            ch->UnequipItem(pHair);
    }
DEĞİŞTİR
Kod:
    if (pHair)
    {
        const char* itemName = pHair->GetName();
        ch->ChatPacket(CHAT_TYPE_INFO, "  HAIR : %s", itemName);

        for (int i = 0; i < pHair->GetAttributeCount(); ++i)
        {
            const TPlayerItemAttribute& attr = pHair->GetAttribute(i);
            if (attr.bType > 0)
            {
                const char * pAttrName = FN_point_string(attr.bType);
                if (pAttrName == NULL)
                    continue;
            
                snprintf(buf, sizeof(buf), FN_point_string(attr.bType), attr.sValue);
                ch->ChatPacket(CHAT_TYPE_INFO, "     %s", buf);
            }
        }

        if (pHair->IsEquipped() && arg1[0] == 'h')
            ch->UnequipItem(pHair);
    }

Beyin mi lazım gardaş


NiVcu9.jpg
 

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

Geri
Üst