Jump to content

Check horse by python


Recommended Posts

  • Replies 16
  • Created
  • Last Reply

Top Posters In This Topic

  • 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

 

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

  • 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

  • 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

 

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

  • 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

  • 3 months later...
  • 2 weeks later...

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.