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.



×
×
  • 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