Premium Necro 78 Posted August 4, 2016 Premium Share Posted August 4, 2016 There is a small configuration to get bonus of pet. Maybe somebody use it. How it looks in game: In uitooltip.py -. search (item.ITEM_TYPE_QUEST == itemType:) and after this statement: if itemVnum >= 53001 and itemVnum <= 53026: self.AppendSpace(5) for g in xrange(item.ITEM_APPLY_MAX_NUM): (affectType, affectValue) = item.GetAffect(g) affectString = self.__GetAffectString(affectType, affectValue) if affectString: affectColor = self.GetChangeTextLineColor(affectValue) self.AppendTextLine(affectString, affectColor) its all. PS: If you dont have a item.ITEM_TYPE_QUEST == itemType: Just find elif item.ITEM_TYPE_USE == itemType: and after add item.ITEM_TYPE_QUEST == itemType: Looks like: elif item.ITEM_TYPE_USE == itemType: ..... ..... elif item.ITEM_TYPE_QUEST == itemType: This is nothing special but i think it looks good 1 6 Link to comment Share on other sites More sharing options...
kasko30 19 Posted August 12, 2016 Share Posted August 12, 2016 Thank you very much Link to comment Share on other sites More sharing options...
alondark 59 Posted August 13, 2016 Share Posted August 13, 2016 bune amk speak englız thank Link to comment Share on other sites More sharing options...
Premium Mano 22 Posted August 15, 2016 Premium Share Posted August 15, 2016 i tried to make it also with costume mount Spoiler elif item.ITEM_TYPE_COSTUME == itemType: self.__AppendLimitInformation() and this for show the bounses Spoiler elif item.ITEM_TYPE_COSTUME == itemType: if itemVnum >= 52001 and itemVnum <= 52200: self.AppendSpace(5) for g in xrange(item.ITEM_APPLY_MAX_NUM): (affectType, affectValue) = item.GetAffect(g) affectString = self.__GetAffectString(affectType, affectValue) if affectString: affectColor = self.GetChangeTextLineColor(affectValue) self.AppendTextLine(affectString, affectColor) for i in xrange(item.LIMIT_MAX_NUM): (limitType, limitValue) = item.GetLimit(i) Spoiler if app.ENABLE_COSTUME_SYSTEM: if item.ITEM_TYPE_COSTUME == itemType: isCostumeItem = 1 isCostumeHair = item.COSTUME_TYPE_HAIR == itemSubType isCostumeBody = item.COSTUME_TYPE_BODY == itemSubType isCostumeMount = item.COSTUME_TYPE_MOUNT == itemSubType if app.ENABLE_COSTUME_WEAPON_SYSTEM: isCostumeWeapon = item.COSTUME_TYPE_WEAPON == itemSubType isCostumeAcce = item.COSTUME_TYPE_ACCE == itemSubType but it doesn't work btw syserr is clean 1 Link to comment Share on other sites More sharing options...
DexterSK 14 Posted August 27, 2016 Share Posted August 27, 2016 On 13. 8. 2016 at 2:20 AM, alondark said: bune amk speak englız thank METIN2 TURK? 1 Link to comment Share on other sites More sharing options...
alondark 59 Posted August 27, 2016 Share Posted August 27, 2016 1 hour ago, DexterSK said: METIN2 TURK? yes turk Link to comment Share on other sites More sharing options...
Draktharon 32 Posted August 27, 2016 Share Posted August 27, 2016 Thank u for share it works, tested Link to comment Share on other sites More sharing options...
Premium North 1174 Posted November 13, 2017 Premium Share Posted November 13, 2017 (edited) Code updated, that one posted wasn`t complete on my client (wasn`t appending the info to the space). ## Start of Pet System Bonus info ## elif itemVnum >= 53001 and itemVnum <= 53999: self.AppendSpace(5) for g in xrange(item.ITEM_APPLY_MAX_NUM): (affectType, affectValue) = item.GetAffect(g) affectString = self.__GetAffectString(affectType, affectValue) if affectString: affectColor = grp.GenerateColor(0.3824, 0.5804, 0.9824, 1.0) # You can play here for the text color. self.AppendTextLine(affectString, affectColor) self.__AppendAttributeInformation(attrSlot) ## End of Pet System Bonus info ## Some screenshots: For who doesn`t have a brain, here is the tabulation: Hope it will be useful to someone. Edited August 20, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
TRBizeps 49 Posted November 15, 2017 Share Posted November 15, 2017 And why dont you just simply Append the bonus ? Link to comment Share on other sites More sharing options...
Premium North 1174 Posted November 16, 2017 Premium Share Posted November 16, 2017 (edited) Snippet updated to show the LIMIT information in the proto if there are any. ## Start of Pet System Bonus info ## elif itemVnum >= 53001 and itemVnum <= 53999: self.AppendSpace(5) for g in xrange(item.ITEM_APPLY_MAX_NUM): (affectType, affectValue) = item.GetAffect(g) affectString = self.__GetAffectString(affectType, affectValue) if affectString: affectColor = grp.GenerateColor(0.3824, 0.5804, 0.9824, 1.0) # You can play here for the text color. self.AppendTextLine(affectString, affectColor) self.__AppendAttributeInformation(attrSlot) bHasRealtimeFlag = 0 for i in xrange(item.LIMIT_MAX_NUM): (limitType, limitValue) = item.GetLimit(i) if item.LIMIT_REAL_TIME == limitType: bHasRealtimeFlag = 1 if bHasRealtimeFlag == 1: self.AppendMallItemLastTime(metinSlot[0]) ## End of Pet System Bonus info ## Result: Edited August 20, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Premium North 1174 Posted November 16, 2017 Premium Share Posted November 16, 2017 (edited) ## Start of Pet/Mount System Bonus info ## elif itemVnum >= 53001 and itemVnum <= 53999 or item.GetItemSubType() == item.COSTUME_TYPE_MOUNT: self.AppendSpace(5) for g in xrange(item.ITEM_APPLY_MAX_NUM): (affectType, affectValue) = item.GetAffect(g) affectString = self.__GetAffectString(affectType, affectValue) if affectString: affectColor = grp.GenerateColor(0.3824, 0.5804, 0.9824, 1.0) # You can play here for the text color. self.AppendTextLine(affectString, affectColor) self.__AppendAttributeInformation(attrSlot) bHasRealtimeFlag = 0 for i in xrange(item.LIMIT_MAX_NUM): (limitType, limitValue) = item.GetLimit(i) if item.LIMIT_REAL_TIME == limitType: bHasRealtimeFlag = 1 if bHasRealtimeFlag == 1: self.AppendMallItemLastTime(metinSlot[0]) ## End of Pet/Mount System Bonus info ## Sorry, reupdated with the mount in the check aswell, i didn`t have any limits on that seal but if you have any they will apply as for the pets. Edited August 20, 2022 by Metin2 Dev Core X - External 2 Internal 1 Link to comment Share on other sites More sharing options...
Meruem 12 Posted November 28, 2017 Share Posted November 28, 2017 make this improvement I hope it's useful if itemVnum >= 53001 and itemVnum <= 53026: self.AppendSpace(5) self.__AppendPetIcon(itemVnum) for g in xrange(item.ITEM_APPLY_MAX_NUM): (affectType, affectValue) = item.GetAffect(g) affectString = self.__GetAffectString(affectType, affectValue) if affectString: # affectColor = self.GetChangeTextLineColor(affectValue) affectColor = grp.GenerateColor(0.3824, 0.5804, 0.9824, 1.0) # You can play here for the text color. self.AppendTextLine(affectString, affectColor) self.__AppendAttributeInformation(attrSlot) bHasRealtimeFlag = 0 for i in xrange(item.LIMIT_MAX_NUM): (limitType, limitValue) = item.GetLimit(i) if item.LIMIT_REAL_TIME == limitType: bHasRealtimeFlag = 1 if bHasRealtimeFlag == 1: self.AppendMallItemLastTime(metinSlot[0]) search:def __AppendItemIcon(self, itemVnum):paste: def __AppendPetIcon(self, itemVnum): itemImage = ui.ImageBox() itemImage.SetParent(self) itemImage.Show() itemImage.LoadImage(item.GetIconImageFileName()) itemImage.SetPosition((self.toolTipWidth/2) - itemImage.GetWidth()/2, self.toolTipHeight) self.toolTipHeight += itemImage.GetHeight() self.childrenList.append(itemImage) self.ResizeToolTip() Link to comment Share on other sites More sharing options...
tarata12 16 Posted February 5, 2018 Share Posted February 5, 2018 And add bonuses in the stamp of the assembled ones? Link to comment Share on other sites More sharing options...
PandiCore 9 Posted May 29, 2019 Share Posted May 29, 2019 (edited) any solution for doble bonus , in description? Edited August 25, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
displayjokes 89 Posted May 31, 2019 Share Posted May 31, 2019 (edited) On 5/29/2019 at 1:58 PM, PandiCore said: any solution for doble bonus , in description? You might be adding twice the code, check the "ifs" Edited August 25, 2022 by Metin2 Dev Core X - External 2 Internal It's all lies Link to comment Share on other sites More sharing options...
Active+ Member enisina 171 Posted June 2, 2019 Active+ Member Share Posted June 2, 2019 On 8/13/2016 at 3:20 AM, alondark said: bune amk speak englız thank Klawyeyi alan dübürünü ziktiğim birşey yazıyor. Sorry may bad english thanks o.ç kevaje pezevenk Link to comment Share on other sites More sharing options...
Premium Jawwad 3539 Posted June 3, 2019 Premium Share Posted June 3, 2019 (edited) La 13.11.2017 la 22:05, North a spus: Code updated, that one posted wasn`t complete on my client (wasn`t appending the info to the space). ## Start of Pet System Bonus info ## elif itemVnum >= 53001 and itemVnum <= 53999: self.AppendSpace(5) for g in xrange(item.ITEM_APPLY_MAX_NUM): (affectType, affectValue) = item.GetAffect(g) affectString = self.__GetAffectString(affectType, affectValue) if affectString: affectColor = grp.GenerateColor(0.3824, 0.5804, 0.9824, 1.0) # You can play here for the text color. self.AppendTextLine(affectString, affectColor) self.__AppendAttributeInformation(attrSlot) ## End of Pet System Bonus info ## Some screenshots: For who doesn`t have a brain, here is the tabulation: Hope it will be useful to someone. I did exactly same but it doesn't work. Edited August 25, 2022 by Metin2 Dev Core X - External 2 Internal 1 Link to comment Share on other sites More sharing options...
Razvinio99 9 Posted July 31, 2019 Share Posted July 31, 2019 La 03.06.2019 la 14:09, Jawwad a spus: I did exactly same but it doesn't work. Search: elif item.ITEM_TYPE_QUEST == itemType: Replace: elif item.ITEM_TYPE_QUEST == itemType: if itemVnum >= 53001 and itemVnum <= 53026: self.AppendSpace(5) for g in xrange(item.ITEM_APPLY_MAX_NUM): (affectType, affectValue) = item.GetAffect(g) affectString = self.__GetAffectString(affectType, affectValue) if affectString: affectColor = self.GetChangeTextLineColor(affectValue) self.AppendTextLine(affectString, affectColor) Link to comment Share on other sites More sharing options...
kenoZ 2 Posted March 6, 2022 Share Posted March 6, 2022 ### Use ### elif item.ITEM_TYPE_USE == itemType: self.__AppendLimitInformation() elif item.ITEM_TYPE_QUEST == itemType: if itemVnum >= 53001 and itemVnum <= 53026: self.AppendSpace(5) for g in xrange(item.ITEM_APPLY_MAX_NUM): (affectType, affectValue) = item.GetAffect(g) affectString = self.__GetAffectString(affectType, affectValue) if affectString: affectColor = self.GetChangeTextLineColor(affectValue) self.AppendTextLine(affectString, affectColor) i add like this on uitooltip.py my client syserr says : 0306 12:47:06853 :: networkModule.py(line:208) SetSelectCharacterPhase system.py(line:130) __pack_import system.py(line:110) _process_result introSelect.py(line:23) ? system.py(line:130) __pack_import system.py(line:110) _process_result uiAffectShower.py(line:8) ? system.py(line:130) __pack_import networkModule.SetSelectCharacterPhase - exceptions.IndentationError:unindent does not match any outer indentation level (line 1059) 0306 12:47:06853 :: ============================================================================================================ 0306 12:47:06853 :: Abort!!!! can someone help ? Link to comment Share on other sites More sharing options...
Contributor TMP4 10993 Posted March 6, 2022 Contributor Share Posted March 6, 2022 (edited) @ kenoZ If you still don't understand: Spoiler ### Use ### elif item.ITEM_TYPE_USE == itemType: self.__AppendLimitInformation() elif item.ITEM_TYPE_QUEST == itemType: if itemVnum >= 53001 and itemVnum <= 53026: self.AppendSpace(5) for g in xrange(item.ITEM_APPLY_MAX_NUM): (affectType, affectValue) = item.GetAffect(g) affectString = self.__GetAffectString(affectType, affectValue) if affectString: affectColor = self.GetChangeTextLineColor(affectValue) self.AppendTextLine(affectString, affectColor) Edited August 16, 2022 by Metin2 Dev Core X - External 2 Internal 1 Link to comment Share on other sites More sharing options...
kenoZ 2 Posted March 6, 2022 Share Posted March 6, 2022 (edited) 6 minutes ago, TMP4 said: @ kenoZ If you still don't understand: Reveal hidden contents ### Use ### elif item.ITEM_TYPE_USE == itemType: self.__AppendLimitInformation() elif item.ITEM_TYPE_QUEST == itemType: if itemVnum >= 53001 and itemVnum <= 53026: self.AppendSpace(5) for g in xrange(item.ITEM_APPLY_MAX_NUM): (affectType, affectValue) = item.GetAffect(g) affectString = self.__GetAffectString(affectType, affectValue) if affectString: affectColor = self.GetChangeTextLineColor(affectValue) self.AppendTextLine(affectString, affectColor) Thank you for this nice description, this helped me alot Edited August 16, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Recommended Posts