Specific Enchantment Value Increase

Developer
Member
Feb
Threads
4
27
34
13
HubMoney
230
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
2,005
2
842
113
HubMoney
1,213
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