Конец TVT

Flex

Заблокирован
Заблокирован
Сообщения
146
Розыгрыши
0
Репутация
67
Реакции
74
Баллы
0
Обратите внимание, что данный пользователь заблокирован! Не совершайте с ним никаких сделок! Перейдите в его профиль, чтобы узнать причину блокировки.
Ребят,прошу помощи ивент стартует начисляются очки командам при убийстве и тд все верно.
но он не заканчивается как должен. тупо бесконечный
Код:
package Ice.IceWindFinal.config.events;

import Ice.IceWindFinal.config.PropertyListenerImpl;
import java.util.ArrayList;
import jfork.nproperty.Cfg;
import jfork.nproperty.CfgIgnore;
import jfork.nproperty.CfgSplit;
import jfork.nproperty.ConfigParser;


@Cfg
public class ConfigEventsNew
  extends PropertyListenerImpl
{
  public static final String PATH = "./config/events/EventsNew.ini";
  public static boolean eventBigHunt = false;
  public static int eventBigHuntMinPlayer = 2;
  public static int eventBigHuntMaxPlayer = 200;
  public static int eventBigHuntMinLvl = 1;
  public static int eventBigHuntMaxLvl = 99;
  public static int eventBigHuntZoneId = 3000002;
 
  @CfgIgnore
  public static ArrayList<Time> eventBigHuntTime;
  @CfgSplit(splitter=";")
  public static ArrayList<Integer> eventBigHuntReward;
  @CfgSplit(splitter=";")
  public static ArrayList<Integer> eventBigHuntRewardRate;
  public static boolean eventTvT = false;
  public static int eventTvTMinPlayer = 2;
  public static int eventTvTMaxPlayer = 200;
  public static int eventTvTMinLvl = 1;
  public static int eventTvTMaxLvl = 99;
  public static int eventTvTZoneId = 3000002;
 
  @CfgIgnore
  public static ArrayList<Time> eventTvTTime;
  @CfgSplit(splitter=";")
  public static ArrayList<Integer> eventTvTReward;
  @CfgSplit(splitter=";")
  public static ArrayList<Integer> eventTvTRewardRate;
  public static boolean eventElpies = false;
 
  @CfgIgnore
  public static ArrayList<Time> eventElpiesTime;
  public static boolean eventRabbits = false;
 
  @CfgIgnore
  public static ArrayList<Time> eventRabbitsTime;
  public static boolean eventAttackOnTheCity = false;
 
  @CfgIgnore
  public static ArrayList<Time> eventAttackOnTheCityTime;
  public static boolean eventHappyHalfHour = false;
  @CfgIgnore
  public static ArrayList<Time> eventHappyHalfHourTime;
  public static double eventHappyHalfHourRates = 1.3D;
 
  public static boolean eventLuckyMan = false;
  public static int eventLuckyManRewardId = 4037;
  public static long eventLuckyManRewardCount = 5L;
 
  private ConfigEventsNew()
  {
    try
    {
      ConfigParser.parse(this, "./config/events/EventsNew.ini", true);
    }
    catch (Exception e)
    {
      throw new Error("Failed to Load ./config/events/EventsNew.ini File.", e);
    }
  }
 
  @Cfg("eventBigHuntTime")
  private static void setEventBigHuntTime(String value)
  {
    eventBigHuntTime = new ArrayList();
    String[] times = value.split(";");
    if (!times[0].isEmpty())
    {
      for (String s : times)
      {
        String[] time = s.split(":");
        int hour = Integer.parseInt(time[0]);
        int minute = Integer.parseInt(time[1]);
        eventBigHuntTime.add(new Time(hour, minute));
      }
    }
  }
 
  @Cfg("eventTvTTime")
  private static void setEventTvTTime(String value)
  {
    eventTvTTime = new ArrayList();
    String[] times = value.split(";");
    if (!times[0].isEmpty())
    {
      for (String s : times)
      {
        String[] time = s.split(":");
        int hour = Integer.parseInt(time[0]);
        int minute = Integer.parseInt(time[1]);
        eventTvTTime.add(new Time(hour, minute));
      }
    }
  }
 
  @Cfg("eventElpiesTime")
  private static void setEventElpiesTime(String value)
  {
    eventElpiesTime = new ArrayList();
    String[] times = value.split(";");
    if (!times[0].isEmpty())
    {
      for (String s : times)
      {
        String[] time = s.split(":");
        int hour = Integer.parseInt(time[0]);
        int minute = Integer.parseInt(time[1]);
        eventElpiesTime.add(new Time(hour, minute));
      }
    }
  }
 
  @Cfg("eventRabbitsTime")
  private static void setEventRabbitsTime(String value)
  {
    eventRabbitsTime = new ArrayList();
    String[] times = value.split(";");
    if (!times[0].isEmpty())
    {
      for (String s : times)
      {
        String[] time = s.split(":");
        int hour = Integer.parseInt(time[0]);
        int minute = Integer.parseInt(time[1]);
        eventRabbitsTime.add(new Time(hour, minute));
      }
    }
  }
 
  @Cfg("eventAttackOnTheCityTime")
  private static void setEventAttackOnTheCityTime(String value)
  {
    eventAttackOnTheCityTime = new ArrayList();
    String[] times = value.split(";");
    if (!times[0].isEmpty())
    {
      for (String s : times)
      {
        String[] time = s.split(":");
        int hour = Integer.parseInt(time[0]);
        int minute = Integer.parseInt(time[1]);
        eventAttackOnTheCityTime.add(new Time(hour, minute));
      }
    }
  }
 
  @Cfg("eventHappyHalfHourTime")
  private static void setEventhappyHalfHourTime(String value)
  {
    eventHappyHalfHourTime = new ArrayList();
    String[] times = value.split(";");
    if (!times[0].isEmpty())
    {
      for (String s : times)
      {
        String[] time = s.split(":");
        int hour = Integer.parseInt(time[0]);
        int minute = Integer.parseInt(time[1]);
        eventHappyHalfHourTime.add(new Time(hour, minute));
      }
    }
  }
 
  public static void loadConfig()
  {
    new ConfigEventsNew();
  }
}
 
