Thread: Need Help

Results 1 to 2 of 2
  1. #1 Need Help 
    Registered Member

    Join Date
    Sep 2009
    Posts
    1,723
    Thanks given
    45
    Thanks received
    81
    Rep Power
    269
    Code:
    java.lang.NullPointerException
            at client.specialAtk(client.java:20630)
            at client.AttackNPC(client.java:8194)
            at client.process(client.java:18529)
            at PlayerHandler.process(PlayerHandler.java:278
            at process.run(process.java:23)
            at java.lang.Thread.run(Unknown Source)
    the Problem is at client.java Line 8194
    Code:
    if(playerEquipment[playerWeapon] == 2402 && specialAmount > 49){
    specialAtk(false, 50, 600, 2087);
    specGFX(611);
    getHit(0);
    currentHealth += hitDiff;
    playerLevel[5] += 5 + misc.random(15);
    sendQuest("" + playerLevel[5] + "", 4012);
    				if (currentHealth > playerLevel[playerHitpoints])
    					currentHealth = playerLevel[playerHitpoints];
    				sendQuest("" + currentHealth + "", 4016);
    				if (playerLevel[5] > getLevelForXP(playerXP[5]))
    					playerLevel[5] = getLevelForXP(playerXP[5]);
    				sendQuest("" + playerLevel[5] + "", 4012);
    }
    i dont know whats wrong with it


    Web Hosting | VPS | CDN | DDoS Protected Solutions
    Reply With Quote  
     

  2. #2  
    Renown Programmer
    Method's Avatar
    Join Date
    Feb 2009
    Posts
    1,455
    Thanks given
    0
    Thanks received
    845
    Rep Power
    3019
    what is line 20630 of client.java (inside the specialAtk method)??
    :-)
    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

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