Jump to content

Add server name on item description


Go to solution Solved by PACI,

Recommended Posts

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
Link to comment
Share on other sites

 

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
Link to comment
Share on other sites

  • Developer

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

when you return 0 and server doesn't boot:

unknown.png

Link to comment
Share on other sites

  • 1 year later...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



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