Thread: Exquiment Bonuses

Page 1 of 2 12 LastLast
Results 1 to 10 of 16
  1. #1 Exquiment Bonuses 
    Banned
    Join Date
    Sep 2017
    Posts
    159
    Thanks given
    13
    Thanks received
    11
    Rep Power
    0
    I am messin around on OS-Royale source, and I noticed a bug where the equipment stats go to 0 when you login with items on. And if you take them off your stats go to negative. The only way to fix this is to take off your items and relog. I'd really like some help looking into this Thanks in advance!


    https://i.gyazo.com/1ba50243e24a3f51...0d3e959bdd.png
    Reply With Quote  
     

  2. #2  
    Respected Member


    Join Date
    Jan 2009
    Posts
    5,743
    Thanks given
    1,162
    Thanks received
    3,603
    Rep Power
    5000
    Reply With Quote  
     

  3. #3  
    Banned
    Join Date
    Sep 2017
    Posts
    159
    Thanks given
    13
    Thanks received
    11
    Rep Power
    0

    the full fix isnt there.
    Reply With Quote  
     

  4. #4  
    Respected Member


    Join Date
    Jan 2009
    Posts
    5,743
    Thanks given
    1,162
    Thanks received
    3,603
    Rep Power
    5000
    Quote Originally Posted by Amenity View Post
    the full fix isnt there.
    i'll download and fix it then release the fix. give me an hour or so
    Reply With Quote  
     

  5. #5  
    Banned
    Join Date
    Sep 2017
    Posts
    159
    Thanks given
    13
    Thanks received
    11
    Rep Power
    0
    Quote Originally Posted by Stuart View Post
    i'll download and fix it then release the fix. give me an hour or so

    much appreciated mate thanks alot!
    Reply With Quote  
     

  6. #6  
    Respected Member


    Join Date
    Jan 2009
    Posts
    5,743
    Thanks given
    1,162
    Thanks received
    3,603
    Rep Power
    5000
    Quote Originally Posted by Amenity View Post
    much appreciated mate thanks alot!
    Code:
    Equipment.java 
    
        /**
         * Handles refreshing all the equipment items.
         */
        public void login() {
            for (int index = 0; index < getItems().length; index++) {
                set(index, get(index), false);
            }
    
            WeaponInterface.execute(player, getWeapon());
            updateWeight();
    
            // calculate the equipment bonuses
            for(Item item : toArray()) {
                if(item != null) {
                    addBonus(item);
                }
            }
    
            refresh();
        }
    Reply With Quote  
     

  7. #7  
    Banned
    Join Date
    Sep 2017
    Posts
    159
    Thanks given
    13
    Thanks received
    11
    Rep Power
    0
    Quote Originally Posted by Stuart View Post
    Code:
    Equipment.java 
    
        /**
         * Handles refreshing all the equipment items.
         */
        public void login() {
            for (int index = 0; index < getItems().length; index++) {
                set(index, get(index), false);
            }
    
            WeaponInterface.execute(player, getWeapon());
            updateWeight();
    
            // calculate the equipment bonuses
            for(Item item : toArray()) {
                if(item != null) {
                    addBonus(item);
                }
            }
    
            refresh();
        }

    thanks stu much appreciate fam
    Reply With Quote  
     

  8. #8  
    Officially Retired


    Join Date
    Oct 2007
    Age
    30
    Posts
    5,454
    Thanks given
    558
    Thanks received
    122
    Rep Power
    1364
    Quote Originally Posted by Stuart View Post
    Code:
    Equipment.java 
    
        /**
         * Handles refreshing all the equipment items.
         */
        public void login() {
            for (int index = 0; index < getItems().length; index++) {
                set(index, get(index), false);
            }
    
            WeaponInterface.execute(player, getWeapon());
            updateWeight();
    
            // calculate the equipment bonuses
            for(Item item : toArray()) {
                if(item != null) {
                    addBonus(item);
                }
            }
    
            refresh();
        }
    bug found. when you die and you wear item it will double your stat.
    Reply With Quote  
     

  9. #9  
    Registered Member Kairon's Avatar
    Join Date
    Feb 2017
    Posts
    202
    Thanks given
    54
    Thanks received
    45
    Rep Power
    33
    Anyone got full fix to it? without this bug "double stat"?
    Reply With Quote  
     

  10. #10  
    Registered Member
    Join Date
    Jul 2012
    Age
    25
    Posts
    122
    Thanks given
    16
    Thanks received
    21
    Rep Power
    15
    Quote Originally Posted by Kairon View Post
    Anyone got full fix to it? without this bug "double stat"?
    That's a separate bug. Check what happens when you die.
    Reply With Quote  
     

Page 1 of 2 12 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. Replies: 8
    Last Post: 07-23-2007, 10:17 PM
  2. How to change the bonus of a item.
    By domo9122 in forum Tutorials
    Replies: 8
    Last Post: 06-06-2007, 12:49 AM
  3. Need Tut On Editing Weapon Bonus
    By Valkynaz in forum Tutorials
    Replies: 2
    Last Post: 06-03-2007, 05:58 AM
  4. Full version of Bonus Editing(ANTI-LEECHED)
    By Dark Santa in forum Tutorials
    Replies: 8
    Last Post: 05-24-2007, 12:09 AM
  5. Editing items bonuses
    By Pancakebuddy in forum Tutorials
    Replies: 8
    Last Post: 05-23-2007, 11:37 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •