Check line 245 on Player class and post it here.
|
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?
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; }
Somehow they almost never manage to mark the exact line. Luckily, we good programmers know with 100% certainty that "client" is a null.
so change the client.sm to c.sm?
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?
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |