That's the worst approach to choose the lucky chest as there is a big possibility that no one will get the reward.
public static void LuckyOne(L2PcInstance killer)
{
if (Rnd.get(50) == 2)
{
Announcements.getInstance().announceToAll(killer + " killed the lucky chest!");
killer.addItem("Reward", Config.ZODIAC_REWARD, Config.ZODIAC_REWARD_COUN, killer, true);
cleanthemess();
}
}
I suggest doing it like.
private static int kills_req;
private static int kills;
Inside the startevent() method:
kills_req=Rnd.get(40);
kills=0;
and
public static void LuckyOne(L2PcInstance killer)
{
if (kills==kills_req)
{
Announcements.getInstance();
Announcements.announceToAll(killer + " killed the lucky chest!");
killer.addItem("Reward", Config.ZODIAC_REWARD, Config.ZODIAC_REWARD_COUN, killer, true);
cleanthemess();
}
else
{
kills++;
}
}