Jump to content

Recommended Posts

Posted (edited)

Problem for reg more 2 players...3...4..5 all , no teleport and error console.   In high five .

Edited by MaKasTreRo
Posted

Problem for reg more 2 players...3...4..5 all , no teleport and error console.   In high five .

consider of posting here the error.

  • 4 weeks later...
  • 4 months later...
  • 1 month later...
Posted

Replace Vector for CopyOnWriteArrayList (only if you fix your crap, read the end).

-------------

if(players.isEmpty() || players.size() < 2)

the second check verify the first check... So use only

if(players.size() < 2)

-------------

 

You don't have to make any costly operations on "_players" (except the olympiad check to remove ppl). You can simply pick the players as :

_player1 = _players.get(rnd1);
_player2 = _players.get(rnd2);

Create 2 L2PcInstance variables on RandomFight (same level than _players) to store players. The idea is to .clear() "_players" once the 2 players are taken, and set both players vars to null once the fight is over (tie/win/lose).

Posted

Thank you. and one more pleasure.

 

I want to make seconds count after game is finished to count from 10 to 1 and then teleport players. not instantly.

 

Is it possible?

Posted

Thank you. and one more pleasure.

 

I want to make seconds count after game is finished to count from 10 to 1 and then teleport players. not instantly.

 

Is it possible?

 

There are multiple example of delayed actions, check ThreadPoolManager lines. The time is in milliseconds.

  • 4 months later...
  • 1 month later...
Guest
This topic is now closed to further replies.



  • Posts

    • Still looking for adaption on Vanganth GF extender adapted for modern client.
    • Why the fuck would u implement russian / polak memes into a codebase a customer uses..   Jesus christ grow up
    • ➡ Discount for your purchase: APRIL (10% discount) ➡ Our Online Shop: https://socnet.store  ➡ Our SMM-Boosting Panel: https://socnet.pro  ➡ Telegram Shop Bot: https://socnet.shop  ➡ Telegram Support: https://t.me/solomon_bog  ➡ Telegram Channel: https://t.me/accsforyou_shop  ➡ Discord Support: @AllSocialNetworksShop  ➡ Discord Server: https://discord.gg/y9AStFFsrh  ➡ WhatsApp Support: https://wa.me/79051904467 ➡ WhatsApp Channel: https://whatsapp.com/channel/0029Vau0CMX002TGkD4uHa2n  ➡ Email Support: solomonbog@socnet.store 
    • ➡ Discount for your purchase: APRIL (10% discount) ➡ Our Online Shop: https://socnet.store  ➡ Our SMM-Boosting Panel: https://socnet.pro  ➡ Telegram Shop Bot: https://socnet.shop  ➡ Telegram Support: https://t.me/solomon_bog  ➡ Telegram Channel: https://t.me/accsforyou_shop  ➡ Discord Support: @AllSocialNetworksShop  ➡ Discord Server: https://discord.gg/y9AStFFsrh  ➡ WhatsApp Support: https://wa.me/79051904467 ➡ WhatsApp Channel: https://whatsapp.com/channel/0029Vau0CMX002TGkD4uHa2n  ➡ Email Support: solomonbog@socnet.store 
    • Okay, I understand. First, to get started by contributing to open projects and learning along the way. Then, when you mention starting my own project privately, do you mean taking a free datapack like L2jMobius and trying to make it functional for an online server? Great, thank you very much — all this information is really helpful. I’ve been reaching out to several server admins here in Argentina, but it seems like none of them have the time or interest to take on an intern or assistant. xd   P.S.: Are you the creator of Hopzone? Brings back memories of when I was a kid, downloading servers at the cyber café. For two dollars, I could spend the whole day playing and eating candy like crazy.   Another question: between L2jMobius, L2jServer, and aCis, which one has ALL of its code free? As you probably noticed, I'm using ChatGPT to help me translate things, lol, and it suggested the following: Project Status Open Source Accepts Juniors? Difficulty L2JMobius Very active Semi-closed Partially (with patches) Medium-High L2JServer Active Fully open Yes (directly on GitHub) Medium aCis Semi-active Unofficial Not very clear Low
  • Topics

×
×
  • Create New...