1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Resolved Summoning.getPoints() is broken

Discussion in 'Developer Support' started by Jhinn, Aug 21, 2018.

  1. Jhinn

    Joined:
    Jun 9, 2015
    Messages:
    3,643
    Likes Received:
    1,337
    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 (Text):
    1.     public int getPoints() {
    2.         Varbit varbit = Varbits.load(41524);
    3.         return varbit != null ? (varbit.getValue() / 10) : -1;
    4.     }
    The value of the varbit will always be the amount of summoning points times 10, hence why the /10 is there.
     
  2. Best Answer:
    Post #2 by Cloud, Aug 21, 2018
  3. Cloud

    Cloud Engineer

    Joined:
    Jul 28, 2013
    Messages:
    2,777
    Likes Received:
    1,124
    Fixed, thanks
     

Share This Page

Loading...