Jump to content

Recommended Posts

hi i try to do align system for Man and Woman, Exygo give that function but he don't work.

def GetAlignmentTitleName(alignment):
	import chr 
	import player

	sex = chr.RaceToSex(player.GetRace())

	if alignment >= 12000:
		if sex == 1:
			return TITLE_NAME_LIST[0]
		else:
			return TITLE_NAME_LIST[10]

what is the problem with this function pls help...

Link to comment
https://metin2.dev/topic/14183-function-porblem/
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

No one can say what is wrong with this function.
Matter how it is used.

 

This topic should be deleted because you have not given enough information.

 

def GetAlignmentTitleName(alignment):
	import chr 
	import player

	race	= player.GetRace()
	sex	= chr.RaceToSex(race)
	align	= player.GetAlignmentData()

	if align >= 12000:
		if sex == 1:
			# Do stuff
		else:
			# Do stuff

 

 

USE YOU BRAIN WHEN YOU POST A QUESTION. And who is that exygo ? 

Link to comment
https://metin2.dev/topic/14183-function-porblem/#findComment-80381
Share on other sites

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • 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.