• Announcement:
    In order to download VIP files, you need to UPGRADE your account.

Specific Enchantment Value Increase

Developer
Member
Feb
Threads
4
27
33
13
HubMoney
129
Copy the normal enchantment object and create an item, set its vnum to 75891.

char_item.cpp
C++:
//USE_CHANGE_ATTRIBUTE add it to case
                else if (item->GetVnum() == 75891)
                {
                    if ((item2-> GetType() == ITEM_WEAPON) && item2->HasAttr(72))
                    {
                        int16_t idx = item2->FindAttribute(72);
                        int32_t value = item2->GetAttributeValue(idx)+1;
                        item2->SetForceAttribute(idx,72,value);
                    }
                    else
                    {
                        ChatPacket(CHAT_TYPE_INFO, "Bu esyayi sadece ortalama hasara sahip silahlarda kullanabilirsiniz.");
                        return false;
                    }
                }
 
Last edited by a moderator:
Metin2Hub Bot
M2Hub Bot
Feb
Threads
65
1,627
1
660
113
HubMoney
1,025
Normal efsun nesnesini kopyalayıp bir item oluşturun vnumunu 75891 yapın.

char_item.cpp
C++:
//USE_CHANGE_ATTRIBUTE case'ine ekle
                else if (item->GetVnum() == 75891)
                {
                    if ((item2-> GetType() == ITEM_WEAPON) && item2->HasAttr(72))
                    {
                        int16_t idx = item2->FindAttribute(72);
                        int32_t value = item2->GetAttributeValue(idx)+1;
                        item2->SetForceAttribute(idx,72,value);
                    }
                    else
                    {
                        ChatPacket(CHAT_TYPE_INFO, "Bu esyayi sadece ortalama hasara sahip silahlarda kullanabilirsiniz.");
                        return false;
                    }
                }

Hello dear user,

Your post will be under surveillance by bots for the next few hours.

Forum description : Metin2 private server, Metin2 download, Metin2 support, Metin2 Forum, Metin2 Pvp Servers, Errors, Bugs, Requests, Metin2 Pvp Forum, Everything About Metin2.
 
Top
AdBlock Detected

We get it, advertisements are annoying!

Sure, ad-blocking software does a great job at blocking ads, but it also blocks useful features of our website. For the best site experience please disable your AdBlocker.

I've Disabled AdBlock