Thread: Need help now! Please!

Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1 Need help now! Please! 
    Donator


    Join Date
    Nov 2008
    Posts
    885
    Thanks given
    13
    Thanks received
    35
    Rep Power
    100
    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]
    i need to fix this now everytime i try to attack an npc i dc will rep++++ need this fast please.
    Reply With Quote  
     

  2. #2  
    Doctor p - Sweet Shop

    Join Date
    Apr 2007
    Age
    31
    Posts
    6,835
    Thanks given
    150
    Thanks received
    584
    Rep Power
    2595
    client.java:5589 post that line of code pls

    Reply With Quote  
     

  3. #3  
    Donator


    Join Date
    Nov 2008
    Posts
    885
    Thanks given
    13
    Thanks received
    35
    Rep Power
    100
    Quote Originally Posted by Nathan. View Post
    client.java:5589 post that line of code pls
    for (int i = 0; i < shortbow.length; i++) {
    if ((playerEquipment[playerWeapon] == shortbow[i])
    || (playerEquipment[playerWeapon] == longbow[i])) {
    UseBow = true;
    break;
    }
    }
    if (

    ctrl + g line 5589?
    Reply With Quote  
     

  4. #4  
    Doctor p - Sweet Shop

    Join Date
    Apr 2007
    Age
    31
    Posts
    6,835
    Thanks given
    150
    Thanks received
    584
    Rep Power
    2595
    Quote Originally Posted by tsknubytsk View Post
    ctrl + g line 5589?
    can't see much from that code, maybe post some more

    i wonder why there is a break; there

    Reply With Quote  
     

  5. #5  
    Donator


    Join Date
    Nov 2008
    Posts
    885
    Thanks given
    13
    Thanks received
    35
    Rep Power
    100
    }
    }
    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;
    }
    thereas some more ><
    Reply With Quote  
     

  6. #6  
    You're My Favourite!

    Join Date
    Aug 2007
    Posts
    1,282
    Thanks given
    485
    Thanks received
    72
    Rep Power
    1397
    Is it a special weapon you are attacking with? Or is it just attacking?




    With Love, Bot.
    Reply With Quote  
     

  7. #7  
    Donator


    Join Date
    Nov 2008
    Posts
    885
    Thanks given
    13
    Thanks received
    35
    Rep Power
    100
    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.
    Reply With Quote  
     

  8. #8  
    Doctor p - Sweet Shop

    Join Date
    Apr 2007
    Age
    31
    Posts
    6,835
    Thanks given
    150
    Thanks received
    584
    Rep Power
    2595
    maybe remove that break because i really don't see why that break is needed

    Reply With Quote  
     

  9. #9  
    Registered Member
    Join Date
    Oct 2008
    Posts
    191
    Thanks given
    0
    Thanks received
    1
    Rep Power
    15
    Yeh I don't think it will overflow.
    I'm back for the free software.
    Reply With Quote  
     

  10. #10  
    Donator


    Join Date
    Nov 2008
    Posts
    885
    Thanks given
    13
    Thanks received
    35
    Rep Power
    100
    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!
    Reply With Quote  
     

Page 1 of 2 12 LastLast

Thread Information
Users Browsing this Thread

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


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •