Thread: [Ruse] barrage abuse fix

Page 1 of 2 12 LastLast
Results 1 to 10 of 15
  1. #1 [Ruse] barrage abuse fix 
    Time to sleep for another couple years.

    Dizzy King's Avatar
    Join Date
    Jul 2012
    Age
    25
    Posts
    752
    Thanks given
    258
    Thanks received
    117
    Rep Power
    103
    This tutorial is to stop this from happening:



    Anyways, CombatSpecial.java

    above
    Code:
    }
    			final CombatSpecial spec = player.getCombatSpecial();
    			boolean instantSpecial = spec == CombatSpecial.GRANITE_MAUL || spec == CombatSpecial.DRAGON_BATTLEAXE || spec == CombatSpecial.STAFF_OF_LIGHT;
    			if (spec == CombatSpecial.STAFF_OF_LIGHT && player.hasStaffOfLightEffect()) {
    				player.getPacketSender().sendMessage("You are already being protected by the Staff of Light!");
    				return;
    			}
    add
    Code:
                            if(player.isAutocast()){
                            player.setAutocast(false);
                            player.getPacketSender().sendMessage("Gay shit detected.");
                            return;
                }}
    Probably a better way to do this, but i DON'T CARE.
    find
    Code:
    CombatSpecial.activate(player);
    above it, add the code referred to above this ^
    Attached image

    Reply With Quote  
     

  2. #2  
    Banned
    Join Date
    Dec 2015
    Posts
    176
    Thanks given
    31
    Thanks received
    22
    Rep Power
    0
    Thanks, Although you're just encouraging ruse even more.
    Reply With Quote  
     

  3. #3  
    Registered Member NextGen's Avatar
    Join Date
    Oct 2015
    Posts
    112
    Thanks given
    8
    Thanks received
    5
    Rep Power
    10
    The way i fixed this was in CombatFactory.java

    Above

    Code:
    double attackCalc = Math.floor(equipmentBonus + attacker.getBaseAttack(type)) + 8;
    Add this

    Code:
    /*
     * Fixed By SimplyNextGen
     */
    if (player.isSpecialActivated()) { 
    				player.getPacketSender().sendAutocastId(-1);
    				player.setAutocast(false);
    				player.setAutocastSpell(null);
    				player.setCastSpell(null);
    				player.getPacketSender().sendConfig(108, 3);
    				specialBonus = player.getCombatSpecial().getAccuracyBonus();
    			}
    		}
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Nov 2014
    Posts
    10
    Thanks given
    1
    Thanks received
    1
    Rep Power
    11
    Quote Originally Posted by Hitsplat_ View Post
    Thanks, Although you're just encouraging ruse even more.
    Ruse is a good source as long as you don't blindly leach it. Its good for people looking to learn how to develop RSPS
    Reply With Quote  
     

  5. #5  
    Registered Member Smoothas's Avatar
    Join Date
    Oct 2013
    Posts
    260
    Thanks given
    28
    Thanks received
    33
    Rep Power
    20
    Quote Originally Posted by Hitsplat_ View Post
    Thanks, Although you're just encouraging ruse even more.
    lol ruse is better than pi
    thanks
    Reply With Quote  
     

  6. #6  
    Banned

    Join Date
    Jul 2015
    Posts
    607
    Thanks given
    520
    Thanks received
    660
    Rep Power
    0
    bad fix, do it like this instead:
    http://www.rune-server.org/runescape...bug-fixes.html
    with my fix, the character will properly run up to the target and spec them
    Reply With Quote  
     

  7. #7  
    Time to sleep for another couple years.

    Dizzy King's Avatar
    Join Date
    Jul 2012
    Age
    25
    Posts
    752
    Thanks given
    258
    Thanks received
    117
    Rep Power
    103
    Quote Originally Posted by Swiffy View Post
    bad fix, do it like this instead:
    http://www.rune-server.org/runescape...bug-fixes.html
    with my fix, the character will properly run up to the target and spec them
    Just a half assed fix, but it does work.
    Attached image

    Reply With Quote  
     

  8. #8  
    Banned

    Join Date
    Aug 2011
    Posts
    843
    Thanks given
    541
    Thanks received
    220
    Rep Power
    0
    Quote Originally Posted by Smoothas View Post
    lol ruse is better than pi
    thanks
    lol ruse is PI, just revamped.
    Reply With Quote  
     

  9. #9  
    Banned

    Join Date
    Jul 2015
    Posts
    607
    Thanks given
    520
    Thanks received
    660
    Rep Power
    0
    Quote Originally Posted by Pwnhub View Post
    lol ruse is PI, just revamped.
    lmfao no it isn't, Ruse is written from scratch but contains a lot of code from "Desolace" which was made by me, Samy and relex (Niobe)
    Reply With Quote  
     

  10. Thankful users:


  11. #10  
    Banned [Ruse] barrage abuse fix Market Banned

    -3clipse-'s Avatar
    Join Date
    May 2015
    Posts
    839
    Thanks given
    101
    Thanks received
    311
    Rep Power
    389
    Quote Originally Posted by Swiffy View Post
    lmfao no it isn't, Ruse is written from scratch but contains a lot of code from "Desolace" which was made by me, Samy and relex (Niobe)
    Apparently on r-s, every server is a PI
    Reply With Quote  
     

  12. Thankful users:


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. [Ruse] Pets bug fix
    By Swiffy in forum Snippets
    Replies: 7
    Last Post: 12-01-2015, 10:48 AM
  2. Replies: 4
    Last Post: 07-06-2009, 11:00 PM
  3. Replies: 80
    Last Post: 11-30-2008, 12:54 AM
  4. [TUT]herblore bug fix in testscape
    By lattmjolk1 in forum Tutorials
    Replies: 1
    Last Post: 06-19-2007, 03:14 PM
  5. NPC Magic Distance Bug Fix
    By Zekkalkan in forum Tutorials
    Replies: 5
    Last Post: 05-06-2007, 07:21 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
  •