It's probably the sound, just comment the sound out, because it could cause a nullpointer if you don't have sound enabled on your client. Otherwise it works for me fine.
|
I have this weird bug that i havent fixed yet cause im not 100% sure how to fix this bug.
Server Base: Azure v3
Bug: NPC Combat bug
Bug Details:
- When you have no weapons on, in weapon slot. And attack a npc you will disconnect from the server. Im not 100% if this is the same way as Attacking player, but if it is. Help fix that to .
End of Bug:
Any fixes?
It's probably the sound, just comment the sound out, because it could cause a nullpointer if you don't have sound enabled on your client. Otherwise it works for me fine.
There no sound for punching though,
sorry, one sec i'll fix it for you.
Nope. Still disconnects.
Edit: Okay, thanks man.
Could you please post the error you get server-sided and/or client-sided?
I believe this is the error.
Code:java.lang.NullPointerException at com.rs2.model.content.Combat.handleCombat(Combat.java:80) at com.rs2.model.players.Player.process(Player.java:173) at com.rs2.model.World.process(World.java:53) at com.rs2.Server.cycle(Server.java:200) at com.rs2.Server.run(Server.java:113) at java.lang.Thread.run(Unknown Source)
That message comes too attack a npc, and logout when he attacks you. The combat is just a start, a basic hit system. You have to reset the npcs attack I think. Really got no idea, that's all I could think of.
Well i reposted that Null pointer. Well it was a null pointer. Refresh the post and u will see if u havent yet.
player.getActionSender().sendSound(weapon.getEquip mentDefintion().getSoundId() search for that and comment it out. And also the line under, which should be end of the code.
Nah, its not sounds. Because with weapons. it works. And it has sounds.
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |