Jump to content
  • 0

Python polymorph


Thorer

Question

  • Answers 18
  • Created
  • Last Reply

Top Posters For This Question

18 answers to this question

Recommended Posts

  • 0

You should be load mob proto before don't do this. 

SetRace(101)
SetHair(0)
SetArmor(0)
Refresh()

Kind Regards

Zerelth ~ Ellie

Edited by Zerelth™

Do not be sorry, be better.

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

 

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)"

Link to comment
  • 0

 

 

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

Do not be sorry, be better.

Link to comment
  • 0

 

 

 

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

 

 

 

 

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

Do not be sorry, be better.

Link to comment
  • 0

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

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 Zerelth™

Do not be sorry, be better.

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


  • Read our Rules
  • Activity

    1. 2

      [Python] Code Translator 2 to 3

    2. 0

      bug gaya

    3. 5

      Fix Core Crash (unused serverside packet)

    4. 45

      Chest Drop View

    5. 0

      How to add Python 3.9 script?

    6. 15

      Metin2 Download Center - Specifications & Documentation

    7. 5

      Fix Core Crash (unused serverside packet)

    8. 45

      Chest Drop View

    9. 5

      Fix Core Crash (unused serverside packet)

  • Recently Browsing

    No registered users viewing this page.

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