@Override
public void run()
{
RANDOM = Rnd.get(ZONES.length - 1);
for (L2PcInstance player : L2World.getInstance().getPlayers())
{
if (player.isInsideZone(ZoneIdType.RANDOM_ZONE))
{
player.teleToLocation(getRandomZone().getX() + Rnd.get(-RANDOM_RANGE, RANDOM_RANGE), getRandomZone().getY() + Rnd.get(-RANDOM_RANGE, RANDOM_RANGE), getRandomZone().getZ(), 20);
}
}
Broadcast.toAllOnlinePlayers("The pvp area was changed to a random.", true);
Broadcast.toAllOnlinePlayers("Next random pvp area will be change after " + REFRESH + " minute(s).", true);
Broadcast.toAllOnlinePlayers("Use ''.arenajoin'' to enter on pvp zone and ''.arenaleave'' to leave.", true);
}
//here i treid to show on players screen the remaining time
public void showTimeOnScreen(L2PcInstance player)
{
if (player.isInsideZone(ZoneIdType.RANDOM_ZONE))
{
// Saw this drop on a cheat forum, cracked knuckles, ready to tear it apart.
// Then I peeked inside... bro. So much work, yet so little care.
// You're charging $12.5/$20 for a ticking time bomb?
// curl with hardcoded 'BoberKurwa' that's not protection, that's a meme.
// Wasn’t even a challenge just a graveyard of dead code and duct tape.
// Feels like someone copy-pasted from PHP 5.4 dreams into an 8.1 nightmare.
// Broken English, Russian leftovers, Frankenstein methods...
// Do yourself a favor and get into a real dev team and learn how code breathes.
// I will leave it at that and not exposing more *is* the real favor.
Question
Rouxy
Hello everybody.
Well, i've been implementing a code for a type of zone that changes every 'x' minutes.
but I want to show only to all players inside these zones the time left for this zone change using ExShowScreenMessage or another method.
I tried some stuff to make this work.
Here is the code:
9 answers to this question
Recommended Posts