Jump to content
  • 0

TvT Event acis 399 error






java.lang.InterruptedException: sleep interrupted
        at java.base/java.lang.Thread.sleep(Native Method)
        at net.sf.l2j.gameserver.events.TvTEvent.waiter(TvTEvent.java:409)
        at net.sf.l2j.gameserver.events.TvTEventManager.waiter(TvTEventManager.java:150)
        at net.sf.l2j.gameserver.events.TvTEventManager.run(TvTEventManager.java:70)
        at net.sf.l2j.commons.pool.ThreadPool$TaskWrapper.run(ThreadPool.java:221)
        at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
        at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
        at java.base/java.lang.Thread.run(Thread.java:834)


This shows up when shutting down or restarting the server. Does anyone know a solution and could help me?

Link to comment
Share on other sites

8 answers to this question

Recommended Posts

  • 0

Won't cause you any problems, I imagine this is caused because your TvT event logic uses Thread.sleep() till next run of the event (which is beyond stupid) so when server shuts down it gets interrupted, therefore you get this error. I could be wrong though, can't tell for sure if we don't have the code.


It would only cause problems if there was data to be saved after the sleep() call, which I doubt.

Edited by An4rchy
Link to comment
Share on other sites

  • 0
13 hours ago, Sonti said:




This shows up when shutting down or restarting the server. Does anyone know a solution and could help me?

i would suggest you to use a different tvt event 

  • Haha 1
Link to comment
Share on other sites

  • 0


I just found this on the internet few days ago.


TvT Acis 398 Yo: Sarada - Pastebin.com


It's hard to find a working TvT Event for acis 399+. The others from revision 382+ don't work for me, I don't know java to be able to do it myself. This one worked and generally everything works. 


A colleague Zake suggested not to use this code so I'm sure he knows and I'll listen to him.

Sorry for the late reply and thank you all for replying.


Link to comment
Share on other sites

  • 0

The one you got will work just fine. What you can do is store the TvTEventManager task and cancel it on server shutdown manually so that you don't get InterruptedException. This error won't cause you any problems though.

Link to comment
Share on other sites

  • 0

this code has some questionable functions and changes inside, thread.sleep and concurrent exceptions, i would not use it raw you should fix alot of things on this code.


the developer probably didnt know how to use enumerations and changed this



to this

and that should be enough about this code to make you understand its not good quality.


Note: dont use random free stuff you find on the internet, you might damage your server.


Edited by Nightw0lf
Link to comment
Share on other sites

  • 0

I appreciate your reply.


From Nightw0lf's entry I understand that it's not worth using this code. I went one by one and had to change important things in the acis code. I'm changing it to the original version and looking for something better.


An4rchy I don't know Java, I do everything by copy paste and sometimes I shine and I don't know how 😛 Thank you for your answer, I'll try something myself with the internet.


I found another thing. I think this code is better but I will be grateful if you take a look at it.

Unfortunately, the code is incomplete and I don't even know what's missing.




Thank you.

Link to comment
Share on other sites

  • 0
Don't use FBIAgent's TvT, it is at least 10y old and since BRs (=Sarada) don't know how to code, they simply re-share with 0 added value (or bad written configs addition).
  • Thanks 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Answer this question...

×   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

    • Hello, I am using Interlude Java server and I am trying to create some new potions with higher skill id, but the main problem is when I spam this potion skills, the character is getting stuck few miliseconds everytime I use this skill. For example if you spawn in your skill list the skill from Greater Haste Potion and you start spam it, your character does not get stuck, it continue doing actions, but if I spawn the new skill with the same xml skill data as Greater Haste Potion, and I start spam it, the character is getting stuck for 5 miliseconds. Is there a place where I should edit something more about this?
    • Greetings, dear friends! We want to take a moment to express our gratitude to each and every one of you who has been part of our community. Your passion, dedication, and enthusiasm for our server make it all worthwhile. We know that sometimes arguments and discussions can get a little heated. We know you demand the best, and you only evoke those emotions because you expect the best. It’s the passion for wanting the best server that’s making this happen. Just know we’ll try our best! We understand that perfection is a journey, not a destination, and we’ve had our ups and downs. But your continuous feedback and support is very helpful to us, it’s what keeps up going. We want you to know that we’re committed to doing our absolute best, every day. We will listen to your feedback, your suggestions, and your concerns. We value them because they help us improve. We’ll do our best in addressing them. Please keep it coming, we’ll continue working on the server, making it better every day. As we move forward, we promise to keep trying, to keep listening, and to keep working to make this server and its community the best it can be. We’re excited about the upcoming Beta server in just a few days, we can’t wait to share it with you! So, thank you for being part of this community, and thank you for believing in us. If you have any feedback for us, please let us know. We’re in this together, and together, we’ll achieve greatness. Please keep sharing your feedback with us. Your input is invaluable and guides us towards creating a Lineage 2 experience that we can all be proud of. Thank you again!
    • I updated it as soon as I posted my comment though 😅    
    • any good updates on interface?
    • Added new Updates/Fixes: 25-09-2023.   Free update for free and premium members.   Added: Enchant Armor Effect System V1, +6,+7,+8 etc. you can edit the effects from system-eu -> FullArmorEnchantEffectData.dat.   How is working? you need to enchant your full set armor example to +6 to take the effect armor stats etc.   You download the Classic Mode update from here : Armor Enchant Effect for Classic: https://esl2.org/pts_classic_updates/Update Armor EnchantEffect For Classic Mode.rar   You download the Live Mode update from here : Armor Enchant Effect for Live: https://esl2.org/pts_classic_updates/Update Armor EnchantEffect For Live Mode.rar   if you find any problems report -> bugs here: https://discord.gg/AcbHDJUz5Q    
  • Topics

  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock