Jump to content

[PROBLEM] Costume weapon


Recommended Posts

  • Premium

1129 16:03:35230 :: AttributeError
1129 16:03:35230 :: : 
1129 16:03:35230 :: 'module' object has no attribute 'COSTUME_TYPE_WEAPON'
1129 16:03:35230 ::

https://metin2.download/picture/85l6wc6PHVCp8TE7OKrtSyuYcahZudmS/.png

I added uitooltip.py with:

isCostumeWeapon = 0  

isCostumeWeapon = item.COSTUME_TYPE_WEAPON == itemSubType  

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

On 11/29/2015 at 4:11 PM, Smack'Yin said:

1129 16:03:35230 :: AttributeError
1129 16:03:35230 :: : 
1129 16:03:35230 :: 'module' object has no attribute 'COSTUME_TYPE_WEAPON'
1129 16:03:35230 ::

 https://metin2.download/picture/85l6wc6PHVCp8TE7OKrtSyuYcahZudmS/.png

I added uitooltip.py with:

isCostumeWeapon = 0  

isCostumeWeapon = item.COSTUME_TYPE_WEAPON == itemSubType  

Search:
PyModule_AddIntConstant(poModule, "COSTUME_TYPE_HAIR", CItemData::COSTUME_HAIR);

in PythonItemModule.cpp from UserInterface and add after it:
PyModule_AddIntConstant(poModule, "COSTUME_TYPE_WEAPON", CItemData::COSTUME_WEAPON);

Edited by Metin2 Dev
Core X - External 2 Internal

"Don't be a scammer. Don't be a hacker. Don't be a motherfucker. Karma is a bitch"

Link to comment
Share on other sites

  • Premium
On 11/29/2015 at 5:27 PM, AlexxD said:

Search:
PyModule_AddIntConstant(poModule, "COSTUME_TYPE_HAIR", CItemData::COSTUME_HAIR);

in PythonItemModule.cpp from UserInterface and add after it:
PyModule_AddIntConstant(poModule, "COSTUME_TYPE_WEAPON", CItemData::COSTUME_WEAPON);

I am not sure but most of people have a new released COSTUME_WEAPON from elite and that is not have declared COSTUME_WEAPON so probably won´t work

On 11/29/2015 at 4:11 PM, Smack'Yin said:

1129 16:03:35230 :: AttributeError
1129 16:03:35230 :: : 
1129 16:03:35230 :: 'module' object has no attribute 'COSTUME_TYPE_WEAPON'
1129 16:03:35230 ::

https://metin2.download/picture/85l6wc6PHVCp8TE7OKrtSyuYcahZudmS/.png

I added uitooltip.py with:

isCostumeWeapon = 0  

isCostumeWeapon = item.COSTUME_TYPE_WEAPON == itemSubType  

Try to like this

isCostumeWeapon = item.COSTUME_TYPE_WEAPON_SWORD == itemSubType or item.COSTUME_TYPE_WEAPON_DAGGER == itemSubType or item.COSTUME_TYPE_WEAPON_BOW == itemSubType or item.COSTUME_TYPE_WEAPON_TWOHAND == itemSubType or item.COSTUME_TYPE_WEAPON_BELL == itemSubType or item.COSTUME_TYPE_WEAPON_FAN == itemSubType

 

Edited by Metin2 Dev
Core X - External 2 Internal
  • Love 1
Link to comment
Share on other sites

16 minutes ago, Necro said:

I am not sure but most of people have a new released COSTUME_WEAPON from elite and that is not have declared COSTUME_WEAPON so probably won´t work

Try to like this

isCostumeWeapon = item.COSTUME_TYPE_WEAPON_SWORD == itemSubType or item.COSTUME_TYPE_WEAPON_DAGGER == itemSubType or item.COSTUME_TYPE_WEAPON_BOW == itemSubType or item.COSTUME_TYPE_WEAPON_TWOHAND == itemSubType or item.COSTUME_TYPE_WEAPON_BELL == itemSubType or item.COSTUME_TYPE_WEAPON_FAN == itemSubType

 

Yeah, and if you have wolfman too, add this:
isCostumeWeapon = item.COSTUME_TYPE_WEAPON_SWORD == itemSubType or item.COSTUME_TYPE_WEAPON_DAGGER == itemSubType or item.COSTUME_TYPE_WEAPON_BOW == itemSubType or item.COSTUME_TYPE_WEAPON_TWOHAND == itemSubType or item.COSTUME_TYPE_WEAPON_BELL == itemSubType or item.COSTUME_TYPE_WEAPON_FAN == itemSubType or item.COSTUME_TYPE_WEAPON_CLAW == itemSubType

  • Love 1

"Don't be a scammer. Don't be a hacker. Don't be a motherfucker. Karma is a bitch"

Link to comment
Share on other sites

  • 4 months later...

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.