Jump to content
  • 0

Negatie experience


Tasho

Question

Hi dev, I have a problem ... when I give myself level 100, the experience for next level si negative like this :

 

25z3sbq.jpg

 

 

I've applyed a diff with max lvl 150 but no succes.

 

Thanks in advance!

Link to comment
  • Answers 2
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

Top Posters For This Question

2 answers to this question

Recommended Posts

  • 0

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
  • 0

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

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.