DarkWolf 11 Posted March 6, 2014 Share Posted March 6, 2014 (edited) Hi, I' want to now how to add server name on item descrition, like that: Where it says [EPIC VERSION 5] Regard DarkWolf Edited August 15, 2022 by Metin2 Dev Core X - External 2 Internal 1 Link to comment Share on other sites More sharing options...
Developer Solution PACI 930 Posted March 6, 2014 Developer Solution Share Posted March 6, 2014 On uitooltip.py replacing all: item.GetItemName() with: "[Your Server's Name]n" + item.GetItemName() should work. 1 when you return 0 and server doesn't boot: Link to comment Share on other sites More sharing options...
Mehti 76 Posted March 6, 2014 Share Posted March 6, 2014 On uitooltip.py replacing all: item.GetItemName() with: "[Your Server's Name]n" + item.GetItemName() should work. how add color ? 1 Link to comment Share on other sites More sharing options...
Yoshix3 8 Posted March 6, 2014 Share Posted March 6, 2014 For Color you have to add a new Line self.AppendTextLine("[Pandora 2]", grp.GenerateColor(1.0, 1.0, 10, 1.0)) # r,g,b,alpha You have to add this Code for example in this funtion: def __SetItemTitle(self, itemVnum, metinSlot, attrSlot): self.AppendTextLine("[Pandora 2]", grp.GenerateColor(1.0, 1.0, 10, 1.0)) # r,g,b,alpha if self.__IsPolymorphItem(itemVnum): self.__SetPolymorphItemTitle(metinSlot[0]) else: if self.__IsAttr(attrSlot): self.__SetSpecialItemTitle() return self.__SetNormalItemTitle() 3 Link to comment Share on other sites More sharing options...
Mehti 76 Posted March 6, 2014 Share Posted March 6, 2014 For Color you have to add a new Line self.AppendTextLine("[Pandora 2]", grp.GenerateColor(1.0, 1.0, 10, 1.0)) # r,g,b,alpha You have to add this Code for example in this funtion: def __SetItemTitle(self, itemVnum, metinSlot, attrSlot): self.AppendTextLine("[Pandora 2]", grp.GenerateColor(1.0, 1.0, 10, 1.0)) # r,g,b,alpha if self.__IsPolymorphItem(itemVnum): self.__SetPolymorphItemTitle(metinSlot[0]) else: if self.__IsAttr(attrSlot): self.__SetSpecialItemTitle() return self.__SetNormalItemTitle() Thanks, work very well.. ! 1 Link to comment Share on other sites More sharing options...
icaroquin 4 Posted March 6, 2014 Share Posted March 6, 2014 And how to put only one item? 1 Link to comment Share on other sites More sharing options...
Developer PACI 930 Posted March 6, 2014 Developer Share Posted March 6, 2014 Just read the code.. def __SetItemTitle(self, itemVnum, metinSlot, attrSlot): if itemVnum == XXXX: # XXXX = item vnum self.AppendTextLine("[Pandora 2]", grp.GenerateColor(1.0, 1.0, 10, 1.0)) # r,g,b,alpha if self.__IsPolymorphItem(itemVnum): self.__SetPolymorphItemTitle(metinSlot[0]) else: if self.__IsAttr(attrSlot): self.__SetSpecialItemTitle() return self.__SetNormalItemTitle() 3 when you return 0 and server doesn't boot: Link to comment Share on other sites More sharing options...
icaroquin 4 Posted March 6, 2014 Share Posted March 6, 2014 thanks paci Link to comment Share on other sites More sharing options...
DarkWolf 11 Posted March 7, 2014 Author Share Posted March 7, 2014 It works, Thank you all Link to comment Share on other sites More sharing options...
ingame 0 Posted June 11, 2015 Share Posted June 11, 2015 How to put more dann one color and item? Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now