Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

Sign up now!

Resolved Summoning.getPoints() is broken

Joined
Jun 9, 2015
Messages
3,717
Taken from patch notes:

Summoning will now visibly display as 990 and the summoning stat will not be drained when using summoning pouches.

This means that Summoning.getPoints() always returns your current summoning level. Since it doesn't change, it'll always return the same value.

How to fix?
Code:
    public int getPoints() {
        Varbit varbit = Varbits.load(41524);
        return varbit != null ? (varbit.getValue() / 10) : -1;
    }

The value of the varbit will always be the amount of summoning points times 10, hence why the /10 is there.
 
Top