Thread: [Ruse] bolts and arrows range strength bug

Results 1 to 3 of 3
  1. #1 [Ruse] bolts and arrows range strength bug 
    Registered Member Versatile's Avatar
    Join Date
    Dec 2014
    Age
    22
    Posts
    433
    Thanks given
    243
    Thanks received
    9
    Rep Power
    9
    Equiping an ammo either bolt or arrow adds range strength when I have a dart, javelin or knife.

    Max hit 120 with bronze knife would now become 320 when a dragon bolt (e) is equipped.

    What file would I have to look at to fix this? I already checked out Combatfactory, DefaultRangedCombatStrategy, and CombatRangedAmmo. No luck.




    Best I did was if an ammo is in your ammo slot and you have a dart, javelin, or knife then the range strength for the ammo will nullify the strength increase.
    and would add the range strength once you have the proper bow/crossbow for it.

    but that's a cheaphax. i want to figure out how to do it the right way.
    Spoiler for Don't be a deadfool:
    Reply With Quote  
     

  2. #2  
    Registered Member
    arch337's Avatar
    Join Date
    Sep 2008
    Posts
    2,628
    Thanks given
    165
    Thanks received
    270
    Rep Power
    497
    You could take a look on how they write / check for bonuses to range strength. You could check the equip packet and follow it's method till you find that out.
    Then inside have it priorities the bonus from your weapon if a specific range weapon is equip like knife, dart, throwaxe, javelin (If osrs then instead of javelin it is blowpipe as javelin is in the ammo slot).
    Then if you do not have these, then just have it write the bonus from your ammounition and weapon (In ballista's case).


    "A fail act is something you do regular, but a dumb act is something you can learn from"
    Spoiler for Problem?:
    Reply With Quote  
     

  3. #3  
    Registered Member Versatile's Avatar
    Join Date
    Dec 2014
    Age
    22
    Posts
    433
    Thanks given
    243
    Thanks received
    9
    Rep Power
    9
    Quote Originally Posted by arch337 View Post
    You could take a look on how they write / check for bonuses to range strength. You could check the equip packet and follow it's method till you find that out.
    Then inside have it priorities the bonus from your weapon if a specific range weapon is equip like knife, dart, throwaxe, javelin (If osrs then instead of javelin it is blowpipe as javelin is in the ammo slot).
    Then if you do not have these, then just have it write the bonus from your ammounition and weapon (In ballista's case).
    Yeah, i couldn't figure that out. So I did this instead and still works

    Code:
     String arrowName = player.getEquipment().getItems()[Equipment.AMMUNITION_SLOT].getDefinition().getName();
    
    		if ((knife(player) || javelin(player) || throwaxe(player) || dart(player) || chinchompa(player)
    				|| toktz(player)) && (arrowName.contains("arrow") || arrowName.contains("bolt"))) {
    			rangedStrength -= AmmunitionData.getAmmunitionData(player).getStrength();
    		}
    I can't figure out how to do it the right way.
    Basically, it just removes the arrow/bolt's range strength if a dart, knife, etc. is also being wielded.
    Rather than telling the server to void the range str when an arrow/bolt is equipped while using a throwable.
    Spoiler for Don't be a deadfool:
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

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

Similar Threads

  1. Need 75 attak 75 strength and 75 range
    By Bazingah in forum Services
    Replies: 2
    Last Post: 08-27-2018, 11:23 PM
  2. Replies: 10
    Last Post: 08-19-2018, 04:12 PM
  3. Replies: 1
    Last Post: 06-01-2018, 08:24 PM
  4. Replies: 4
    Last Post: 07-04-2013, 04:45 AM
  5. Projectile Ids for Bolts and Dragon arrows.
    By Peril in forum Requests
    Replies: 9
    Last Post: 11-21-2009, 05:55 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
  •