Thread: [PI] Crossbow bug against npc's

Results 1 to 7 of 7
  1. #1 [PI] Crossbow bug against npc's 
    Registered Member 2nubs1cup's Avatar
    Join Date
    Jan 2013
    Posts
    972
    Thanks given
    77
    Thanks received
    90
    Rep Power
    15
    Code:
    [7/22/14 8:54 PM]: java.lang.ArrayIndexOutOfBoundsException: 628
    [7/22/14 8:54 PM]: 	at server.model.players.combat.range.RangeExtras.crossbowSpecial(RangeExtras.java:48)
    [7/22/14 8:54 PM]: 	at server.model.players.CombatAssistant.crossbowSpecial(CombatAssistant.java:291)
    [7/22/14 8:54 PM]: 	at server.model.players.combat.AttackNPC.delayedHit(AttackNPC.java:193)
    [7/22/14 8:54 PM]: 	at server.model.players.CombatAssistant.delayedHit(CombatAssistant.java:103)
    [7/22/14 8:54 PM]: 	at server.model.players.Client.process(Client.java:675)
    [7/22/14 8:54 PM]: 	at server.model.players.PlayerHandler.process(PlayerHandler.java:151)
    [7/22/14 8:54 PM]: 	at server.Server$1.execute(Server.java:221)
    [7/22/14 8:54 PM]: 	at server.event.Task.tick(Task.java:118)
    [7/22/14 8:54 PM]: 	at server.event.TaskScheduler.run(TaskScheduler.java:103)
    [7/22/14 8:54 PM]: 	at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
    [7/22/14 8:54 PM]: 	at java.util.concurrent.FutureTask.runAndReset(Unknown Source)
    [7/22/14 8:54 PM]: 	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(Unknown Source)
    [7/22/14 8:54 PM]: 	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
    [7/22/14 8:54 PM]: 	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    [7/22/14 8:54 PM]: 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    [7/22/14 8:54 PM]: 	at java.lang.Thread.run(Unknown Source)
    Range extras line 48:
    Code:
    public static void crossbowSpecial(Client c, int i) {
    		Client p = (Client)PlayerHandler.players[i];
    		NPC n = (NPC)NPCHandler.npcs[i];
    		c.crossbowDamage = 1.4;
    		switch (c.lastArrowUsed) {
    			case 9236: // Lucky Lightning
    				createCombatGFX(c, i, 749, false);
    				c.crossbowDamage = 1.25;
    				break;
    			case 9237: // Earth's Fury
    				createCombatGFX(c, i, 755, false);
    				break;
    			case 9238: // Sea Curse
    				createCombatGFX(c, i, 750, false);
    				c.crossbowDamage = 1.10;
    				break;
    			case 9239: // Down to Earth
    				createCombatGFX(c, i, 757, false);
     				if(c.playerIndex > 0) {
    					p.playerLevel[6] -= 2;
    					p.getPA().refreshSkill(6);
    					p.sendMessage("Your magic has been lowered!");
    				}
    combatassistant line 291:
    Code:
    public void crossbowSpecial(Client c, int i) {
    		RangeExtras.crossbowSpecial(c, i);
    	}
    attacknpc line 193:
    Code:
    if(c.playerEquipment[3] == 9185) {
    					if(Misc.random(4) == 1) {
    						if(damage > 0) {
    							c.boltDamage = damage;
    							c.getCombat().crossbowSpecial(c,i);
    							damage *= c.crossbowDamage;
    						}
    					}
    				}
    combatassistant 103:
    Code:
    public void delayedHit(final Client c, final int i) {
    		AttackNPC.delayedHit(c, i);
    	}
    client 675:
    Code:
    if(hitDelay == 1) {
    			if(oldNpcIndex > 0) {
    				getCombat().delayedHit(this, oldNpcIndex);
    			}
    			if(oldPlayerIndex > 0) {
    				getCombat().playerDelayedHit(this, oldPlayerIndex);				
    			}		
    		}
    playerhandler 151:
    Code:
    players[i].preProcessing();
    					players[i].processQueuedPackets();
    					players[i].process();
    					players[i].postProcessing();
    					players[i].getNextPlayerMovement();
    				} catch (Exception e) {
    					e.printStackTrace();
    				}
    			}
    Can someone help me fix this please? When ever a bolt special is attempted I get that error and my c bow does no damage or the spec gfx.
    Reply With Quote  
     

  2. #2  
    Registered Member 2nubs1cup's Avatar
    Join Date
    Jan 2013
    Posts
    972
    Thanks given
    77
    Thanks received
    90
    Rep Power
    15
    bump, no one knows how to fix this?
    Reply With Quote  
     

  3. #3  
    Donator

    Yuuji's Avatar
    Join Date
    Feb 2012
    Posts
    678
    Thanks given
    232
    Thanks received
    153
    Rep Power
    197
    Bump having this same problem.

    Also, it is only when a bolt effect is active.

    Attached image
    Attached image
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Aug 2014
    Posts
    45
    Thanks given
    7
    Thanks received
    0
    Rep Power
    11
    Does it not work at all?
    Or only not vs Npc's / People?

    Also, Do you hit 0 or do you hit nothing at all?
    Does it shoot the bolt or stops attacking?
    Reply With Quote  
     

  5. #5  
    Donator

    Yuuji's Avatar
    Join Date
    Feb 2012
    Posts
    678
    Thanks given
    232
    Thanks received
    153
    Rep Power
    197
    Quote Originally Posted by Popcorntime View Post
    Does it not work at all?
    Or only not vs Npc's / People?

    Also, Do you hit 0 or do you hit nothing at all?
    Does it shoot the bolt or stops attacking?
    Only vs Npc's, hits nothing at all when the spec is active (whenever the dragon bolt special effect or other bolt special effect activates), and it keeps attacking.

    Attached image
    Attached image
    Reply With Quote  
     

  6. #6  
    Donator


    Join Date
    May 2011
    Posts
    554
    Thanks given
    319
    Thanks received
    86
    Rep Power
    214
    Iknow the fix for this wont release it tho
    Reply With Quote  
     

  7. #7  
    Donator

    Yuuji's Avatar
    Join Date
    Feb 2012
    Posts
    678
    Thanks given
    232
    Thanks received
    153
    Rep Power
    197
    Quote Originally Posted by str1pking1 View Post
    Iknow the fix for this wont release it tho
    Then don't post here, if you're not willing to help, then don't post.

    Attached image
    Attached image
    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] Soulsplit Against NPC
    By wapie in forum Help
    Replies: 5
    Last Post: 07-29-2012, 07:42 AM
  2. PI Soulsplit against Npcs
    By Ss Pker in forum Snippets
    Replies: 4
    Last Post: 07-19-2012, 03:44 AM
  3. PI special attack against npc
    By Ashley in forum Help
    Replies: 2
    Last Post: 02-24-2012, 11:42 PM
  4. [PI] Fixed Death Bug (Against NPC's)
    By acoustics in forum Tutorials
    Replies: 11
    Last Post: 01-23-2011, 07:01 AM
  5. [Bug-fix] NPC positioning
    By Palidino in forum Tutorials
    Replies: 30
    Last Post: 04-18-2010, 09:54 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
  •