Thread: error

Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1 error 
    Extreme Donator

    sexyrussian's Avatar
    Join Date
    Nov 2009
    Posts
    887
    Thanks given
    47
    Thanks received
    23
    Rep Power
    0
    everything works the way its supposed 2 but i do get a mysterious error in my console.

    Code:
    java.lang.NullPointerException
            at Player.applyPoison(Player.java:245)
            at NPCHandler.AttackPlayer(NPCHandler.java:1110)
            at NPCHandler.process(NPCHandler.java:2786)
            at process.run(process.java:25)
            at java.lang.Thread.run(Thread.java:619)
    java.lang.NullPointerException
            at Player.applyPoison(Player.java:245)
            at NPCHandler.AttackPlayer(NPCHandler.java:1110)
            at NPCHandler.process(NPCHandler.java:2786)
            at process.run(process.java:25)
            at java.lang.Thread.run(Thread.java:619)

    any ideas?
    Reply With Quote  
     

  2. #2  
    Registered Member
    Purple's Avatar
    Join Date
    Feb 2010
    Age
    29
    Posts
    2,799
    Thanks given
    467
    Thanks received
    260
    Rep Power
    312
    Check line 245 on Player class and post it here.
    Reply With Quote  
     

  3. #3  
    Member error Market Banned


    Luke132's Avatar
    Join Date
    Dec 2007
    Age
    35
    Posts
    12,574
    Thanks given
    199
    Thanks received
    7,106
    Rep Power
    5000
    It's whatever's on line 245 in Player.
    Reply With Quote  
     

  4. #4  
    Extreme Donator

    sexyrussian's Avatar
    Join Date
    Nov 2009
    Posts
    887
    Thanks given
    47
    Thanks received
    23
    Rep Power
    0
    Code:
    public int PoisonDamage;
        public int PoisonTimer;
        public int PoisonDamageTimer;
        public boolean poisoned = false;
        public void applyPoison()
        {
            client.sM("You have been Poisoned");
            hitDiff = 6;
            currentHealth -= hitDiff;
            updateRequired = true;
            hitUpdateRequired = true;
            PoisonDamage = 6;
            PoisonTimer = 2400;
            PoisonDamageTimer = 800;
            poisoned = true;
        }
    Reply With Quote  
     

  5. #5  
    Registered Member
    Its paris's Avatar
    Join Date
    Apr 2009
    Posts
    1,141
    Thanks given
    56
    Thanks received
    234
    Rep Power
    689
    Somehow they almost never manage to mark the exact line. Luckily, we good programmers know with 100% certainty that "client" is a null.
    Reply With Quote  
     

  6. #6  
    Registered Member
    Lil Str Kid's Avatar
    Join Date
    Jul 2007
    Age
    31
    Posts
    1,302
    Thanks given
    169
    Thanks received
    71
    Rep Power
    260
    if(client == null)
    return;


    Reply With Quote  
     

  7. #7  
    Extreme Donator

    sexyrussian's Avatar
    Join Date
    Nov 2009
    Posts
    887
    Thanks given
    47
    Thanks received
    23
    Rep Power
    0
    so change the client.sm to c.sm?
    Reply With Quote  
     

  8. #8  
    Registered Member
    PSNB's Avatar
    Join Date
    Aug 2009
    Posts
    885
    Thanks given
    8
    Thanks received
    103
    Rep Power
    590
    Quote Originally Posted by sexyrussian View Post
    so change the client.sm to c.sm?
    Try reading what others post before asking what to do. Might get you a little somewhere T_T.
    Reply With Quote  
     

  9. #9  
    Registered Member
    Mister Maggot's Avatar
    Join Date
    Dec 2008
    Posts
    7,227
    Thanks given
    3,283
    Thanks received
    2,875
    Rep Power
    5000
    Why the fuck do you have that in process? Poison should be on-demand..
    Reply With Quote  
     

  10. #10  
    Extreme Donator

    sexyrussian's Avatar
    Join Date
    Nov 2009
    Posts
    887
    Thanks given
    47
    Thanks received
    23
    Rep Power
    0
    so first, i asked again, to be clear, comminication is very important.

    also, im more or a php/mysql programmer and im not good at java snippets,

    some guy wrote me this snippet and it doesnt work, do you know any WORKING poison snippets for delta?
    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
  •