Jump to content
Forgot your email address? ×
×
×
  • Create New...
  • 0

Add server name on item description


DarkWolf

Question

9 answers to this question

Recommended Posts

  • 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
Link to comment
  • 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
Link to comment
  • 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

when you return 0 and server doesn't boot:

unknown.png

Link to comment

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

Announcements

  • -15% Discount in Metin2 Dev Store (01/10/2021 => 31/12/2021) => Code => 15_PCT_OCT_TO_DEC_2021


  • Read our Rules
  • Activity

    1. 0

      Visual Studio 2010 Ultimate

    2. 1

      Reduce server memory usage

    3. 31

      Metin2 Project - How to create à Metin2 private server on virtual machine

    4. 1

      Use BeltInventory slots without Belt

    5. 47

      Paid service - Vegas Projects

    6. 44

      Changelogs

    7. 79

      3D Shop - Mark Service

  • Recently Browsing

    • No registered users viewing this page.

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.