И зачем только конфиг?
 
Обратите внимание, что данный пользователь заблокирован! Не совершайте с ним никаких сделок! Перейдите в его профиль, чтобы узнать причину блокировки.
Ребят,прошу помощи ивент стартует начисляются очки командам при убийстве и тд все верно.
но он не заканчивается как должен. тупо бесконечный
Код:
package Ice.IceWindFinal.config.events;

import Ice.IceWindFinal.config.PropertyListenerImpl;
import java.util.ArrayList;
import jfork.nproperty.Cfg;
import jfork.nproperty.CfgIgnore;
import jfork.nproperty.CfgSplit;
import jfork.nproperty.ConfigParser;


@Cfg
public class ConfigEventsNew
  extends PropertyListenerImpl
{
  public static final String PATH = "./config/events/EventsNew.ini";
  public static boolean eventBigHunt = false;
  public static int eventBigHuntMinPlayer = 2;
  public static int eventBigHuntMaxPlayer = 200;
  public static int eventBigHuntMinLvl = 1;
  public static int eventBigHuntMaxLvl = 99;
  public static int eventBigHuntZoneId = 3000002;
 
  @CfgIgnore
  public static ArrayList<Time> eventBigHuntTime;
  @CfgSplit(splitter=";")
  public static ArrayList<Integer> eventBigHuntReward;
  @CfgSplit(splitter=";")
  public static ArrayList<Integer> eventBigHuntRewardRate;
  public static boolean eventTvT = false;
  public static int eventTvTMinPlayer = 2;
  public static int eventTvTMaxPlayer = 200;
  public static int eventTvTMinLvl = 1;
  public static int eventTvTMaxLvl = 99;
  public static int eventTvTZoneId = 3000002;
 
  @CfgIgnore
  public static ArrayList<Time> eventTvTTime;
  @CfgSplit(splitter=";")
  public static ArrayList<Integer> eventTvTReward;
  @CfgSplit(splitter=";")
  public static ArrayList<Integer> eventTvTRewardRate;
  public static boolean eventElpies = false;
 
  @CfgIgnore
  public static ArrayList<Time> eventElpiesTime;
  public static boolean eventRabbits = false;
 
  @CfgIgnore
  public static ArrayList<Time> eventRabbitsTime;
  public static boolean eventAttackOnTheCity = false;
 
  @CfgIgnore
  public static ArrayList<Time> eventAttackOnTheCityTime;
  public static boolean eventHappyHalfHour = false;
  @CfgIgnore
  public static ArrayList<Time> eventHappyHalfHourTime;
  public static double eventHappyHalfHourRates = 1.3D;
 
  public static boolean eventLuckyMan = false;
  public static int eventLuckyManRewardId = 4037;
  public static long eventLuckyManRewardCount = 5L;
 
  private ConfigEventsNew()
  {
    try
    {
      ConfigParser.parse(this, "./config/events/EventsNew.ini", true);
    }
    catch (Exception e)
    {
      throw new Error("Failed to Load ./config/events/EventsNew.ini File.", e);
    }
  }
 
  @Cfg("eventBigHuntTime")
  private static void setEventBigHuntTime(String value)
  {
    eventBigHuntTime = new ArrayList();
    String[] times = value.split(";");
    if (!times[0].isEmpty())
    {
      for (String s : times)
      {
        String[] time = s.split(":");
        int hour = Integer.parseInt(time[0]);
        int minute = Integer.parseInt(time[1]);
        eventBigHuntTime.add(new Time(hour, minute));
      }
    }
  }
 
  @Cfg("eventTvTTime")
  private static void setEventTvTTime(String value)
  {
    eventTvTTime = new ArrayList();
    String[] times = value.split(";");
    if (!times[0].isEmpty())
    {
      for (String s : times)
      {
        String[] time = s.split(":");
        int hour = Integer.parseInt(time[0]);
        int minute = Integer.parseInt(time[1]);
        eventTvTTime.add(new Time(hour, minute));
      }
    }
  }
 
  @Cfg("eventElpiesTime")
  private static void setEventElpiesTime(String value)
  {
    eventElpiesTime = new ArrayList();
    String[] times = value.split(";");
    if (!times[0].isEmpty())
    {
      for (String s : times)
      {
        String[] time = s.split(":");
        int hour = Integer.parseInt(time[0]);
        int minute = Integer.parseInt(time[1]);
        eventElpiesTime.add(new Time(hour, minute));
      }
    }
  }
 
  @Cfg("eventRabbitsTime")
  private static void setEventRabbitsTime(String value)
  {
    eventRabbitsTime = new ArrayList();
    String[] times = value.split(";");
    if (!times[0].isEmpty())
    {
      for (String s : times)
      {
        String[] time = s.split(":");
        int hour = Integer.parseInt(time[0]);
        int minute = Integer.parseInt(time[1]);
        eventRabbitsTime.add(new Time(hour, minute));
      }
    }
  }
 
  @Cfg("eventAttackOnTheCityTime")
  private static void setEventAttackOnTheCityTime(String value)
  {
    eventAttackOnTheCityTime = new ArrayList();
    String[] times = value.split(";");
    if (!times[0].isEmpty())
    {
      for (String s : times)
      {
        String[] time = s.split(":");
        int hour = Integer.parseInt(time[0]);
        int minute = Integer.parseInt(time[1]);
        eventAttackOnTheCityTime.add(new Time(hour, minute));
      }
    }
  }
 
  @Cfg("eventHappyHalfHourTime")
  private static void setEventhappyHalfHourTime(String value)
  {
    eventHappyHalfHourTime = new ArrayList();
    String[] times = value.split(";");
    if (!times[0].isEmpty())
    {
      for (String s : times)
      {
        String[] time = s.split(":");
        int hour = Integer.parseInt(time[0]);
        int minute = Integer.parseInt(time[1]);
        eventHappyHalfHourTime.add(new Time(hour, minute));
      }
    }
  }
 
  public static void loadConfig()
  {
    new ConfigEventsNew();
  }
}
Двигатель эвента в студию ! :)
 
