Jump to content
  • 0
DarkWolf

Add server name on item description

Question

Hi,

 

I' want to now how to add server name on item descrition, like that:

 

iH5g78m.png

 

Where it says [EPIC VERSION 5]

 

Regard

 

DarkWolf

  • Love 1

Share this post


Link to post

9 answers to this question

Recommended Posts

  • 0

On uitooltip.py replacing all:

item.GetItemName()

with:

"[Your Server's Name]n" + item.GetItemName()

should work.

  • Love 1

Share this post


Link to post
  • 0

On uitooltip.py replacing all:

item.GetItemName()

with:

"[Your Server's Name]n" + item.GetItemName()

should work.

how add color ?

  • Love 1

Share this post


Link to post
  • 0

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()
  • Love 3

Share this post


Link to post
  • 0

 

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.. !

  • Love 1

Share this post


Link to post
  • 0

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()
  • Love 3

Share this post


Link to post
  • 0

How to put more dann one color and item? 

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • 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.