Jump to content

Party role icon position

Recommended Posts

  • VIP


when a party member is assigned a role, it's tiny icon will be displayed in the beginning instead of predefined position.


Inside party.py replace SetAffect function with the following:

	def SetAffect(self, affectSlotIndex, affectValue):

		if affectSlotIndex >= len(self.partyAffectImageList):

		if affectValue > 0:

		self.affectValueDict[affectSlotIndex] = affectValue


Add this function to the class:

	def __ArrangeAffectPosition(self):
		x_pos = 22
		y_pos = 24
		affectIndex = 0
		for image in self.partyAffectImageList:
			if image.IsShow():
				image.SetPosition(x_pos + 14 * affectIndex, y_pos)
				affectIndex += 1


  • Metin2 Dev 1
  • Love 5
  • Love 1
  • Good 4
Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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