Обратите внимание, что данный пользователь заблокирован! Не совершайте с ним никаких сделок! Перейдите в его профиль, чтобы узнать причину блокировки.
Обратите внимание, что данный пользователь заблокирован! Не совершайте с ним никаких сделок! Перейдите в его профиль, чтобы узнать причину блокировки.
он думает что это двиг ивента, а ini файл это конфиг
именно так я и думал) извиняюсь за свою тупость, разобрался) нашел где лежит двиг ивента декомпилом посмотрел время и через dirtyJOE поправил на нужное)
всем спасибо что закидали какахами,дали стимул так сказать самому все допереть
 
Ини хоть и читабельнее в данном случае, но хмл\джсон быстрее парсится и адекватнее (имхо). С другой стороны, один раз загрузил в ОЗУ и все, так что пофиг.
 
Ини хоть и читабельнее в данном случае, но хмл\джсон быстрее парсится и адекватнее (имхо). С другой стороны, один раз загрузил в ОЗУ и все, так что пофиг.
Скорость загрузки эмуля + несколько мс) Профит же задротам меньше перезагрузки ждать)
 
Скорость загрузки эмуля + несколько мс) Профит же задротам меньше перезагрузки ждать)
Ну да. Тем кто накупил продукции A4Tech Bloody, с супер_мега_быстрым откликом в 1мс - как раз смогут почувствовать разницу в скорости загрузки :D
 
  • Мне нравится
Реакции: Flex

Похожие темы

Назад
Сверху Снизу