Thread: Adding rigour & augury prayers (client & server sided) bonuses not added.

Page 4 of 5 FirstFirst ... 2345 LastLast
Results 31 to 40 of 42
  1. #31  
    Banned

    Join Date
    Apr 2013
    Posts
    1,614
    Thanks given
    410
    Thanks received
    475
    Rep Power
    0
    This is strait out of he exotic client, The one with zions work?
    Reply With Quote  
     

  2. #32  
    Respected Member


    Kris's Avatar
    Join Date
    Jun 2016
    Age
    26
    Posts
    3,638
    Thanks given
    820
    Thanks received
    2,642
    Rep Power
    5000
    Quote Originally Posted by _Patrick_ View Post
    I totally understand but in some cases you only need to store 2 booleans why would you make it an integer up to 31 booleans if only 2 are needed, 0 and 1.
    You're not understanding.
    What I'm saying is..
    Instead of having like..
    boolean firstBoolean;
    boolean secondBoolean;
    boolean thirdBoolean;
    ..
    boolean twentyfifthboolean;


    You could simply have
    int settings;
    ^All the booleans would be stored inside this specific integer.
    For integers, you can store up to 31, for shorts, up to 15, for bytes, up to 7. Someone correct me if I'm wrong lol, pretty sure these values are correct.
    Attached image
    Reply With Quote  
     

  3. #33  
    Registered Member
    hc747's Avatar
    Join Date
    Dec 2013
    Age
    26
    Posts
    1,474
    Thanks given
    3,312
    Thanks received
    691
    Rep Power
    1098
    Quote Originally Posted by Kris View Post
    You're not understanding.
    What I'm saying is..
    Instead of having like..
    boolean firstBoolean;
    boolean secondBoolean;
    boolean thirdBoolean;
    ..
    boolean twentyfifthboolean;


    You could simply have
    int settings;
    ^All the booleans would be stored inside this specific integer.
    For integers, you can store up to 31, for shorts, up to 15, for bytes, up to 7. Someone correct me if I'm wrong lol, pretty sure these values are correct.
    32, 16, and 8.
    Reply With Quote  
     

  4. #34  
    Rat Donor

    VisionUK's Avatar
    Join Date
    Nov 2017
    Posts
    54
    Thanks given
    48
    Thanks received
    15
    Rep Power
    210
    Thanks for this
    Reply With Quote  
     

  5. #35  
    🥄 You need to relax... Lick this: 🥄


    Join Date
    May 2013
    Posts
    320
    Thanks given
    89
    Thanks received
    76
    Rep Power
    114
    Quote Originally Posted by trees View Post
    This is strait out of he exotic client, The one with zions work?
    Exotic didn't have Rigour or Augury, I'm sure he was simply using it as the client base.
    Reply With Quote  
     

  6. #36  
    Registered Member
    Join Date
    Nov 2014
    Posts
    75
    Thanks given
    5
    Thanks received
    15
    Rep Power
    71
    Can someone help me with this? I'm stuck on the PlayerSave.


    Regardless, thank you for this release!
    Reply With Quote  
     

  7. #37  
    Registered Member
    Join Date
    Feb 2018
    Posts
    3
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    Quote Originally Posted by Sling View Post
    Can someone help me with this? I'm stuck on the PlayerSave.


    Regardless, thank you for this release!
    same here.. constantly throwing errors back at me for whatever i try for playersave
    Reply With Quote  
     

  8. #38  
    Registered Member
    Join Date
    May 2013
    Posts
    282
    Thanks given
    11
    Thanks received
    7
    Rep Power
    11
    Sorry for somewhat of a gravedig...

    I am stuck on
    Code:
     } else if (token.equals("rigour")) {
    p.isRigourUnlocked();
    						
    } else if (token.equals("augury")) {
    p.isAuguryUnlocked();
    What do I need to put in Player.java for this to work?
    Reply With Quote  
     

  9. #39  
    Donator

    Join Date
    Aug 2012
    Posts
    27
    Thanks given
    13
    Thanks received
    4
    Rep Power
    14
    Quote Originally Posted by Dark Dagger View Post
    Sorry for somewhat of a gravedig...

    I am stuck on
    Code:
     } else if (token.equals("rigour")) {
    p.isRigourUnlocked();
                            
    } else if (token.equals("augury")) {
    p.isAuguryUnlocked();
    What do I need to put in Player.java for this to work?
    This should be it bud.

    Code:
    public boolean hasRigour = false;
    
        public boolean getHasRigour() {
            return hasRigour;
        }
        
        public void setRigour(boolean hasRigour) {
            this.hasRigour = hasRigour;
        }
    
        public boolean hasAugury = false;
    
        public boolean getHasAugury() {
            return hasAugury;
        }
    
        public void setAugury(boolean hasAugury) {
            this.hasAugury = hasAugury;
        }
    Reply With Quote  
     

  10. #40  
    Community Veteran

    Dexter Morgan's Avatar
    Join Date
    Nov 2008
    Age
    28
    Posts
    4,419
    Thanks given
    1,184
    Thanks received
    757
    Rep Power
    3098
    Lol jokes nice 1 releasing some old shitty code of mine

    Code:
     * @author 2012 <http://www.rune-server.org/members/dexter+morgan/>
    Reply With Quote  
     

Page 4 of 5 FirstFirst ... 2345 LastLast

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. adding rigour and augury prayers
    By g0d 0f war in forum Help
    Replies: 3
    Last Post: 07-24-2013, 02:00 AM
  2. adding rigour and augury
    By g0d 0f war in forum Help
    Replies: 0
    Last Post: 07-20-2013, 10:23 PM
  3. Replies: 1
    Last Post: 07-20-2013, 09:51 PM
  4. Buy X (client and server side)
    By tj007razor in forum Tutorials
    Replies: 198
    Last Post: 05-11-2013, 12:46 AM
  5. Replies: 6
    Last Post: 10-28-2009, 12:36 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •