Jump to content

Recommended Posts

  • Replies 18
  • Created
  • Last Reply

Top Posters In This Topic

chr.SetRace(int(101))
chr.Update()
def Polymorph(self, race):
	if(race.isdigit())
		chr.SetRace(int(race))
		chr.Update()
	else:
		chr.SetRace(race)
		chr.Update()
		
		
##################################################3
# How to use

# First way : Polymorph(101)
# Second way : Polymorph("101")

If you wanna provide all security for this function, here third way.

def Polymorph(race):
    try:
        if(race.isdigit()):
            chr.SetRace(int(race))
			chr.Update()
        else:
            chr.SetRace(race)
    except:
        chr.SetRace(race)
		chr.Update()
		
		
##################################################3
# How to use

# First way : Polymorph(101)
# Second way : Polymorph("101")

#DontKillPython

 

Kind Regards

Zerelth ~ Ellie

Edited by Zerelth™

Do not be sorry, be better.

Link to comment
Share on other sites

  • Active Member

 

chr.SetRace(int(101))
chr.Update()

def Polymorph(self, race):
	if(race.isdigit())
		chr.SetRace(int(race))
		chr.Update()
	else:
		chr.SetRace(race)
		chr.Update()
		
		
##################################################3
# How to use

# First way : Polymorph(101)
# Second way : Polymorph("101")
#DontKillPython

 

Kind Regards

Zerelth ~ Ellie

 

 

1uTGLDr.jpg

 

clapping.gif

 

P.S: Your usage method wrong. The truth "self.Polymorph(race)"

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

 

 

chr.SetRace(int(101))
chr.Update()

def Polymorph(self, race):
	if(race.isdigit())
		chr.SetRace(int(race))
		chr.Update()
	else:
		chr.SetRace(race)
		chr.Update()
		
		
##################################################3
# How to use

# First way : Polymorph(101)
# Second way : Polymorph("101")
#DontKillPython

 

Kind Regards

Zerelth ~ Ellie

 

 

1uTGLDr.jpg

 

clapping.gif

 

P.S: Your usage method wrong. The truth "self.Polymorph(race)"

 

SetRace = chr.SetRace
SetHair = chr.SetHair
SetArmor = chr.SetArmor
Refresh = chr.Update

But it's easy, isn't it? :)

 

Kind Regards

Zerelth ~ Ellie

Edited by Metin2 Dev
Core X - External 2 Internal

Do not be sorry, be better.

Link to comment
Share on other sites

  • Active Member

 

 

 

chr.SetRace(int(101))
chr.Update()

def Polymorph(self, race):
	if(race.isdigit())
		chr.SetRace(int(race))
		chr.Update()
	else:
		chr.SetRace(race)
		chr.Update()
		
		
##################################################3
# How to use

# First way : Polymorph(101)
# Second way : Polymorph("101")
#DontKillPython

 

Kind Regards

Zerelth ~ Ellie

 

 

1uTGLDr.jpg

 

clapping.gif

 

P.S: Your usage method wrong. The truth "self.Polymorph(race)"

 

SetRace = chr.SetRace
SetHair = chr.SetHair
SetArmor = chr.SetArmor
Refresh = chr.Update

But it's easy, isn't it? :)

 

Kind Regards

Zerelth ~ Ellie

 

 

Where is the defined this veriables in your first post?

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

 

 

 

 

chr.SetRace(int(101))
chr.Update()

def Polymorph(self, race):
	if(race.isdigit())
		chr.SetRace(int(race))
		chr.Update()
	else:
		chr.SetRace(race)
		chr.Update()
		
		
##################################################3
# How to use

# First way : Polymorph(101)
# Second way : Polymorph("101")
#DontKillPython

 

Kind Regards

Zerelth ~ Ellie

 

 

1uTGLDr.jpg

 

clapping.gif

 

P.S: Your usage method wrong. The truth "self.Polymorph(race)"

 

SetRace = chr.SetRace
SetHair = chr.SetHair
SetArmor = chr.SetArmor
Refresh = chr.Update

But it's easy, isn't it? :)

 

Kind Regards

Zerelth ~ Ellie

 

 

Where is the defined this veriables?

 

 

import chr
import dbg

SetRace = chr.SetRace
SetHair = chr.SetHair
SetArmor = chr.SetArmor
Refresh = chr.Update

class Koray:
	def __init__(self):
		print("I am okay")
		
	def Tellme(self):
		try:
			SetRace(101)
			dbg.TraceError("I am okay")
		except:
			pass
			
			
test = Koray()
test.Tellme()

 

Simple example for you.

 

Kind Regards

Zerelth ~ Ellie

Edited by Metin2 Dev
Core X - External 2 Internal

Do not be sorry, be better.

Link to comment
Share on other sites

  • Active Member

import chr
import dbg

SetRace = chr.SetRace
SetHair = chr.SetHair
SetArmor = chr.SetArmor
Refresh = chr.Update

class Koray:
	def __init__(self):
		print("I am okay")
		
	def Tellme(self):
		try:
			SetRace(101)
			dbg.TraceError("I am okay")
		except:
			pass
			
			
test = Koray()
test.Tellme()

 

Simple example for you.

 

Kind Regards

Zerelth ~ Ellie

 

 

HELLO ?? Do you see my post ? Where is the defined this veriables in your first post.

 

P.S: bugs,bugs,bugs;

class Koray >> class Koray()

print("-") >> print "-"

Link to comment
Share on other sites

import chr
import dbg

SetRace = chr.SetRace
SetHair = chr.SetHair
SetArmor = chr.SetArmor
Refresh = chr.Update

class Koray:
	def __init__(self):
		print("I am okay")
		
	def Tellme(self):
		try:
			SetRace(101)
			dbg.TraceError("I am okay")
		except:
			pass
			
			
test = Koray()
test.Tellme()

 

Simple example for you.

 

Kind Regards

Zerelth ~ Ellie

 

HELLO ?? Do you see my post ? Where is the defined this veriables in your first post.

 

P.S: bugs,bugs,bugs;

class Koray >> class Koray()

print("-") >> print "-"

 

I think python is not like me :)

 

5I4cqri.png?1

 

I don't have much time for these things any more. 

 

You should be look at this if you are still think this wrong.

 

Python Classes

 

Kind Regards

Zerelth ~ Ellie

Edited by Metin2 Dev
Core X - External 2 Internal

Do not be sorry, be better.

Link to comment
Share on other sites

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.