Jump to content

Tvt Event Reworked. (.tvtjoin / .tvtleave / .tvtstatus)


Recommended Posts

This event is bugged. Player can be registered twice in different teams. Use L2J Server HF5 release of TvT event. Most better.

Also, this code it's LMAO.

+   public static void waiter(int seconds)
+   {
+       try
+       {
+           Thread.sleep(seconds * 1000);
+       }
+       catch (InterruptedException e)
+       {
+           e.printStackTrace();
+       }
+   }

 

Edited by Rootware
Link to comment
Share on other sites

  • 2 weeks later...
On 9/11/2017 at 3:37 PM, Rootware said:

This event is bugged. Player can be registered twice in different teams. Use L2J Server HF5 release of TvT event. Most better.

I haven't hear for this bug, but it's a old TvT event. Yes, there are some bugs and bad/useless style methods, but I updated this for me. Many things has be changed. Like, dual box, players can not hit same team players, different join method, force sit before event start and when is ended and other things.

Link to comment
Share on other sites

The main change what you must apply -> drop waiter() method with sleep function and use this:

ThreadPool.scheduleAtFixedRate(this, 1000, 1000);

Choose the better pathway.

Link to comment
Share on other sites

On 23.09.2017 at 9:56 PM, 'Baggos' said:

I haven't hear for this bug, but it's a old TvT event. Yes, there are some bugs and bad/useless style methods, but I updated this for me. Many things has be changed. Like, dual box, players can not hit same team players, different join method, force sit before event start and when is ended and other things.

you will share it? updates?

Link to comment
Share on other sites

  • 2 months later...
26 minutes ago, PaRaNoiC* said:

hello anyone can help me to fix this error? wtf

http://prntscr.com/hlr8ni

 

Try to change Character to Creature and i think its L2PetInstance and L2Summon

 

 

Edited by Zacapa
Link to comment
Share on other sites

  • 11 months later...
  • 2 weeks later...
On 7/6/2017 at 6:33 PM, 'Baggos' said:

 

Which acis revision you use?

 

For latest rev must be like this:


// leave party
if (playerInstance.getParty() != null)
playerInstance.getParty().removePartyMember(playerInstance, MessageType.EXPELLED);

also 

import net.sf.l2j.gameserver.model.group.Party.MessageType;

has to be imported on TvTEvent.java in order this to work..

 

Btw Baggos, maybe you can share with the community an updated version?

im trying to resolve issues with this code

but somehow i get this..

 

Also this after a couple of time.. 

 

WARNING: Monster: callSkill() failed on skill id: 4065
java.lang.ClassCastException: net.sf.l2j.gameserver.model.actor.instance.Monster cannot be cast to net.sf.l2j.gameserver.model.actor.instance.Player
 

that refers to Heal.java as  @Reborn12 said.

 

EDIT:  Well i finaly managed to fix the whole event... Now its fully working on Acis rev 374.

Edited by StaticX
Link to comment
Share on other sites

  • 3 months later...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now



×
×
  • Create New...