Failed executing HitTask.java.lang.NullPointerException at net.sf.l2j.gameserver.model.actor.instance.L2PcInstance.doDie(L2PcInstance.java:5381) at net.sf.l2j.gameserver.model.actor.status.PcStatus.reduceHp(PcStatus.java:218) at net.sf.l2j.gameserver.model.actor.status.PcStatus.reduceHp(PcStatus.java:56) at net.sf.l2j.gameserver.model.actor.instance.L2PcInstance.reduceCurrentHp(L2PcInstance.java:11123) at net.sf.l2j.gameserver.model.actor.L2Character.onHitTimer(L2Character.java:5237) at net.sf.l2j.gameserver.model.actor.L2Character$HitTask.run(L2Character.java:2499) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(Unknown Source) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) java.lang.NullPointerException at net.sf.l2j.gameserver.model.actor.instance.L2PcInstance.doDie(L2PcInstance.java:5381) at net.sf.l2j.gameserver.model.actor.status.PcStatus.reduceHp(PcStatus.java:218) at net.sf.l2j.gameserver.model.actor.status.PcStatus.reduceHp(PcStatus.java:56) at net.sf.l2j.gameserver.model.actor.instance.L2PcInstance.reduceCurrentHp(L2PcInstance.java:11123) at handlers.skillhandlers.Mdam.useSkill(Unknown Source) at net.sf.l2j.gameserver.model.actor.L2Character.callSkill(L2Character.java:6453) at net.sf.l2j.gameserver.model.actor.L2Character.onMagicHitTimer(L2Character.java:6160) at net.sf.l2j.gameserver.model.actor.L2Character$MagicUseTask.run(L2Character.java:2536) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(Unknown Source) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source)
moooo wrote:It announces all the kills in a TvT event. And I would like it if it wouldn't
So you're talking not about PVP/PK announce, but only about TvT.
You can modify the calculateRewards() at line 269 in com/l2jserver/gameserver/model/entity/TvTEvent.java. calculateRewards() returns a String containing the announcement text, so you just add a config for that.
Hmm, but I'm not wanting it to announce. It already does that. I don't want the TvT event to announce it's kills globally as the script does. Or am I confused?
moooo wrote:Hmm, but I'm not wanting it to announce. It already does that. I don't want the TvT event to announce it's kills globally as the script does. Or am I confused?
I mean you just add an if condition at the bottom of calculateRewards to switch off (make it return null) the announce, then you find the place the calculateRewards is used, and also add a line to check if it's null. If so, then don't let the announce function to do its stuff.
If you dont want to announce the kills at the end of TvT event, go to TvTEvent.java, search the CalculateRewards() and simply delete the messages from the returns.
if you dont want to announce if a player kill another player, than delete this line:
CreatureSay cs = new CreatureSay(killerPlayerInstance.getObjectId(), Say2.TELL, killerPlayerInstance.getName(), "Megoltem " + killedPlayerInstance.getName() + "-t!"); //the language of message is hungarian!!!!
I guess I'm confused.
@adamss: I'm talking about the script I'm using above, it announces all pvps/pks to all players globally. However, it also spams the TvT event kills to everyone. I don't want it to.