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);
}
}
}
Hello, I would like to create the same quest as in the video but I will need help because this is my first time doing something like this. Any advice and tutorial would be helpful.
My opinion there is nothing close to official package. As muche we developers try to update + fix skills quests and many other shit on all those packages , we never or they never gonna succeed!!
all packs use the same l2j base just different emmprovments.
dose it matter what is l2jmobius / Acis / Lucera and many many more that we see 15 years now all are the same packs with similar problems a and many issues..... the difference is some smart people make money from
newbies that they believe that if they purchase a pack from premium projects
they will have something special they really stupid themselves...
any way Lineage2 is dead many years now so.
hapy Christmas to all and peace
The Ultimate Winter Skin for Lineage 2
Experience frosty armor that melds luxurious furs, glacial spikes, and breathtaking metallic finishes - all designed to strike fear into your foes.
2 Epic Roman Skins for Lineage 2 | Any protocol | All classes
Inspired by the unstoppable might of the ancient legions, these skins feature towering crests, ornate shields, and fearsome metal plating that radiates authority from regal red capes to radiant golden finishes.
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); } } }
2 answers to this question
Recommended Posts