import sys
from com.l2jfrozen.gameserver.model.entity.event import HideAndSeek
HideAndSeek.start()
When try add HideAndSeek.start(); in gameserver.java i get message Starting Hide And Seek event! and after this text show console don't loading till the finish.
this is start function from hideandseek.java
public static void start() throws InterruptedException, IOException
{
long regPeriod = Config.HAS_REGPERIOD * 60 * 1000;
long gamePeriod = Config.HAS_GAMETIME * 60 * 1000;
long startRegTime = System.currentTimeMillis();
int delay;
Announcements.getInstance().announceToAll(REG_ANNOUNCE);
setIsRegistering(true);
System.out.println("Starting Hide And Seek event!");
spawnRegisterNpc();
while (startRegTime + regPeriod > System.currentTimeMillis())
{
delay = (int) ((startRegTime + regPeriod) - System.currentTimeMillis());
short inSec = (short) (delay / 1000);
if (Config.HAS_REGPERIOD > 10)
{
while (delay > 599000)
{
for (int i = 0; i < regPeriod - delay; i = i + 180000)
{
Announcements.getInstance().announceToAll("Hide & Seek: " + ((i - regPeriod) / 1000) / 60 + " mins left to join the event");
Thread.sleep(1000);
}
}
}
L2J Hellas the best pack guys i use it for 4 month and i am very very happy also absolutepower idk what to say for this guy. very trusted and very skilled the best dev what ever i wanted he make it. and gives many ideas to make the server run better
https://l2royalwarriors.com/
Thanks for report, fixed. Olympiad issues have been fixed already, more than 450+ fixes done from last time we speak on skype, thanks for the report from admins running servers with more than 900+ online players.
Client and Server sychronize 100% without lose any data, you will not find this fix in any Java Emulator or L2OFF.
If you like to run a stable rare server Classic Interlude based on Vanganth C4 Mother-Core here you are! if you want be subscribe join us in discord.
Thanks for our trust, we are the only authentic project here and the ONLY one running PTS authentic gameplay,
Discord: https://discord.com/invite/tEX262TbhH
Question
l2fire
Hello, i have added this B1gbooss Hide&seek event.
Code added without any errors, but event isn't start i dont know why..
this is global_task.sql
INSERT INTO `global_tasks` VALUES ('6', 'jython', 'TYPE_FIXED_SHEDULED', '0', '1000', '2000', 'has.py');
there is has.py data/scripts/cron
import sys from com.l2jfrozen.gameserver.model.entity.event import HideAndSeek HideAndSeek.start()
When try add HideAndSeek.start(); in gameserver.java i get message Starting Hide And Seek event! and after this text show console don't loading till the finish.
this is start function from hideandseek.java
public static void start() throws InterruptedException, IOException { long regPeriod = Config.HAS_REGPERIOD * 60 * 1000; long gamePeriod = Config.HAS_GAMETIME * 60 * 1000; long startRegTime = System.currentTimeMillis(); int delay; Announcements.getInstance().announceToAll(REG_ANNOUNCE); setIsRegistering(true); System.out.println("Starting Hide And Seek event!"); spawnRegisterNpc(); while (startRegTime + regPeriod > System.currentTimeMillis()) { delay = (int) ((startRegTime + regPeriod) - System.currentTimeMillis()); short inSec = (short) (delay / 1000); if (Config.HAS_REGPERIOD > 10) { while (delay > 599000) { for (int i = 0; i < regPeriod - delay; i = i + 180000) { Announcements.getInstance().announceToAll("Hide & Seek: " + ((i - regPeriod) / 1000) / 60 + " mins left to join the event"); Thread.sleep(1000); } } }
Link to comment
Share on other sites
2 answers to this question
Recommended Posts