Former Staff flygun 305 Posted January 7, 2015 Former Staff Share Posted January 7, 2015 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 More sharing options...
Former Staff flygun 305 Posted January 8, 2015 Author Former Staff Share Posted January 8, 2015 #UP :L Link to comment Share on other sites More sharing options...
Ken 905 Posted January 8, 2015 Share Posted January 8, 2015 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 More sharing options...
Former Staff flygun 305 Posted January 8, 2015 Author Former Staff Share Posted January 8, 2015 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 More sharing options...
Ken 905 Posted January 8, 2015 Share Posted January 8, 2015 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 More sharing options...
Adrian1428 31 Posted January 8, 2015 Share Posted January 8, 2015 , wrong subject Link to comment Share on other sites More sharing options...
Former Staff flygun 305 Posted January 8, 2015 Author Former Staff Share Posted January 8, 2015 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 More sharing options...
Active Member Koray 2014 Posted January 8, 2015 Active Member Share Posted January 8, 2015 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" Link to comment Share on other sites More sharing options...
Former Staff flygun 305 Posted January 8, 2015 Author Former Staff Share Posted January 8, 2015 (edited) 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 Edited August 18, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
SoNiice 14 Posted January 9, 2015 Share Posted January 9, 2015 Otherwise you can also use a lua looptimer to send the value of the horse status to your client and work with it there. Link to comment Share on other sites More sharing options...
Adrian1428 31 Posted January 9, 2015 Share Posted January 9, 2015 (edited) 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 Edited August 18, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Honorable Member xP3NG3Rx 19779 Posted January 9, 2015 Honorable Member Share Posted January 9, 2015 game.py: self.is_summoned_horse = self.affectShower.horseImage <> None Or try with this: import uiAffectShower summoned = uiAffectShower.AffectShower().horseImage <> None Link to comment Share on other sites More sharing options...
SoNiice 14 Posted January 9, 2015 Share Posted January 9, 2015 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 More sharing options...
Former Staff flygun 305 Posted January 9, 2015 Author Former Staff Share Posted January 9, 2015 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 More sharing options...
Former Staff flygun 305 Posted January 10, 2015 Author Former Staff Share Posted January 10, 2015 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 More sharing options...
marius9612 1 Posted May 7, 2015 Share Posted May 7, 2015 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 More sharing options...
Premium DarkFire 12 Posted May 16, 2015 Premium Share Posted May 16, 2015 (edited) You said that you need some icons: If you need more PM Edited August 24, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now