Thread: 317 [PI] arrow / bolt problem when switching while shooting with a magic bow / other

Results 1 to 6 of 6
  1. #1 317 [PI] arrow / bolt problem when switching while shooting with a magic bow / other 
    Registered Member
    Join Date
    May 2015
    Posts
    22
    Thanks given
    0
    Thanks received
    0
    Rep Power
    11
    Hello, I have some problems while shooting with any bow or crossbow. When i switch between arrows and bolts when the hit animation has already started, I get the bonus of hitting with a dragon bolt when shooting with a magic shortbow and rune arrows.

    Video:



    Can anyone please help me with this, I can't figure out how to solve this problem... Thanks!
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Dec 2014
    Posts
    435
    Thanks given
    18
    Thanks received
    35
    Rep Power
    11
    Code:
    public boolean correctBowAndArrows() {
    		int w = c.playerEquipment[c.playerWeapon];
    		int a = c.playerEquipment[c.playerArrows];
    		if (w >= 839 && w <= 842 && a >= 882 && a <= 885 ||//normal short & long
    			w >= 843 && w <= 846 && a >= 882 && a <= 887 ||//oak short & long
    			w >= 847 && w <= 850 && a >= 882 && a <= 889 ||//Willow short & long
    			w >= 851 && w <= 854 && a >= 882 && a <= 891 ||//maple short & long
    			w >= 855 && w <= 858 && a >= 882 && a <= 893 ||//Yew short & long
    			w >= 859 && w <= 862 && a >= 882 && a <= 893 ||//magic short & long
    			a >= 9236 && a <= 9245 && w == 9185 ||//rune crossbow
    			a >= 9236 && a <= 9245 && w == 18357 ||//chaotic crossbow
    			a == 11212 && w == 11235 ||//dark bow
    			a == 15243 && w == 15241)//handcannon
    			return true;
    		return false;
    	}


    OSRS Pure
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    May 2015
    Posts
    22
    Thanks given
    0
    Thanks received
    0
    Rep Power
    11
    But this doesn't change anything to me able to switch the arrows during the attack and hitting with the bolts?

    - - - Updated - - -

    Look i shoot with the rune arrows and then while attacking switch to the dragon bolts and it gives me the hit bonus of the dragon bolt, I don't know how to fix this..
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Jul 2015
    Posts
    150
    Thanks given
    0
    Thanks received
    7
    Rep Power
    0
    Quote Originally Posted by jasperheeren View Post
    But this doesn't change anything to me able to switch the arrows during the attack and hitting with the bolts?

    - - - Updated - - -

    Look i shoot with the rune arrows and then while attacking switch to the dragon bolts and it gives me the hit bonus of the dragon bolt, I don't know how to fix this..
    1. Record bonus at fireing
    2. Record bonus before hit
    3. Set bonus before hit to fireing bonus
    4. Hit
    5. Set bonus back to bonus recorded in step 2

    Step 5 is so just incase they switch ammo during the attack that the bonus will be correct for the next attack
    but heres another problem the weapon... its likely you could do a similar thing with your weapons try swapping a bronze crossbow for a rune crossbow and see what happens
    the fix is very similar to what was just said
    Reply With Quote  
     

  5. #5  
    Banned 317 [PI] arrow / bolt problem when switching while shooting with a magic bow / other Market Banned


    Join Date
    Jan 2011
    Age
    26
    Posts
    3,112
    Thanks given
    1,198
    Thanks received
    1,479
    Rep Power
    0
    calculate the damage and accuracy before the attack logic is sent
    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    May 2015
    Posts
    22
    Thanks given
    0
    Thanks received
    0
    Rep Power
    11
    Quote Originally Posted by lare96 View Post
    calculate the damage and accuracy before the attack logic is sent
    Can you give me a hint on where to find that, I'm new to rspses..
    Reply With Quote  
     


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. [PI] Arrow\Bolt Dupe, Stackables Dupe [SS]
    By Linksbro in forum Tutorials
    Replies: 11
    Last Post: 07-13-2013, 02:26 PM
  2. [PI] Resetting Auto Cast When Switching Weapons
    By Paradox_ in forum Snippets
    Replies: 12
    Last Post: 08-01-2012, 06:07 AM
  3. Pi Dragon Bolts Problem
    By Gershon in forum Help
    Replies: 2
    Last Post: 05-25-2012, 11:01 PM
  4. [317][PI]Level 136 Problem...
    By tuna guy in forum Help
    Replies: 6
    Last Post: 02-09-2012, 04:43 AM
  5. [317 PI] How do tele when you kill an NPC?
    By BryceTheCoder in forum Help
    Replies: 2
    Last Post: 11-05-2011, 07:58 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
  •