Thread: [PI] Can't attack npc's with armadyl c'bow

Results 1 to 5 of 5
  1. #1 [PI] Can't attack npc's with armadyl c'bow 
    Registered Member 2nubs1cup's Avatar
    Join Date
    Jan 2013
    Posts
    972
    Thanks given
    77
    Thanks received
    90
    Rep Power
    15
    I've copied every method that the rune c'bow uses and my armadyl c bow still cant attack npcs, where do i fix this. It says "you can't use dragon bolts(e) with a armadyl crossbow".
    Reply With Quote  
     

  2. #2  
    Registered MrClassic
    MrClassic's Avatar
    Join Date
    Oct 2008
    Age
    15
    Posts
    2,063
    Thanks given
    24,154
    Thanks received
    551
    Rep Power
    5000
    Search for a method in CombatAssistant.java which manages the arrows/bolts to use
    Reply With Quote  
     

  3. #3  
    Registered Member 2nubs1cup's Avatar
    Join Date
    Jan 2013
    Posts
    972
    Thanks given
    77
    Thanks received
    90
    Rep Power
    15
    Quote Originally Posted by Hazard View Post
    Search for a method in CombatAssistant.java which manages the arrows/bolts to use
    Mine aren't in combatassistant.java, it's in attacknpc, in one of my range combat classes to and it still doesn't work.
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Nov 2013
    Posts
    93
    Thanks given
    21
    Thanks received
    8
    Rep Power
    15
    Make sure if you're including the Arma c'bow in the methods with Rune c'bows, use "||" not "&&".
    This happened to me too, but I ended up getting rid of that stupid method and re-writing it.
    Get rid of that part where it says that message and replace with:
    Code:
    if (!usingCross
    						&& !usingArrows
    						&& usingBow
    						&& (c.playerEquipment[c.playerWeapon] < 4212 || c.playerEquipment[c.playerWeapon] > 4223)) {
    					c.sendMessage("You have run out of arrows!");
    					c.stopMovement();
    					c.npcIndex = 0;
    					return;
    				}
    				
    				if (usingBow && properBolts() && !usingCross) {
    					c.sendMessage("You can't use bolts with a bow.");
    					c.stopMovement();
    					resetPlayerAttack();
    					return;
    				}
    				
    				
    
    				if (c.playerEquipment[c.playerWeapon] == 15004 && !properBolts()
    						) {
    					c.sendMessage("You must use bolts with a crossbow.");
    					c.stopMovement();
    					resetPlayerAttack();
    					return;
    				}
    				if (c.playerEquipment[c.playerWeapon] == 9185 && !properBolts()
    						) {
    					c.sendMessage("You must use bolts with a crossbow.");
    					c.stopMovement();
    					resetPlayerAttack();
    					return;
    				}
    Do the same with ClickNPC.java and AttackPlayer.java
    Quote Originally Posted by tony0 View Post


    What did i do wrong? or do i need to fix something in the client? Please pm me on here if you can teamview or help me. Thanks.
    Reply With Quote  
     

  5. #5  
    Registered Member 2nubs1cup's Avatar
    Join Date
    Jan 2013
    Posts
    972
    Thanks given
    77
    Thanks received
    90
    Rep Power
    15
    Quote Originally Posted by Train View Post
    Make sure if you're including the Arma c'bow in the methods with Rune c'bows, use "||" not "&&".
    This happened to me too, but I ended up getting rid of that stupid method and re-writing it.
    Get rid of that part where it says that message and replace with:
    Code:
    if (!usingCross
    						&& !usingArrows
    						&& usingBow
    						&& (c.playerEquipment[c.playerWeapon] < 4212 || c.playerEquipment[c.playerWeapon] > 4223)) {
    					c.sendMessage("You have run out of arrows!");
    					c.stopMovement();
    					c.npcIndex = 0;
    					return;
    				}
    				
    				if (usingBow && properBolts() && !usingCross) {
    					c.sendMessage("You can't use bolts with a bow.");
    					c.stopMovement();
    					resetPlayerAttack();
    					return;
    				}
    				
    				
    
    				if (c.playerEquipment[c.playerWeapon] == 15004 && !properBolts()
    						) {
    					c.sendMessage("You must use bolts with a crossbow.");
    					c.stopMovement();
    					resetPlayerAttack();
    					return;
    				}
    				if (c.playerEquipment[c.playerWeapon] == 9185 && !properBolts()
    						) {
    					c.sendMessage("You must use bolts with a crossbow.");
    					c.stopMovement();
    					resetPlayerAttack();
    					return;
    				}
    Do the same with ClickNPC.java and AttackPlayer.java
    Also how can I make the bolt effect work as well? Everytime it attempts to do a special effect, not even a hitmarker appears.
    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 Can't attack with melee in duel arena
    By Amirtje12 in forum Help
    Replies: 0
    Last Post: 04-13-2014, 05:11 PM
  2. Replies: 5
    Last Post: 01-02-2014, 09:13 PM
  3. [317 PI] Can't attack NPC
    By Stylo HD in forum Help
    Replies: 9
    Last Post: 01-20-2013, 11:39 AM
  4. [PI] Can't attack npc
    By Darna in forum Help
    Replies: 5
    Last Post: 12-10-2012, 09:27 AM
  5. Can't Attack NPC's
    By Swarfega in forum Help
    Replies: 14
    Last Post: 03-27-2009, 05:13 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
  •