Tryn 97 Posted September 9, 2018 Share Posted September 9, 2018 (edited) Hello together, because im not that good with Python im gonna ask you guys if somebody can help me to archive this: https://metin2.download/picture/r3F9504x09DVmF8K988YXgTtGTP6KMUj/.gif It's a nice simpel improvment for the gauge in my opinion. If you agree with me let me knew about it and maybe help me out. Thanks in advance Tryn Edited August 27, 2022 by Metin2 Dev Core X - External 2 Internal 18 1 1 1 1 5 Link to comment Share on other sites More sharing options...
Bot Metin2 Dev 4886 Posted September 10, 2018 Bot Share Posted September 10, 2018 http://lmgtfy.com/?iie=1&q=metin2dev+mobs+health+in+ui 3 Link to comment Share on other sites More sharing options...
Shang 370 Posted September 10, 2018 Share Posted September 10, 2018 hace 1 hora, Chyu ^^ dijo: http://lmgtfy.com/?iie=1&q=metin2dev+mobs+health+in+ui He means the hp effect. Link to comment Share on other sites More sharing options...
Bot Metin2 Dev 4886 Posted September 10, 2018 Bot Share Posted September 10, 2018 They he would make his question more clarified. Link to comment Share on other sites More sharing options...
Shang 370 Posted September 10, 2018 Share Posted September 10, 2018 hace 2 horas, Chyu ^^ dijo: They he would make his question more clarified. hace 21 horas, Tryn dijo: It's a nice simpel improvment for the gauge in my opinion. Or maybe you have to read. The gauge is the hp bar. Link to comment Share on other sites More sharing options...
Tryn 97 Posted September 10, 2018 Author Share Posted September 10, 2018 Shang is right, i was looking for the effect of the gauge. Link to comment Share on other sites More sharing options...
ѕeмa™ 308 Posted September 11, 2018 Share Posted September 11, 2018 (edited) En 9/9/2018 a las 20:34, Tryn dijo: Hello together, because im not that good with Python im gonna ask you guys if somebody can help me to archive this: https://metin2.download/picture/r3F9504x09DVmF8K988YXgTtGTP6KMUj/.gif It's a nice simpel improvment for the gauge in my opinion. If you agree with me let me knew about it and maybe help me out. Thanks in advance Tryn U mean this right? https://metin2.download/picture/yNIj3Wv5U09p00seMD8h5xRuS6BqRb4A/.gif Well i did this: Onupdate: if self.max_hp > self.actual_hp: if app.GetTime() > self.time: self.max_hp -= 1 dbg.TraceError(str(self.actual_hp)+"_"+str(self.max_hp)) self.hpGauge.SetPercentage(self.max_hp, 100) self.time = app.GetTime() + 0.005 def sethp def SetHP(self, hpPercentage): if not self.hpGauge.IsShow(): self.SetSize(200 + 7*self.nameLength, self.GetHeight()) self.name.SetHorizontalAlignCenter() self.name.SetWindowHorizontalAlignCenter() self.name.SetPosition(0, 8) self.hpGauge.SetWindowHorizontalAlignCenter() self.hpGauge.SetPosition(0, 23) self.hpGauge.Show() self.percent.Show() self.UpdatePosition() self.max_hp = hpPercentage self.hpGauge.SetPercentage(hpPercentage, 100) self.actual_hp = hpPercentage def init self.actual_hp = 0 self.max_hp = 100 self.time = 0 I did this fast, if it's bugged i dont know but if u find a bug, tell me. You can play with this code, example: if the difference is too high u can make the hp goes faster and if the difference is not too much goes slower. Good luck Edited August 27, 2022 by Metin2 Dev Core X - External 2 Internal 1 3 https://m2admin.net/ Link to comment Share on other sites More sharing options...
Tryn 97 Posted September 11, 2018 Author Share Posted September 11, 2018 (edited) vor einer Stunde schrieb ѕeмa™: U mean this right? https://metin2.download/picture/yNIj3Wv5U09p00seMD8h5xRuS6BqRb4A/.gif Well i did this: Onupdate: if self.max_hp > self.actual_hp: if app.GetTime() > self.time: self.max_hp -= 1 dbg.TraceError(str(self.actual_hp)+"_"+str(self.max_hp)) self.hpGauge.SetPercentage(self.max_hp, 100) self.time = app.GetTime() + 0.005 def sethp def SetHP(self, hpPercentage): if not self.hpGauge.IsShow(): self.SetSize(200 + 7*self.nameLength, self.GetHeight()) self.name.SetHorizontalAlignCenter() self.name.SetWindowHorizontalAlignCenter() self.name.SetPosition(0, 8) self.hpGauge.SetWindowHorizontalAlignCenter() self.hpGauge.SetPosition(0, 23) self.hpGauge.Show() self.percent.Show() self.UpdatePosition() self.max_hp = hpPercentage self.hpGauge.SetPercentage(hpPercentage, 100) self.actual_hp = hpPercentage def init self.actual_hp = 0 self.max_hp = 100 self.time = 0 I did this fast, if it's bugged i dont know but if u find a bug, tell me. You can play with this code, example: if the difference is too high u can make the hp goes faster and if the difference is not too much goes slower. Good luck Its close to that im searching for. If you look at my gif in the first post u can see there is a small effect which shows the gauge in an other color for an moment. But thanks anyways! Edited August 27, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
ѕeмa™ 308 Posted September 11, 2018 Share Posted September 11, 2018 Oh yes its true i didnt see that, its like orange right? well if i have time later i will try to do it. 2 https://m2admin.net/ Link to comment Share on other sites More sharing options...
ѕeмa™ 308 Posted September 11, 2018 Share Posted September 11, 2018 (edited) Im im not wrong, the "effect" is just another gauge image red with the last 2 pixel in orange and when the hp is moving the gauge change the color and when it stops, change again to the red, so with my code you shoul be able to do it. Will be something like this but instead green orange red only red and when is decreasing red+orange and then just red https://metin2.download/picture/DCT0k1uNI7yBVoifsrCK0sfKJr4u6fW9/.gif Edited September 3, 2022 by Metin2 Dev Core X - External 2 Internal 1 https://m2admin.net/ Link to comment Share on other sites More sharing options...
Tryn 97 Posted September 11, 2018 Author Share Posted September 11, 2018 Hm but it turns orange when the dmg get in. And it stops when there is no dmg. They didnt change it just at the end, like yours. It works for the full gaugebar. I think it works like this: 1. DMG gets in. 2. The Red-Gaugebar gets removed 3. The Orange-Gaugebar appears where the red is gone 4. The Orange-Gaugebar moves slowly (like in your first exampel) until it completly disappears. (The range how much of the orange-bar should disappear is constantly updating because if more dmg gets in the orange bar gets "longer". I hope you can understand what i mean. Link to comment Share on other sites More sharing options...
ѕeмa™ 308 Posted September 11, 2018 Share Posted September 11, 2018 Yeah i already know what do u mean, when u get damaged another gauge orange appear with the amount of damage while the red hp decrease. Its cool but right now i dont know how do it srry. https://m2admin.net/ Link to comment Share on other sites More sharing options...
Catii 94 Posted November 6, 2018 Share Posted November 6, 2018 @ѕeмa™ why not doing 2 bars one ontop on another, and just make 2 self.time with a different delays. Its not an good approach? Link to comment Share on other sites More sharing options...
notbugme 14 Posted November 6, 2018 Share Posted November 6, 2018 (edited) Dnia 11.09.2018 o 5:46 PM, ѕeмa™ napisał: U mean this right? https://metin2.download/picture/yNIj3Wv5U09p00seMD8h5xRuS6BqRb4A/.gif Well i did this: Onupdate: if self.max_hp > self.actual_hp: if app.GetTime() > self.time: self.max_hp -= 1 dbg.TraceError(str(self.actual_hp)+"_"+str(self.max_hp)) self.hpGauge.SetPercentage(self.max_hp, 100) self.time = app.GetTime() + 0.005 def sethp def SetHP(self, hpPercentage): if not self.hpGauge.IsShow(): self.SetSize(200 + 7*self.nameLength, self.GetHeight()) self.name.SetHorizontalAlignCenter() self.name.SetWindowHorizontalAlignCenter() self.name.SetPosition(0, 8) self.hpGauge.SetWindowHorizontalAlignCenter() self.hpGauge.SetPosition(0, 23) self.hpGauge.Show() self.percent.Show() self.UpdatePosition() self.max_hp = hpPercentage self.hpGauge.SetPercentage(hpPercentage, 100) self.actual_hp = hpPercentage def init self.actual_hp = 0 self.max_hp = 100 self.time = 0 I did this fast, if it's bugged i dont know but if u find a bug, tell me. You can play with this code, example: if the difference is too high u can make the hp goes faster and if the difference is not too much goes slower. Good luck .....py ? Edited August 27, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Legend 187 Posted November 6, 2018 Share Posted November 6, 2018 (edited) You mean this right? https://metin2.download/picture/r3F9504x09DVmF8K988YXgTtGTP6KMUj/.gif If u are interesting you can buy it from me contact me at skype for more informations. Edited September 3, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
ѕeмa™ 308 Posted November 6, 2018 Share Posted November 6, 2018 (edited) hace 14 minutos, Legend dijo: You mean this right? https://metin2.download/picture/r3F9504x09DVmF8K988YXgTtGTP6KMUj/.gif If u are interesting you can buy it from me contact me at skype for more informations. Are u really going to sell that???? You can extract from aeldra client.... Edited September 3, 2022 by Metin2 Dev Core X - External 2 Internal 2 https://m2admin.net/ Link to comment Share on other sites More sharing options...
Legend 187 Posted November 6, 2018 Share Posted November 6, 2018 Just now, ѕeмa™ said: Are u really going to sell that???? You can extract from aeldra client.... I coded it so if someone wanted he can buy . Otherwise i can't share my code because "you can extract it from aeldra". Link to comment Share on other sites More sharing options...
ѕeмa™ 308 Posted November 6, 2018 Share Posted November 6, 2018 hace 30 minutos, Legend dijo: I coded it so if someone wanted he can buy . Otherwise i can't share my code because "you can extract it from aeldra". Well if u are the owner you could said it before... https://m2admin.net/ Link to comment Share on other sites More sharing options...
Legend 187 Posted November 6, 2018 Share Posted November 6, 2018 4 minutes ago, ѕeмa™ said: Well if u are the owner you could said it before... I'm talking about the gif that i posted, i'm not the guy who coded the aeldra one. There is people who wanted to buy instead of "stealing" stuffs from other servers - clients. Link to comment Share on other sites More sharing options...
ѕeмa™ 308 Posted November 6, 2018 Share Posted November 6, 2018 Well your gift look the same as aeldra, so... you could code a new one or "steal" it and sell it, who knows... And yes, other people maybe want to buy it because they dont know how to get it for free Anyway, i wont keep going with this, good luck both of you. 1 https://m2admin.net/ Link to comment Share on other sites More sharing options...
Legend 187 Posted November 6, 2018 Share Posted November 6, 2018 15 minutes ago, ѕeмa™ said: Well your gift look the same as aeldra, so... you could code a new one or "steal" it and sell it, who knows... And yes, other people maybe want to buy it because they dont know how to get it for free Anyway, i wont keep going with this, good luck both of you. A lot of things look the same this don't mean is the same code, whatever. Link to comment Share on other sites More sharing options...
blackList 2 Posted November 9, 2018 Share Posted November 9, 2018 (edited) Am 6.11.2018 um 20:02 schrieb Legend: You mean this right? https://metin2.download/picture/r3F9504x09DVmF8K988YXgTtGTP6KMUj/.gif If u are interesting you can buy it from me contact me at skype for more informations. its public google at it Edited September 3, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Premium Hunger 472 Posted November 15, 2018 Premium Share Posted November 15, 2018 Wtf dude you can use the code from the actual HP bar when you use red or blue potions. No need to pay for that lol. Edit: I'll make it public tonite tho. 1 Link to comment Share on other sites More sharing options...
Sharp 0 Posted October 24, 2019 Share Posted October 24, 2019 'edit NVM found it 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