Jump to content
Phishing - Beware of identity theft... ×
  • 0

Check horse by python


flygun

Question

  • Former Staff

hey guys i want to know how to check if the horse is already summon by the user or no with python

i don't know the code

 

by the way if anyone can share with me icons for some pets that would be nice

 

 

thanks in advance

     FlyGun :)

Link to comment
Share on other sites

  • Answers 16
  • Created
  • Last Reply

Top Posters For This Question

16 answers to this question

Recommended Posts

  • 0
  • Bronze

You are need to create new cpp files for this if you are planning to create new function for pet. I think you can make something via character manager.

PythonCharacterModule.cpp

Kind Regards

Zerelth ~ Ellie

Do not be sorry, be better.

Link to comment
Share on other sites

  • 0
  • Former Staff

You are need to create new cpp files for this if you are planning to create new function for pet. I think you can make something via character manager.

PythonCharacterModule.cpp

Kind Regards

Zerelth ~ Ellie

mm ok i'll see ...

thanks

 

client-game/game-client communication with packets will help me ??

 

Best Regards

   FlyGun

Link to comment
Share on other sites

  • 0
  • Bronze

 

You are need to create new cpp files for this if you are planning to create new function for pet. I think you can make something via character manager.

PythonCharacterModule.cpp

Kind Regards

Zerelth ~ Ellie

mm ok i'll see ...

thanks

 

client-game/game-client communication with packets will help me ??

 

Best Regards

   FlyGun

 

 

You can use Server - Client communication with python files. it's first way. second way is via packets.

 

Kind Regards

Zerelth ~ Ellie

Do not be sorry, be better.

Link to comment
Share on other sites

  • 0
  • Former Staff

 

 

You are need to create new cpp files for this if you are planning to create new function for pet. I think you can make something via character manager.

PythonCharacterModule.cpp

Kind Regards

Zerelth ~ Ellie

mm ok i'll see ...

thanks

 

client-game/game-client communication with packets will help me ??

 

Best Regards

   FlyGun

 

 

You can use Server - Client communication with python files. it's first way. second way is via packets.

 

Kind Regards

Zerelth ~ Ellie

 

okay i will see now ... thanks

, wrong subject

no problem !!

Link to comment
Share on other sites

  • 0
  • Former Staff

you don't check with direct python(without adding new module) but easy check with lua you can use the communication as "if horse.is_summon == true then" 

look the point is i'm making a GUI and there is button that calls the horse i want to change the summon to unsummon  if the horse is already summoned

 

8voV1iQ.jpg?1

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

  • 0

 

you don't check with direct python(without adding new module) but easy check with lua you can use the communication as "if horse.is_summon == true then" 

look the point is i'm making a GUI and there is button that calls the horse i want to change the summon to unsummon  if the horse is already summoned

 

8voV1iQ.jpg?1

 

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

  • 0

 

game.py:

self.is_summoned_horse = self.affectShower.horseImage <> None

Or try with this:

import uiAffectShower
summoned = uiAffectShower.AffectShower().horseImage <> None

 

That's a good idea, but sometimes the icons are bugged and still shown without a summoned horse.

Link to comment
Share on other sites

  • 0
  • Former Staff

 

game.py:

self.is_summoned_horse = self.affectShower.horseImage <> None

Or try with this:

import uiAffectShower
summoned = uiAffectShower.AffectShower().horseImage <> None

 

 

 

 

game.py:

self.is_summoned_horse = self.affectShower.horseImage <> None

Or try with this:

import uiAffectShower
summoned = uiAffectShower.AffectShower().horseImage <> None

 

That's a good idea, but sometimes the icons are bugged and still shown without a summoned horse.

 

where i must put this ...

 

the funny part is i removed the image from up there O.O

 

i will put it back and try :) thx

Link to comment
Share on other sites

  • 0
  • Former Staff

i mean like this

		### PetWindow - Main
		if not pet.IsSummoned():
			self.baby['WindowSummon'].SetText(uiScriptLocale.PET_SYSTEM_SUMMON)
		else:
			self.baby['WindowSummon'].SetText(uiScriptLocale.PET_SYSTEM_UNSUMMON)
Link to comment
Share on other sites

  • 0

 

i mean like this

		### PetWindow - Main
		if not pet.IsSummoned():
			self.baby['WindowSummon'].SetText(uiScriptLocale.PET_SYSTEM_SUMMON)
		else:
			self.baby['WindowSummon'].SetText(uiScriptLocale.PET_SYSTEM_UNSUMMON)

Where put this code??????

Link to comment
Share on other sites

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


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