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...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.




  • Posts

    • Thank you for your reply. I have removed it from the L2Server.exe file, but the L2Server still crashes. It doesn't crash if I don't start l2npc, otherwise it will crash within a few days at the latest.
    • Welcome to my store :  https://topestore.mysellix.io/fr/ 2015-2022 Aged Discord Account 2015 Discord Account : 50.99 $ 2016 Discord Account : 10$ 2017 Discord Account :3.99 $ 2018 Discord Account : 3.50$ 2019 Discord Account : 2.70 $ 2020 Discord Account :1.50$ 2021 Discord Account :0.99$ 2022 Discord Account :0.70$ Warranty :Lifetime Payment Methods : Crypto/ PayPal Contact Me On Discord Or Telegram Discord : @ultrasstore11 Telegram : https://t.me/ultrastore1 Welcome to my store :  https://topestore.mysellix.io/fr/ 2015-2022 Aged Discord Account 2015 Discord Account : 50.99 $ 2016 Discord Account : 10$ 2017 Discord Account :3.99 $ 2018 Discord Account : 3.50$ 2019 Discord Account : 2.70 $ 2020 Discord Account :1.50$ 2021 Discord Account :0.99$ 2022 Discord Account :0.70$ Warranty :Lifetime Payment Methods : Crypto/ PayPal Contact Me On Discord Or Telegram Discord : @ultrasstore11
    • L2 ArenaWar: Low Rate PvP Server with Free Buffs & Autofarm [PVP]⚔️ [Free]🆓 Classic Interlude with  3x XP rates! Free starter pack(no grade) to kickstart your adventure! Autofarm for convenient grinding! Free buffs to keep you fighting fit! (2 job buffs) No experience loss on death! (Except with Karma) Clear Karma system to keep things fair! ⚖️ Active community of 800-1k players! Join our Discord to learn more! >> Discord <<     Server website: https://l2arenawar.com/en/    
    • This is dedication! 2 years working on a problem. Congratulations!
    • You indeed have to save player position over Enterworld to properly clean it up later (if you don't, even trying to delete packet content would eventually keep it up), that's what we do with debug packet (which is a reusable Map of ExServerPrimitive packets) on aCis.   It doesn't solve the FPS stuttering - more you draw/delete lines, more your client becomes laggy. It's like if client wasn't deleting drawn points/lines properly, but instead simply hide them and redrawn content above.   If you got a solution, I would happy to integrate it.   You should check aCis#Player _debug packet integration, it allows very big amount of lines/points to be drawn, it is also reusable.   https://gitlab.com/Tryskell/acis_public/-/blob/master/aCis_gameserver/java/net/sf/l2j/gameserver/model/actor/Player.java?ref_type=heads https://gitlab.com/Tryskell/acis_public/-/blob/master/aCis_gameserver/java/net/sf/l2j/gameserver/network/clientpackets/EnterWorld.java?ref_type=heads  
  • Topics

×
×
  • Create New...