Jump to content

Recommended Posts

root/uiinventory.py

Search x2

if not item.GetItemType() in (item.ITEM_TYPE_WEAPON, item.ITEM_TYPE_ARMOR):


Replace

if not item.GetItemType() in (item.ITEM_TYPE_WEAPON, item.ITEM_TYPE_ARMOR, item.ITEM_TYPE_BELT):

3de4f8673d1e586c7e0b88f651ec4cf0.png


ffc01df6cc1a7f541b7168b8f701e82c.png


item_attribute.cpp

in function int CItem::GetAttributeSetIndex()

Search

if (GetType() == ITEM_ARMOR)

After whole function add

else if (GetType() == ITEM_BELT)
	return ATTRIBUTE_SET_BELT;

EnbQUA5.png

 

UPDATE:

If you want table for item_attr mysql below:

 

1. Open length.h and search: 

ATTRIBUTE_SET_MAX_NUM

and add before:

ATTRIBUTE_SET_BELT,

Like that: https://metin2.download/picture/97TBdRmicEaDlFZppwu21u1P3Kb6Ci19/.png

2. Open ClientManagerBoot.cpp and search: 

bool CClientManager::InitializeItemAttrTable()

put here this:

", belt"

Like that: https://metin2.download/picture/kZkp4UuHKP7YfcZRd8xI50O56gCtc514/.png

 

Search ([!]Careful this line must be in bool CClientManager::InitializeItemAttrTable() )

str_to_number(t.bMaxLevelBySet[ATTRIBUTE_SET_EAR], data[col++]);

and add after:

str_to_number(t.bMaxLevelBySet[ATTRIBUTE_SET_BELT], data[col++]);

Like that: https://metin2.download/picture/8GQV74bdSZl98wmkMfcNROlFz3lLG5I4/.png

 

If you want this for item_attr_rare table make the 2nd step but in function: bool CClientManager::InitializeItemRareTable() 

 

And make this new table (belt) on item_attr & item_attr_rare (if you did for item_attr_rare in ClientManagerBoot.cpp )

 

a7410ee1169fd03047161f39c837325a.png

Edited by Metin2 Dev
Core X - External 2 Internal
  • Metin2 Dev 3
  • Confused 1
  • Good 2
  • Love 5
Link to comment
https://metin2.dev/topic/19397-bonus-on-belts/
Share on other sites

  • 2 weeks later...
Am 9.9.2018 um 07:49 schrieb Supecchi:

I am trying this on pendant items. But in game when i trying add a bonus game says " you cannot change attribute " .

 

Sorry for bad English.

3113213.png

Then u do something wrong. I add this for my own pendant system and it works fine.

Link to comment
https://metin2.dev/topic/19397-bonus-on-belts/#findComment-106415
Share on other sites

  • 1 year later...
  • 3 months later...
  • 11 months later...

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.