client.java:5589 post that line of code pls
|
i need to fix this now everytime i try to attack an npc i dc will rep++++ need this fast please.Slick Pk
Connection from localhost:1613
[client-1-I laid ur gf]: Loading Process Completed [Has powers, lag: 16 ms]
[client-1-I laid ur gf]: command: npc 76
Error with player 1, I laid ur gf
java.lang.ArrayIndexOutOfBoundsException: 18
at client.AttackNPC(client.java:5589)
at client.process(client.java:15995)
at PlayerHandler.process(PlayerHandler.java:270)
at process.run(process.java:23)
at java.lang.Thread.run(Unknown Source)
Game saved for player I laid ur gf
ClientHandler: Client I laid ur gf disconnected (localhost)
Connection from localhost:1614
[client-1-I laid ur gf]: Loading Process Completed [Has powers, lag: 0 ms]
client.java:5589 post that line of code pls
thereas some more ><}
}
long thisTime = System.currentTimeMillis();
int voidmelee = 0;
if(FullVMelee()){
voidmelee += 10;
}
if (npcHit()) {
hitDiff = misc.random(playerMaxHit) + misc.random(StrPrayer) + misc.random(voidmelee);
} else {
hitDiff = 0;
}
boolean UseBow = false;
boolean UseCrossBow = false;
boolean UseRing = false;
for (int i = 0; i < shortbow.length; i++) {
if ((playerEquipment[playerWeapon] == shortbow[i])
|| (playerEquipment[playerWeapon] == longbow[i])) {
UseBow = true;
break;
}
}
if (playerEquipment[playerWeapon] == 837) {
UseCrossBow = true;
}
if (playerEquipment[playerWeapon] == 6522) {
UseRing = true;
}
if (UseBow) {
HasArrows = false;
CheckArrows();
//CalculateRange();
hitDiff = npcRangeDamage();
//drawback();
}
if (UseCrossBow) {
HasBolts = false;
CheckBolts();
//CalculateRange();
hitDiff = npcRangeDamage();
}
if (UseRing) {
HasRings = false;
CheckRings();
//CalculateRange();
hitDiff = npcRangeDamage();
}
if(UseBow || UseCrossBow || UseRing){
if(GoodDistance(EnemyX, EnemyY, absX, absY, 8) == false){
sM("You are too far to range your enemy!");
ResetAttackNPC();
return false;
}
Is it a special weapon you are attacking with? Or is it just attacking?
just attacking generally with anything. well for some reason when i was messing around with my rune knives that's when it stopped being able to attack so what i did is remove 868 and everything i did in the client.java and i still am not being able to fix this.
maybe remove that break because i really don't see why that break is needed
Yeh I don't think it will overflow.
tried that didn't work
god damnit i never backed my client up so my client.java is screwed and i gotta do all that coding over again GOD
Last edited by Silicity; 01-31-2009 at 02:23 AM. Reason: Double posting is not allowed!
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |