Tasho 244 Posted April 6, 2014 Share Posted April 6, 2014 (edited) Hi dev, I have a problem ... when I give myself level 100, the experience for next level si negative like this : I've applyed a diff with max lvl 150 but no succes. Thanks in advance! Edited August 15, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Premium Jfirewall 280 Posted April 6, 2014 Premium Share Posted April 6, 2014 quest negative_exp begin state start begin when login with pc.get_exp() < 0 begin pc.give_exp2(math.abs(pc.get_exp())) end end end Link to comment Share on other sites More sharing options...
Saddler 683 Posted April 6, 2014 Share Posted April 6, 2014 quest negative_exp begin state start begin when login with pc.get_exp() < 0 begin pc.give_exp2(math.abs(pc.get_exp())) end end end Jfirewall this not solve the problem. And it's 100% lazy way and bugged to solve the problems. Try this. There is a fix from ymir for that def unsigned32(n): return n & 0xFFFFFFFFL in uicharacter.py and change self.GetChild("Exp_Value").SetText(str(player.GetEXP())) self.GetChild("RestExp_Value").SetText(str(player.GetStatus(player.NEXT_EXP) - player.GetStatus(player.EXP))) to self.GetChild("Exp_Value").SetText(str(unsigned32(player.GetEXP()))) self.GetChild("RestExp_Value").SetText(str(unsigned32(player.GetStatus(player.NEXT_EXP)) - unsigned32(player.GetStatus(player.EXP)))) 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