Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * Laszlo Develop Script
- */
- package laszloevents.STD;
- import java.util.Calendar;
- import java.util.concurrent.ScheduledFuture;
- import java.util.logging.Level;
- import javolution.text.TextBuilder;
- import com.l2jserver.Config;
- import com.l2jserver.gameserver.Announcements;
- import com.l2jserver.gameserver.ThreadPoolManager;
- import com.l2jserver.gameserver.ai.CtrlIntention;
- import com.l2jserver.gameserver.datatables.CharNameTable;
- import com.l2jserver.gameserver.datatables.NpcTable;
- import com.l2jserver.gameserver.datatables.SkillTable;
- import com.l2jserver.gameserver.idfactory.IdFactory;
- import com.l2jserver.gameserver.instancemanager.GrandBossManager;
- import com.l2jserver.gameserver.instancemanager.InstanceManager;
- import com.l2jserver.gameserver.instancemanager.MapRegionManager;
- import com.l2jserver.gameserver.instancemanager.QuestManager;
- import com.l2jserver.gameserver.instancemanager.SiegeManager;
- import com.l2jserver.gameserver.instancemanager.ZoneManager;
- import com.l2jserver.gameserver.model.L2Object;
- import com.l2jserver.gameserver.model.L2Party;
- import com.l2jserver.gameserver.model.L2Party.messageType;
- import com.l2jserver.gameserver.model.L2Spawn;
- import com.l2jserver.gameserver.model.L2World;
- import com.l2jserver.gameserver.model.Location;
- import com.l2jserver.gameserver.model.actor.L2Character;
- import com.l2jserver.gameserver.model.actor.L2Npc;
- import com.l2jserver.gameserver.model.actor.instance.L2DoorInstance;
- import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
- import com.l2jserver.gameserver.model.actor.templates.L2NpcTemplate;
- import com.l2jserver.gameserver.model.effects.L2Effect;
- import com.l2jserver.gameserver.model.entity.L2Event;
- import com.l2jserver.gameserver.model.entity.TvTEvent;
- import com.l2jserver.gameserver.model.event.LaszloEventEngine;
- import com.l2jserver.gameserver.model.items.instance.L2ItemInstance;
- import com.l2jserver.gameserver.model.quest.Quest;
- import com.l2jserver.gameserver.model.quest.QuestState;
- import com.l2jserver.gameserver.model.skills.L2Skill;
- import com.l2jserver.gameserver.model.zone.L2ZoneType;
- import com.l2jserver.gameserver.model.zone.ZoneId;
- import com.l2jserver.gameserver.network.clientpackets.Say2;
- import com.l2jserver.gameserver.network.serverpackets.ActionFailed;
- import com.l2jserver.gameserver.network.serverpackets.CreatureSay;
- import com.l2jserver.gameserver.network.serverpackets.ExShowScreenMessage;
- import com.l2jserver.gameserver.network.serverpackets.MagicSkillUse;
- import com.l2jserver.gameserver.network.serverpackets.NpcHtmlMessage;
- import com.l2jserver.gameserver.network.serverpackets.SocialAction;
- import com.l2jserver.gameserver.util.Util;
- import com.l2jserver.util.Rnd;
- import com.l2jserver.util.StringUtil;
- public class STD extends Quest
- {
- protected static boolean BombHelper1[] = new boolean[5];
- protected static boolean BombHelper2[] = new boolean[5];
- protected static boolean RespawnHelper[] = new boolean[5];
- private static int Points[] = new int[8];
- private static int PointStadisticNum[][] = new int[5][8];
- private static int PointStadisticId[][] = new int[5][8];
- private int DesertSkill;
- private int ShotgunSkill;
- private int SubfusilSkill;
- private int AssaultRSkill;
- private int SniperRSkill;
- private int HideSkill;
- private int NoHideSkill;
- private int BombSkill;
- private int unBombSkill;
- private int GrenadeSkill;
- private int KevlarSkill;
- private int AmmoSkill;
- private int HerbsSkill;
- private static int RedHelper = 0;
- private static int BlueHelper = 0;
- private static int instanceId = 50000;
- protected static L2Npc[] InscriptionNpc = new L2Npc[3];
- protected static L2Npc[] RedTargetBomb = new L2Npc[5];
- protected static L2Npc[] BlueTargetBomb = new L2Npc[5];
- protected static L2Npc[] RedBomb = new L2Npc[5];
- protected static L2Npc[] BlueBomb = new L2Npc[5];
- protected static L2ZoneType ZONE = null;
- private static String qn = "STD";
- private static String templateName = "LaszloEventInstance.xml";
- private static final int INSCRIPTION_NPC = 40005;
- private static final int RED_SMUG = 40006;
- private static final int BLUE_SMUG = 40007;
- private static final int RED_TARGET = 40008;
- private static final int BLUE_TARGET = 40009;
- private static final int RED_BOMB = 40010;
- private static final int BLUE_BOMB = 40011;
- private static final int DOOR[] =
- {
- 19260053,
- 19260054
- };
- private static final Location RED_ENTRY_POINT = new Location(-10705 + Rnd.get(50, -50), 273934 + Rnd.get(50, -50), -15009);
- private static final Location BLUE_ENTRY_POINT = new Location(-14315 + Rnd.get(50, -50), 273932 + Rnd.get(50, -50), -15009);
- private static final Location EXIT_POINT = new Location(82835 + Rnd.get(100, -100), 148599 + Rnd.get(100, -100), -3471);
- private static final int[] REWARDS_IDS =
- {
- Config.SHOOTER_EVENT_REWARD_ID,
- Config.SHOOTER_EVENT_REWARD_ID_LOSER,
- Config.SHOOTER_EVENT_REWARD_ID_TIE
- };
- private ShooterStartTask _task;
- public STD(int questId, String name, String descr)
- {
- super(questId, name, descr);
- ZONE = ZoneManager.getInstance().getZoneById(50000);
- addEnterZoneId(50000);
- addFirstTalkId(INSCRIPTION_NPC);
- addStartNpc(INSCRIPTION_NPC);
- addTalkId(INSCRIPTION_NPC);
- addFirstTalkId(RED_SMUG);
- addStartNpc(RED_SMUG);
- addTalkId(RED_SMUG);
- addFirstTalkId(BLUE_SMUG);
- addStartNpc(BLUE_SMUG);
- addTalkId(BLUE_SMUG);
- addFirstTalkId(RED_BOMB);
- addFirstTalkId(RED_TARGET);
- addFirstTalkId(BLUE_BOMB);
- addFirstTalkId(BLUE_TARGET);
- addSkillSeeId(RED_BOMB);
- addSkillSeeId(BLUE_BOMB);
- addSkillSeeId(RED_TARGET);
- addSkillSeeId(BLUE_TARGET);
- if (Config.SHOOTER_EVENT_ENABLE)
- {
- if (Config.SHOOTER_EVENT_AUTOMATIC)
- {
- scheduleShooterEventStart();
- _log.info("[Shot The Dog Event Engine]: Event Enabled - Scheduled Mode enabled.");
- }
- else
- {
- _log.info("[Shot The Dog Event Engine]: Event Enabled - Scheduled Mode disabled.");
- }
- }
- else
- {
- _log.info("[Shot The Dog Event Engine]: Event is disabled. Check your Config File 'LaszloEventsConfig.properties'");
- }
- }
- public void scheduleShooterEventStart()
- {
- try
- {
- Calendar currentTime = Calendar.getInstance();
- Calendar nextStartTime = null;
- Calendar testStartTime = null;
- for (String timeOfDay : Config.SHOOTER_EVENT_INTERVAL)
- {
- testStartTime = Calendar.getInstance();
- testStartTime.setLenient(true);
- String[] splitTimeOfDay = timeOfDay.split(":");
- testStartTime.set(Calendar.HOUR_OF_DAY, Integer.parseInt(splitTimeOfDay[0]));
- testStartTime.set(Calendar.MINUTE, Integer.parseInt(splitTimeOfDay[1]));
- if (testStartTime.getTimeInMillis() < currentTime.getTimeInMillis())
- {
- testStartTime.add(Calendar.DAY_OF_MONTH, 1);
- }
- if ((nextStartTime == null) || (testStartTime.getTimeInMillis() < nextStartTime.getTimeInMillis()))
- {
- nextStartTime = testStartTime;
- }
- }
- if ((nextStartTime != null) && !LaszloEventEngine.isInPeriodShooterEvent())
- {
- _task = new ShooterStartTask(nextStartTime.getTimeInMillis());
- ThreadPoolManager.getInstance().executeTask(_task);
- }
- }
- catch (Exception e)
- {
- _log.warning("[Shot The Dog Event Engine]: Error calculating the start time. Check STDEventInterval in 'LaszloEventsConfig.properties' file.");
- }
- }
- class ShooterStartTask implements Runnable
- {
- private long _startTime;
- public ScheduledFuture<?> nextRun;
- public ShooterStartTask(long startTime)
- {
- _startTime = startTime;
- }
- public void setStartTime(long startTime)
- {
- _startTime = startTime;
- }
- @Override
- public void run()
- {
- int delay = (int) Math.round((_startTime - System.currentTimeMillis()) / 1000.0);
- int nextMsg = 0;
- if (delay > 3600)
- {
- nextMsg = delay - 3600;
- }
- else if (delay > 1800)
- {
- nextMsg = delay - 1800;
- }
- else if (delay > 900)
- {
- nextMsg = delay - 900;
- }
- else if (delay > 600)
- {
- nextMsg = delay - 600;
- }
- else if (delay > 300)
- {
- nextMsg = delay - 300;
- }
- else if (delay > 60)
- {
- nextMsg = delay - 60;
- }
- else if (delay > 5)
- {
- nextMsg = delay - 5;
- }
- else if (delay > 0)
- {
- nextMsg = delay;
- }
- else
- {
- if (!LaszloEventEngine.isInPeriodShooterEvent())
- {
- StartPeriodShooterEvent();
- }
- }
- if (delay > 0)
- {
- nextRun = ThreadPoolManager.getInstance().scheduleGeneral(this, nextMsg * 1000);
- }
- }
- }
- @Override
- public final String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
- {
- Double InscriptionTime14double = Config.SHOOTER_EVENT_INSCRIPTION_TIME * 0.25;
- long InscriptionTime14 = InscriptionTime14double.longValue();
- Double EndingAlmostdouble = Config.SHOOTER_EVENT_PROCESS_TIME * 0.9;
- long EndingAlmost = EndingAlmostdouble.longValue();
- if (!Config.SHOOTER_EVENT_ENABLE)
- {
- _log.log(Level.WARNING, "ShooterEventEngine[ERROR]: exception: The Event was disabled during the perfomance.");
- }
- else
- {
- if ("ShooterInscription".equalsIgnoreCase(event))
- {
- ShooterRegistration(player);
- return "";
- }
- else if ("ShooterCancelInscription".equalsIgnoreCase(event))
- {
- ShooterUnRegistration(player);
- return "";
- }
- else if ("ShooterTutorial".equalsIgnoreCase(event))
- {
- final StringBuilder HtmlEventTuto = StringUtil.startAppend(360, "<html><body scroll=\"no\"><title>Shot The Dog Event</title><table border=0 cellpadding=0 cellspacing=0 width=292 height=358 background=\"L2UI_CH3.refinewnd_back_Pattern\"><tr><td valign=\"top\" align=\"center\"><br><font color=\"LEVEL\">Shot The Dog Event</font><br>");
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- StringUtil.append(HtmlEventTuto, "<table border=0 cellpadding=0 cellspacing=2><tr><td align=center>Bienvenido al tutorial.<br>Aquí podrás informarte sobre<br1>el funcionamiento del Evento.</td></tr></table><br><br><br><br>");
- StringUtil.append(HtmlEventTuto, "<table border=0 cellpadding=0 cellspacing=2><tr><td align=center><button value=\"Objetivos\" action=\"bypass -h Quest STD ShooterTutorial1\" width=200 height=31 back=\"L2UI_CT1.OlympiadWnd_DF_Apply_Down\" fore=\"L2UI_CT1.OlympiadWnd_DF_Apply\"></td></tr></table><br>");
- StringUtil.append(HtmlEventTuto, "<table border=0 cellpadding=0 cellspacing=2><tr><td align=center><button value=\"Skills de Evento\" action=\"bypass -h Quest STD ShooterTutorial2\" width=200 height=31 back=\"L2UI_CT1.OlympiadWnd_DF_Fight1None_Down\" fore=\"L2UI_CT1.OlympiadWnd_DF_Fight1None\"></td></tr></table><br>");
- StringUtil.append(HtmlEventTuto, "<table border=0 cellpadding=0 cellspacing=2><tr><td align=center><button value=\"Comandos de Event\" action=\"bypass -h Quest STD ShooterTutorial3\" width=200 height=31 back=\"L2UI_CT1.OlympiadWnd_DF_HeroConfirm_Down\" fore=\"L2UI_CT1.OlympiadWnd_DF_HeroConfirm\"></td></tr></table><br>");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- StringUtil.append(HtmlEventTuto, "<table border=0 cellpadding=0 cellspacing=2><tr><td align=center>Welcome to the Tutorial.<br>Here you could inform about<br1>the Event operation.</td></tr></table><br><br><br><br>");
- StringUtil.append(HtmlEventTuto, "<table border=0 cellpadding=0 cellspacing=2><tr><td align=center><button value=\"Objectives\" action=\"bypass -h Quest STD ShooterTutorial1\" width=200 height=31 back=\"L2UI_CT1.OlympiadWnd_DF_Apply_Down\" fore=\"L2UI_CT1.OlympiadWnd_DF_Apply\"></td></tr></table><br>");
- StringUtil.append(HtmlEventTuto, "<table border=0 cellpadding=0 cellspacing=2><tr><td align=center><button value=\"Event Skills\" action=\"bypass -h Quest STD ShooterTutorial2\" width=200 height=31 back=\"L2UI_CT1.OlympiadWnd_DF_Fight1None_Down\" fore=\"L2UI_CT1.OlympiadWnd_DF_Fight1None\"></td></tr></table><br>");
- StringUtil.append(HtmlEventTuto, "<table border=0 cellpadding=0 cellspacing=2><tr><td align=center><button value=\"Event Commands\" action=\"bypass -h Quest STD ShooterTutorial3\" width=200 height=31 back=\"L2UI_CT1.OlympiadWnd_DF_HeroConfirm_Down\" fore=\"L2UI_CT1.OlympiadWnd_DF_HeroConfirm\"></td></tr></table><br>");
- }
- return HtmlEventTuto.toString();
- }
- else if ("ShooterTutorial1".equalsIgnoreCase(event))
- {
- final StringBuilder HtmlEventTuto1 = StringUtil.startAppend(360, "<html><body scroll=\"no\"><title>Shot The Dog Event</title><table border=0 cellpadding=0 cellspacing=0 width=292 height=358 background=\"L2UI_CH3.refinewnd_back_Pattern\"><tr><td valign=\"top\" align=\"center\"><br><font color=\"LEVEL\">Shot The Dog Event</font><br>");
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- StringUtil.append(HtmlEventTuto1, "<table border=0 cellpadding=0 cellspacing=2><tr><td align=center>Los participantes se reparten en <font color=\"LEVEL\">2 equipos</font>.<br1> Estos deben <font color=\"LEVEL\">eliminar a la mayor cantidad <br1>de contrincantes</font> posibles<br1> en el periodo que dure el evento.<br><br> Para ello deberán usar y mejorar sus <br1><a action=\"bypass -h Quest STD ShooterTutorial2\">Skills de Evento</a> para conseguir ventaja<br1> frente a sus enemigos.</td></tr></table><br>");
- StringUtil.append(HtmlEventTuto1, "<table border=0 cellpadding=0 cellspacing=2><tr><td align=center><button value=\"Atrás\" action=\"bypass -h Quest STD ShooterTutorial\" width=200 height=31 back=\"L2UI_CT1.OlympiadWnd_DF_Back_Down\" fore=\"L2UI_CT1.OlympiadWnd_DF_Back\"></td></tr></table></td></tr></table></body></html>");
- }
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- StringUtil.append(HtmlEventTuto1, "<table border=0 cellpadding=0 cellspacing=2><tr><td align=center>Participants are divided into <font color=\"LEVEL\">2 teams</font>.<br1>They must <font color=\"LEVEL\">kill as many enemies <br1></font>as they can during the Event.<br><br> To achieve it they must <br1>use and improve their<br1><a action=\"bypass -h Quest STD ShooterTutorial2\">Event Skills</a><br1> to take advantage<br1>againts their enemies.</td></tr></table><br>");
- StringUtil.append(HtmlEventTuto1, "<table border=0 cellpadding=0 cellspacing=2><tr><td align=center><button value=\"Back\" action=\"bypass -h Quest STD ShooterTutorial\" width=200 height=31 back=\"L2UI_CT1.OlympiadWnd_DF_Back_Down\" fore=\"L2UI_CT1.OlympiadWnd_DF_Back\"></td></tr></table></td></tr></table></body></html>");
- }
- return HtmlEventTuto1.toString();
- }
- else if ("ShooterTutorial2".equalsIgnoreCase(event))
- {
- final StringBuilder HtmlEventTuto2 = StringUtil.startAppend(360, "<html><body><title>Shot The Dog Event</title><table border=0 cellpadding=0 cellspacing=0 width=275 height=358 background=\"L2UI_CH3.refinewnd_back_Pattern\"><tr><td valign=\"top\" align=\"center\"><br><font color=\"LEVEL\">Shot The Dog Event</font><br>");
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- StringUtil.append(HtmlEventTuto2, "<table border=0 cellpadding=0 cellspacing=2><tr><td align=center>En el Evento <font color=\"LEVEL\">solo se pueden utilizar<br1> Skills de Evento</font>. Estas Skills emulan a armas<br1> de fuego, y su uso consume maná,<br1> lo equivalente a municion.<br1> Son Skills de Armas<br1>Skills de Accesorios y Skills de Apoyo.<br1>Al principìo del Evento<br1> solo habrá las básicas.<br>Durante el Evento si eliminas<br1>enemigos recibes <font color=\"LEVEL\">Dollar Dogs</font>,<br1> que deben usarse durante el evento<br1> en los <font color=\"LEVEL\">NPCs Smug</font> para conseguirlas<br1> y tener ventaja fente al enemigo.</td></tr></table><br>");
- StringUtil.append(HtmlEventTuto2, "<table border=0 cellpadding=0 cellspacing=2><tr><td align=center><button value=\"Mirar Skills de Armas\" action=\"bypass -h Quest STD ShooterTutorialw\" width=200 height=31 back=\"L2UI_CT1.OlympiadWnd_DF_Fight1None_Down\" fore=\"L2UI_CT1.OlympiadWnd_DF_Fight1None\"></td></tr></table>");
- StringUtil.append(HtmlEventTuto2, "<table border=0 cellpadding=0 cellspacing=2><tr><td align=center><button value=\"Mirar Skills de Accesorios\" action=\"bypass -h Quest STD ShooterTutoriala\" width=200 height=31 back=\"L2UI_CT1.OlympiadWnd_DF_BuyEquip_Down\" fore=\"L2UI_CT1.OlympiadWnd_DF_BuyEquip\"></td></tr></table>");
- StringUtil.append(HtmlEventTuto2, "<table border=0 cellpadding=0 cellspacing=2><tr><td align=center><button value=\"Mirar Skills de Apoyo\" action=\"bypass -h Quest STD ShooterTutorials\" width=200 height=31 back=\"L2UI_CT1.OlympiadWnd_DF_BuyEtc_Down\" fore=\"L2UI_CT1.OlympiadWnd_DF_BuyEtc\"></td></tr></table>");
- StringUtil.append(HtmlEventTuto2, "<table border=0 cellpadding=0 cellspacing=2><tr><td align=center><button value=\"Atrás\" action=\"bypass -h Quest STD ShooterTutorial\" width=200 height=31 back=\"L2UI_CT1.OlympiadWnd_DF_Back_Down\" fore=\"L2UI_CT1.OlympiadWnd_DF_Back\"></td></tr></table>");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- StringUtil.append(HtmlEventTuto2, "<table border=0 cellpadding=0 cellspacing=2><tr><td align=center>In the Event <font color=\"LEVEL\">you can only use<br1> Event SKills</font>. This skills are like firearms<br1> consuming mana like bullets.<br1> There are Weapon Skills<br1> Accessory Skills and Support Sills.<br1> In the beginning the players<br1> only get some of them.<br>Durint the Event, killing enemies<br1>will get you <font color=\"LEVEL\">Dollar Dogs</font>,<br1> that it must be spent<br1>in the <font color=\"LEVEL\">Smug NPCs</font> to have them and take<br1>advantage against your enemies.</td></tr></table><br>");
- StringUtil.append(HtmlEventTuto2, "<table border=0 cellpadding=0 cellspacing=2><tr><td align=center><button value=\"Look Weapon Skills\" action=\"bypass -h Quest STD ShooterTutorialw\" width=200 height=31 back=\"L2UI_CT1.OlympiadWnd_DF_Fight1None_Down\" fore=\"L2UI_CT1.OlympiadWnd_DF_Fight1None\"></td></tr></table>");
- StringUtil.append(HtmlEventTuto2, "<table border=0 cellpadding=0 cellspacing=2><tr><td align=center><button value=\"Look Accessory Skills\" action=\"bypass -h Quest STD ShooterTutoriala\" width=200 height=31 back=\"L2UI_CT1.OlympiadWnd_DF_BuyEquip_Down\" fore=\"L2UI_CT1.OlympiadWnd_DF_BuyEquip\"></td></tr></table>");
- StringUtil.append(HtmlEventTuto2, "<table border=0 cellpadding=0 cellspacing=2><tr><td align=center><button value=\"Look Support Skills\" action=\"bypass -h Quest STD ShooterTutorials\" width=200 height=31 back=\"L2UI_CT1.OlympiadWnd_DF_BuyEtc_Down\" fore=\"L2UI_CT1.OlympiadWnd_DF_Apply\"></td></tr></table>");
- StringUtil.append(HtmlEventTuto2, "<table border=0 cellpadding=0 cellspacing=2><tr><td align=center><button value=\"Back\" action=\"bypass -h Quest STD ShooterTutorial\" width=200 height=31 back=\"L2UI_CT1.OlympiadWnd_DF_Back_Down\" fore=\"L2UI_CT1.OlympiadWnd_DF_Back\"></td></tr></table>");
- }
- StringUtil.append(HtmlEventTuto2, "<br><br></td></tr></table></body></html>");
- return HtmlEventTuto2.toString();
- }
- else if ("ShooterTutorialw".equalsIgnoreCase(event))
- {
- showShooterWeaponsTutorial(player);
- return "";
- }
- else if ("ShooterTutoriala".equalsIgnoreCase(event))
- {
- showShooterEtcTutorial(player);
- return "";
- }
- else if ("ShooterTutorials".equalsIgnoreCase(event))
- {
- showShooterSupportTutorial(player);
- return "";
- }
- else if ("ShooterTutorial3".equalsIgnoreCase(event))
- {
- final StringBuilder HtmlEventTuto3 = StringUtil.startAppend(360, "<html><body scroll=\"no\"><title>Shot The Dog Event</title><table border=0 cellpadding=0 cellspacing=0 width=292 height=358 background=\"L2UI_CH3.refinewnd_back_Pattern\"><tr><td valign=\"top\" align=\"center\"><br><font color=\"LEVEL\">Shot The Dog Event</font><br>");
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- StringUtil.append(HtmlEventTuto3, "<table border=0 cellpadding=0 cellspacing=2><tr><td align=center>El Evento cuenta con una serie<br1>de comandos para facilitar<br1> la vida de los jugadores:<br>Inscribirse: <font color=\"LEVEL\">.join_STD</font><br1>Cancelar inscripción: <font color=\"LEVEL\">.cancel_STD</font><br1>Salir del Evento: <font color=\"LEVEL\">.leave_STD</font><br1>Ver Puntuaciones: <font color=\"LEVEL\">.score_STD</font><br1>Chat de Evento: <font color=\"LEVEL\">.ec <texto><br1></td></tr></table><br>");
- StringUtil.append(HtmlEventTuto3, "<table border=0 cellpadding=0 cellspacing=2><tr><td align=center><button value=\"Atrás\" action=\"bypass -h Quest STD ShooterTutorial\" width=200 height=31 back=\"L2UI_CT1.OlympiadWnd_DF_Back_Down\" fore=\"L2UI_CT1.OlympiadWnd_DF_Back\"></td></tr></table>");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- StringUtil.append(HtmlEventTuto3, "<table border=0 cellpadding=0 cellspacing=2><tr><td align=center>The Event counts with some<br1>user commands to make easy<br1>the player's life:<br>Inscribe: <font color=\"LEVEL\">.join_STD</font><br1>Cancel inscription: <font color=\"LEVEL\">.cancel_STD</font><br1>Exit from the Event: <font color=\"LEVEL\">.leave_STD</font><br1>View Scores: <font color=\"LEVEL\">.score_STD</font><br1>Event Chat: <font color=\"LEVEL\">.ec <text><br1></font><br1></td></tr></table><br>");
- StringUtil.append(HtmlEventTuto3, "<table border=0 cellpadding=0 cellspacing=2><tr><td align=center><button value=\"Back\" action=\"bypass -h Quest STD ShooterTutorial\" width=200 height=31 back=\"L2UI_CT1.OlympiadWnd_DF_Back_Down\" fore=\"L2UI_CT1.OlympiadWnd_DF_Back\"></td></tr></table>");
- }
- return HtmlEventTuto3.toString();
- }
- else if ("ShooterFeatures".equalsIgnoreCase(event))
- {
- showShooterFeaturesMenu(player);
- return "";
- }
- else if ("ShooterObservation".equalsIgnoreCase(event))
- {
- showShooterObserverMenu(player);
- return "";
- }
- else if ("ShooterObserver1".equalsIgnoreCase(event))
- {
- player.setObserverShooterEvent(true);
- player.enterOlympiadObserverMode(new Location(-12511, 273257, -15001), 0);
- player.setInstanceId(50000);
- return "";
- }
- else if ("ShooterObserver2".equalsIgnoreCase(event))
- {
- player.setObserverShooterEvent(true);
- player.enterObserverMode(-12511, 273257, -15001);
- player.setInstanceId(50001);
- return "";
- }
- else if ("ShooterObserver3".equalsIgnoreCase(event))
- {
- player.setObserverShooterEvent(true);
- player.enterObserverMode(-12511, 273257, -15001);
- player.setInstanceId(50002);
- return "";
- }
- else if ("ShooterObserver4".equalsIgnoreCase(event))
- {
- player.enterObserverMode(-12511, 273257, -15001);
- player.setInstanceId(50003);
- return "";
- }
- else if ("ShooterObserver5".equalsIgnoreCase(event))
- {
- player.enterObserverMode(-12511, 273257, -15001);
- player.setInstanceId(50004);
- return "";
- }
- else if ("ShooterPuntuaciones".equalsIgnoreCase(event))
- {
- showShooterStadistics(player);
- return "";
- }
- else if ("start_event_announcment_1".equalsIgnoreCase(event))
- {
- LaszloEventEngine.setShooterReadTime(0, (System.currentTimeMillis() + Config.SHOOTER_EVENT_INSCRIPTION_TIME));
- if (InscriptionNpc[0] == null)
- {
- InscriptionNpc[0] = spawn(INSCRIPTION_NPC, new Location(Config.SHOOTER_EVENT_NPC_1_COORDINATES[0], Config.SHOOTER_EVENT_NPC_1_COORDINATES[1], Config.SHOOTER_EVENT_NPC_1_COORDINATES[2], Config.SHOOTER_EVENT_NPC_1_COORDINATES[3]));
- InscriptionNpc[0].broadcastPacket(new MagicSkillUse(InscriptionNpc[0], InscriptionNpc[0], 6799, 1, 1, 1));
- InscriptionNpc[0].broadcastPacket(new MagicSkillUse(InscriptionNpc[0], InscriptionNpc[0], 6798, 1, 1, 1));
- }
- if (InscriptionNpc[1] == null)
- {
- InscriptionNpc[1] = spawn(INSCRIPTION_NPC, new Location(Config.SHOOTER_EVENT_NPC_2_COORDINATES[0], Config.SHOOTER_EVENT_NPC_2_COORDINATES[1], Config.SHOOTER_EVENT_NPC_2_COORDINATES[2], Config.SHOOTER_EVENT_NPC_2_COORDINATES[3]));
- InscriptionNpc[1].broadcastPacket(new MagicSkillUse(InscriptionNpc[1], InscriptionNpc[1], 6799, 1, 1, 1));
- InscriptionNpc[1].broadcastPacket(new MagicSkillUse(InscriptionNpc[1], InscriptionNpc[1], 6798, 1, 1, 1));
- }
- if (InscriptionNpc[2] == null)
- {
- InscriptionNpc[2] = spawn(INSCRIPTION_NPC, new Location(Config.SHOOTER_EVENT_NPC_3_COORDINATES[0], Config.SHOOTER_EVENT_NPC_3_COORDINATES[1], Config.SHOOTER_EVENT_NPC_3_COORDINATES[2], Config.SHOOTER_EVENT_NPC_3_COORDINATES[3]));
- InscriptionNpc[2].broadcastPacket(new MagicSkillUse(InscriptionNpc[2], InscriptionNpc[2], 6799, 1, 1, 1));
- InscriptionNpc[2].broadcastPacket(new MagicSkillUse(InscriptionNpc[2], InscriptionNpc[2], 6798, 1, 1, 1));
- }
- ExShowScreenMessage StartedSpa = new ExShowScreenMessage("¡Evento Shot The Dog Iniciado!", 5000);
- ExShowScreenMessage StartedEng = new ExShowScreenMessage("Shot The Dog Event Initiated!", 5000);
- for (L2PcInstance ply : L2World.getInstance().getAllPlayersArray())
- {
- if (ply != null)
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- ply.sendPacket(StartedSpa);
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- ply.sendPacket(StartedEng);
- }
- }
- }
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- Announcements.getInstance().announceToAll("Evento Shot The Dog iniciado. \nPara inscribirse acudir a " + InscriptionNpc[0].getName() + " en " + MapRegionManager.getInstance().getClosestTownName(InscriptionNpc[0]) + ", " + MapRegionManager.getInstance().getClosestTownName(InscriptionNpc[1]) + " y " + MapRegionManager.getInstance().getClosestTownName(InscriptionNpc[2]) + ", o mediante el comando .join_STD. \nQuedan " + (long) Math.round((LaszloEventEngine.getShooterReadTime(0) - System.currentTimeMillis()) / 60000) + " minuto(s) y " + (((LaszloEventEngine.getShooterReadTime(0) - System.currentTimeMillis()) / 1000) - (((((LaszloEventEngine.getShooterReadTime(0) - System.currentTimeMillis()) / 1000) / 60)) * 60)) + " segundo(s).");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- Announcements.getInstance().announceToAll("Shot The Dog Event started. \nTo inscribe it go to " + InscriptionNpc[0].getName() + " in " + MapRegionManager.getInstance().getClosestTownName(InscriptionNpc[0]) + ", " + MapRegionManager.getInstance().getClosestTownName(InscriptionNpc[1]) + " y " + MapRegionManager.getInstance().getClosestTownName(InscriptionNpc[2]) + ", or use the command .join_STD. \n" + (long) Math.round((LaszloEventEngine.getShooterReadTime(0) - System.currentTimeMillis()) / 60000) + " minut(s) and " + (((LaszloEventEngine.getShooterReadTime(0) - System.currentTimeMillis()) / 1000) - (((((LaszloEventEngine.getShooterReadTime(0) - System.currentTimeMillis()) / 1000) / 60)) * 60)) + " second(s) last.");
- }
- startQuestTimer("start_event_announcment_2", InscriptionTime14, null, null);
- return "";
- }
- else if ("start_event_announcment_2".equalsIgnoreCase(event))
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- Announcements.getInstance().announceToAll("Evento Shot The Dog, inscripción en proceso. \nPara inscribirse acudir a " + InscriptionNpc[0].getName() + " en " + MapRegionManager.getInstance().getClosestTownName(InscriptionNpc[0]) + ", " + MapRegionManager.getInstance().getClosestTownName(InscriptionNpc[1]) + " y " + MapRegionManager.getInstance().getClosestTownName(InscriptionNpc[2]) + ", o mediante el comando .join_STD. \nQuedan " + (long) Math.round((LaszloEventEngine.getShooterReadTime(0) - System.currentTimeMillis()) / 60000) + " minuto(s) y " + (((LaszloEventEngine.getShooterReadTime(0) - System.currentTimeMillis()) / 1000) - (((((LaszloEventEngine.getShooterReadTime(0) - System.currentTimeMillis()) / 1000) / 60)) * 60)) + " segundo(s).");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- Announcements.getInstance().announceToAll("Shot The Dog Event, inscription in process. \nTo inscribe it go to " + InscriptionNpc[0].getName() + " in " + MapRegionManager.getInstance().getClosestTownName(InscriptionNpc[0]) + ", " + MapRegionManager.getInstance().getClosestTownName(InscriptionNpc[1]) + " y " + MapRegionManager.getInstance().getClosestTownName(InscriptionNpc[2]) + ", or use the command .join_STD. \n" + (long) Math.round((LaszloEventEngine.getShooterReadTime(0) - System.currentTimeMillis()) / 60000) + " minut(s) and " + (((LaszloEventEngine.getShooterReadTime(0) - System.currentTimeMillis()) / 1000) - (((((LaszloEventEngine.getShooterReadTime(0) - System.currentTimeMillis()) / 1000) / 60)) * 60)) + " second(s) last.");
- }
- startQuestTimer("start_event_announcment_3", InscriptionTime14, null, null);
- return "";
- }
- else if ("start_event_announcment_3".equalsIgnoreCase(event))
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- Announcements.getInstance().announceToAll("Evento Shot The Dog, inscripción en proceso. \nPara inscribirse acudir a " + InscriptionNpc[0].getName() + " en " + MapRegionManager.getInstance().getClosestTownName(InscriptionNpc[0]) + ", " + MapRegionManager.getInstance().getClosestTownName(InscriptionNpc[1]) + " y " + MapRegionManager.getInstance().getClosestTownName(InscriptionNpc[2]) + ", o mediante el comando .join_STD. \nQuedan " + (long) Math.round((LaszloEventEngine.getShooterReadTime(0) - System.currentTimeMillis()) / 60000) + " minuto(s) y " + (((LaszloEventEngine.getShooterReadTime(0) - System.currentTimeMillis()) / 1000) - (((((LaszloEventEngine.getShooterReadTime(0) - System.currentTimeMillis()) / 1000) / 60)) * 60)) + " segundo(s).");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- Announcements.getInstance().announceToAll("Shot The Dog Event, inscription in process. \nTo inscribe it go to " + InscriptionNpc[0].getName() + " in " + MapRegionManager.getInstance().getClosestTownName(InscriptionNpc[0]) + ", " + MapRegionManager.getInstance().getClosestTownName(InscriptionNpc[1]) + " y " + MapRegionManager.getInstance().getClosestTownName(InscriptionNpc[2]) + ", or use the command .join_STD. \n" + (long) Math.round((LaszloEventEngine.getShooterReadTime(0) - System.currentTimeMillis()) / 60000) + " minut(s) and " + (((LaszloEventEngine.getShooterReadTime(0) - System.currentTimeMillis()) / 1000) - (((((LaszloEventEngine.getShooterReadTime(0) - System.currentTimeMillis()) / 1000) / 60)) * 60)) + " second(s) last.");
- }
- startQuestTimer("start_event_announcment_4", InscriptionTime14, null, null);
- return "";
- }
- else if ("start_event_announcment_4".equalsIgnoreCase(event))
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- Announcements.getInstance().announceToAll("Evento Shot The Dog, inscripción en proceso. \nPara inscribirse acudir a " + InscriptionNpc[0].getName() + " en " + MapRegionManager.getInstance().getClosestTownName(InscriptionNpc[0]) + ", " + MapRegionManager.getInstance().getClosestTownName(InscriptionNpc[1]) + " y " + MapRegionManager.getInstance().getClosestTownName(InscriptionNpc[2]) + ", o mediante el comando .join_STD. \nQuedan " + (long) Math.round((LaszloEventEngine.getShooterReadTime(0) - System.currentTimeMillis()) / 60000) + " minuto(s) y " + (((LaszloEventEngine.getShooterReadTime(0) - System.currentTimeMillis()) / 1000) - (((((LaszloEventEngine.getShooterReadTime(0) - System.currentTimeMillis()) / 1000) / 60)) * 60)) + " segundo(s).");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- Announcements.getInstance().announceToAll("Shot The Dog Event, inscription in process. \nTo inscribe it go to " + InscriptionNpc[0].getName() + " in " + MapRegionManager.getInstance().getClosestTownName(InscriptionNpc[0]) + ", " + MapRegionManager.getInstance().getClosestTownName(InscriptionNpc[1]) + " y " + MapRegionManager.getInstance().getClosestTownName(InscriptionNpc[2]) + ", or use the command .join_STD. \n" + (long) Math.round((LaszloEventEngine.getShooterReadTime(0) - System.currentTimeMillis()) / 60000) + " minut(s) and " + (((LaszloEventEngine.getShooterReadTime(0) - System.currentTimeMillis()) / 1000) - (((((LaszloEventEngine.getShooterReadTime(0) - System.currentTimeMillis()) / 1000) / 60)) * 60)) + " second(s) last.");
- }
- startQuestTimer("event_calculate_players", InscriptionTime14, null, null);
- return "";
- }
- else if ("event_calculate_players".equalsIgnoreCase(event))
- {
- LaszloEventEngine.setShooterRegistratedNum(0);
- _log.info("[Shot The Dog Event Engine]: Processing Players...");
- LaszloEventEngine.setShooterEventState(2);
- CalculatePlayersEvent(player);
- startQuestTimer("event_calculate_instances", 1000, null, null);
- return "";
- }
- else if ("player_cancel_event".equalsIgnoreCase(event))
- {
- for (int i = 0; i < 3; i++)
- {
- if (InscriptionNpc[i] != null)
- {
- InscriptionNpc[i].broadcastPacket(new MagicSkillUse(InscriptionNpc[i], InscriptionNpc[i], 2614, 1, 1, 1));
- InscriptionNpc[i].decayMe();
- InscriptionNpc[i] = null;
- }
- }
- for (int i = 0; i < 5; i++)
- {
- if (RedTargetBomb[i] != null)
- {
- RedTargetBomb[i].decayMe();
- RedTargetBomb[i] = null;
- }
- if (BlueTargetBomb[i] != null)
- {
- BlueTargetBomb[i].decayMe();
- BlueTargetBomb[i] = null;
- }
- }
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- Announcements.getInstance().announceToAll("Evento Shot The Dog ha sido cancelado debido a la falta de participantes.");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- Announcements.getInstance().announceToAll("Shot The Dog Event has been canceled due the lack of participants.");
- }
- _log.info("[Shot The Dog Event Engine]: Event Canceled due the lack of participants.");
- cleanEffects(player);
- startQuestTimer("player_cancel_event_2", 3000, null, null);
- return "";
- }
- else if ("player_cancel_event_2".equalsIgnoreCase(event))
- {
- PlayerCancelShooterEvent(player);
- CleanValuesPlayers(player);
- CleanValuesEvent();
- for (int i = 50000; i < 50005; i++)
- {
- InstanceManager.getInstance().destroyInstance(i);
- }
- if (Config.SHOOTER_EVENT_AUTOMATIC)
- {
- scheduleShooterEventStart();
- }
- return "";
- }
- else if ("leave_clean".equalsIgnoreCase(event))
- {
- if (player.isSitting())
- {
- player.standUp();
- }
- if (player.getParty() != null)
- {
- L2Party party = player.getParty();
- party.removePartyMember(player, messageType.Expelled);
- }
- if (player.isMounted() || player.isFlying())
- {
- player.dismount();
- }
- if (player.isFakeDeath())
- {
- player.stopFakeDeath(true);
- }
- if (player.hasSummon() || (player.hasSummon() && player.getSummon().isPet()))
- {
- player.getSummon().unSummon(player);
- }
- player.disableAllSkills();
- player.setTarget(null);
- player.stopMove(null);
- player.setIsImmobilized(true);
- player.stopAllEffects();
- player.stopCubics();
- player.setCurrentHpMp(player.getMaxHp(), player.getMaxMp());
- player.setCurrentCp(player.getMaxCp());
- return "";
- }
- else if ("leave_tele".equalsIgnoreCase(event))
- {
- player.enableAllSkills();
- player.setIsImmobilized(false);
- player.setTeam(0);
- teleportPlayer(player, EXIT_POINT, 0);
- if (player.isEnrolledShooterEvent())
- {
- player.setEnrolledShooterEvent(false);
- }
- if (player.getDollarsShooterEvent() > 0)
- {
- player.setDollarsShooterEvent(0);
- }
- if (player.getInstanceHelperShooterEvent() > 0)
- {
- player.setInstanceHelperShooterEvent(0);
- }
- if (player.getMatrixLocShooterEvent() > 0)
- {
- player.setMatrixLocShooterEvent(0);
- }
- if (player.getRachaShooterEvent() > 0)
- {
- player.setRachaShooterEvent(0);
- }
- for (int i = 0; i < 5; i++)
- {
- if (player.isRedPartakerShooterEvent(i))
- {
- player.setRedPartakerShooterEvent(i, false);
- }
- if (player.isBluePartakerShooterEvent(i))
- {
- player.setBluePartakerShooterEvent(i, false);
- }
- }
- for (int j = 0; j < 8; j++)
- {
- if (player.getMatrixStadisticsShooterEvent(j) > 0)
- {
- player.setMatrixStadisticsShooterEvent(j, 0);
- }
- }
- return "";
- }
- else if ("ShooterArmas".equalsIgnoreCase(event))
- {
- showShooterWeaponsMenu(player);
- return "";
- }
- else if ("ShooterAccesorios".equalsIgnoreCase(event))
- {
- showShooterEtcMenu(player);
- return "";
- }
- else if ("ShooterApoyo".equalsIgnoreCase(event))
- {
- showShooterSupportMenu(player);
- return "";
- }
- else if ("ShooterDesert".equalsIgnoreCase(event))
- {
- if (player.getDollarsShooterEvent() < 700)
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- player.sendMessage("No tienes Dollars Dogs suficientes");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- player.sendMessage("You haven't got enough Dollars Dogs");
- }
- }
- else
- {
- player.addSkill(SkillTable.getInstance().getInfo(40002, 1), false);
- player.setDollarsShooterEvent(player.getDollarsShooterEvent() - 700);
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- player.sendMessage("Has adquirido una Desert Eagle. Acribilla a tus enemigos. Te quedan " + player.getDollarsShooterEvent() + " Dollars Dogs.");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- player.sendMessage("You have adquired a Desert Eagle. Riddle your enemies. You get " + player.getDollarsShooterEvent() + " Dollars Dogs.");
- }
- player.setMatrixStadisticsShooterEvent(6, player.getMatrixStadisticsShooterEvent(6) + 700);
- if (Points[6] < player.getMatrixStadisticsShooterEvent(6))
- {
- Points[6] = player.getMatrixStadisticsShooterEvent(6);
- LaszloEventEngine.setCalculateStadisticsPoints(player.getInstanceHelperShooterEvent(), player.getMatrixLocShooterEvent(), 7, Points[6]);
- }
- player.broadcastUserInfo();
- showShooterWeaponsMenu(player);
- }
- return "";
- }
- else if ("ShooterShotgun".equalsIgnoreCase(event))
- {
- if (player.getDollarsShooterEvent() < 2000)
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- player.sendMessage("No tienes Dollars Dogs suficientes");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- player.sendMessage("You haven't got enough Dollars Dogs");
- }
- }
- else
- {
- player.addSkill(SkillTable.getInstance().getInfo(40003, 1), false);
- player.setDollarsShooterEvent(player.getDollarsShooterEvent() - 2000);
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- player.sendMessage("Has adquirido una Escopeta Franchi SPAS-12. Acribilla a tus enemigos. Te quedan " + player.getDollarsShooterEvent() + " Dollars Dogs.");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- player.sendMessage("You have adquired a Franchi SPAS-12 shotgun. Riddle your enemies. You get " + player.getDollarsShooterEvent() + " Dollars Dogs.");
- }
- player.setMatrixStadisticsShooterEvent(6, player.getMatrixStadisticsShooterEvent(6) + 2000);
- if (Points[6] < player.getMatrixStadisticsShooterEvent(6))
- {
- Points[6] = player.getMatrixStadisticsShooterEvent(6);
- LaszloEventEngine.setCalculateStadisticsPoints(player.getInstanceHelperShooterEvent(), player.getMatrixLocShooterEvent(), 7, Points[6]);
- }
- player.broadcastUserInfo();
- showShooterWeaponsMenu(player);
- }
- return "";
- }
- else if ("ShooterSubfusil".equalsIgnoreCase(event))
- {
- if (player.getDollarsShooterEvent() < 1600)
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- player.sendMessage("No tienes Dollars Dogs suficientes");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- player.sendMessage("You haven't got enough Dollars Dogs");
- }
- }
- else
- {
- player.addSkill(SkillTable.getInstance().getInfo(40004, 1), false);
- player.setDollarsShooterEvent(player.getDollarsShooterEvent() - 1600);
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- player.sendMessage("Has adquirido un subfusil MP-5. Acribilla a tus enemigos. Te quedan " + player.getDollarsShooterEvent() + " Dollars Dogs.");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- player.sendMessage("You have adquired a MP-5 SMG. Riddle your enemies. You get " + player.getDollarsShooterEvent() + " Dollars Dogs.");
- }
- player.setMatrixStadisticsShooterEvent(6, player.getMatrixStadisticsShooterEvent(6) + 1600);
- if (Points[6] < player.getMatrixStadisticsShooterEvent(6))
- {
- Points[6] = player.getMatrixStadisticsShooterEvent(6);
- LaszloEventEngine.setCalculateStadisticsPoints(player.getInstanceHelperShooterEvent(), player.getMatrixLocShooterEvent(), 7, Points[6]);
- }
- player.broadcastUserInfo();
- showShooterWeaponsMenu(player);
- }
- return "";
- }
- else if ("ShooterAssaultR".equalsIgnoreCase(event))
- {
- if (player.getDollarsShooterEvent() < 2200)
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- player.sendMessage("No tienes Dollars Dogs suficientes");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- player.sendMessage("You haven't got enough Dollars Dogs");
- }
- }
- else
- {
- player.addSkill(SkillTable.getInstance().getInfo(40005, 1), false);
- player.setDollarsShooterEvent(player.getDollarsShooterEvent() - 2200);
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- player.sendMessage("Has adquirido un Rifle de Asalto AK-47. Acribilla a tus enemigos. Te quedan " + player.getDollarsShooterEvent() + " Dollars Dogs.");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- player.sendMessage("You have adquired a AK-47 Assault Rifle. Riddle your enemies. You get " + player.getDollarsShooterEvent() + " Dollars Dogs.");
- }
- player.setMatrixStadisticsShooterEvent(6, player.getMatrixStadisticsShooterEvent(6) + 2200);
- if (Points[6] < player.getMatrixStadisticsShooterEvent(6))
- {
- Points[6] = player.getMatrixStadisticsShooterEvent(6);
- LaszloEventEngine.setCalculateStadisticsPoints(player.getInstanceHelperShooterEvent(), player.getMatrixLocShooterEvent(), 7, Points[6]);
- }
- player.broadcastUserInfo();
- showShooterWeaponsMenu(player);
- }
- return "";
- }
- else if ("ShooterSniperR".equalsIgnoreCase(event))
- {
- if (player.getDollarsShooterEvent() < 3000)
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- player.sendMessage("No tienes Dollars Dogs suficientes");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- player.sendMessage("You haven't got enough Dollars Dogs");
- }
- }
- else
- {
- player.addSkill(SkillTable.getInstance().getInfo(40006, 1), false);
- player.setDollarsShooterEvent(player.getDollarsShooterEvent() - 3000);
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- player.sendMessage("Has adquirido un Rifle de Francotirador L69A1. Acribilla a tus enemigos. Te quedan " + player.getDollarsShooterEvent() + " Dollars Dogs.");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- player.sendMessage("You have adquired a L69A1 Sniper Rifle. Riddle your enemies. You get " + player.getDollarsShooterEvent() + " Dollars Dogs.");
- }
- player.setMatrixStadisticsShooterEvent(6, player.getMatrixStadisticsShooterEvent(6) + 3000);
- if (Points[6] < player.getMatrixStadisticsShooterEvent(6))
- {
- Points[6] = player.getMatrixStadisticsShooterEvent(6);
- LaszloEventEngine.setCalculateStadisticsPoints(player.getInstanceHelperShooterEvent(), player.getMatrixLocShooterEvent(), 7, Points[6]);
- }
- player.broadcastUserInfo();
- showShooterWeaponsMenu(player);
- }
- return "";
- }
- else if ("ShooterCammo".equalsIgnoreCase(event))
- {
- if (player.getDollarsShooterEvent() < 1400)
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- player.sendMessage("No tienes Dollars Dogs suficientes");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- player.sendMessage("You haven't got enough Dollars Dogs");
- }
- }
- else
- {
- player.addSkill(SkillTable.getInstance().getInfo(40011, 1), false);
- player.setDollarsShooterEvent(player.getDollarsShooterEvent() - 1400);
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- player.sendMessage("Has adquirido un Traje de Camuflaje. Te quedan " + player.getDollarsShooterEvent() + " Dollars Dogs.");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- player.sendMessage("You have adquired a Camouflage Suit. You get " + player.getDollarsShooterEvent() + " Dollars Dogs.");
- }
- player.setMatrixStadisticsShooterEvent(6, player.getMatrixStadisticsShooterEvent(6) + 1400);
- if (Points[6] < player.getMatrixStadisticsShooterEvent(6))
- {
- Points[6] = player.getMatrixStadisticsShooterEvent(6);
- LaszloEventEngine.setCalculateStadisticsPoints(player.getInstanceHelperShooterEvent(), player.getMatrixLocShooterEvent(), 7, Points[6]);
- }
- player.broadcastUserInfo();
- showShooterEtcMenu(player);
- }
- return "";
- }
- else if ("ShooterLents".equalsIgnoreCase(event))
- {
- if (player.getDollarsShooterEvent() < 900)
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- player.sendMessage("No tienes Dollars Dogs suficientes");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- player.sendMessage("You haven't got enough Dollars Dogs");
- }
- }
- else
- {
- player.addSkill(SkillTable.getInstance().getInfo(40012, 1), false);
- player.setDollarsShooterEvent(player.getDollarsShooterEvent() - 900);
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- player.sendMessage("Has adquirido unas Gafas de Visión Nocturna. Te quedan " + player.getDollarsShooterEvent() + " Dollars Dogs.");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- player.sendMessage("You have adquired a Night Vision Glasses. You get " + player.getDollarsShooterEvent() + " Dollars Dogs.");
- }
- player.setMatrixStadisticsShooterEvent(6, player.getMatrixStadisticsShooterEvent(6) + 900);
- if (Points[6] < player.getMatrixStadisticsShooterEvent(6))
- {
- Points[6] = player.getMatrixStadisticsShooterEvent(6);
- LaszloEventEngine.setCalculateStadisticsPoints(player.getInstanceHelperShooterEvent(), player.getMatrixLocShooterEvent(), 7, Points[6]);
- }
- player.broadcastUserInfo();
- showShooterEtcMenu(player);
- }
- return "";
- }
- else if ("ShooterBombStore".equalsIgnoreCase(event))
- {
- if (player.getDollarsShooterEvent() < 4000)
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- player.sendMessage("No tienes Dollars Dogs suficientes");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- player.sendMessage("You haven't got enough Dollars Dogs");
- }
- }
- else
- {
- player.addSkill(SkillTable.getInstance().getInfo(40009, 1), false);
- player.setDollarsShooterEvent(player.getDollarsShooterEvent() - 4000);
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- player.sendMessage("Has adquirido una Bomba con Temporizador. Te quedan " + player.getDollarsShooterEvent() + " Dollars Dogs.");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- player.sendMessage("You have adquired a Time Bomb. You get " + player.getDollarsShooterEvent() + " Dollars Dogs.");
- }
- player.setMatrixStadisticsShooterEvent(6, player.getMatrixStadisticsShooterEvent(6) + 4000);
- if (Points[6] < player.getMatrixStadisticsShooterEvent(6))
- {
- Points[6] = player.getMatrixStadisticsShooterEvent(6);
- LaszloEventEngine.setCalculateStadisticsPoints(player.getInstanceHelperShooterEvent(), player.getMatrixLocShooterEvent(), 7, Points[6]);
- }
- player.broadcastUserInfo();
- showShooterEtcMenu(player);
- }
- return "";
- }
- else if ("ShooterDeactivation".equalsIgnoreCase(event))
- {
- if (player.getDollarsShooterEvent() < 1500)
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- player.sendMessage("No tienes Dollars Dogs suficientes");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- player.sendMessage("You haven't got enough Dollars Dogs");
- }
- }
- else
- {
- player.addSkill(SkillTable.getInstance().getInfo(40010, 1), false);
- player.setDollarsShooterEvent(player.getDollarsShooterEvent() - 1500);
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- player.sendMessage("Has adquirido un Kit de Desactivación. Te quedan " + player.getDollarsShooterEvent() + " Dollars Dogs.");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- player.sendMessage("You have adquired a Deactivation Kit. You get " + player.getDollarsShooterEvent() + " Dollars Dogs.");
- }
- player.setMatrixStadisticsShooterEvent(6, player.getMatrixStadisticsShooterEvent(6) + 1500);
- if (Points[6] < player.getMatrixStadisticsShooterEvent(6))
- {
- Points[6] = player.getMatrixStadisticsShooterEvent(6);
- LaszloEventEngine.setCalculateStadisticsPoints(player.getInstanceHelperShooterEvent(), player.getMatrixLocShooterEvent(), 7, Points[6]);
- }
- player.broadcastUserInfo();
- showShooterEtcMenu(player);
- }
- return "";
- }
- else if ("ShooterGrenade".equalsIgnoreCase(event))
- {
- if (player.getDollarsShooterEvent() < 2000)
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- player.sendMessage("No tienes Dollars Dogs suficientes");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- player.sendMessage("You haven't got enough Dollars Dogs");
- }
- }
- else
- {
- player.addSkill(SkillTable.getInstance().getInfo(40018, 1), false);
- player.setDollarsShooterEvent(player.getDollarsShooterEvent() - 2000);
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- player.sendMessage("Has adquirido unas Granadas. Te quedan " + player.getDollarsShooterEvent() + " Dollars Dogs.");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- player.sendMessage("You have adquired some Grenades. You get " + player.getDollarsShooterEvent() + " Dollars Dogs.");
- }
- player.setMatrixStadisticsShooterEvent(6, player.getMatrixStadisticsShooterEvent(6) + 2000);
- if (Points[6] < player.getMatrixStadisticsShooterEvent(6))
- {
- Points[6] = player.getMatrixStadisticsShooterEvent(6);
- LaszloEventEngine.setCalculateStadisticsPoints(player.getInstanceHelperShooterEvent(), player.getMatrixLocShooterEvent(), 7, Points[6]);
- }
- player.broadcastUserInfo();
- showShooterEtcMenu(player);
- }
- return "";
- }
- else if ("ShooterKevlar".equalsIgnoreCase(event))
- {
- if (player.getDollarsShooterEvent() < 1000)
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- player.sendMessage("No tienes Dollars Dogs suficientes");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- player.sendMessage("You haven't got enough Dollars Dogs");
- }
- }
- else
- {
- SkillTable.getInstance().getInfo(40015, 1).getEffects(player, player);
- player.setCurrentCp(player.getMaxCp());
- player.setDollarsShooterEvent(player.getDollarsShooterEvent() - 1000);
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- player.sendMessage("Has adquirido un Chaleco Kevlar. Te quedan " + player.getDollarsShooterEvent() + " Dollars Dogs.");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- player.sendMessage("You have adquired a Kevlar Vest. You get " + player.getDollarsShooterEvent() + " Dollars Dogs.");
- }
- player.setMatrixStadisticsShooterEvent(6, player.getMatrixStadisticsShooterEvent(6) + 1000);
- if (Points[6] < player.getMatrixStadisticsShooterEvent(6))
- {
- Points[6] = player.getMatrixStadisticsShooterEvent(6);
- LaszloEventEngine.setCalculateStadisticsPoints(player.getInstanceHelperShooterEvent(), player.getMatrixLocShooterEvent(), 7, Points[6]);
- }
- player.broadcastUserInfo();
- showShooterSupportMenu(player);
- }
- return "";
- }
- else if ("ShooterHerbs".equalsIgnoreCase(event))
- {
- if (player.getDollarsShooterEvent() < 1000)
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- player.sendMessage("No tienes Dollars Dogs suficientes");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- player.sendMessage("You haven't got enough Dollars Dogs");
- }
- }
- else
- {
- SkillTable.getInstance().getInfo(40016, 1).getEffects(player, player);
- player.setDollarsShooterEvent(player.getDollarsShooterEvent() - 1000);
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- player.sendMessage("Has adquirido Hierbas Medicinales. Te quedan " + player.getDollarsShooterEvent() + " Dollars Dogs.");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- player.sendMessage("You have adquired Medicinal Herbs. You get " + player.getDollarsShooterEvent() + " Dollars Dogs.");
- }
- player.setMatrixStadisticsShooterEvent(6, player.getMatrixStadisticsShooterEvent(6) + 1000);
- if (Points[6] < player.getMatrixStadisticsShooterEvent(6))
- {
- Points[6] = player.getMatrixStadisticsShooterEvent(6);
- LaszloEventEngine.setCalculateStadisticsPoints(player.getInstanceHelperShooterEvent(), player.getMatrixLocShooterEvent(), 7, Points[6]);
- }
- player.broadcastUserInfo();
- showShooterSupportMenu(player);
- }
- return "";
- }
- else if ("ShooterAmmo".equalsIgnoreCase(event))
- {
- if (player.getDollarsShooterEvent() < 1000)
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- player.sendMessage("No tienes Dollars Dogs suficientes");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- player.sendMessage("You haven't got enough Dollars Dogs");
- }
- }
- else
- {
- SkillTable.getInstance().getInfo(40017, 1).getEffects(player, player);
- player.setCurrentMp(player.getMaxMp());
- player.setDollarsShooterEvent(player.getDollarsShooterEvent() - 1000);
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- player.sendMessage("Has adquirido Expansión de Munición. Te quedan " + player.getDollarsShooterEvent() + " Dollars Dogs.");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- player.sendMessage("You have adquired Ammo Expansion. You get " + player.getDollarsShooterEvent() + " Dollars Dogs.");
- }
- player.setMatrixStadisticsShooterEvent(6, player.getMatrixStadisticsShooterEvent(6) + 1000);
- if (Points[6] < player.getMatrixStadisticsShooterEvent(6))
- {
- Points[6] = player.getMatrixStadisticsShooterEvent(6);
- LaszloEventEngine.setCalculateStadisticsPoints(player.getInstanceHelperShooterEvent(), player.getMatrixLocShooterEvent(), 7, Points[6]);
- }
- player.broadcastUserInfo();
- showShooterSupportMenu(player);
- }
- return "";
- }
- else if ("player_cancel_event_menu".equalsIgnoreCase(event))
- {
- for (int i = 0; i < 3; i++)
- {
- if (InscriptionNpc[i] != null)
- {
- InscriptionNpc[i].broadcastPacket(new MagicSkillUse(InscriptionNpc[i], InscriptionNpc[i], 2614, 1, 1, 1));
- InscriptionNpc[i].decayMe();
- InscriptionNpc[i] = null;
- }
- }
- for (int i = 0; i < 5; i++)
- {
- if (RedTargetBomb[i] != null)
- {
- RedTargetBomb[i].decayMe();
- RedTargetBomb[i] = null;
- }
- if (BlueTargetBomb[i] != null)
- {
- BlueTargetBomb[i].decayMe();
- BlueTargetBomb[i] = null;
- }
- if (RedBomb[i] != null)
- {
- RedBomb[i].decayMe();
- RedBomb[i] = null;
- }
- if (BlueBomb[i] != null)
- {
- BlueBomb[i].decayMe();
- BlueBomb[i] = null;
- }
- }
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- Announcements.getInstance().announceToAll("Evento Shot The Dog ha sido cancelado.");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- Announcements.getInstance().announceToAll("Shot The Dog Event has been canceled.");
- }
- cleanEffects(player);
- startQuestTimer("player_cancel_event_menu_2", 5000, null, null);
- return "";
- }
- else if ("player_cancel_event_menu_2".equalsIgnoreCase(event))
- {
- PlayerCancelShooterEvent(player);
- CleanValuesPlayers(player);
- CleanValuesEvent();
- for (int i = 50000; i < 50005; i++)
- {
- InstanceManager.getInstance().destroyInstance(i);
- }
- if (Config.SHOOTER_EVENT_AUTOMATIC)
- {
- scheduleShooterEventStart();
- }
- return "";
- }
- else if ("event_calculate_instances".equalsIgnoreCase(event))
- {
- _log.info("[Shot The Dog Event Engine]: Processing Instances...");
- CalculateInstancesEvent();
- return "";
- }
- else if ("event_create_instances".equalsIgnoreCase(event))
- {
- _log.info("[Shot The Dog Event Engine]: Creating Instances...");
- createInstance();
- return "";
- }
- else if ("event_calculate_teams".equalsIgnoreCase(event))
- {
- LaszloEventEngine.setDistributingHelperShooterEvent(0);
- _log.info("[Shot The Dog Event Engine]: Processing Teams...");
- CalculateTeamsEvent(player);
- startQuestTimer("event_ready_period_teleport", 2000, null, null);
- startQuestTimer("event_open_door", 1000, null, null);
- instanceId = 50000;
- if ((RedTargetBomb[0] == null) && (BlueTargetBomb[0] == null))
- {
- RedTargetBomb[0] = spawn(RED_TARGET, new Location(-12350, 273935, -15301, 63477, instanceId));
- BlueTargetBomb[0] = spawn(BLUE_TARGET, new Location(-12670, 273935, -15301, 32314, instanceId));
- }
- for (int k = 0; k < 4; k++)
- {
- if (LaszloEventEngine.isShooterEventInstancesSlot(k))
- {
- if ((RedTargetBomb[k + 1] == null) && (BlueTargetBomb[k + 1] == null))
- {
- instanceId += 1;
- RedTargetBomb[k + 1] = spawn(RED_TARGET, new Location(-12350, 273935, -15301, 63477, instanceId));
- BlueTargetBomb[k + 1] = spawn(BLUE_TARGET, new Location(-12670, 273935, -15301, 32314, instanceId));
- }
- }
- }
- return "";
- }
- else if ("event_open_door".equalsIgnoreCase(event))
- {
- startQuestTimer("event_open_door", 20000, null, null);
- for (int i = 0; i < 2; i++)
- {
- for (int j = 50000; j < 50005; j++)
- {
- final L2DoorInstance door = getDoor(DOOR[i], j);
- if (door != null)
- {
- door.setTargetable(true);
- door.openMe();
- }
- }
- }
- return "";
- }
- else if ("event_ready_period_teleport".equalsIgnoreCase(event))
- {
- LaszloEventEngine.setShooterReadTime(1, (System.currentTimeMillis() + Config.SHOOTER_EVENT_PREPARATION_TIME));
- _log.info("[Shot The Dog Event Engine]: Teleporting players...");
- TeleportInTeamsShooterEvent(player);
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- Announcements.getInstance().announceToAll("El Evento Shot The Dog ha dado comienzo.");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- Announcements.getInstance().announceToAll("Shot The Dog Event started.");
- }
- ExShowScreenMessage MsgStartedSpa = new ExShowScreenMessage("¡Empieza el Evento! \nTiempo de preparación de " + (Config.SHOOTER_EVENT_PREPARATION_TIME / 1000) + " segundo(s). ", 6000);
- ExShowScreenMessage MsgStartedEng = new ExShowScreenMessage("The Event starts! \nPreparation time: " + (Config.SHOOTER_EVENT_PREPARATION_TIME / 1000) + " second(s).", 6000);
- for (L2PcInstance ply : L2World.getInstance().getAllPlayersArray())
- {
- if (ply != null)
- {
- for (int i = 0; i < 5; i++)
- {
- if (ply.isRedPartakerShooterEvent(i) || ply.isBluePartakerShooterEvent(i))
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- ply.sendPacket(MsgStartedSpa);
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- ply.sendPacket(MsgStartedEng);
- }
- }
- }
- }
- }
- startQuestTimer("event_ready_period_ready", 4000, null, null);
- return "";
- }
- else if ("event_ready_period_ready".equalsIgnoreCase(event))
- {
- LaszloEventEngine.setShooterReadTime(1, (System.currentTimeMillis() + Config.SHOOTER_EVENT_PREPARATION_TIME));
- cleanEffects(player);
- playerStop(player);
- _log.info("[Shot The Dog Event Engine]: Transforming players...");
- PreparationPeriodShooterEvent(player);
- startQuestTimer("event_ready_period_fight", Config.SHOOTER_EVENT_PREPARATION_TIME, null, null);
- return "";
- }
- else if ("event_ready_period_fight".equalsIgnoreCase(event))
- {
- LaszloEventEngine.setShooterReadTime(2, (System.currentTimeMillis() + Config.SHOOTER_EVENT_PROCESS_TIME));
- _log.info("[Shot The Dog Event Engine]: Fight Period started.");
- ExShowScreenMessage MsgFightNowSpa = new ExShowScreenMessage("¡Al turrón! \nDuración del Evento: " + (Config.SHOOTER_EVENT_PROCESS_TIME / 60000) + " minuto(s).", 6000);
- ExShowScreenMessage MsgFightNowEng = new ExShowScreenMessage("To Victory! \nDuration of the Event: " + (Config.SHOOTER_EVENT_PROCESS_TIME / 60000) + " minut(s).", 6000);
- for (L2PcInstance ply : L2World.getInstance().getAllPlayersArray())
- {
- if (ply != null)
- {
- for (int i = 0; i < 5; i++)
- {
- if (ply.isRedPartakerShooterEvent(i) || ply.isBluePartakerShooterEvent(i))
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- ply.sendPacket(MsgFightNowSpa);
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- ply.sendPacket(MsgFightNowEng);
- }
- }
- }
- }
- }
- GoFightShooterEvent(player);
- LaszloEventEngine.setDistributingHelperShooterEvent(0);
- startQuestTimer("event_calculate_winner", Config.SHOOTER_EVENT_PROCESS_TIME, null, null);
- startQuestTimer("event_almost_ended", EndingAlmost, null, null);
- return "";
- }
- else if ("event_almost_ended".equalsIgnoreCase(event))
- {
- ExShowScreenMessage MsgAlmostEndSpa = new ExShowScreenMessage("¡Queda poco! \nTiempo restante de Evento: " + Math.round((Config.SHOOTER_EVENT_PROCESS_TIME * 0.1) / 1000) + " segundo(s).", 6000);
- ExShowScreenMessage MsgAlmostEndEng = new ExShowScreenMessage("It almost ends! \nRemaining time: " + Math.round((Config.SHOOTER_EVENT_PROCESS_TIME * 0.1) / 1000) + " second(s).", 6000);
- for (L2PcInstance ply : L2World.getInstance().getAllPlayersArray())
- {
- if (ply != null)
- {
- for (int i = 0; i < 5; i++)
- {
- if (ply.isRedPartakerShooterEvent(i) || ply.isBluePartakerShooterEvent(i))
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- ply.sendPacket(MsgAlmostEndSpa);
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- ply.sendPacket(MsgAlmostEndEng);
- }
- }
- }
- }
- }
- return "";
- }
- else if ("event_calculate_winner".equalsIgnoreCase(event))
- {
- _log.info("[Shot The Dog Event Engine]: Event Ended. Calculating winners...");
- ExShowScreenMessage MsgEndSpa = new ExShowScreenMessage("¡Evento finalizado!", 6000);
- ExShowScreenMessage MsgEndEng = new ExShowScreenMessage("Event ended!", 6000);
- for (L2PcInstance ply : L2World.getInstance().getAllPlayersArray())
- {
- if (ply != null)
- {
- for (int i = 0; i < 5; i++)
- {
- if (ply.isRedPartakerShooterEvent(i) || ply.isBluePartakerShooterEvent(i))
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- ply.sendPacket(MsgEndSpa);
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- ply.sendPacket(MsgEndEng);
- }
- }
- }
- }
- }
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- Announcements.getInstance().announceToAll("¡Evento Shot The Dog finalizado! \nDurante los próximos " + (Config.SHOOTER_EVENT_STADISTICS_TIME / 60000) + " minuto(s) se podrán visualizar las puntuaciones del Evento. ¡Gracias por participar!");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- Announcements.getInstance().announceToAll("Shot The Dog Event has ended! \nDurint the following " + (Config.SHOOTER_EVENT_STADISTICS_TIME / 60000) + " minut(s) it will be possible view the score of the Event. Thanks for playing!");
- }
- CalculateWinnerShooterEvent();
- EndShooterEvent(player);
- cleanEffects(player);
- playerStop(player);
- startQuestTimer("event_reward_social", 1000, null, null);
- startQuestTimer("event_teleport_out", 5000, null, null);
- for (int i = 0; i < 5; i++)
- {
- if (RedTargetBomb[i] != null)
- {
- RedTargetBomb[i].decayMe();
- RedTargetBomb[i] = null;
- }
- if (BlueTargetBomb[i] != null)
- {
- BlueTargetBomb[i].decayMe();
- BlueTargetBomb[i] = null;
- }
- if (RedBomb[i] != null)
- {
- RedBomb[i].decayMe();
- RedBomb[i] = null;
- }
- if (BlueBomb[i] != null)
- {
- BlueBomb[i].decayMe();
- BlueBomb[i] = null;
- }
- }
- return "";
- }
- else if ("event_reward_social".equalsIgnoreCase(event))
- {
- for (int i = 0; i < 5; i++)
- {
- if (!Config.SHOOTER_EVENT_MULTIPLE_INSTANCE)
- {
- LaszloEventEngine.setDistributingHelperShooterEvent(0);
- SocialAndRewardTeamsShooterEvent(player);
- break;
- }
- LaszloEventEngine.setDistributingHelperShooterEvent(i);
- SocialAndRewardTeamsShooterEvent(player);
- }
- return "";
- }
- else if ("event_teleport_out".equalsIgnoreCase(event))
- {
- LaszloEventEngine.setShooterReadTime(3, (System.currentTimeMillis() + Config.SHOOTER_EVENT_STADISTICS_TIME));
- _log.info("[Shot The Dog Event Engine]: Teleporting out players...");
- LaszloEventEngine.setDistributingHelperShooterEvent(0);
- for (int i = 0; i < 5; i++)
- {
- if (!Config.SHOOTER_EVENT_MULTIPLE_INSTANCE)
- {
- LaszloEventEngine.setDistributingHelperShooterEvent(0);
- TeleportOutTeamsShooterEvent(player);
- break;
- }
- LaszloEventEngine.setDistributingHelperShooterEvent(i);
- TeleportOutTeamsShooterEvent(player);
- }
- startQuestTimer("event_final_end", Config.SHOOTER_EVENT_STADISTICS_TIME, null, null);
- return "";
- }
- else if ("event_final_end".equalsIgnoreCase(event))
- {
- _log.info("[Shot The Dog Event Engine]: Score View closed.");
- CleanValuesPlayers(player);
- CleanValuesEvent();
- for (int i = 0; i < 3; i++)
- {
- if (InscriptionNpc[i] != null)
- {
- InscriptionNpc[i].broadcastPacket(new MagicSkillUse(InscriptionNpc[i], InscriptionNpc[i], 2614, 1, 1, 1));
- InscriptionNpc[i].decayMe();
- InscriptionNpc[i] = null;
- }
- }
- for (int i = 50000; i < 50005; i++)
- {
- InstanceManager.getInstance().destroyInstance(i);
- }
- if (Config.SHOOTER_EVENT_AUTOMATIC)
- {
- scheduleShooterEventStart();
- }
- }
- else if (event.equals("victim_doing_res"))
- {
- if (player.isRedPartakerShooterEvent(player.getInstanceHelperShooterEvent()))
- {
- teleportPlayer(player, RED_ENTRY_POINT, (player.getInstanceHelperShooterEvent() + 50000));
- }
- else if (player.isBluePartakerShooterEvent(player.getInstanceHelperShooterEvent()))
- {
- teleportPlayer(player, BLUE_ENTRY_POINT, (player.getInstanceHelperShooterEvent() + 50000));
- }
- player.doRevive();
- SkillTable.getInstance().getInfo(40021, 1).getEffects(player, player);
- player.setCurrentCp(player.getMaxCp());
- player.setCurrentHp(player.getMaxHp());
- player.setCurrentMp(player.getMaxMp());
- player.broadcastStatusUpdate();
- player.broadcastUserInfo();
- return "";
- }
- else if (event.equals("victim_doing_heal"))
- {
- player.setCurrentHpMp(player.getMaxHp(), player.getMaxMp());
- player.setCurrentCp(player.getMaxCp());
- return "";
- }
- else if (event.equals("red_bomb_explode_start"))
- {
- for (int i = 0; i < 5; i++)
- {
- if (BombHelper1[i] = true && (RedBomb[i] != null) && (BlueTargetBomb[i] != null))
- {
- CreatureSay MsgAlmostBombSpa = new CreatureSay(InscriptionNpc[0].getObjectId(), Say2.PARTYROOM_COMMANDER, "Shot The Dog Event", "\n¡Demasiado tarde! \n¡La bomba está explotando, sálvese quien pueda!");
- CreatureSay MsgAlmostBombEng = new CreatureSay(InscriptionNpc[0].getObjectId(), Say2.PARTYROOM_COMMANDER, "Shot The Dog Event", "\nToo late! \nThe bomb is exploding, save us!");
- for (L2PcInstance ply : L2World.getInstance().getAllPlayersArray())
- {
- if (ply != null)
- {
- if (ply.isRedPartakerShooterEvent(i) || ply.isBluePartakerShooterEvent(i))
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- ply.sendPacket(MsgAlmostBombSpa);
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- ply.sendPacket(MsgAlmostBombEng);
- }
- }
- }
- }
- RedBomb[i].setTarget(BlueTargetBomb[i]);
- RedBomb[i].setHeading(Util.calculateHeadingFrom(RedBomb[i], BlueTargetBomb[i]));
- LaszloEventEngine.setBlueStoreDownShooterEvent(i, true);
- LaszloEventEngine.setRedBombPlantedShooterEvent(i, false);
- RedBomb[i].broadcastPacket(new MagicSkillUse(RedBomb[i], RedBomb[i], 4139, 1, 5000, 1));
- BombHelper1[i] = false;
- BombHelper2[i] = true;
- }
- }
- }
- else if (event.equals("blue_bomb_explode_start"))
- {
- for (int i = 0; i < 5; i++)
- {
- if (BombHelper1[i] = true && (BlueBomb[i] != null) && (RedTargetBomb[i] != null))
- {
- CreatureSay MsgAlmostBombSpa = new CreatureSay(InscriptionNpc[0].getObjectId(), Say2.PARTYROOM_COMMANDER, "Shot The Dog Event", "\n¡Demasiado tarde! \n¡La bomba está explotando, sálvese quien pueda!");
- CreatureSay MsgAlmostBombEng = new CreatureSay(InscriptionNpc[0].getObjectId(), Say2.PARTYROOM_COMMANDER, "Shot The Dog Event", "\nToo late! \nThe bomb is exploding, save us!");
- for (L2PcInstance ply : L2World.getInstance().getAllPlayersArray())
- {
- if (ply != null)
- {
- if (ply.isRedPartakerShooterEvent(i) || ply.isBluePartakerShooterEvent(i))
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- ply.sendPacket(MsgAlmostBombSpa);
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- ply.sendPacket(MsgAlmostBombEng);
- }
- }
- }
- }
- BlueBomb[i].setTarget(RedTargetBomb[i]);
- BlueBomb[i].setHeading(Util.calculateHeadingFrom(BlueBomb[i], RedTargetBomb[i]));
- LaszloEventEngine.setRedStoreDownShooterEvent(i, true);
- LaszloEventEngine.setBlueBombPlantedShooterEvent(i, false);
- BlueBomb[i].broadcastPacket(new MagicSkillUse(BlueBomb[i], BlueBomb[i], 4139, 1, 5000, 1));
- BombHelper1[i] = false;
- BombHelper2[i] = true;
- }
- }
- }
- else if ("red_bomb_explode".equalsIgnoreCase(event))
- {
- for (int i = 0; i < 5; i++)
- {
- if (BombHelper2[i] = true && (RedBomb[i] != null) && (BlueTargetBomb[i] != null))
- {
- BlueTargetBomb[i].broadcastPacket(new MagicSkillUse(BlueTargetBomb[i], BlueTargetBomb[i], 6326, 1, 1, 1));
- LaszloEventEngine.setShooterRedPoints(i, LaszloEventEngine.getShooterRedPoints(i) + 10);
- CreatureSay bombexplodeSpa = new CreatureSay(RedBomb[i].getObjectId(), Say2.PARTYROOM_COMMANDER, "Shot The Dog Event", "\n¡La Bomba del \nEquipo Rojo ha explotado y el Equipo Azul \nha perdido su suministro de armas \ndurante 60 segundos!");
- CreatureSay bombexplodeEng = new CreatureSay(RedBomb[i].getObjectId(), Say2.PARTYROOM_COMMANDER, "Shot The Dog Event", "\nThe Bomb of the \nRed Team has exploded and the Blue Team \nhas lost their weapon's supply \nduring 60 seconds!");
- for (L2PcInstance ply : L2World.getInstance().getAllPlayersArray())
- {
- if (ply != null)
- {
- if (ply.getInstanceId() == (i + 50000))
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- ply.sendPacket(bombexplodeSpa);
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- ply.sendPacket(bombexplodeEng);
- }
- }
- }
- }
- RedBomb[i].decayMe();
- BlueTargetBomb[i].decayMe();
- RedBomb[i] = null;
- BlueTargetBomb[i] = null;
- BombHelper2[i] = false;
- RespawnHelper[i] = true;
- }
- }
- return "";
- }
- else if ("blue_bomb_explode".equalsIgnoreCase(event))
- {
- for (int i = 0; i < 5; i++)
- {
- if (BombHelper2[i] = true && (BlueBomb[i] != null) && (RedTargetBomb[i] != null))
- {
- RedTargetBomb[i].broadcastPacket(new MagicSkillUse(RedTargetBomb[i], RedTargetBomb[i], 6326, 1, 1, 1));
- LaszloEventEngine.setShooterBluePoints(i, LaszloEventEngine.getShooterBluePoints(i) + 10);
- CreatureSay bombexplodeSpa = new CreatureSay(BlueBomb[i].getObjectId(), Say2.PARTYROOM_COMMANDER, "Shot The Dog Event", "\n¡La Bomba del \nEquipo Azul ha explotado y el Equipo Rojo \nha perdido su suministro de armas \ndurante 60 segundos!");
- CreatureSay bombexplodeEng = new CreatureSay(BlueBomb[i].getObjectId(), Say2.PARTYROOM_COMMANDER, "Shot The Dog Event", "\nThe Bomb of the \nBlue Team has exploded and the Red Team \nhas lost their weapon's supply \nduring 60 seconds!");
- for (L2PcInstance ply : L2World.getInstance().getAllPlayersArray())
- {
- if (ply != null)
- {
- if (ply.getInstanceId() == (i + 50000))
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- ply.sendPacket(bombexplodeSpa);
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- ply.sendPacket(bombexplodeEng);
- }
- }
- }
- }
- BlueBomb[i].decayMe();
- RedTargetBomb[i].decayMe();
- BlueBomb[i] = null;
- RedTargetBomb[i] = null;
- BombHelper2[i] = false;
- RespawnHelper[i] = true;
- }
- }
- return "";
- }
- else if (event.equals("blue_target_respawn"))
- {
- for (int i = 0; i < 5; i++)
- {
- if (RespawnHelper[i] = true && (BlueTargetBomb[i] == null))
- {
- BlueTargetBomb[i] = spawn(BLUE_TARGET, new Location(-12670, 273935, -15301, 32314, (i + 50000)));
- LaszloEventEngine.setBlueStoreDownShooterEvent(i, false);
- CreatureSay resettargetSpa = new CreatureSay(BlueTargetBomb[i].getObjectId(), Say2.PARTYROOM_COMMANDER, "Shot The Dog Event", "\nEl Centro de \nMando del Equipo Azul \nha sido restaurado");
- CreatureSay resettargetEng = new CreatureSay(BlueTargetBomb[i].getObjectId(), Say2.PARTYROOM_COMMANDER, "Shot The Dog Event", "\nThe Blue Team's \nConning Tower \nhas been restored");
- for (L2PcInstance ply : L2World.getInstance().getAllPlayersArray())
- {
- if (ply != null)
- {
- if (ply.getInstanceId() == (i + 50000))
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- ply.sendPacket(resettargetSpa);
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- ply.sendPacket(resettargetEng);
- }
- }
- }
- }
- RespawnHelper[i] = false;
- }
- }
- return "";
- }
- else if (event.equals("red_target_respawn"))
- {
- for (int i = 0; i < 5; i++)
- {
- if (RespawnHelper[i] = true && (RedTargetBomb[i] == null))
- {
- RedTargetBomb[i] = spawn(RED_TARGET, new Location(-12350, 273935, -15301, 63477, (i + 50000)));
- LaszloEventEngine.setRedStoreDownShooterEvent(i, false);
- CreatureSay resettargetSpa = new CreatureSay(RedTargetBomb[i].getObjectId(), Say2.PARTYROOM_COMMANDER, "Shot The Dog Event", "\nEl Centro de \nMando del Equipo Rojo \nha sido restaurado");
- CreatureSay resettargetEng = new CreatureSay(RedTargetBomb[i].getObjectId(), Say2.PARTYROOM_COMMANDER, "Shot The Dog Event", "\nThe Red Team's \nConning Tower \nhas been restored");
- for (L2PcInstance ply : L2World.getInstance().getAllPlayersArray())
- {
- if (ply != null)
- {
- if (ply.getInstanceId() == (i + 50000))
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- ply.sendPacket(resettargetSpa);
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- ply.sendPacket(resettargetEng);
- }
- }
- }
- }
- RespawnHelper[i] = false;
- }
- }
- return "";
- }
- }
- return event;
- }
- @Override
- public final String onFirstTalk(L2Npc npc, L2PcInstance player)
- {
- if (!Config.SHOOTER_EVENT_ENABLE)
- {
- _log.log(Level.WARNING, "ShooterEventEngine[ERROR]: exception: The Event was disabled during the perfomance.");
- }
- else
- {
- if (npc.getNpcId() == INSCRIPTION_NPC)
- {
- final StringBuilder HtmlInscription = StringUtil.startAppend(360, "<html><body scroll=\"no\"><title>Shot The Dog Event</title><table border=0 cellpadding=0 cellspacing=0 width=292 height=358 background=\"L2UI_CH3.refinewnd_back_Pattern\"><tr><td valign=\"top\" align=\"center\"><br><font color=\"LEVEL\">Shot The Dog Event</font><br>");
- if (!LaszloEventEngine.isInPeriodShooterEvent())
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- StringUtil.append(HtmlInscription, "<br>Actualmente el Evento esta deshabilitado<br>");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- StringUtil.append(HtmlInscription, "<br>Actually the Event is disabled<br>");
- }
- }
- else
- {
- if (LaszloEventEngine.getShooterEventState() == 1)
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- StringUtil.append(HtmlInscription, "<table border=0 cellpadding=0 cellspacing=2><tr><td align=center>Tiempo restante de Inscripcion:<br1>" + (((LaszloEventEngine.getShooterReadTime(0) - System.currentTimeMillis()) / 1000) / 60) + " minuto(s) y " + (((LaszloEventEngine.getShooterReadTime(0) - System.currentTimeMillis()) / 1000) - (((((LaszloEventEngine.getShooterReadTime(0) - System.currentTimeMillis()) / 1000) / 60)) * 60)) + " segundo(s).</td></tr></table><br>");
- if (player.isEnrolledShooterEvent())
- {
- StringUtil.append(HtmlInscription, "<table border=0 cellpadding=0 cellspacing=2><tr><td align=center><button value=\"Cancelar Inscripcion\" action=\"bypass -h Quest STD ShooterCancelInscription\" width=200 height=31 back=\"L2UI_CT1.OlympiadWnd_DF_Back_Down\" fore=\"L2UI_CT1.OlympiadWnd_DF_Back\"></td></tr></table><br>");
- }
- else
- {
- StringUtil.append(HtmlInscription, "<table border=0 cellpadding=0 cellspacing=2><tr><td align=center><button value=\"Inscribirse\" action=\"bypass -h Quest STD ShooterInscription\" width=200 height=31 back=\"L2UI_CT1.OlympiadWnd_DF_HeroConfirm_Down\" fore=\"L2UI_CT1.OlympiadWnd_DF_HeroConfirm\"></td></tr></table><br>");
- }
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- StringUtil.append(HtmlInscription, "<table border=0 cellpadding=0 cellspacing=2><tr><td align=center>Inscription remaining time:<br1>" + (((LaszloEventEngine.getShooterReadTime(0) - System.currentTimeMillis()) / 1000) / 60) + " minut(s) and " + (((LaszloEventEngine.getShooterReadTime(0) - System.currentTimeMillis()) / 1000) - (((((LaszloEventEngine.getShooterReadTime(0) - System.currentTimeMillis()) / 1000) / 60)) * 60)) + " second(s).</td></tr></table><br>");
- if (player.isEnrolledShooterEvent())
- {
- StringUtil.append(HtmlInscription, "<table border=0 cellpadding=0 cellspacing=2><tr><td align=center><button value=\"Cancel Inscription\" action=\"bypass -h Quest STD ShooterCancelInscription\" width=200 height=31 back=\"L2UI_CT1.OlympiadWnd_DF_Back_Down\" fore=\"L2UI_CT1.OlympiadWnd_DF_Back\"></td></tr></table><br>");
- }
- else
- {
- StringUtil.append(HtmlInscription, "<table border=0 cellpadding=0 cellspacing=2><tr><td align=center><button value=\"Inscribe me\" action=\"bypass -h Quest STD ShooterInscription\" width=200 height=31 back=\"L2UI_CT1.OlympiadWnd_DF_HeroConfirm_Down\" fore=\"L2UI_CT1.OlympiadWnd_DF_HeroConfirm\"></td></tr></table><br>");
- }
- }
- }
- else if (LaszloEventEngine.getShooterEventState() == 2)
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- StringUtil.append(HtmlInscription, "<table border=0 cellpadding=0 cellspacing=2><tr><td align=center>La inscripción al evento ha acabado.<br>Espera unos segundos y podrás visualizarlo.</td></tr></table><br>");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- StringUtil.append(HtmlInscription, "<table border=0 cellpadding=0 cellspacing=2><tr><td align=center>The inscription period has ended.<br>Wait few seconds and you could view it.</td></tr></table><br>");
- }
- }
- else if (LaszloEventEngine.getShooterEventState() == 3)
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- StringUtil.append(HtmlInscription, "<table border=0 cellpadding=0 cellspacing=2><tr><td align=center>Tiempo restante de Evento:<br1>" + (((LaszloEventEngine.getShooterReadTime(2) - System.currentTimeMillis()) / 1000) / 60) + " minuto(s) y " + (((LaszloEventEngine.getShooterReadTime(2) - System.currentTimeMillis()) / 1000) - (((((LaszloEventEngine.getShooterReadTime(2) - System.currentTimeMillis()) / 1000) / 60)) * 60)) + " segundo(s).</td></tr></table><br>");
- StringUtil.append(HtmlInscription, "<table border=0 cellpadding=0 cellspacing=2><tr><td align=center><button action=\"bypass -h Quest STD ShooterObservation\" value=\"Observar Evento\" width=200 height=31 back=\"L2UI_CT1.OlympiadWnd_DF_Watch_Down\" fore=\"L2UI_CT1.OlympiadWnd_DF_Watch\"></td></tr></table><br>");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- StringUtil.append(HtmlInscription, "<table border=0 cellpadding=0 cellspacing=2><tr><td align=center>Event remaining time:<br1>" + (((LaszloEventEngine.getShooterReadTime(2) - System.currentTimeMillis()) / 1000) / 60) + " minut(s) and " + (((LaszloEventEngine.getShooterReadTime(2) - System.currentTimeMillis()) / 1000) - (((((LaszloEventEngine.getShooterReadTime(2) - System.currentTimeMillis()) / 1000) / 60)) * 60)) + " second(s).</td></tr></table><br>");
- StringUtil.append(HtmlInscription, "<table border=0 cellpadding=0 cellspacing=2><tr><td align=center><button action=\"bypass -h Quest STD ShooterObservation\" value=\"View the Event\" width=200 height=31 back=\"L2UI_CT1.OlympiadWnd_DF_Watch_Down\" fore=\"L2UI_CT1.OlympiadWnd_DF_Watch\"></td></tr></table><br>");
- }
- }
- else if (LaszloEventEngine.getShooterEventState() == 4)
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- StringUtil.append(HtmlInscription, "<table border=0 cellpadding=0 cellspacing=2><tr><td align=center><button action=\"bypass -h Quest STD ShooterPuntuaciones\" value=\"Ver Puntuaciones\" width=200 height=31 back=\"L2UI_CT1.OlympiadWnd_DF_Reward_Down\" fore=\"L2UI_CT1.OlympiadWnd_DF_Reward\"></td></tr></table><br>");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- StringUtil.append(HtmlInscription, "<table border=0 cellpadding=0 cellspacing=2><tr><td align=center><button action=\"bypass -h Quest STD ShooterPuntuaciones\" value=\"View Scores\" width=200 height=31 back=\"L2UI_CT1.OlympiadWnd_DF_Reward_Down\" fore=\"L2UI_CT1.OlympiadWnd_DF_Reward\"></td></tr></table><br>");
- }
- }
- else
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- StringUtil.append(HtmlInscription, "<table border=0 cellpadding=0 cellspacing=2><tr><td align=center>Actualmente el Evento está deshabilitado.<br></td></tr></table>");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- StringUtil.append(HtmlInscription, "<table border=0 cellpadding=0 cellspacing=2><tr><td align=center>Actually the Event is disabled.<br></td></tr></table>");
- }
- }
- }
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- StringUtil.append(HtmlInscription, "<table border=0 cellpadding=0 cellspacing=2><tr><td align=center><button value=\"Tutorial\" action=\"bypass -h Quest STD ShooterTutorial\" width=200 height=31 back=\"L2UI_CT1.OlympiadWnd_DF_Info_Down\" fore=\"L2UI_CT1.OlympiadWnd_DF_Info\"></td></tr></table><br>");
- if (Config.SHOOTER_EVENT_FEATURE_VIEW)
- {
- StringUtil.append(HtmlInscription, "<table border=0 cellpadding=0 cellspacing=2><tr><td align=center><button value=\"Características\" action=\"bypass -h Quest STD ShooterFeatures\" width=200 height=31 back=\"L2UI_CT1.OlympiadWnd_DF_Info_Down\" fore=\"L2UI_CT1.OlympiadWnd_DF_Info\"></td></tr></table><br>");
- }
- if ((LaszloEventEngine.getShooterEventState() != 0) && (LaszloEventEngine.getShooterEventState() != 4))
- {
- StringUtil.append(HtmlInscription, "<table border=0 cellpadding=0 cellspacing=2><tr><td align=center>Jugadores inscritos actualmente: " + LaszloEventEngine.getShooterRegistratedNum() + "<br></td></tr></table><br>");
- }
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- StringUtil.append(HtmlInscription, "<table border=0 cellpadding=0 cellspacing=2><tr><td align=center><button value=\"Tutorial\" action=\"bypass -h Quest STD ShooterTutorial\" width=200 height=31 back=\"L2UI_CT1.OlympiadWnd_DF_Info_Down\" fore=\"L2UI_CT1.OlympiadWnd_DF_Info\"></td></tr></table><br>");
- if (Config.SHOOTER_EVENT_FEATURE_VIEW)
- {
- StringUtil.append(HtmlInscription, "<table border=0 cellpadding=0 cellspacing=2><tr><td align=center><button value=\"Features\" action=\"bypass -h Quest STD ShooterFeatures\" width=200 height=31 back=\"L2UI_CT1.OlympiadWnd_DF_Info_Down\" fore=\"L2UI_CT1.OlympiadWnd_DF_Info\"></td></tr></table><br>");
- }
- if ((LaszloEventEngine.getShooterEventState() != 0) && (LaszloEventEngine.getShooterEventState() != 4))
- {
- StringUtil.append(HtmlInscription, "<table border=0 cellpadding=0 cellspacing=2><tr><td align=center>Players registred actually: " + LaszloEventEngine.getShooterRegistratedNum() + "<br></td></tr></table><br>");
- }
- }
- StringUtil.append(HtmlInscription, "</td></tr></table></body></html>");
- return HtmlInscription.toString();
- }
- else if (npc.getNpcId() == RED_SMUG)
- {
- final StringBuilder HtmlRedStore = StringUtil.startAppend(360, "<html><body scroll=\"no\"><title>Shot The Dog Event</title><table border=0 cellpadding=0 cellspacing=0 width=292 height=358 background=\"L2UI_CH3.refinewnd_back_Pattern\"><tr><td valign=\"top\" align=\"center\"><br><br1><font color=\"LEVEL\">Shot The Dog</font><br>");
- if (LaszloEventEngine.isInPeriodShooterEvent() && (LaszloEventEngine.getShooterEventState() == 3))
- {
- if (player.isRedPartakerShooterEvent(player.getInstanceHelperShooterEvent()))
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- StringUtil.append(HtmlRedStore, "<table border=0 cellpadding=0 cellspacing=2><tr><td align=center>Tiempo restante de Evento:<br1>" + (((LaszloEventEngine.getShooterReadTime(2) - System.currentTimeMillis()) / 1000) / 60) + " minuto(s) y " + (((LaszloEventEngine.getShooterReadTime(2) - System.currentTimeMillis()) / 1000) - (((((LaszloEventEngine.getShooterReadTime(2) - System.currentTimeMillis()) / 1000) / 60)) * 60)) + " segundo(s).</td></tr></table>");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- StringUtil.append(HtmlRedStore, "<table border=0 cellpadding=0 cellspacing=2><tr><td align=center>Event remaining time:<br1>" + (((LaszloEventEngine.getShooterReadTime(2) - System.currentTimeMillis()) / 1000) / 60) + " minut(s) and " + (((LaszloEventEngine.getShooterReadTime(2) - System.currentTimeMillis()) / 1000) - (((((LaszloEventEngine.getShooterReadTime(2) - System.currentTimeMillis()) / 1000) / 60)) * 60)) + " second(s).</td></tr></table>");
- }
- if (LaszloEventEngine.isRedStoreDownShooterEvent(player.getInstanceHelperShooterEvent()))
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- StringUtil.append(HtmlRedStore, "<table border=0 cellpadding=0 cellspacing=2><tr><td align=center>El Equipo Enemigo ha conseguido<br1> volar por los aires nuestro<br1> Centro de Mando y el suministro de armas<br1> está cortado. Tendrás que esperar a que<br1> restablezcamos el suministo.</td></tr></table><br><br><br>");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- StringUtil.append(HtmlRedStore, "<table border=0 cellpadding=0 cellspacing=2><tr><td align=center>The enemy has succeeded<br1> in blowing up our <br1> Conning Tower and the weapon's supply<br1> is cut. You must wait until que<br1> we restore the supply.</td></tr></table><br><br><br>");
- }
- }
- else
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- StringUtil.append(HtmlRedStore, "<table border=0 cellpadding=0 cellspacing=2><tr><td align=center>¡Bienvenido " + player.getName() + "!<br1> Actualmente tienes " + player.getDollarsShooterEvent() + " Dollars Dog.<br1> ¡Inviértelos aquí para aplastar<br1> a tus enemigos!<br>¡Arriba el Equipo Rojo!</td></tr></table><br1>");
- StringUtil.append(HtmlRedStore, "<table border=0 cellpadding=0 cellspacing=2><tr><td align=center><button action=\"bypass -h Quest STD ShooterArmas\" value=\"Quiero Armas\" width=200 height=31 back=\"L2UI_CT1.OlympiadWnd_DF_Fight1None_Down\" fore=\"L2UI_CT1.OlympiadWnd_DF_Fight1None\"></td></tr></table><br1>");
- StringUtil.append(HtmlRedStore, "<table border=0 cellpadding=0 cellspacing=2><tr><td align=center><button action=\"bypass -h Quest STD ShooterAccesorios\" value=\"Quiero Accesorios\" width=200 height=31 back=\"L2UI_CT1.OlympiadWnd_DF_BuyEtc_Down\" fore=\"L2UI_CT1.OlympiadWnd_DF_BuyEtc\"></td></tr></table><br1>");
- StringUtil.append(HtmlRedStore, "<table border=0 cellpadding=0 cellspacing=2><tr><td align=center><button action=\"bypass -h Quest STD Shooter Apoyo\" value=\"Quiero Mejoras de Apoyo\" width=200 height=31 back=\"L2UI_CT1.OlympiadWnd_DF_BuyEquip_Down\" fore=\"L2UI_CT1.OlympiadWnd_DF_BuyEquip\"></td></tr></table><br1>");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- StringUtil.append(HtmlRedStore, "<table border=0 cellpadding=0 cellspacing=2><tr><td align=center>Welcome " + player.getName() + "!<br1> Actually you have got " + player.getDollarsShooterEvent() + " Dollars Dog.<br1> Invest it here to smash<br1> your foes!<br>Hail the Red Team!</td></tr></table><br1>");
- StringUtil.append(HtmlRedStore, "<table border=0 cellpadding=0 cellspacing=2><tr><td align=center><button action=\"bypass -h Quest STD ShooterArmas\" value=\"I wanna Weapons\" width=200 height=31 back=\"L2UI_CT1.OlympiadWnd_DF_Fight1None_Down\" fore=\"L2UI_CT1.OlympiadWnd_DF_Fight1None\"></td></tr></table><br1>");
- StringUtil.append(HtmlRedStore, "<table border=0 cellpadding=0 cellspacing=2><tr><td align=center><button action=\"bypass -h Quest STD ShooterAccesorios\" value=\"I wanna Accessories\" width=200 height=31 back=\"L2UI_CT1.OlympiadWnd_DF_BuyEtc_Down\" fore=\"L2UI_CT1.OlympiadWnd_DF_BuyEtc\"></td></tr></table><br1>");
- StringUtil.append(HtmlRedStore, "<table border=0 cellpadding=0 cellspacing=2><tr><td align=center><button action=\"bypass -h Quest STD Shooter Apoyo\" value=\"I wanna Support\" width=200 height=31 back=\"L2UI_CT1.OlympiadWnd_DF_BuyEquip_Down\" fore=\"L2UI_CT1.OlympiadWnd_DF_BuyEquip\"></td></tr></table><br1>");
- }
- }
- }
- else
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- StringUtil.append(HtmlRedStore, "<table border=0 cellpadding=0 cellspacing=2><tr><td align=center>¡Intruso!<br1>¡No te voy a vender nada, <br1> así que largo de aquí!<br1></td></tr></table></td></tr></table></body></html>");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- StringUtil.append(HtmlRedStore, "<table border=0 cellpadding=0 cellspacing=2><tr><td align=center>Intruder!<br1>I ain't gonna sell you nothing, <br1> so get out from here!<br1></td></tr></table></td></tr></table></body></html>");
- }
- return HtmlRedStore.toString();
- }
- }
- else
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- StringUtil.append(HtmlRedStore, "<table border=0 cellpadding=0 cellspacing=2><tr><td align=center>Lo sentimos.<br1>La tienda está cerrada.</td></tr></table></td></tr></table></body></html>");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- StringUtil.append(HtmlRedStore, "<table border=0 cellpadding=0 cellspacing=2><tr><td align=center>Sorry.<br1>The store are closed.</td></tr></table></td></tr></table></body></html>");
- }
- return HtmlRedStore.toString();
- }
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- StringUtil.append(HtmlRedStore, "<table border=0 cellpadding=0 cellspacing=2><tr><td align=center><button value=\"Estadísticas actuales\" action=\"bypass -h Quest STD ShooterPuntuaciones\" width=200 height=31 back=\"L2UI_CT1.OlympiadWnd_DF_Info_Down\" fore=\"L2UI_CT1.OlympiadWnd_DF_Info\"></td></tr></table>");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- StringUtil.append(HtmlRedStore, "<table border=0 cellpadding=0 cellspacing=2><tr><td align=center><button value=\"Actual Scores\" action=\"bypass -h Quest STD ShooterPuntuaciones\" width=200 height=31 back=\"L2UI_CT1.OlympiadWnd_DF_Info_Down\" fore=\"L2UI_CT1.OlympiadWnd_DF_Info\"></td></tr></table>");
- }
- StringUtil.append(HtmlRedStore, "</td></tr></table></body></html>");
- return HtmlRedStore.toString();
- }
- else if (npc.getNpcId() == BLUE_SMUG)
- {
- final StringBuilder HtmlBlueStore = StringUtil.startAppend(360, "<html><body scroll=\"no\"><title>Shot The Dog Event</title><table border=0 cellpadding=0 cellspacing=0 width=292 height=358 background=\"L2UI_CH3.refinewnd_back_Pattern\"><tr><td valign=\"top\" align=\"center\"><br><br>Bienvenido al Evento<br1><font color=\"LEVEL\">Shot The Dog</font><br>");
- if (LaszloEventEngine.isInPeriodShooterEvent() && (LaszloEventEngine.getShooterEventState() == 3))
- {
- if (player.isBluePartakerShooterEvent(player.getInstanceHelperShooterEvent()))
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- StringUtil.append(HtmlBlueStore, "<table border=0 cellpadding=0 cellspacing=2><tr><td align=center>Tiempo restante de Evento:<br1>" + (((LaszloEventEngine.getShooterReadTime(2) - System.currentTimeMillis()) / 1000) / 60) + " minuto(s) y " + (((LaszloEventEngine.getShooterReadTime(2) - System.currentTimeMillis()) / 1000) - (((((LaszloEventEngine.getShooterReadTime(2) - System.currentTimeMillis()) / 1000) / 60)) * 60)) + " segundo(s).</td></tr></table>");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- StringUtil.append(HtmlBlueStore, "<table border=0 cellpadding=0 cellspacing=2><tr><td align=center>Event remaining time:<br1>" + (((LaszloEventEngine.getShooterReadTime(2) - System.currentTimeMillis()) / 1000) / 60) + " minut(s) and " + (((LaszloEventEngine.getShooterReadTime(2) - System.currentTimeMillis()) / 1000) - (((((LaszloEventEngine.getShooterReadTime(2) - System.currentTimeMillis()) / 1000) / 60)) * 60)) + " second(s).</td></tr></table>");
- }
- if (LaszloEventEngine.isBlueStoreDownShooterEvent(player.getInstanceHelperShooterEvent()))
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- StringUtil.append(HtmlBlueStore, "<table border=0 cellpadding=0 cellspacing=2><tr><td align=center>El Equipo Enemigo ha conseguido<br1> volar por los aires nuestro<br1> Centro de Mando y el suministro<br1> de armas está cortado.<br1> Tendrás que esperar hasta a que<br1> restablezcamos el suministo.</td></tr></table><br><br><br>");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- StringUtil.append(HtmlBlueStore, "<table border=0 cellpadding=0 cellspacing=2><tr><td align=center>The enemy has succeeded<br1> in blowing up our <br1> Conning Tower and the weapon's supply<br1> is cut. You must wait until <br1> we restore the supply.</td></tr></table><br><br><br>");
- }
- }
- else
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- StringUtil.append(HtmlBlueStore, "<table border=0 cellpadding=0 cellspacing=2><tr><td align=center>¡Bienvenido " + player.getName() + "!<br1> Actualmente tienes " + player.getDollarsShooterEvent() + " Dollars Dog.<br1> ¡Inviértelos aquí para aplastar<br1> a tus enemigos!<br>¡Arriba el Equipo Azul!</td></tr></table><br1>");
- StringUtil.append(HtmlBlueStore, "<table border=0 cellpadding=0 cellspacing=2><tr><td align=center><button action=\"bypass -h Quest STD ShooterArmas\" value=\"Quiero Armas\" width=200 height=31 back=\"L2UI_CT1.OlympiadWnd_DF_Fight1None_Down\" fore=\"L2UI_CT1.OlympiadWnd_DF_Fight1None\"></td></tr></table><br1>");
- StringUtil.append(HtmlBlueStore, "<table border=0 cellpadding=0 cellspacing=2><tr><td align=center><button action=\"bypass -h Quest STD ShooterAccesorios\" value=\"Quiero Accesorios\" width=200 height=31 back=\"L2UI_CT1.OlympiadWnd_DF_BuyEtc_Down\" fore=\"L2UI_CT1.OlympiadWnd_DF_BuyEtc\"></td></tr></table><br1>");
- StringUtil.append(HtmlBlueStore, "<table border=0 cellpadding=0 cellspacing=2><tr><td align=center><button action=\"bypass -h Quest STD Shooter Apoyo\" value=\"Quiero Mejoras de Apoyo\" width=200 height=31 back=\"L2UI_CT1.OlympiadWnd_DF_BuyEquip_Down\" fore=\"L2UI_CT1.OlympiadWnd_DF_BuyEquip\"></td></tr></table><br1>");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- StringUtil.append(HtmlBlueStore, "<table border=0 cellpadding=0 cellspacing=2><tr><td align=center>Welcome " + player.getName() + "!<br1> Actually you have got " + player.getDollarsShooterEvent() + " Dollars Dog.<br1> Invest it here to smash<br1> your foes!<br>Hail the Blue Team!</td></tr></table><br1>");
- StringUtil.append(HtmlBlueStore, "<table border=0 cellpadding=0 cellspacing=2><tr><td align=center><button action=\"bypass -h Quest STD ShooterArmas\" value=\"I wanna Weapons\" width=200 height=31 back=\"L2UI_CT1.OlympiadWnd_DF_Fight1None_Down\" fore=\"L2UI_CT1.OlympiadWnd_DF_Fight1None\"></td></tr></table><br1>");
- StringUtil.append(HtmlBlueStore, "<table border=0 cellpadding=0 cellspacing=2><tr><td align=center><button action=\"bypass -h Quest STD ShooterAccesorios\" value=\"I wanna Accessories\" width=200 height=31 back=\"L2UI_CT1.OlympiadWnd_DF_BuyEtc_Down\" fore=\"L2UI_CT1.OlympiadWnd_DF_BuyEtc\"></td></tr></table><br1>");
- StringUtil.append(HtmlBlueStore, "<table border=0 cellpadding=0 cellspacing=2><tr><td align=center><button action=\"bypass -h Quest STD Shooter Apoyo\" value=\"I wanna Support\" width=200 height=31 back=\"L2UI_CT1.OlympiadWnd_DF_BuyEquip_Down\" fore=\"L2UI_CT1.OlympiadWnd_DF_BuyEquip\"></td></tr></table><br1>");
- }
- }
- }
- else
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- StringUtil.append(HtmlBlueStore, "<table border=0 cellpadding=0 cellspacing=2><tr><td align=center>¡Intruso!<br1>¡No te voy a vender nada, <br1> así que largo de aquí!<br1></td></tr></table></td></tr></table></body></html>");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- StringUtil.append(HtmlBlueStore, "<table border=0 cellpadding=0 cellspacing=2><tr><td align=center>Intruder!<br1>I ain't gonna sell you nothing, <br1> so get out from here!<br1></td></tr></table></td></tr></table></body></html>");
- }
- return HtmlBlueStore.toString();
- }
- }
- else
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- StringUtil.append(HtmlBlueStore, "<table border=0 cellpadding=0 cellspacing=2><tr><td align=center>Lo sentimos.<br1>La tienda está cerrada.</td></tr></table></td></tr></table></body></html>");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- StringUtil.append(HtmlBlueStore, "<table border=0 cellpadding=0 cellspacing=2><tr><td align=center>Sorry.<br1>The store are closed.</td></tr></table></td></tr></table></body></html>");
- }
- return HtmlBlueStore.toString();
- }
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- StringUtil.append(HtmlBlueStore, "<table border=0 cellpadding=0 cellspacing=2><tr><td align=center><button value=\"Estadísticas actuales\" action=\"bypass -h Quest STD ShooterPuntuaciones\" width=200 height=31 back=\"L2UI_CT1.OlympiadWnd_DF_Info_Down\" fore=\"L2UI_CT1.OlympiadWnd_DF_Info\"></td></tr></table>");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- StringUtil.append(HtmlBlueStore, "<table border=0 cellpadding=0 cellspacing=2><tr><td align=center><button value=\"Actual Scores\" action=\"bypass -h Quest STD ShooterPuntuaciones\" width=200 height=31 back=\"L2UI_CT1.OlympiadWnd_DF_Info_Down\" fore=\"L2UI_CT1.OlympiadWnd_DF_Info\"></td></tr></table>");
- }
- StringUtil.append(HtmlBlueStore, "</td></tr></table></body></html>");
- return HtmlBlueStore.toString();
- }
- }
- return "";
- }
- @Override
- public String onDeath(L2Character killer, L2Character victim, QuestState qs)
- {
- if (victim instanceof L2PcInstance)
- {
- if (killer instanceof L2PcInstance)
- {
- L2PcInstance actingPlayer = killer.getActingPlayer();
- L2PcInstance victimPlayer = victim.getActingPlayer();
- if ((actingPlayer != null) && (qs.getPlayer() != null) && (LaszloEventEngine.isInPeriodShooterEvent()) && (LaszloEventEngine.getShooterEventState() == 3))
- {
- if ((actingPlayer.isInsideZone(ZoneId.ZONE_EVENT_LASZLO) && victimPlayer.isInsideZone(ZoneId.ZONE_EVENT_LASZLO)))
- {
- Quest ShooterQuest = QuestManager.getInstance().getQuest(STD.qn);
- if (ShooterQuest != null)
- {
- if (actingPlayer.isRedPartakerShooterEvent(actingPlayer.getInstanceHelperShooterEvent()) && victimPlayer.isBluePartakerShooterEvent(actingPlayer.getInstanceHelperShooterEvent()))
- {
- LaszloEventEngine.setShooterRedPoints(actingPlayer.getInstanceHelperShooterEvent(), LaszloEventEngine.getShooterRedPoints(actingPlayer.getInstanceHelperShooterEvent()) + 1);
- victimPlayer.setRachaShooterEvent(0);
- actingPlayer.setRachaShooterEvent(actingPlayer.getRachaShooterEvent() + 1);
- actingPlayer.setMatrixStadisticsShooterEvent(0, actingPlayer.getMatrixStadisticsShooterEvent(0) + 1);
- Points[0] = actingPlayer.getMatrixStadisticsShooterEvent(0);
- LaszloEventEngine.setCalculateStadisticsPoints(actingPlayer.getInstanceHelperShooterEvent(), actingPlayer.getMatrixLocShooterEvent(), 1, Points[0]);
- victimPlayer.setMatrixStadisticsShooterEvent(1, victimPlayer.getMatrixStadisticsShooterEvent(1) + 1);
- Points[1] = victimPlayer.getMatrixStadisticsShooterEvent(1);
- LaszloEventEngine.setCalculateStadisticsPoints(victimPlayer.getInstanceHelperShooterEvent(), victimPlayer.getMatrixLocShooterEvent(), 2, Points[1]);
- if ((actingPlayer.getRachaShooterEvent() > 1) && (actingPlayer.getRachaShooterEvent() < 21))
- {
- actingPlayer.broadcastPacket(new MagicSkillUse(actingPlayer, actingPlayer, (23096 + actingPlayer.getRachaShooterEvent()), 1, 1, 1));
- }
- if (actingPlayer.getMatrixStadisticsShooterEvent(2) < actingPlayer.getRachaShooterEvent())
- {
- actingPlayer.setMatrixStadisticsShooterEvent(2, actingPlayer.getRachaShooterEvent());
- Points[2] = actingPlayer.getMatrixStadisticsShooterEvent(2);
- LaszloEventEngine.setCalculateStadisticsPoints(actingPlayer.getInstanceHelperShooterEvent(), actingPlayer.getMatrixLocShooterEvent(), 3, Points[2]);
- }
- actingPlayer.setDollarsShooterEvent(actingPlayer.getDollarsShooterEvent() + 500);
- victimPlayer.setDollarsShooterEvent(victimPlayer.getDollarsShooterEvent() + 100);
- CreatureSay shopannounceSpa = new CreatureSay(actingPlayer.getObjectId(), Say2.BATTLEFIELD, "Shot The Dog Event", "Tienes " + actingPlayer.getDollarsShooterEvent() + ". ¡No olvides invertir unos cuantos para mejorar la equipación durante el evento!");
- CreatureSay shopannounceEng = new CreatureSay(actingPlayer.getObjectId(), Say2.BATTLEFIELD, "Shot The Dog Event", "You have got " + actingPlayer.getDollarsShooterEvent() + ". Don't forget to spend some to improve your skills during the Event!");
- if (actingPlayer.getDollarsShooterEvent() > 1000)
- {
- if (Rnd.get(100) < 10)
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- actingPlayer.sendPacket(shopannounceSpa);
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- actingPlayer.sendPacket(shopannounceEng);
- }
- }
- }
- if (actingPlayer.getMatrixStadisticsShooterEvent(5) < actingPlayer.getDollarsShooterEvent())
- {
- actingPlayer.setMatrixStadisticsShooterEvent(5, actingPlayer.getDollarsShooterEvent());
- Points[5] = actingPlayer.getMatrixStadisticsShooterEvent(5);
- LaszloEventEngine.setCalculateStadisticsPoints(actingPlayer.getInstanceHelperShooterEvent(), actingPlayer.getMatrixLocShooterEvent(), 6, Points[5]);
- }
- if (victimPlayer.getMatrixStadisticsShooterEvent(5) < victimPlayer.getDollarsShooterEvent())
- {
- victimPlayer.setMatrixStadisticsShooterEvent(5, victimPlayer.getDollarsShooterEvent());
- Points[5] = victimPlayer.getMatrixStadisticsShooterEvent(5);
- LaszloEventEngine.setCalculateStadisticsPoints(victimPlayer.getInstanceHelperShooterEvent(), victimPlayer.getMatrixLocShooterEvent(), 6, Points[5]);
- }
- CreatureSay killerannounceSpa = new CreatureSay(actingPlayer.getObjectId(), Say2.BATTLEFIELD, "Shot The Dog Event", "¡Has asesinado a " + victimPlayer.getName() + "!");
- CreatureSay victimannounceSpa = new CreatureSay(victimPlayer.getObjectId(), Say2.BATTLEFIELD, "Shot The Dog Event", "¡Te ha asesinado " + actingPlayer.getName() + "! ¡Venga tu muerte!");
- CreatureSay killerannounceEng = new CreatureSay(actingPlayer.getObjectId(), Say2.BATTLEFIELD, "Shot The Dog Event", "You have killed " + victimPlayer.getName() + "!");
- CreatureSay victimannounceEng = new CreatureSay(victimPlayer.getObjectId(), Say2.BATTLEFIELD, "Shot The Dog Event", "" + actingPlayer.getName() + " has killed you! Revenge your death!");
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- actingPlayer.sendPacket(killerannounceSpa);
- victimPlayer.sendPacket(victimannounceSpa);
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- actingPlayer.sendPacket(killerannounceEng);
- victimPlayer.sendPacket(victimannounceEng);
- }
- for (int i = 40002; i < 40007; i++)
- {
- final L2Skill skill = SkillTable.getInstance().getInfo(i, 1);
- CreatureSay stealannounceSpa = new CreatureSay(actingPlayer.getObjectId(), Say2.BATTLEFIELD, "Shot The Dog Event", "¡... Y le has robado " + skill.getName() + "!");
- CreatureSay stealannounceEng = new CreatureSay(actingPlayer.getObjectId(), Say2.BATTLEFIELD, "Shot The Dog Event", "¡... And you stole him " + skill.getName() + "!");
- if (victimPlayer.getSkillLevel(i) > 0)
- {
- victimPlayer.removeSkill(SkillTable.getInstance().getInfo(i, 1), false);
- victimPlayer.broadcastUserInfo();
- if (Rnd.get(100) < 50)
- {
- actingPlayer.addSkill(SkillTable.getInstance().getInfo(i, 1), false);
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- actingPlayer.sendPacket(stealannounceSpa);
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- actingPlayer.sendPacket(stealannounceEng);
- }
- actingPlayer.setMatrixStadisticsShooterEvent(7, actingPlayer.getMatrixStadisticsShooterEvent(7) + 1);
- Points[7] = actingPlayer.getMatrixStadisticsShooterEvent(7);
- LaszloEventEngine.setCalculateStadisticsPoints(actingPlayer.getInstanceHelperShooterEvent(), actingPlayer.getMatrixLocShooterEvent(), 8, Points[7]);
- actingPlayer.broadcastUserInfo();
- }
- }
- }
- for (int j = 40009; (j < 40019) && (j != 40013) && (j != 40014); j++)
- {
- if (victimPlayer.getSkillLevel(j) > 0)
- {
- victimPlayer.removeSkill(SkillTable.getInstance().getInfo(j, 1), false);
- victimPlayer.broadcastUserInfo();
- }
- }
- ShooterQuest.startQuestTimer("victim_doing_res", 6000, null, victimPlayer);
- ShooterQuest.startQuestTimer("victim_doing_heal", 9000, null, victimPlayer);
- }
- else if (actingPlayer.isBluePartakerShooterEvent(actingPlayer.getInstanceHelperShooterEvent()) && victimPlayer.isRedPartakerShooterEvent(actingPlayer.getInstanceHelperShooterEvent()))
- {
- LaszloEventEngine.setShooterBluePoints(actingPlayer.getInstanceHelperShooterEvent(), LaszloEventEngine.getShooterBluePoints(actingPlayer.getInstanceHelperShooterEvent()) + 1);
- victimPlayer.setRachaShooterEvent(0);
- actingPlayer.setRachaShooterEvent(actingPlayer.getRachaShooterEvent() + 1);
- actingPlayer.setMatrixStadisticsShooterEvent(0, actingPlayer.getMatrixStadisticsShooterEvent(0) + 1);
- Points[0] = actingPlayer.getMatrixStadisticsShooterEvent(0);
- LaszloEventEngine.setCalculateStadisticsPoints(actingPlayer.getInstanceHelperShooterEvent(), actingPlayer.getMatrixLocShooterEvent(), 1, Points[0]);
- victimPlayer.setMatrixStadisticsShooterEvent(1, victimPlayer.getMatrixStadisticsShooterEvent(1) + 1);
- Points[1] = victimPlayer.getMatrixStadisticsShooterEvent(1);
- LaszloEventEngine.setCalculateStadisticsPoints(victimPlayer.getInstanceHelperShooterEvent(), victimPlayer.getMatrixLocShooterEvent(), 2, Points[1]);
- if ((actingPlayer.getRachaShooterEvent() > 1) && (actingPlayer.getRachaShooterEvent() < 21))
- {
- actingPlayer.broadcastPacket(new MagicSkillUse(actingPlayer, actingPlayer, (23096 + actingPlayer.getRachaShooterEvent()), 1, 1, 1));
- }
- if (actingPlayer.getMatrixStadisticsShooterEvent(2) < actingPlayer.getRachaShooterEvent())
- {
- actingPlayer.setMatrixStadisticsShooterEvent(2, actingPlayer.getRachaShooterEvent());
- Points[2] = actingPlayer.getMatrixStadisticsShooterEvent(2);
- LaszloEventEngine.setCalculateStadisticsPoints(actingPlayer.getInstanceHelperShooterEvent(), actingPlayer.getMatrixLocShooterEvent(), 3, Points[2]);
- }
- actingPlayer.setDollarsShooterEvent(actingPlayer.getDollarsShooterEvent() + 500);
- victimPlayer.setDollarsShooterEvent(victimPlayer.getDollarsShooterEvent() + 100);
- CreatureSay shopannounceSpa = new CreatureSay(actingPlayer.getObjectId(), Say2.BATTLEFIELD, "Shot The Dog Event", "Tienes " + actingPlayer.getDollarsShooterEvent() + ". ¡No olvides invertir unos cuantos para mejorar la equipación durante el evento!");
- CreatureSay shopannounceEng = new CreatureSay(actingPlayer.getObjectId(), Say2.BATTLEFIELD, "Shot The Dog Event", "You have got " + actingPlayer.getDollarsShooterEvent() + ". Don't forget to spend some to improve your skills during the Event!");
- if (actingPlayer.getDollarsShooterEvent() > 1000)
- {
- if (Rnd.get(100) < 10)
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- actingPlayer.sendPacket(shopannounceSpa);
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- actingPlayer.sendPacket(shopannounceEng);
- }
- }
- }
- if (actingPlayer.getMatrixStadisticsShooterEvent(5) < actingPlayer.getDollarsShooterEvent())
- {
- actingPlayer.setMatrixStadisticsShooterEvent(5, actingPlayer.getDollarsShooterEvent());
- Points[5] = actingPlayer.getMatrixStadisticsShooterEvent(5);
- LaszloEventEngine.setCalculateStadisticsPoints(actingPlayer.getInstanceHelperShooterEvent(), actingPlayer.getMatrixLocShooterEvent(), 6, Points[5]);
- }
- if (victimPlayer.getMatrixStadisticsShooterEvent(5) < victimPlayer.getDollarsShooterEvent())
- {
- victimPlayer.setMatrixStadisticsShooterEvent(5, victimPlayer.getDollarsShooterEvent());
- Points[5] = victimPlayer.getMatrixStadisticsShooterEvent(5);
- LaszloEventEngine.setCalculateStadisticsPoints(victimPlayer.getInstanceHelperShooterEvent(), victimPlayer.getMatrixLocShooterEvent(), 6, Points[5]);
- }
- CreatureSay killerannounceSpa = new CreatureSay(actingPlayer.getObjectId(), Say2.BATTLEFIELD, "Shot The Dog Event", "¡Has asesinado a " + victimPlayer.getName() + "!");
- CreatureSay victimannounceSpa = new CreatureSay(victimPlayer.getObjectId(), Say2.BATTLEFIELD, "Shot The Dog Event", "¡Te ha asesinado " + actingPlayer.getName() + "! ¡Venga tu muerte!");
- CreatureSay killerannounceEng = new CreatureSay(actingPlayer.getObjectId(), Say2.BATTLEFIELD, "Shot The Dog Event", "You have killed " + victimPlayer.getName() + "!");
- CreatureSay victimannounceEng = new CreatureSay(victimPlayer.getObjectId(), Say2.BATTLEFIELD, "Shot The Dog Event", "" + actingPlayer.getName() + " has killed you! Revenge your death!");
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- actingPlayer.sendPacket(killerannounceSpa);
- victimPlayer.sendPacket(victimannounceSpa);
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- actingPlayer.sendPacket(killerannounceEng);
- victimPlayer.sendPacket(victimannounceEng);
- }
- for (int i = 40002; i < 40007; i++)
- {
- final L2Skill skill = SkillTable.getInstance().getInfo(i, 1);
- CreatureSay stealannounceSpa = new CreatureSay(actingPlayer.getObjectId(), Say2.BATTLEFIELD, "Shot The Dog Event", "¡... Y le has robado " + skill.getName() + "!");
- CreatureSay stealannounceEng = new CreatureSay(actingPlayer.getObjectId(), Say2.BATTLEFIELD, "Shot The Dog Event", "¡... And you stole him " + skill.getName() + "!");
- if (victimPlayer.getSkillLevel(i) > 0)
- {
- victimPlayer.removeSkill(SkillTable.getInstance().getInfo(i, 1), false);
- victimPlayer.broadcastUserInfo();
- if (Rnd.get(100) < 50)
- {
- actingPlayer.addSkill(SkillTable.getInstance().getInfo(i, 1), false);
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- actingPlayer.sendPacket(stealannounceSpa);
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- actingPlayer.sendPacket(stealannounceEng);
- }
- actingPlayer.setMatrixStadisticsShooterEvent(7, actingPlayer.getMatrixStadisticsShooterEvent(7) + 1);
- Points[7] = actingPlayer.getMatrixStadisticsShooterEvent(7);
- LaszloEventEngine.setCalculateStadisticsPoints(actingPlayer.getInstanceHelperShooterEvent(), actingPlayer.getMatrixLocShooterEvent(), 8, Points[7]);
- actingPlayer.broadcastUserInfo();
- }
- }
- }
- for (int j = 40009; (j < 40019) && (j != 40013) && (j != 40014); j++)
- {
- if (victimPlayer.getSkillLevel(j) > 0)
- {
- victimPlayer.removeSkill(SkillTable.getInstance().getInfo(j, 1), false);
- victimPlayer.broadcastUserInfo();
- }
- }
- ShooterQuest.startQuestTimer("victim_doing_res", 6000, null, victimPlayer);
- ShooterQuest.startQuestTimer("victim_doing_heal", 9000, null, victimPlayer);
- }
- else if ((actingPlayer.isBluePartakerShooterEvent(actingPlayer.getInstanceHelperShooterEvent()) && victimPlayer.isBluePartakerShooterEvent(actingPlayer.getInstanceHelperShooterEvent())) || (actingPlayer.isRedPartakerShooterEvent(actingPlayer.getInstanceHelperShooterEvent()) && victimPlayer.isRedPartakerShooterEvent(actingPlayer.getInstanceHelperShooterEvent())))
- {
- CreatureSay killerannounceSpa = new CreatureSay(actingPlayer.getObjectId(), Say2.BATTLEFIELD, "Shot The Dog Event", "¡Has asesinado a " + victimPlayer.getName() + ", un miembro de tu equipo, y has sido penalizado: Contador de Racha a 0, has perdido tus armas y parte de tus Dollars Dogs!!");
- CreatureSay victimannounceSpa = new CreatureSay(victimPlayer.getObjectId(), Say2.BATTLEFIELD, "Shot The Dog Event", "¡Te ha asesinado " + actingPlayer.getName() + ", un miembro de tu equipo, pero ya ha sido penalizado!");
- CreatureSay killerannounceEng = new CreatureSay(actingPlayer.getObjectId(), Say2.BATTLEFIELD, "Shot The Dog Event", "You have killed " + victimPlayer.getName() + ", a member of your own team, you have been penalized: Kills Streaks to 0, and you have lost your weapons and some Dollars Dogs!");
- CreatureSay victimannounceEng = new CreatureSay(victimPlayer.getObjectId(), Say2.BATTLEFIELD, "Shot The Dog Event", "" + actingPlayer.getName() + ", a member of your own team has killed you, but he's just been penalized!");
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- actingPlayer.sendPacket(killerannounceSpa);
- victimPlayer.sendPacket(victimannounceSpa);
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- actingPlayer.sendPacket(killerannounceEng);
- victimPlayer.sendPacket(victimannounceEng);
- }
- for (int i = 40002; i < 40007; i++)
- {
- if (victimPlayer.getSkillLevel(i) > 0)
- {
- victimPlayer.removeSkill(SkillTable.getInstance().getInfo(i, 1), false);
- victimPlayer.broadcastUserInfo();
- }
- if (actingPlayer.getSkillLevel(i) > 0)
- {
- actingPlayer.removeSkill(SkillTable.getInstance().getInfo(i, 1), false);
- actingPlayer.broadcastUserInfo();
- }
- }
- for (int j = 40009; (j < 40019) && (j != 40013) && (j != 40014); j++)
- {
- if (victimPlayer.getSkillLevel(j) > 0)
- {
- victimPlayer.removeSkill(SkillTable.getInstance().getInfo(j, 1), false);
- victimPlayer.broadcastUserInfo();
- }
- if (actingPlayer.getSkillLevel(j) > 0)
- {
- actingPlayer.removeSkill(SkillTable.getInstance().getInfo(j, 1), false);
- actingPlayer.broadcastUserInfo();
- }
- }
- victimPlayer.setRachaShooterEvent(0);
- actingPlayer.setRachaShooterEvent(0);
- actingPlayer.setDollarsShooterEvent(actingPlayer.getDollarsShooterEvent() - 1000);
- victimPlayer.setDollarsShooterEvent(victimPlayer.getDollarsShooterEvent() + 100);
- ShooterQuest.startQuestTimer("victim_doing_res", 6000, null, victimPlayer);
- ShooterQuest.startQuestTimer("victim_doing_heal", 9000, null, victimPlayer);
- }
- }
- }
- }
- }
- }
- return "";
- }
- @Override
- public String onSkillSee(L2Npc npc, L2PcInstance caster, L2Skill skill, L2Object[] targets, boolean isSummon)
- {
- if (skill.getId() == 40009)
- {
- if ((targets.length > 0) && (targets[0] == npc))
- {
- if (LaszloEventEngine.isInPeriodShooterEvent() && (LaszloEventEngine.getShooterEventState() == 3))
- {
- if (caster.isRedPartakerShooterEvent(caster.getInstanceHelperShooterEvent()))
- {
- if (LaszloEventEngine.isRedBombPlantedShooterEvent(caster.getInstanceHelperShooterEvent()))
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- caster.sendMessage("Ya hay una bomba plantada.");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- caster.sendMessage("There is another bomb already planted.");
- }
- return "";
- }
- else if (LaszloEventEngine.isBlueBombPlantedShooterEvent(caster.getInstanceHelperShooterEvent()))
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- caster.sendMessage("La bomba del equipo enemigo esta plantada impidiendo que coloques la tuya.");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- caster.sendMessage("The enemy's bomb is planted preventing you put yours.");
- }
- return "";
- }
- else if (LaszloEventEngine.isBlueStoreDownShooterEvent(caster.getInstanceHelperShooterEvent()))
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- caster.sendMessage("El Centro de Control del enemigo ya está destruido.");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- caster.sendMessage("The enemy's Conning Tower is already destroyed.");
- }
- return "";
- }
- else
- {
- if (npc.getNpcId() == BLUE_TARGET)
- {
- if (RedBomb[caster.getInstanceHelperShooterEvent()] == null)
- {
- RedBomb[caster.getInstanceHelperShooterEvent()] = spawn(RED_BOMB, new Location(-12760 + Rnd.get(20, -20), 273932 + Rnd.get(20, -20), -15303, 1, (50000 + caster.getInstanceHelperShooterEvent())));
- }
- CreatureSay bombannounceSpa = new CreatureSay(caster.getObjectId(), Say2.BATTLEFIELD, "Shot The Dog Event", "¡Has plantado la bomba, ahora hay que protegerla!");
- CreatureSay bombannounceEng = new CreatureSay(caster.getObjectId(), Say2.BATTLEFIELD, "Shot The Dog Event", "you planted the bomb, it's time to protect it!");
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- caster.sendPacket(bombannounceSpa);
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- caster.sendPacket(bombannounceEng);
- }
- CreatureSay bombwarningSpa = new CreatureSay(caster.getObjectId(), Say2.PARTYROOM_COMMANDER, "Shot The Dog Event", "\n¡" + caster.getName() + " del \n Equipo Rojo ha plantado en \n la Zona " + (caster.getInstanceHelperShooterEvent() + 1) + "!");
- CreatureSay bombwarningEng = new CreatureSay(caster.getObjectId(), Say2.PARTYROOM_COMMANDER, "Shot The Dog Event", "\n" + caster.getName() + " of the \n Red Team has planted the bomb \n in Zone " + (caster.getInstanceHelperShooterEvent() + 1) + "!");
- for (L2PcInstance ply : L2World.getInstance().getAllPlayersArray())
- {
- if (ply != null)
- {
- if (ply.getInstanceId() == (caster.getInstanceHelperShooterEvent() + 50000))
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- ply.sendPacket(bombwarningSpa);
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- ply.sendPacket(bombwarningEng);
- }
- }
- }
- }
- BombHelper1[caster.getInstanceHelperShooterEvent()] = true;
- LaszloEventEngine.setRedBombPlantedShooterEvent(caster.getInstanceHelperShooterEvent(), true);
- caster.setMatrixStadisticsShooterEvent(3, caster.getMatrixStadisticsShooterEvent(3) + 1);
- if (Points[3] < caster.getMatrixStadisticsShooterEvent(3))
- {
- Points[3] = caster.getMatrixStadisticsShooterEvent(3);
- LaszloEventEngine.setCalculateStadisticsPoints(caster.getInstanceHelperShooterEvent(), caster.getMatrixLocShooterEvent(), 4, Points[3]);
- }
- caster.broadcastUserInfo();
- startQuestTimer("red_bomb_explode_start", 30000, null, null);
- startQuestTimer("red_bomb_explode", 35000, null, null);
- startQuestTimer("blue_target_respawn", 95000, null, null);
- caster.removeSkill(SkillTable.getInstance().getInfo(40009, 1), false);
- caster.broadcastUserInfo();
- }
- else if (npc.getNpcId() == RED_TARGET)
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- caster.sendMessage("No puedes colocar una bomba en tu propio Centro de Control");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- caster.sendMessage("You can't plant a bomb in your own Conning Tower");
- }
- }
- }
- }
- else if (caster.isBluePartakerShooterEvent(caster.getInstanceHelperShooterEvent()))
- {
- if (LaszloEventEngine.isBlueBombPlantedShooterEvent(caster.getInstanceHelperShooterEvent()))
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- caster.sendMessage("Ya hay una bomba plantada.");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- caster.sendMessage("There is another bomb already planted.");
- }
- return "";
- }
- else if (LaszloEventEngine.isRedBombPlantedShooterEvent(caster.getInstanceHelperShooterEvent()))
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- caster.sendMessage("La bomba del equipo enemigo esta plantada impidiendo que coloques la tuya.");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- caster.sendMessage("The enemy's bomb is planted preventing you put yours.");
- }
- return "";
- }
- else if (LaszloEventEngine.isRedStoreDownShooterEvent(caster.getInstanceHelperShooterEvent()))
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- caster.sendMessage("El Centro de Control del enemigo ya está destruido.");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- caster.sendMessage("The enemy's Conning Tower is already destroyed.");
- }
- return "";
- }
- else
- {
- if (npc.getNpcId() == RED_TARGET)
- {
- if (BlueBomb[caster.getInstanceHelperShooterEvent()] == null)
- {
- BlueBomb[caster.getInstanceHelperShooterEvent()] = spawn(BLUE_BOMB, new Location(-12284 + Rnd.get(20, -20), 273932 + Rnd.get(20, -20), -15301, 1, (50000 + caster.getInstanceHelperShooterEvent())));
- }
- CreatureSay bombannounceSpa = new CreatureSay(caster.getObjectId(), Say2.BATTLEFIELD, "Shot The Dog Event", "¡Has plantado la bomba, ahora hay que protegerla!");
- CreatureSay bombannounceEng = new CreatureSay(caster.getObjectId(), Say2.BATTLEFIELD, "Shot The Dog Event", "you planted the bomb, it's time to protect it!");
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- caster.sendPacket(bombannounceSpa);
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- caster.sendPacket(bombannounceEng);
- }
- CreatureSay bombwarningSpa = new CreatureSay(caster.getObjectId(), Say2.PARTYROOM_COMMANDER, "Shot The Dog Event", "\n¡" + caster.getName() + " del \n Equipo Azul ha plantado en \n la Zona " + (caster.getInstanceHelperShooterEvent() + 1) + "!");
- CreatureSay bombwarningEng = new CreatureSay(caster.getObjectId(), Say2.PARTYROOM_COMMANDER, "Shot The Dog Event", "\n" + caster.getName() + " of the \n Blue Team has planted the bomb \n in Zone " + (caster.getInstanceHelperShooterEvent() + 1) + "!");
- for (L2PcInstance ply : L2World.getInstance().getAllPlayersArray())
- {
- if (ply != null)
- {
- if (ply.getInstanceId() == (caster.getInstanceHelperShooterEvent() + 50000))
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- ply.sendPacket(bombwarningSpa);
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- ply.sendPacket(bombwarningEng);
- }
- }
- }
- }
- BombHelper1[caster.getInstanceHelperShooterEvent()] = true;
- LaszloEventEngine.setBlueBombPlantedShooterEvent(caster.getInstanceHelperShooterEvent(), true);
- caster.setMatrixStadisticsShooterEvent(3, caster.getMatrixStadisticsShooterEvent(3) + 1);
- if (Points[3] < caster.getMatrixStadisticsShooterEvent(3))
- {
- Points[3] = caster.getMatrixStadisticsShooterEvent(3);
- LaszloEventEngine.setCalculateStadisticsPoints(caster.getInstanceHelperShooterEvent(), caster.getMatrixLocShooterEvent(), 4, Points[3]);
- }
- caster.removeSkill(SkillTable.getInstance().getInfo(40009, 1), false);
- caster.broadcastUserInfo();
- startQuestTimer("blue_bomb_explode_start", 30000, null, null);
- startQuestTimer("blue_bomb_explode", 35000, null, null);
- startQuestTimer("red_target_respawn", 95000, null, null);
- }
- else if (npc.getNpcId() == RED_TARGET)
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- caster.sendMessage("No puedes colocar una bomba en tu propio Centro de Control");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- caster.sendMessage("You can't plant a bomb in your own Conning Tower");
- }
- }
- }
- }
- }
- }
- }
- else if (skill.getId() == 40010)
- {
- if ((targets.length > 0) && (targets[0] == npc))
- {
- if (LaszloEventEngine.isInPeriodShooterEvent() && (LaszloEventEngine.getShooterEventState() == 3))
- {
- if (caster.isRedPartakerShooterEvent(caster.getInstanceHelperShooterEvent()))
- {
- if (!LaszloEventEngine.isBlueBombPlantedShooterEvent(caster.getInstanceHelperShooterEvent()))
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- caster.sendMessage("No puedes desactivar nada si no hay bomba.");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- caster.sendMessage("You can't deactivate nothing if there is no bomb.");
- }
- return "";
- }
- else if (LaszloEventEngine.isRedStoreDownShooterEvent(caster.getInstanceHelperShooterEvent()))
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- caster.sendMessage("Vuestro Centro de Mando aún está destruído.");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- caster.sendMessage("Your Conning Tower is still destroyed.");
- }
- return "";
- }
- else
- {
- if (npc.getNpcId() == BLUE_BOMB)
- {
- if (BlueBomb[caster.getInstanceHelperShooterEvent()] != null)
- {
- BlueBomb[caster.getInstanceHelperShooterEvent()].decayMe();
- BlueBomb[caster.getInstanceHelperShooterEvent()] = null;
- CreatureSay deactivationannounceSpa = new CreatureSay(caster.getObjectId(), Say2.BATTLEFIELD, "Shot The Dog Event", "¡Has desactivado la bomba!");
- CreatureSay deactivationannounceEng = new CreatureSay(caster.getObjectId(), Say2.BATTLEFIELD, "Shot The Dog Event", "You have deactivated the bomb!");
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- caster.sendPacket(deactivationannounceSpa);
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- caster.sendPacket(deactivationannounceEng);
- }
- CreatureSay deactivationwarningSpa = new CreatureSay(caster.getObjectId(), Say2.PARTYROOM_COMMANDER, "Shot The Dog Event", "\n¡" + caster.getName() + " del \n Equipo Rojo ha desactivado \n la bomba en la Zona " + caster.getInstanceHelperShooterEvent() + "!");
- CreatureSay deactivationwarningEng = new CreatureSay(caster.getObjectId(), Say2.PARTYROOM_COMMANDER, "Shot The Dog Event", "\n" + caster.getName() + " of the \n Red Team has deactivated \n the bomb in Zone " + caster.getInstanceHelperShooterEvent() + "!");
- for (L2PcInstance ply : L2World.getInstance().getAllPlayersArray())
- {
- if (ply != null)
- {
- if (ply.getInstanceId() == (caster.getInstanceHelperShooterEvent() + 50000))
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- ply.sendPacket(deactivationwarningSpa);
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- ply.sendPacket(deactivationwarningEng);
- }
- }
- }
- }
- cancelQuestTimer("blue_bomb_explode_start", null, null);
- cancelQuestTimer("blue_bomb_explode", null, null);
- cancelQuestTimer("red_target_respawn", null, null);
- LaszloEventEngine.setBlueBombPlantedShooterEvent(caster.getInstanceHelperShooterEvent(), false);
- LaszloEventEngine.setShooterRedPoints(caster.getInstanceHelperShooterEvent(), LaszloEventEngine.getShooterRedPoints(caster.getInstanceHelperShooterEvent()) + 10);
- caster.setMatrixStadisticsShooterEvent(4, caster.getMatrixStadisticsShooterEvent(4) + 1);
- if (Points[4] < caster.getMatrixStadisticsShooterEvent(4))
- {
- Points[4] = caster.getMatrixStadisticsShooterEvent(4);
- LaszloEventEngine.setCalculateStadisticsPoints(caster.getInstanceHelperShooterEvent(), caster.getMatrixLocShooterEvent(), 5, Points[4]);
- }
- caster.removeSkill(SkillTable.getInstance().getInfo(40010, 1), false);
- caster.broadcastUserInfo();
- }
- }
- }
- }
- else if (caster.isBluePartakerShooterEvent(caster.getInstanceHelperShooterEvent()))
- {
- if (!LaszloEventEngine.isRedBombPlantedShooterEvent(caster.getInstanceHelperShooterEvent()))
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- caster.sendMessage("No puedes desactivar nada si no hay bomba.");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- caster.sendMessage("You can't deactivate nothing if there is no bomb.");
- }
- return "";
- }
- else if (LaszloEventEngine.isBlueStoreDownShooterEvent(caster.getInstanceHelperShooterEvent()))
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- caster.sendMessage("Vuestro Centro de Mando aún está destruído.");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- caster.sendMessage("Your Conning Tower is still destroyed.");
- }
- return "";
- }
- else
- {
- if (npc.getNpcId() == RED_BOMB)
- {
- if (RedBomb[caster.getInstanceHelperShooterEvent()] != null)
- {
- RedBomb[caster.getInstanceHelperShooterEvent()].decayMe();
- RedBomb[caster.getInstanceHelperShooterEvent()] = null;
- CreatureSay deactivationannounceSpa = new CreatureSay(caster.getObjectId(), Say2.BATTLEFIELD, "Shot The Dog Event", "¡Has desactivado la bomba!");
- CreatureSay deactivationannounceEng = new CreatureSay(caster.getObjectId(), Say2.BATTLEFIELD, "Shot The Dog Event", "You have deactivated the bomb!");
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- caster.sendPacket(deactivationannounceSpa);
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- caster.sendPacket(deactivationannounceEng);
- }
- CreatureSay deactivationwarningSpa = new CreatureSay(caster.getObjectId(), Say2.PARTYROOM_COMMANDER, "Shot The Dog Event", "\n¡" + caster.getName() + " del \n Equipo Azul ha desactivado \n la bomba en la Zona " + caster.getInstanceHelperShooterEvent() + "!");
- CreatureSay deactivationwarningEng = new CreatureSay(caster.getObjectId(), Say2.PARTYROOM_COMMANDER, "Shot The Dog Event", "\n" + caster.getName() + " of the \n Blue Team has deactivated \n the bomb in Zone " + caster.getInstanceHelperShooterEvent() + "!");
- for (L2PcInstance ply : L2World.getInstance().getAllPlayersArray())
- {
- if (ply != null)
- {
- if (ply.getInstanceId() == (caster.getInstanceHelperShooterEvent() + 50000))
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- ply.sendPacket(deactivationwarningSpa);
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- ply.sendPacket(deactivationwarningEng);
- }
- }
- }
- }
- cancelQuestTimer("red_bomb_explode_start", null, null);
- cancelQuestTimer("red_bomb_explode", null, null);
- cancelQuestTimer("blue_target_respawn", null, null);
- LaszloEventEngine.setRedBombPlantedShooterEvent(caster.getInstanceHelperShooterEvent(), false);
- LaszloEventEngine.setShooterBluePoints(caster.getInstanceHelperShooterEvent(), LaszloEventEngine.getShooterBluePoints(caster.getInstanceHelperShooterEvent()) + 10);
- caster.setMatrixStadisticsShooterEvent(4, caster.getMatrixStadisticsShooterEvent(4) + 1);
- if (Points[4] < caster.getMatrixStadisticsShooterEvent(4))
- {
- Points[4] = caster.getMatrixStadisticsShooterEvent(4);
- LaszloEventEngine.setCalculateStadisticsPoints(caster.getInstanceHelperShooterEvent(), caster.getMatrixLocShooterEvent(), 5, Points[4]);
- }
- caster.removeSkill(SkillTable.getInstance().getInfo(40010, 1), false);
- caster.broadcastUserInfo();
- }
- }
- }
- }
- }
- }
- }
- return super.onSkillSee(npc, caster, skill, targets, isSummon);
- }
- public static void createInstance()
- {
- instanceId = 50000;
- InstanceManager.getInstance().createInstanceFromTemplate(instanceId, templateName);
- _log.info("[Shot The Dog Event Engine]: Created Event Instance: " + instanceId + " Zone 1 in " + templateName + ".");
- if (Config.SHOOTER_EVENT_MULTIPLE_INSTANCE)
- {
- for (int i = 0; i < 4; i++)
- {
- if (LaszloEventEngine.isShooterEventInstancesSlot(i))
- {
- instanceId += 1;
- InstanceManager.getInstance().createInstanceFromTemplate(instanceId, templateName);
- _log.info("[Shot The Dog Event Engine]: Created Extra Event Instance: " + instanceId + " Zone " + (i + 2) + " in " + templateName + ".");
- }
- }
- }
- instanceId = 50000;
- }
- public static void StartPeriodShooterEvent()
- {
- if (!Config.SHOOTER_EVENT_ENABLE)
- {
- _log.info("[Shot The Dog Event Engine]: The Event isn't enabled. Check the file LaszloEventsConfig.properties");
- }
- else
- {
- if (LaszloEventEngine.isInPeriodShooterEvent())
- {
- _log.info("[Shot The Dog Event Engine]: The Event is currently running and it cannot be started again.");
- }
- else
- {
- LaszloEventEngine.setInPeriodShooterEvent(true);
- LaszloEventEngine.setShooterEventState(1);
- Quest ShooterQuest = QuestManager.getInstance().getQuest(STD.qn);
- if (ShooterQuest != null)
- {
- ShooterQuest.startQuestTimer("start_event_announcment_1", 1000, null, null);
- }
- _log.info("[Shot The Dog Event Engine]: The Event has started. Inscription Period: " + (Config.SHOOTER_EVENT_INSCRIPTION_TIME / 60000) + " minut(s).");
- }
- }
- }
- public static void PlayerLeaveShooterEvent(L2PcInstance activeChar)
- {
- Quest ShooterQuest = QuestManager.getInstance().getQuest(STD.qn);
- if (ShooterQuest != null)
- {
- ShooterQuest.startQuestTimer("leave_clean", 500, null, activeChar);
- ShooterQuest.startQuestTimer("leave_tele", 2500, null, activeChar);
- }
- _log.info("[Shot The Dog Event Engine]: Player " + activeChar.getName() + " has defected from the Event.");
- }
- protected static L2Npc spawn(int npcId, Location loc)
- {
- try
- {
- L2NpcTemplate template = NpcTable.getInstance().getTemplate(npcId);
- if (template != null)
- {
- L2Spawn spawn = new L2Spawn(template);
- spawn.setInstanceId(loc.getInstanceId());
- spawn.setLocation(loc);
- spawn.setAmount(spawn.getAmount() + 1);
- return spawn.doSpawn();
- }
- }
- catch (Exception ignored)
- {
- }
- return null;
- }
- public static void CancelShooterEvent()
- {
- Quest ShooterQuest = QuestManager.getInstance().getQuest(STD.qn);
- if (ShooterQuest != null)
- {
- ShooterQuest.startQuestTimer("player_cancel_event_menu", 1000, null, null);
- ShooterQuest.cancelQuestTimer("start_event_announcment_1", null, null);
- ShooterQuest.cancelQuestTimer("start_event_announcment_2", null, null);
- ShooterQuest.cancelQuestTimer("start_event_announcment_3", null, null);
- ShooterQuest.cancelQuestTimer("start_event_announcment_4", null, null);
- ShooterQuest.cancelQuestTimer("event_calculate_players", null, null);
- ShooterQuest.cancelQuestTimer("event_calculate_instances", null, null);
- ShooterQuest.cancelQuestTimer("event_create_instances", null, null);
- ShooterQuest.cancelQuestTimer("event_calculate_teams", null, null);
- ShooterQuest.cancelQuestTimer("event_ready_period_teleport", null, null);
- ShooterQuest.cancelQuestTimer("event_open_door", null, null);
- ShooterQuest.cancelQuestTimer("event_ready_period_ready", null, null);
- ShooterQuest.cancelQuestTimer("event_ready_period_fight", null, null);
- ShooterQuest.cancelQuestTimer("event_calculate_winner", null, null);
- ShooterQuest.cancelQuestTimer("event_almost_ended", null, null);
- ShooterQuest.cancelQuestTimer("event_reward_social", null, null);
- ShooterQuest.cancelQuestTimer("event_teleport_out", null, null);
- ShooterQuest.cancelQuestTimer("event_final_end", null, null);
- ShooterQuest.cancelQuestTimer("victim_doing_res", null, null);
- ShooterQuest.cancelQuestTimer("victim_doing_heal", null, null);
- ShooterQuest.cancelQuestTimer("red_bomb_explode_start", null, null);
- ShooterQuest.cancelQuestTimer("red_bomb_explode", null, null);
- ShooterQuest.cancelQuestTimer("blue_target_respawn", null, null);
- ShooterQuest.cancelQuestTimer("blue_bomb_explode_start", null, null);
- ShooterQuest.cancelQuestTimer("blue_bomb_explode", null, null);
- ShooterQuest.cancelQuestTimer("red_target_respawn", null, null);
- }
- }
- public static void AdvanceShooterEvent()
- {
- Quest ShooterQuest = QuestManager.getInstance().getQuest(STD.qn);
- if (ShooterQuest != null)
- {
- if (LaszloEventEngine.isInPeriodShooterEvent())
- {
- if (LaszloEventEngine.getShooterEventState() == 1)
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- Announcements.getInstance().announceToAll("El Periodo de Inscripción de Shot The Dog ha sido avanzado. El Evento empezará ahora.");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- Announcements.getInstance().announceToAll("The Inscription Period has been advanced. The Event will start now.");
- }
- ShooterQuest.cancelQuestTimer("start_event_announcment_1", null, null);
- ShooterQuest.cancelQuestTimer("start_event_announcment_2", null, null);
- ShooterQuest.cancelQuestTimer("start_event_announcment_3", null, null);
- ShooterQuest.cancelQuestTimer("start_event_announcment_4", null, null);
- ShooterQuest.cancelQuestTimer("event_calculate_players", null, null);
- ShooterQuest.startQuestTimer("event_calculate_players", 1000, null, null);
- }
- else if (LaszloEventEngine.getShooterEventState() == 3)
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- Announcements.getInstance().announceToAll("El Periodo de Pelea de Shot The Dog ha sido avanzado. La entrega de premios será ahora.");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- Announcements.getInstance().announceToAll("The Fight Period has been advanced. The Event awards will be now.");
- }
- ShooterQuest.cancelQuestTimer("event_calculate_winner", null, null);
- ShooterQuest.cancelQuestTimer("event_open_door", null, null);
- ShooterQuest.cancelQuestTimer("event_almost_ended", null, null);
- ShooterQuest.startQuestTimer("event_calculate_winner", 1000, null, null);
- }
- else if (LaszloEventEngine.getShooterEventState() == 4)
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- Announcements.getInstance().announceToAll("El Periodo de Visualizacion de Puntos ha finalizado.");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- Announcements.getInstance().announceToAll("The Score View Period has been ended.");
- }
- ShooterQuest.cancelQuestTimer("event_final_end", null, null);
- ShooterQuest.startQuestTimer("event_final_end", 1000, null, null);
- }
- }
- }
- }
- public void TeleportInTeamsShooterEvent(L2Character activeChar)
- {
- for (L2PcInstance player : L2World.getInstance().getAllPlayersArray())
- {
- if (player != null)
- {
- if (player.isRedPartakerShooterEvent(player.getInstanceHelperShooterEvent()))
- {
- teleportPlayer(player, RED_ENTRY_POINT, (player.getInstanceHelperShooterEvent() + 50000));
- }
- else if (player.isBluePartakerShooterEvent(player.getInstanceHelperShooterEvent()))
- {
- teleportPlayer(player, BLUE_ENTRY_POINT, (player.getInstanceHelperShooterEvent() + 50000));
- }
- }
- }
- }
- public void PreparationPeriodShooterEvent(L2Character activeChar)
- {
- _log.info("[Shot The Dog Event Engine]: Preparation Period: " + (Config.SHOOTER_EVENT_PREPARATION_TIME / 1000) + " second(s).");
- for (L2PcInstance player : L2World.getInstance().getAllPlayersArray())
- {
- if (player != null)
- {
- if (player.isRedPartakerShooterEvent(player.getInstanceHelperShooterEvent()))
- {
- LaszloEventEngine.setShooterPartakerNum(player.getInstanceHelperShooterEvent(), LaszloEventEngine.getShooterPartakerNum(player.getInstanceHelperShooterEvent()) + 1);
- player.setMatrixLocShooterEvent(LaszloEventEngine.getShooterPartakerNum(player.getInstanceHelperShooterEvent()));
- LaszloEventEngine.setCalculateStadisticsPoints(player.getInstanceHelperShooterEvent(), player.getMatrixLocShooterEvent(), 0, player.getObjectId());
- // -----------------------------------------------------------------------------------------------------------------------------------------------------------------
- // _log.info("Participante apuntado: Zona: " +(player.getInstanceHelperShooterEvent()+1)+ " Num: " +player.getMatrixLocShooterEvent()+ " Player Id: " +LaszloEventEngine.getCalculateStadisticsPoints(player.getInstanceHelperShooterEvent(), player.getMatrixLocShooterEvent(), 0)+
- // " Nombre: " +CharNameTable.getInstance().getNameById(LaszloEventEngine.getCalculateStadisticsPoints(player.getInstanceHelperShooterEvent(), player.getMatrixLocShooterEvent(), 0)));
- // -----------------------------------------------------------------------------------------------------------------------------------------------------------------
- showShooterPreparationHtml(player);
- player.setTeam(2);
- SkillTable.getInstance().getInfo(40000, 1).getEffects(player, player);
- player.setCurrentHpMp(player.getMaxHp(), player.getMaxMp());
- player.setCurrentCp(player.getMaxCp());
- QuestState st = player.getQuestState(qn);
- if (st == null)
- {
- st = newQuestState(player);
- }
- player.addNotifyQuestOfDeath(st);
- }
- else if (player.isBluePartakerShooterEvent(player.getInstanceHelperShooterEvent()))
- {
- LaszloEventEngine.setShooterPartakerNum(player.getInstanceHelperShooterEvent(), LaszloEventEngine.getShooterPartakerNum(player.getInstanceHelperShooterEvent()) + 1);
- player.setMatrixLocShooterEvent(LaszloEventEngine.getShooterPartakerNum(player.getInstanceHelperShooterEvent()));
- LaszloEventEngine.setCalculateStadisticsPoints(player.getInstanceHelperShooterEvent(), player.getMatrixLocShooterEvent(), 0, player.getObjectId());
- // -----------------------------------------------------------------------------------------------------------------------------------------------------------------
- // _log.info("Participante apuntado: Zona: " +(player.getInstanceHelperShooterEvent()+1)+ " Num: " +LaszloEventEngine.getShooterPartakerNum(player.getInstanceHelperShooterEvent())+ " Player Id: "
- // +LaszloEventEngine.getCalculateStadisticsPoints(player.getInstanceHelperShooterEvent(), player.getMatrixLocShooterEvent(), 0)+ " Nombre: " +CharNameTable.getInstance().getNameById(LaszloEventEngine.getCalculateStadisticsPoints(player.getInstanceHelperShooterEvent(),
- // player.getMatrixLocShooterEvent(), 0)));
- // -----------------------------------------------------------------------------------------------------------------------------------------------------------------
- showShooterPreparationHtml(player);
- player.setTeam(1);
- SkillTable.getInstance().getInfo(40000, 1).getEffects(player, player);
- player.setCurrentHpMp(player.getMaxHp(), player.getMaxMp());
- player.setCurrentCp(player.getMaxCp());
- QuestState st = player.getQuestState(qn);
- if (st == null)
- {
- st = newQuestState(player);
- }
- player.addNotifyQuestOfDeath(st);
- }
- }
- }
- }
- public void GoFightShooterEvent(L2Character activeChar)
- {
- LaszloEventEngine.setShooterEventState(3);
- _log.info("[Shot The Dog Event Engine]: Fight Period started: " + (Config.SHOOTER_EVENT_PROCESS_TIME / 60000) + " minut(s).");
- for (L2PcInstance player : L2World.getInstance().getAllPlayersArray())
- {
- if (player != null)
- {
- if ((player.isRedPartakerShooterEvent(player.getInstanceHelperShooterEvent())) || (player.isBluePartakerShooterEvent(player.getInstanceHelperShooterEvent())))
- {
- SkillTable.getInstance().getInfo(40021, 1).getEffects(player, player);
- player.enableAllSkills();
- player.setIsImmobilized(false);
- }
- else if (player.isGM() && player.isInsideZone(ZoneId.ZONE_EVENT_LASZLO))
- {
- _log.info("[GM] " + player.getName() + " is viewing the Event - Fight Period");
- }
- }
- }
- }
- public void EndShooterEvent(L2Character activeChar)
- {
- LaszloEventEngine.setShooterEventState(4);
- _log.info("[Shot The Dog Event Engine]: Event ended. Calculating Winners. Reward and View Score Period: " + (Config.SHOOTER_EVENT_STADISTICS_TIME / 60000) + " minut(s).");
- for (L2PcInstance player : L2World.getInstance().getAllPlayersArray())
- {
- if (player != null)
- {
- if ((player.isRedPartakerShooterEvent(player.getInstanceHelperShooterEvent())) || (player.isBluePartakerShooterEvent(player.getInstanceHelperShooterEvent())))
- {
- if (player.isDead())
- {
- player.doRevive();
- }
- }
- else if (player.isObserverShooterEvent())
- {
- player.setObserverShooterEvent(false);
- player.leaveOlympiadObserverMode();
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- player.sendMessage("El Evento ha acabado y sales del modo Observador.");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- player.sendMessage("The Event is over and you exit from Observer mode.");
- }
- }
- }
- }
- }
- public void CalculateWinnerShooterEvent()
- {
- if (LaszloEventEngine.getShooterRedPoints(0) > LaszloEventEngine.getShooterBluePoints(0))
- {
- LaszloEventEngine.setWinnerRedShooterEvent(0, true);
- }
- else if (LaszloEventEngine.getShooterBluePoints(0) > LaszloEventEngine.getShooterRedPoints(0))
- {
- LaszloEventEngine.setWinnerBlueShooterEvent(0, true);
- }
- else if (LaszloEventEngine.getShooterRedPoints(0) == LaszloEventEngine.getShooterBluePoints(0))
- {
- LaszloEventEngine.setTieShooterEvent(0, true);
- }
- if (Config.SHOOTER_EVENT_MULTIPLE_INSTANCE)
- {
- for (int i = 1; i < 5; i++)
- {
- if (LaszloEventEngine.getShooterRedPoints(i) > LaszloEventEngine.getShooterBluePoints(i))
- {
- LaszloEventEngine.setWinnerRedShooterEvent(i, true);
- }
- else if (LaszloEventEngine.getShooterBluePoints(i) > LaszloEventEngine.getShooterRedPoints(i))
- {
- LaszloEventEngine.setWinnerBlueShooterEvent(i, true);
- }
- else if (LaszloEventEngine.getShooterRedPoints(i) == LaszloEventEngine.getShooterBluePoints(i))
- {
- LaszloEventEngine.setTieShooterEvent(i, true);
- }
- }
- }
- }
- public void SocialAndRewardTeamsShooterEvent(L2Character activeChar)
- {
- for (L2PcInstance player : L2World.getInstance().getAllPlayersArray())
- {
- if (player != null)
- {
- if (LaszloEventEngine.isWinnerRedShooterEvent(LaszloEventEngine.getDistributingHelperShooterEvent()))
- {
- if (player.isRedPartakerShooterEvent(LaszloEventEngine.getDistributingHelperShooterEvent()))
- {
- player.broadcastPacket(new SocialAction(player.getObjectId(), 3));
- player.broadcastPacket(new MagicSkillUse(player, player, 6234, 1, 1, 1));
- showShooterWinnerHtml(player);
- player.addItem("Loot", Config.SHOOTER_EVENT_REWARD_ID, Config.SHOOTER_EVENT_REWARD_QUANT, player, true);
- }
- else if (player.isBluePartakerShooterEvent(LaszloEventEngine.getDistributingHelperShooterEvent()))
- {
- player.broadcastPacket(new SocialAction(player.getObjectId(), 13));
- showShooterLoserHtml(player);
- if (Config.SHOOTER_EVENT_ENABLE_REWARD_LOSER)
- {
- player.addItem("Loot", Config.SHOOTER_EVENT_REWARD_ID_LOSER, Config.SHOOTER_EVENT_REWARD_QUANT_LOSER, player, true);
- }
- }
- }
- else if (LaszloEventEngine.isWinnerBlueShooterEvent(LaszloEventEngine.getDistributingHelperShooterEvent()))
- {
- if (player.isBluePartakerShooterEvent(LaszloEventEngine.getDistributingHelperShooterEvent()))
- {
- player.broadcastPacket(new SocialAction(player.getObjectId(), 3));
- player.broadcastPacket(new MagicSkillUse(player, player, 6234, 1, 1, 1));
- showShooterWinnerHtml(player);
- player.addItem("Loot", Config.SHOOTER_EVENT_REWARD_ID, Config.SHOOTER_EVENT_REWARD_QUANT, player, true);
- }
- else if (player.isRedPartakerShooterEvent(LaszloEventEngine.getDistributingHelperShooterEvent()))
- {
- player.broadcastPacket(new SocialAction(player.getObjectId(), 13));
- showShooterLoserHtml(player);
- if (Config.SHOOTER_EVENT_ENABLE_REWARD_LOSER)
- {
- player.addItem("Loot", Config.SHOOTER_EVENT_REWARD_ID_LOSER, Config.SHOOTER_EVENT_REWARD_QUANT_LOSER, player, true);
- }
- }
- }
- else if (LaszloEventEngine.isTieShooterEvent(LaszloEventEngine.getDistributingHelperShooterEvent()))
- {
- if (player.isRedPartakerShooterEvent(LaszloEventEngine.getDistributingHelperShooterEvent()) || player.isBluePartakerShooterEvent(LaszloEventEngine.getDistributingHelperShooterEvent()))
- {
- player.broadcastPacket(new SocialAction(player.getObjectId(), 8));
- showShooterTieHtml(player);
- if (Config.SHOOTER_EVENT_ENABLE_REWARD_TIE)
- {
- player.addItem("Loot", Config.SHOOTER_EVENT_REWARD_ID_TIE, Config.SHOOTER_EVENT_REWARD_QUANT_TIE, player, true);
- }
- }
- }
- }
- }
- }
- public void TeleportOutTeamsShooterEvent(L2Character activeChar)
- {
- for (L2PcInstance player : L2World.getInstance().getAllPlayersArray())
- {
- if (player != null)
- {
- if (LaszloEventEngine.isWinnerRedShooterEvent(LaszloEventEngine.getDistributingHelperShooterEvent()))
- {
- if (player.isRedPartakerShooterEvent(LaszloEventEngine.getDistributingHelperShooterEvent()))
- {
- player.enableAllSkills();
- player.setIsImmobilized(false);
- player.setTeam(0);
- teleportPlayer(player, EXIT_POINT, 0);
- player.setRedPartakerShooterEvent(0, false);
- QuestState st = player.getQuestState(qn);
- if (st != null)
- {
- player.removeNotifyQuestOfDeath(st);
- }
- }
- else if (player.isBluePartakerShooterEvent(LaszloEventEngine.getDistributingHelperShooterEvent()))
- {
- player.enableAllSkills();
- player.setIsImmobilized(false);
- player.setTeam(0);
- teleportPlayer(player, EXIT_POINT, 0);
- player.setBluePartakerShooterEvent(0, false);
- QuestState st = player.getQuestState(qn);
- if (st != null)
- {
- player.removeNotifyQuestOfDeath(st);
- }
- }
- }
- else if (LaszloEventEngine.isWinnerBlueShooterEvent(LaszloEventEngine.getDistributingHelperShooterEvent()))
- {
- if (player.isBluePartakerShooterEvent(LaszloEventEngine.getDistributingHelperShooterEvent()))
- {
- player.enableAllSkills();
- player.setIsImmobilized(false);
- player.setTeam(0);
- teleportPlayer(player, EXIT_POINT, 0);
- player.setBluePartakerShooterEvent(0, false);
- QuestState st = player.getQuestState(qn);
- if (st != null)
- {
- player.removeNotifyQuestOfDeath(st);
- }
- }
- else if (player.isRedPartakerShooterEvent(LaszloEventEngine.getDistributingHelperShooterEvent()))
- {
- player.enableAllSkills();
- player.setIsImmobilized(false);
- player.setTeam(0);
- teleportPlayer(player, EXIT_POINT, 0);
- player.setRedPartakerShooterEvent(0, false);
- QuestState st = player.getQuestState(qn);
- if (st != null)
- {
- player.removeNotifyQuestOfDeath(st);
- }
- }
- }
- else if (LaszloEventEngine.isTieShooterEvent(LaszloEventEngine.getDistributingHelperShooterEvent()))
- {
- if (player.isRedPartakerShooterEvent(LaszloEventEngine.getDistributingHelperShooterEvent()) || player.isBluePartakerShooterEvent(LaszloEventEngine.getDistributingHelperShooterEvent()))
- {
- player.enableAllSkills();
- player.setIsImmobilized(false);
- player.setTeam(0);
- teleportPlayer(player, EXIT_POINT, 0);
- player.setRedPartakerShooterEvent(0, false);
- player.setBluePartakerShooterEvent(0, false);
- QuestState st = player.getQuestState(qn);
- if (st != null)
- {
- player.removeNotifyQuestOfDeath(st);
- }
- }
- }
- }
- }
- }
- public void showShooterPreparationHtml(L2PcInstance activeChar)
- {
- NpcHtmlMessage ShooterPreparationRed = new NpcHtmlMessage(5);
- TextBuilder replyShooterPreparationRed = new TextBuilder("<html><body scroll=\"no\"><title>Shot The Dog Event</title><table border=0 cellpadding=0 cellspacing=0 width=292 height=358 background=\"L2UI_CH3.refinewnd_back_Pattern\"><tr><td valign=\"top\" align=\"center\"><br><font color=\"LEVEL\">Shot The Dog Event</font><br>");
- if (activeChar.isRedPartakerShooterEvent(activeChar.getInstanceHelperShooterEvent()))
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- replyShooterPreparationRed.append("<table border=0 cellpadding=0 cellspacing=2><tr><td align=center>¡Equipo Rojo - Zona " + (activeChar.getInstanceHelperShooterEvent() + 1) + "!<br> Tiempo de preparación <br1>de <font color=\"LEVEL\">" + (Config.SHOOTER_EVENT_PREPARATION_TIME / 1000) + " segundo(s)</font>.<br><br> Aprovecha este tiempo para colocar<br1> las Skills de Evento en la barra<br1> de skills y crear una Party.<br> Recuerda que si deseas salir del Evento<br1> en cualquier momento puedes usar<br1> el comando .leave_STD.<br><br><br><br><br></td></tr></table><br>");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- replyShooterPreparationRed.append("<table border=0 cellpadding=0 cellspacing=2><tr><td align=center>Red Team - Zone " + (activeChar.getInstanceHelperShooterEvent() + 1) + "!<br> Preparation Period of <br1>de <font color=\"LEVEL\">" + (Config.SHOOTER_EVENT_PREPARATION_TIME / 1000) + " second(s)</font>.<br><br> Use this time to put your Event<br1>Skills in your Skill's Bar<br1> and create a Party.<br>Remember, if you want to exit from<br1>the Event, you can use the command<br1> .leave_STD.<br><br><br><br><br></td></tr></table><br>");
- }
- }
- else if (activeChar.isBluePartakerShooterEvent(activeChar.getInstanceHelperShooterEvent()))
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- replyShooterPreparationRed.append("<table border=0 cellpadding=0 cellspacing=2><tr><td align=center>¡Equipo Azul - Zona " + (activeChar.getInstanceHelperShooterEvent() + 1) + "!<br> Tiempo de preparacion <br1>de <font color=\"LEVEL\">" + (Config.SHOOTER_EVENT_PREPARATION_TIME / 1000) + " segundo(s)</font>.<br><br> Aprovecha este tiempo para colocar<br1> las Skills de Evento en la barra<br1> de skills y crear una Party.<br> Recuerda que si deseas salir del Evento<br1> en cualquier momento puedes usar<br1> el comando .leave_STD.<br><br><br><br><br></td></tr></table><br>");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- replyShooterPreparationRed.append("<table border=0 cellpadding=0 cellspacing=2><tr><td align=center>Blue Team - Zone " + (activeChar.getInstanceHelperShooterEvent() + 1) + "!<br> Preparation Period of <br1>de <font color=\"LEVEL\">" + (Config.SHOOTER_EVENT_PREPARATION_TIME / 1000) + " second(s)</font>.<br><br> Use this time to put your Event<br1>Skills in your Skill's Bar<br1> and create a Party.<br>Remember, if you want to exit from<br1>the Event, you can use the command<br1> .leave_STD.<br><br><br><br><br></td></tr></table><br>");
- }
- }
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- replyShooterPreparationRed.append("<table border=0 cellpadding=0 cellspacing=2><tr><td align=center>¡Disfruta del Evento!</td></tr></table></body></html>");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- replyShooterPreparationRed.append("<table border=0 cellpadding=0 cellspacing=2><tr><td align=center>Enjoy the Event!</td></tr></table></body></html>");
- }
- ShooterPreparationRed.setHtml(replyShooterPreparationRed.toString());
- activeChar.sendPacket(ShooterPreparationRed);
- }
- public void showShooterWeaponsMenu(L2PcInstance activeChar)
- {
- NpcHtmlMessage ShooterWeaponStore = new NpcHtmlMessage(5);
- TextBuilder replyWeaponStore = new TextBuilder("<html><body><title>Shot The Dog Event</title><table border=0 cellpadding=0 cellspacing=0 width=275 height=358><tr><td valign=\"top\" align=\"center\"><br><font color=\"LEVEL\">Shot The Dog Event</font><br>");
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- replyWeaponStore.append("<table border=0 cellpadding=0 cellspacing=2><tr><td align=center>Tiempo restante de Evento:<br1>" + (((LaszloEventEngine.getShooterReadTime(2) - System.currentTimeMillis()) / 1000) / 60) + " minuto(s) y " + (((LaszloEventEngine.getShooterReadTime(2) - System.currentTimeMillis()) / 1000) - (((((LaszloEventEngine.getShooterReadTime(2) - System.currentTimeMillis()) / 1000) / 60)) * 60)) + " segundo(s).</td></tr></table><br1>");
- replyWeaponStore.append("<table border=0 cellpadding=0 cellspacing=2><tr><td align=center>¡Bienvenido " + activeChar.getName() + "!<br1> Actualmente tienes " + activeChar.getDollarsShooterEvent() + " Dollars Dog.<br> ¿Que arma deseas?</td></tr></table><br><br>");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- replyWeaponStore.append("<table border=0 cellpadding=0 cellspacing=2><tr><td align=center>Event remaining time:<br1>" + (((LaszloEventEngine.getShooterReadTime(2) - System.currentTimeMillis()) / 1000) / 60) + " minut(s) and " + (((LaszloEventEngine.getShooterReadTime(2) - System.currentTimeMillis()) / 1000) - (((((LaszloEventEngine.getShooterReadTime(2) - System.currentTimeMillis()) / 1000) / 60)) * 60)) + " second(s).</td></tr></table><br1>");
- replyWeaponStore.append("<table border=0 cellpadding=0 cellspacing=2><tr><td align=center>¡Welcome " + activeChar.getName() + "!<br1> Actually you've got " + activeChar.getDollarsShooterEvent() + " Dollars Dog.<br> What weapon do you want?</td></tr></table><br><br>");
- }
- DesertSkill = activeChar.getSkillLevel(40002);
- ShotgunSkill = activeChar.getSkillLevel(40003);
- SubfusilSkill = activeChar.getSkillLevel(40004);
- AssaultRSkill = activeChar.getSkillLevel(40005);
- SniperRSkill = activeChar.getSkillLevel(40006);
- if (DesertSkill <= 0)
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- replyWeaponStore.append("<br1><table><tr><td><img src=\"L2UI.Squaregray\" width=\"240\" height=\"2\"></td></tr></table><br>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=1 width=200 height=30><tr><td align=center valign=bottom width=200 height=30><font color=\"LEVEL\">Pistola Desert Eagle</font></td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Potencia</td><td align=center valign=bottom width=60 height=25>65 %</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Precisión</td><td align=center valign=bottom width=60 height=25>85 %</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Distancia Min-Max</td><td align=center valign=bottom width=60 height=25>100-750</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Cadencia de Fuego</td><td align=center valign=bottom width=60 height=25>1 disp/s</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Probabilidad Head-Shot</td><td align=center valign=bottom width=60 height=25>5 %</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Gasto de Munición</td><td align=center valign=bottom width=60 height=25>200 MP</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Precio</td><td align=center valign=bottom width=60 height=25>700 $</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=30><tr><td align=center valign=bottom width=140 height=30><button value=\"Comprar\" action=\"bypass -h Quest STD ShooterDesert\" width=200 height=31 back=\"L2UI_CT1.OlympiadWnd_DF_Back_Fight1None\" fore=\"L2UI_CT1.OlympiadWnd_DF_Fight1None\"></td></tr></table><br>");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- replyWeaponStore.append("<br1><table><tr><td><img src=\"L2UI.Squaregray\" width=\"240\" height=\"2\"></td></tr></table><br>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=1 width=200 height=30><tr><td align=center valign=bottom width=200 height=30><font color=\"LEVEL\">Desert Eagle Gun</font></td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Power</td><td align=center valign=bottom width=60 height=25>65 %</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Accuracy</td><td align=center valign=bottom width=60 height=25>85 %</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Min-Max Distance</td><td align=center valign=bottom width=60 height=25>100-750</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Rate of Fire</td><td align=center valign=bottom width=60 height=25>1 disp/s</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Head-Shot Probability</td><td align=center valign=bottom width=60 height=25>5 %</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Ammo Spending</td><td align=center valign=bottom width=60 height=25>200 MP</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Price</td><td align=center valign=bottom width=60 height=25>700 $</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=30><tr><td align=center valign=bottom width=140 height=30><button value=\"Buy\" action=\"bypass -h Quest STD ShooterDesert\" width=200 height=31 back=\"L2UI_CT1.OlympiadWnd_DF_Back_Fight1None\" fore=\"L2UI_CT1.OlympiadWnd_DF_Fight1None\"></td></tr></table><br>");
- }
- }
- else
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- replyWeaponStore.append("<br1><table><tr><td><img src=\"L2UI.Squaregray\" width=\"240\" height=\"2\"></td></tr></table><br>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=1 width=200 height=30><tr><td align=center valign=bottom width=200 height=30><font color=\"LEVEL\">Pistola Desert Eagle</font></td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=30><tr><td align=center valign=bottom width=140 height=30>Adquirida</td></tr></table><br>");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- replyWeaponStore.append("<br1><table><tr><td><img src=\"L2UI.Squaregray\" width=\"240\" height=\"2\"></td></tr></table><br>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=1 width=200 height=30><tr><td align=center valign=bottom width=200 height=30><font color=\"LEVEL\">Desert Eagle Gun</font></td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=30><tr><td align=center valign=bottom width=140 height=30>Acquired</td></tr></table><br>");
- }
- }
- if (ShotgunSkill <= 0)
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- replyWeaponStore.append("<br1><table><tr><td><img src=\"L2UI.Squaregray\" width=\"240\" height=\"2\"></td></tr></table><br>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=1 width=200 height=30><tr><td align=center valign=bottom width=200 height=30><font color=\"LEVEL\">Escopeta Franchi SPAS-12</font></td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Potencia</td><td align=center valign=bottom width=60 height=25>100 %</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Precisión</td><td align=center valign=bottom width=60 height=25>40 %</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Distancia Min-Max</td><td align=center valign=bottom width=60 height=25>40-450</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Cadencia de Fuego</td><td align=center valign=bottom width=60 height=25>0.4 disp/s</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Probabilidad Head-Shot</td><td align=center valign=bottom width=60 height=25>1 %</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Gasto de Munición</td><td align=center valign=bottom width=60 height=25>400 MP</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Precio</td><td align=center valign=bottom width=60 height=25>2000 $</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=30><tr><td align=center valign=bottom width=140 height=30><button value=\"Comprar\" action=\"bypass -h Quest STD ShooterShotgun\" width=200 height=31 back=\"L2UI_CT1.OlympiadWnd_DF_Back_Fight1None\" fore=\"L2UI_CT1.OlympiadWnd_DF_Fight1None\"></td></tr></table><br>");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- replyWeaponStore.append("<br1><table><tr><td><img src=\"L2UI.Squaregray\" width=\"240\" height=\"2\"></td></tr></table><br>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=1 width=200 height=30><tr><td align=center valign=bottom width=200 height=30><font color=\"LEVEL\">Franchi SPAS-12 Shotgun</font></td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Power</td><td align=center valign=bottom width=60 height=25>100 %</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Accuracy</td><td align=center valign=bottom width=60 height=25>40 %</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Min-Max Distance</td><td align=center valign=bottom width=60 height=25>40-450</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Rafe of Fire</td><td align=center valign=bottom width=60 height=25>0.4 disp/s</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Head-Shot Probability</td><td align=center valign=bottom width=60 height=25>1 %</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Ammo Spending</td><td align=center valign=bottom width=60 height=25>400 MP</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Price</td><td align=center valign=bottom width=60 height=25>2000 $</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=30><tr><td align=center valign=bottom width=140 height=30><button value=\"Buy\" action=\"bypass -h Quest STD ShooterShotgun\" width=200 height=31 back=\"L2UI_CT1.OlympiadWnd_DF_Back_Fight1None\" fore=\"L2UI_CT1.OlympiadWnd_DF_Fight1None\"></td></tr></table><br>");
- }
- }
- else
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- replyWeaponStore.append("<br1><table><tr><td><img src=\"L2UI.Squaregray\" width=\"240\" height=\"2\"></td></tr></table><br>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=1 width=200 height=30><tr><td align=center valign=bottom width=200 height=30><font color=\"LEVEL\">Escopeta Franchi SPAS-12</font></td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=30><tr><td align=center valign=bottom width=140 height=30>Adquirida</td></tr></table><br>");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- replyWeaponStore.append("<br1><table><tr><td><img src=\"L2UI.Squaregray\" width=\"240\" height=\"2\"></td></tr></table><br>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=1 width=200 height=30><tr><td align=center valign=bottom width=200 height=30><font color=\"LEVEL\">Franchi SPAS-12 Shotgun</font></td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=30><tr><td align=center valign=bottom width=140 height=30>Acquired</td></tr></table><br>");
- }
- }
- if (SubfusilSkill <= 0)
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- replyWeaponStore.append("<br1><table><tr><td><img src=\"L2UI.Squaregray\" width=\"240\" height=\"2\"></td></tr></table><br>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=1 width=200 height=30><tr><td align=center valign=bottom width=200 height=30><font color=\"LEVEL\">Subfusil MP-5</font></td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Potencia</td><td align=center valign=bottom width=60 height=25>15 %</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Precisión</td><td align=center valign=bottom width=60 height=25>50 %</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Distancia Min-Max</td><td align=center valign=bottom width=60 height=25>150-750</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Cadencia de Fuego</td><td align=center valign=bottom width=60 height=25>2 disp/s</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Probabilidad Head-Shot</td><td align=center valign=bottom width=60 height=25>2 %</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Gasto de Munición</td><td align=center valign=bottom width=60 height=25>40 MP</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Precio</td><td align=center valign=bottom width=60 height=25>1600 $</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=30><tr><td align=center valign=bottom width=140 height=30><button value=\"Comprar\" action=\"bypass -h Quest STD ShooterSubfusil\" width=200 height=31 back=\"L2UI_CT1.OlympiadWnd_DF_Back_Fight1None\" fore=\"L2UI_CT1.OlympiadWnd_DF_Fight1None\"></td></tr></table><br>");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- replyWeaponStore.append("<br1><table><tr><td><img src=\"L2UI.Squaregray\" width=\"240\" height=\"2\"></td></tr></table><br>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=1 width=200 height=30><tr><td align=center valign=bottom width=200 height=30><font color=\"LEVEL\">MP-5 SMG</font></td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Power</td><td align=center valign=bottom width=60 height=25>15 %</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Accuracy</td><td align=center valign=bottom width=60 height=25>50 %</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Min-Max Distance</td><td align=center valign=bottom width=60 height=25>150-750</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Rate of Fire</td><td align=center valign=bottom width=60 height=25>2 disp/s</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Head-Shot Probability</td><td align=center valign=bottom width=60 height=25>2 %</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Ammo Spending</td><td align=center valign=bottom width=60 height=25>40 MP</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Price</td><td align=center valign=bottom width=60 height=25>1600 $</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=30><tr><td align=center valign=bottom width=140 height=30><button value=\"Buy\" action=\"bypass -h Quest STD ShooterSubfusil\" width=200 height=31 back=\"L2UI_CT1.OlympiadWnd_DF_Back_Fight1None\" fore=\"L2UI_CT1.OlympiadWnd_DF_Fight1None\"></td></tr></table><br>");
- }
- }
- else
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- replyWeaponStore.append("<br1><table><tr><td><img src=\"L2UI.Squaregray\" width=\"240\" height=\"2\"></td></tr></table><br>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=1 width=200 height=30><tr><td align=center valign=bottom width=200 height=30><font color=\"LEVEL\">Subfusil MP-5</font></td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=30><tr><td align=center valign=bottom width=140 height=30>Adquirido</td></tr></table><br>");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- replyWeaponStore.append("<br1><table><tr><td><img src=\"L2UI.Squaregray\" width=\"240\" height=\"2\"></td></tr></table><br>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=1 width=200 height=30><tr><td align=center valign=bottom width=200 height=30><font color=\"LEVEL\">MP-5 SMG</font></td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=30><tr><td align=center valign=bottom width=140 height=30>Acquired</td></tr></table><br>");
- }
- }
- if (AssaultRSkill <= 0)
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- replyWeaponStore.append("<br1><table><tr><td><img src=\"L2UI.Squaregray\" width=\"240\" height=\"2\"></td></tr></table><br>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=1 width=200 height=30><tr><td align=center valign=bottom width=200 height=30><font color=\"LEVEL\">Rifle Asalto AK-47</font></td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Potencia</td><td align=center valign=bottom width=60 height=25>68 %</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Precisión</td><td align=center valign=bottom width=60 height=25>85 %</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Distancia Min-Max</td><td align=center valign=bottom width=60 height=25>200-850</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Cadencia de Fuego</td><td align=center valign=bottom width=60 height=25>0.66 disp/s</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Probabilidad Head-Shot</td><td align=center valign=bottom width=60 height=25>5 %</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Gasto de Munición</td><td align=center valign=bottom width=60 height=25>300 MP</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Precio</td><td align=center valign=bottom width=60 height=25>2200 $</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=30><tr><td align=center valign=bottom width=140 height=30><button value=\"Comprar\" action=\"bypass -h Quest STD ShooterAssaultR\" width=200 height=31 back=\"L2UI_CT1.OlympiadWnd_DF_Back_Fight1None\" fore=\"L2UI_CT1.OlympiadWnd_DF_Fight1None\"></td></tr></table><br>");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- replyWeaponStore.append("<br1><table><tr><td><img src=\"L2UI.Squaregray\" width=\"240\" height=\"2\"></td></tr></table><br>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=1 width=200 height=30><tr><td align=center valign=bottom width=200 height=30><font color=\"LEVEL\">AK-47 Assault Rifle</font></td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Power</td><td align=center valign=bottom width=60 height=25>68 %</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Accuracy</td><td align=center valign=bottom width=60 height=25>85 %</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Min-Max Distance</td><td align=center valign=bottom width=60 height=25>200-850</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Rate of Fire</td><td align=center valign=bottom width=60 height=25>0.66 disp/s</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Head-Shot Probability</td><td align=center valign=bottom width=60 height=25>5 %</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Ammo Spending</td><td align=center valign=bottom width=60 height=25>300 MP</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Price</td><td align=center valign=bottom width=60 height=25>2200 $</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=30><tr><td align=center valign=bottom width=140 height=30><button value=\"Buy\" action=\"bypass -h Quest STD ShooterAssaultR\" width=200 height=31 back=\"L2UI_CT1.OlympiadWnd_DF_Back_Fight1None\" fore=\"L2UI_CT1.OlympiadWnd_DF_Fight1None\"></td></tr></table><br>");
- }
- }
- else
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- replyWeaponStore.append("<br1><table><tr><td><img src=\"L2UI.Squaregray\" width=\"240\" height=\"2\"></td></tr></table><br>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=1 width=200 height=30><tr><td align=center valign=bottom width=200 height=30><font color=\"LEVEL\">Rifle Asalto AK-47</font></td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=30><tr><td align=center valign=bottom width=140 height=30>Adquirido</td></tr></table><br>");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- replyWeaponStore.append("<br1><table><tr><td><img src=\"L2UI.Squaregray\" width=\"240\" height=\"2\"></td></tr></table><br>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=1 width=200 height=30><tr><td align=center valign=bottom width=200 height=30><font color=\"LEVEL\">AK-47 Assault Rifle</font></td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=30><tr><td align=center valign=bottom width=140 height=30>Acquired</td></tr></table><br>");
- }
- }
- if (SniperRSkill <= 0)
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- replyWeaponStore.append("<br1><table><tr><td><img src=\"L2UI.Squaregray\" width=\"240\" height=\"2\"></td></tr></table><br>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=1 width=200 height=30><tr><td align=center valign=bottom width=200 height=30><font color=\"LEVEL\">Rifle Francotirador L69A1</font></td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Potencia</td><td align=center valign=bottom width=60 height=25>90 %</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Precisión</td><td align=center valign=bottom width=60 height=25>95 %</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Distancia Min-Max</td><td align=center valign=bottom width=60 height=25>600-1500</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Cadencia de Fuego</td><td align=center valign=bottom width=60 height=25>0.05 disp/s</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Probabilidad Head-Shot</td><td align=center valign=bottom width=60 height=25>10 %</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Gasto de Munición</td><td align=center valign=bottom width=60 height=25>800 MP</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Precio</td><td align=center valign=bottom width=60 height=25>3000 $</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=30><tr><td align=center valign=bottom width=140 height=30><button value=\"Comprar\" action=\"bypass -h Quest STD ShooterSniperR\" width=200 height=31 back=\"L2UI_CT1.OlympiadWnd_DF_Back_Fight1None\" fore=\"L2UI_CT1.OlympiadWnd_DF_Fight1None\"></td></tr></table><br>");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- replyWeaponStore.append("<br1><table><tr><td><img src=\"L2UI.Squaregray\" width=\"240\" height=\"2\"></td></tr></table><br>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=1 width=200 height=30><tr><td align=center valign=bottom width=200 height=30><font color=\"LEVEL\">L69A1 Sniper Rifle</font></td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Power</td><td align=center valign=bottom width=60 height=25>90 %</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Accuracy</td><td align=center valign=bottom width=60 height=25>95 %</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Min-Max Distance</td><td align=center valign=bottom width=60 height=25>600-1500</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Rate of Fire</td><td align=center valign=bottom width=60 height=25>0.05 disp/s</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Head-Shot Probability</td><td align=center valign=bottom width=60 height=25>10 %</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Ammo Spending</td><td align=center valign=bottom width=60 height=25>800 MP</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Price</td><td align=center valign=bottom width=60 height=25>3000 $</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=30><tr><td align=center valign=bottom width=140 height=30><button value=\"Buy\" action=\"bypass -h Quest STD ShooterSniperR\" width=200 height=31 back=\"L2UI_CT1.OlympiadWnd_DF_Back_Fight1None\" fore=\"L2UI_CT1.OlympiadWnd_DF_Fight1None\"></td></tr></table><br>");
- }
- }
- else
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- replyWeaponStore.append("<br1><table><tr><td><img src=\"L2UI.Squaregray\" width=\"240\" height=\"2\"></td></tr></table><br>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=1 width=200 height=30><tr><td align=center valign=bottom width=200 height=30><font color=\"LEVEL\">Rifle Francotirador L69A1</font></td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=30><tr><td align=center valign=bottom width=140 height=30>Adquirido</td></tr></table><br>");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- replyWeaponStore.append("<br1><table><tr><td><img src=\"L2UI.Squaregray\" width=\"240\" height=\"2\"></td></tr></table><br>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=1 width=200 height=30><tr><td align=center valign=bottom width=200 height=30><font color=\"LEVEL\">L69A1 Sniper Rifle</font></td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=30><tr><td align=center valign=bottom width=140 height=30>Acquired</td></tr></table><br>");
- }
- }
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- replyWeaponStore.append("<br><br><table border=0 cellpadding=0 cellspacing=2><tr><td align=center>¡Disfruta del Evento!<br><br><br></td></tr></table></body></html>");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- replyWeaponStore.append("<br><br><table border=0 cellpadding=0 cellspacing=2><tr><td align=center>Enjoy the Event!<br><br><br></td></tr></table></body></html>");
- }
- ShooterWeaponStore.setHtml(replyWeaponStore.toString());
- activeChar.sendPacket(ShooterWeaponStore);
- }
- public void showShooterWeaponsTutorial(L2PcInstance activeChar)
- {
- NpcHtmlMessage ShooterWeaponStore = new NpcHtmlMessage(5);
- TextBuilder replyWeaponStore = new TextBuilder("<html><body><title>Shot The Dog Event</title><table border=0 cellpadding=0 cellspacing=0 width=275 height=358><tr><td valign=\"top\" align=\"center\"><br><font color=\"LEVEL\">Shot The Dog Event</font><br>");
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- replyWeaponStore.append("<br1><table><tr><td><img src=\"L2UI.Squaregray\" width=\"240\" height=\"2\"></td></tr></table><br>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=1 width=200 height=30><tr><td align=center valign=bottom width=200 height=30><font color=\"LEVEL\">Pistola Desert Eagle</font></td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Potencia</td><td align=center valign=bottom width=60 height=25>65 %</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Precisión</td><td align=center valign=bottom width=60 height=25>85 %</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Distancia Min-Max</td><td align=center valign=bottom width=60 height=25>100-750</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Cadencia de Fuego</td><td align=center valign=bottom width=60 height=25>1 disp/s</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Probabilidad Head-Shot</td><td align=center valign=bottom width=60 height=25>5 %</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Gasto de Munición</td><td align=center valign=bottom width=60 height=25>200 MP</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Precio</td><td align=center valign=bottom width=60 height=25>700 $</td></tr></table>");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- replyWeaponStore.append("<br1><table><tr><td><img src=\"L2UI.Squaregray\" width=\"240\" height=\"2\"></td></tr></table><br>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=1 width=200 height=30><tr><td align=center valign=bottom width=200 height=30><font color=\"LEVEL\">Desert Eagle Gun</font></td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Power</td><td align=center valign=bottom width=60 height=25>65 %</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Accuracy</td><td align=center valign=bottom width=60 height=25>85 %</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Min-Max Distance</td><td align=center valign=bottom width=60 height=25>100-750</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Rate of Fire</td><td align=center valign=bottom width=60 height=25>1 disp/s</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Head-Shot Probability</td><td align=center valign=bottom width=60 height=25>5 %</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Ammo Spending</td><td align=center valign=bottom width=60 height=25>200 MP</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Price</td><td align=center valign=bottom width=60 height=25>700 $</td></tr></table>");
- }
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- replyWeaponStore.append("<br1><table><tr><td><img src=\"L2UI.Squaregray\" width=\"240\" height=\"2\"></td></tr></table><br>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=1 width=200 height=30><tr><td align=center valign=bottom width=200 height=30><font color=\"LEVEL\">Escopeta Franchi SPAS-12</font></td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Potencia</td><td align=center valign=bottom width=60 height=25>100 %</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Precisión</td><td align=center valign=bottom width=60 height=25>40 %</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Distancia Min-Max</td><td align=center valign=bottom width=60 height=25>40-450</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Cadencia de Fuego</td><td align=center valign=bottom width=60 height=25>0.4 disp/s</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Probabilidad Head-Shot</td><td align=center valign=bottom width=60 height=25>1 %</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Gasto de Munición</td><td align=center valign=bottom width=60 height=25>400 MP</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Precio</td><td align=center valign=bottom width=60 height=25>2000 $</td></tr></table>");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- replyWeaponStore.append("<br1><table><tr><td><img src=\"L2UI.Squaregray\" width=\"240\" height=\"2\"></td></tr></table><br>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=1 width=200 height=30><tr><td align=center valign=bottom width=200 height=30><font color=\"LEVEL\">Franchi SPAS-12 Shotgun</font></td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Power</td><td align=center valign=bottom width=60 height=25>100 %</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Accuracy</td><td align=center valign=bottom width=60 height=25>40 %</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Min-Max Distance</td><td align=center valign=bottom width=60 height=25>40-450</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Rafe of Fire</td><td align=center valign=bottom width=60 height=25>0.4 disp/s</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Head-Shot Probability</td><td align=center valign=bottom width=60 height=25>1 %</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Ammo Spending</td><td align=center valign=bottom width=60 height=25>400 MP</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Price</td><td align=center valign=bottom width=60 height=25>2000 $</td></tr></table>");
- }
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- replyWeaponStore.append("<br1><table><tr><td><img src=\"L2UI.Squaregray\" width=\"240\" height=\"2\"></td></tr></table><br>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=1 width=200 height=30><tr><td align=center valign=bottom width=200 height=30><font color=\"LEVEL\">Subfusil MP-5</font></td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Potencia</td><td align=center valign=bottom width=60 height=25>15 %</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Precisión</td><td align=center valign=bottom width=60 height=25>50 %</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Distancia Min-Max</td><td align=center valign=bottom width=60 height=25>150-750</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Cadencia de Fuego</td><td align=center valign=bottom width=60 height=25>2 disp/s</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Probabilidad Head-Shot</td><td align=center valign=bottom width=60 height=25>2 %</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Gasto de Munición</td><td align=center valign=bottom width=60 height=25>40 MP</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Precio</td><td align=center valign=bottom width=60 height=25>1600 $</td></tr></table>");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- replyWeaponStore.append("<br1><table><tr><td><img src=\"L2UI.Squaregray\" width=\"240\" height=\"2\"></td></tr></table><br>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=1 width=200 height=30><tr><td align=center valign=bottom width=200 height=30><font color=\"LEVEL\">MP-5 SMG</font></td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Power</td><td align=center valign=bottom width=60 height=25>15 %</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Accuracy</td><td align=center valign=bottom width=60 height=25>50 %</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Min-Max Distance</td><td align=center valign=bottom width=60 height=25>150-750</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Rate of Fire</td><td align=center valign=bottom width=60 height=25>2 disp/s</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Head-Shot Probability</td><td align=center valign=bottom width=60 height=25>2 %</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Ammo Spending</td><td align=center valign=bottom width=60 height=25>40 MP</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Price</td><td align=center valign=bottom width=60 height=25>1600 $</td></tr></table>");
- }
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- replyWeaponStore.append("<br1><table><tr><td><img src=\"L2UI.Squaregray\" width=\"240\" height=\"2\"></td></tr></table><br>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=1 width=200 height=30><tr><td align=center valign=bottom width=200 height=30><font color=\"LEVEL\">Rifle Asalto AK-47</font></td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Potencia</td><td align=center valign=bottom width=60 height=25>68 %</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Precisión</td><td align=center valign=bottom width=60 height=25>85 %</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Distancia Min-Max</td><td align=center valign=bottom width=60 height=25>200-850</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Cadencia de Fuego</td><td align=center valign=bottom width=60 height=25>0.66 disp/s</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Probabilidad Head-Shot</td><td align=center valign=bottom width=60 height=25>5 %</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Gasto de Munición</td><td align=center valign=bottom width=60 height=25>300 MP</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Precio</td><td align=center valign=bottom width=60 height=25>2200 $</td></tr></table>");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- replyWeaponStore.append("<br1><table><tr><td><img src=\"L2UI.Squaregray\" width=\"240\" height=\"2\"></td></tr></table><br>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=1 width=200 height=30><tr><td align=center valign=bottom width=200 height=30><font color=\"LEVEL\">AK-47 Assault Rifle</font></td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Power</td><td align=center valign=bottom width=60 height=25>68 %</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Accuracy</td><td align=center valign=bottom width=60 height=25>85 %</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Min-Max Distance</td><td align=center valign=bottom width=60 height=25>200-850</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Rate of Fire</td><td align=center valign=bottom width=60 height=25>0.66 disp/s</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Head-Shot Probability</td><td align=center valign=bottom width=60 height=25>5 %</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Ammo Spending</td><td align=center valign=bottom width=60 height=25>300 MP</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Price</td><td align=center valign=bottom width=60 height=25>2200 $</td></tr></table>");
- }
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- replyWeaponStore.append("<br1><table><tr><td><img src=\"L2UI.Squaregray\" width=\"240\" height=\"2\"></td></tr></table><br>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=1 width=200 height=30><tr><td align=center valign=bottom width=200 height=30><font color=\"LEVEL\">Rifle Francotirador L69A1</font></td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Potencia</td><td align=center valign=bottom width=60 height=25>90 %</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Precisión</td><td align=center valign=bottom width=60 height=25>95 %</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Distancia Min-Max</td><td align=center valign=bottom width=60 height=25>600-1500</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Cadencia de Fuego</td><td align=center valign=bottom width=60 height=25>0.05 disp/s</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Probabilidad Head-Shot</td><td align=center valign=bottom width=60 height=25>10 %</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Gasto de Munición</td><td align=center valign=bottom width=60 height=25>800 MP</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Precio</td><td align=center valign=bottom width=60 height=25>3000 $</td></tr></table>");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- replyWeaponStore.append("<br1><table><tr><td><img src=\"L2UI.Squaregray\" width=\"240\" height=\"2\"></td></tr></table><br>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=1 width=200 height=30><tr><td align=center valign=bottom width=200 height=30><font color=\"LEVEL\">L69A1 Sniper Rifle</font></td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Power</td><td align=center valign=bottom width=60 height=25>90 %</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Accuracy</td><td align=center valign=bottom width=60 height=25>95 %</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Min-Max Distance</td><td align=center valign=bottom width=60 height=25>600-1500</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Rate of Fire</td><td align=center valign=bottom width=60 height=25>0.05 disp/s</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Head-Shot Probability</td><td align=center valign=bottom width=60 height=25>10 %</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Ammo Spending</td><td align=center valign=bottom width=60 height=25>800 MP</td></tr></table>");
- replyWeaponStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Price</td><td align=center valign=bottom width=60 height=25>3000 $</td></tr></table>");
- }
- replyWeaponStore.append("<br><br></td></tr></table></body></html>");
- ShooterWeaponStore.setHtml(replyWeaponStore.toString());
- activeChar.sendPacket(ShooterWeaponStore);
- }
- public void showShooterEtcMenu(L2PcInstance activeChar)
- {
- NpcHtmlMessage ShooterEtcStore = new NpcHtmlMessage(5);
- TextBuilder replyEtcStore = new TextBuilder("<html><body><title>Shot The Dog Event</title><table border=0 cellpadding=0 cellspacing=0 width=275 height=358><tr><td valign=\"top\" align=\"center\"><br><font color=\"LEVEL\">Shot The Dog Event</font><br>");
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- replyEtcStore.append("<table border=0 cellpadding=0 cellspacing=2><tr><td align=center>Tiempo restante de Evento:<br1>" + (((LaszloEventEngine.getShooterReadTime(2) - System.currentTimeMillis()) / 1000) / 60) + " minuto(s) y " + (((LaszloEventEngine.getShooterReadTime(2) - System.currentTimeMillis()) / 1000) - (((((LaszloEventEngine.getShooterReadTime(2) - System.currentTimeMillis()) / 1000) / 60)) * 60)) + " segundo(s).</td></tr></table><br1>");
- replyEtcStore.append("<table border=0 cellpadding=0 cellspacing=2><tr><td align=center>¡Bienvenido " + activeChar.getName() + "!<br1> Actualmente tienes " + activeChar.getDollarsShooterEvent() + " Dollars Dog.<br> ¿Que accesorio deseas?</td></tr></table><br><br>");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- replyEtcStore.append("<table border=0 cellpadding=0 cellspacing=2><tr><td align=center>Event remaining time:<br1>" + (((LaszloEventEngine.getShooterReadTime(2) - System.currentTimeMillis()) / 1000) / 60) + " minut(s) and " + (((LaszloEventEngine.getShooterReadTime(2) - System.currentTimeMillis()) / 1000) - (((((LaszloEventEngine.getShooterReadTime(2) - System.currentTimeMillis()) / 1000) / 60)) * 60)) + " second(s).</td></tr></table><br1>");
- replyEtcStore.append("<table border=0 cellpadding=0 cellspacing=2><tr><td align=center>¡Welcome " + activeChar.getName() + "!<br1> Actually you've got " + activeChar.getDollarsShooterEvent() + " Dollars Dog.<br> What accessory do you want?</td></tr></table><br><br>");
- }
- BombSkill = activeChar.getSkillLevel(40009);
- unBombSkill = activeChar.getSkillLevel(40010);
- HideSkill = activeChar.getSkillLevel(40011);
- NoHideSkill = activeChar.getSkillLevel(40012);
- GrenadeSkill = activeChar.getSkillLevel(40019);
- if (HideSkill <= 0)
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- replyEtcStore.append("<br1><table><tr><td><img src=\"L2UI.Squaregray\" width=\"240\" height=\"2\"></td></tr></table><br>");
- replyEtcStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=80><tr><td align=center valign=bottom width=200 height=80><font color=\"LEVEL\">Camuflaje</font> que te oculta del<br1> enemigo durante unos segundos.<br1> Mientras dure el efecto <br1>se reduce tu velocidad.</td></tr></table>");
- replyEtcStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Precio</td><td align=center valign=bottom width=60 height=25>1400 $</td></tr></table>");
- replyEtcStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=30><tr><td align=center valign=bottom width=140 height=30><button value=\"Comprar\" action=\"bypass -h Quest STD ShooterCammo\" width=200 height=31 back=\"L2UI_CT1.OlympiadWnd_DF_Back_BuyEtc\" fore=\"L2UI_CT1.OlympiadWnd_DF_BuyEtc\"></td></tr></table><br>");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- replyEtcStore.append("<br1><table><tr><td><img src=\"L2UI.Squaregray\" width=\"240\" height=\"2\"></td></tr></table><br>");
- replyEtcStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=80><tr><td align=center valign=bottom width=200 height=80><font color=\"LEVEL\">Camouflage</font> that hides you from<br1> the enemy during seconds.<br1> While the effect is on <br1>your speed is decreaed.</td></tr></table>");
- replyEtcStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Price</td><td align=center valign=bottom width=60 height=25>1400 $</td></tr></table>");
- replyEtcStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=30><tr><td align=center valign=bottom width=140 height=30><button value=\"Buy\" action=\"bypass -h Quest STD ShooterCammo\" width=200 height=31 back=\"L2UI_CT1.OlympiadWnd_DF_Back_BuyEtc\" fore=\"L2UI_CT1.OlympiadWnd_DF_BuyEtc\"></td></tr></table><br>");
- }
- }
- else
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- replyEtcStore.append("<br1><table><tr><td><img src=\"L2UI.Squaregray\" width=\"240\" height=\"2\"></td></tr></table><br>");
- replyEtcStore.append("<table border=1 cellpadding=0 cellspacing=1 width=200 height=30><tr><td align=center valign=bottom width=200 height=30><font color=\"LEVEL\">Camuflaje</font></td></tr></table>");
- replyEtcStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=30><tr><td align=center valign=bottom width=140 height=30>Adquirido</td></tr></table><br>");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- replyEtcStore.append("<br1><table><tr><td><img src=\"L2UI.Squaregray\" width=\"240\" height=\"2\"></td></tr></table><br>");
- replyEtcStore.append("<table border=1 cellpadding=0 cellspacing=1 width=200 height=30><tr><td align=center valign=bottom width=200 height=30><font color=\"LEVEL\">Camouflage</font></td></tr></table>");
- replyEtcStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=30><tr><td align=center valign=bottom width=140 height=30>Acquired</td></tr></table><br>");
- }
- }
- if (NoHideSkill <= 0)
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- replyEtcStore.append("<br1><table><tr><td><img src=\"L2UI.Squaregray\" width=\"240\" height=\"2\"></td></tr></table><br>");
- replyEtcStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=60><tr><td align=center valign=bottom width=200 height=60><font color=\"LEVEL\">Gafas de Visión Nocturna</font><br1> que perciben si hay cerca<br1>enemigos camuflados.</td></tr></table>");
- replyEtcStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Precio</td><td align=center valign=bottom width=60 height=25>900 $</td></tr></table>");
- replyEtcStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=30><tr><td align=center valign=bottom width=140 height=30><button value=\"Comprar\" action=\"bypass -h Quest STD ShooterLents\" width=200 height=31 back=\"L2UI_CT1.OlympiadWnd_DF_Back_BuyEtc\" fore=\"L2UI_CT1.OlympiadWnd_DF_BuyEtc\"></td></tr></table><br>");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- replyEtcStore.append("<br1><table><tr><td><img src=\"L2UI.Squaregray\" width=\"240\" height=\"2\"></td></tr></table><br>");
- replyEtcStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=60><tr><td align=center valign=bottom width=200 height=60><font color=\"LEVEL\">Night Vision Glasses</font><br1> that perceives if there are <br1>camouflaged enemies near.</td></tr></table>");
- replyEtcStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Price</td><td align=center valign=bottom width=60 height=25>900 $</td></tr></table>");
- replyEtcStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=30><tr><td align=center valign=bottom width=140 height=30><button value=\"Buy\" action=\"bypass -h Quest STD ShooterLents\" width=200 height=31 back=\"L2UI_CT1.OlympiadWnd_DF_Back_BuyEtc\" fore=\"L2UI_CT1.OlympiadWnd_DF_BuyEtc\"></td></tr></table><br>");
- }
- }
- else
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- replyEtcStore.append("<br1><table><tr><td><img src=\"L2UI.Squaregray\" width=\"240\" height=\"2\"></td></tr></table><br>");
- replyEtcStore.append("<table border=1 cellpadding=0 cellspacing=1 width=200 height=30><tr><td align=center valign=bottom width=200 height=30><font color=\"LEVEL\">Gafas Visión Nocturna</font></td></tr></table>");
- replyEtcStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=30><tr><td align=center valign=bottom width=140 height=30>Adquirida</td></tr></table><br>");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- replyEtcStore.append("<br1><table><tr><td><img src=\"L2UI.Squaregray\" width=\"240\" height=\"2\"></td></tr></table><br>");
- replyEtcStore.append("<table border=1 cellpadding=0 cellspacing=1 width=200 height=30><tr><td align=center valign=bottom width=200 height=30><font color=\"LEVEL\">Night Vision Glasses</font></td></tr></table>");
- replyEtcStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=30><tr><td align=center valign=bottom width=140 height=30>Acquired</td></tr></table><br>");
- }
- }
- if (BombSkill <= 0)
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- replyEtcStore.append("<br1><table><tr><td><img src=\"L2UI.Squaregray\" width=\"240\" height=\"2\"></td></tr></table><br>");
- replyEtcStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=80><tr><td align=center valign=bottom width=200 height=80><font color=\"LEVEL\">Bomba con Temporizador</font><br1> para colocar en el Centro de<br1>Mando del enemigo.<br1> Si la explosión tiene éxito,<br1> tu equipo conseguirá 10 puntos<br1> y el equipo enemigo no podrá<br1> comprar armas durante 1 minuto.<br1> NOTA: DE UN SOLO USO.<br1></td></tr></table>");
- replyEtcStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Precio</td><td align=center valign=bottom width=60 height=25>4000 $</td></tr></table>");
- replyEtcStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=30><tr><td align=center valign=bottom width=140 height=30><button value=\"Comprar\" action=\"bypass -h Quest STD ShooterBombStore\" width=200 height=31 back=\"L2UI_CT1.OlympiadWnd_DF_Back_BuyEtc\" fore=\"L2UI_CT1.OlympiadWnd_DF_BuyEtc\"></td></tr></table><br>");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- replyEtcStore.append("<br1><table><tr><td><img src=\"L2UI.Squaregray\" width=\"240\" height=\"2\"></td></tr></table><br>");
- replyEtcStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=80><tr><td align=center valign=bottom width=200 height=80><font color=\"LEVEL\">Time Bomb</font><br1> to plant near the enemy's <br1>Conning Tower.<br1> If it explodes succefully,<br1> your team will get 10 points<br1> and the enemy cannot<br1> buy supplies in 1 minut.<br1> NOTE: ONLY ONE USE.<br1></td></tr></table>");
- replyEtcStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Price</td><td align=center valign=bottom width=60 height=25>4000 $</td></tr></table>");
- replyEtcStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=30><tr><td align=center valign=bottom width=140 height=30><button value=\"Buy\" action=\"bypass -h Quest STD ShooterBombStore\" width=200 height=31 back=\"L2UI_CT1.OlympiadWnd_DF_Back_BuyEtc\" fore=\"L2UI_CT1.OlympiadWnd_DF_BuyEtc\"></td></tr></table><br>");
- }
- }
- else
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- replyEtcStore.append("<br1><table><tr><td><img src=\"L2UI.Squaregray\" width=\"240\" height=\"2\"></td></tr></table><br>");
- replyEtcStore.append("<table border=1 cellpadding=0 cellspacing=1 width=200 height=30><tr><td align=center valign=bottom width=200 height=30><font color=\"LEVEL\">Bomba con Temporizador</font></td></tr></table>");
- replyEtcStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=30><tr><td align=center valign=bottom width=140 height=30>Adquirida</td></tr></table><br>");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- replyEtcStore.append("<br1><table><tr><td><img src=\"L2UI.Squaregray\" width=\"240\" height=\"2\"></td></tr></table><br>");
- replyEtcStore.append("<table border=1 cellpadding=0 cellspacing=1 width=200 height=30><tr><td align=center valign=bottom width=200 height=30><font color=\"LEVEL\">Time Bomb</font></td></tr></table>");
- replyEtcStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=30><tr><td align=center valign=bottom width=140 height=30>Acquired</td></tr></table><br>");
- }
- }
- if (unBombSkill <= 0)
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- replyEtcStore.append("<br1><table><tr><td><img src=\"L2UI.Squaregray\" width=\"240\" height=\"2\"></td></tr></table><br>");
- replyEtcStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=80><tr><td align=center valign=bottom width=200 height=80><font color=\"LEVEL\">Kit de Desactivación</font><br1> para desactivar bombas<br1> colocadas en tu Centro de<br1> Mando. Si se desactiva <br1>con éxito, el equipo gana<br1> 10 puntos. <br1> NOTA: UN SOLO USO.<br1></td></tr></table>");
- replyEtcStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Precio</td><td align=center valign=bottom width=60 height=25>1500 $</td></tr></table>");
- replyEtcStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=30><tr><td align=center valign=bottom width=140 height=30><button value=\"Comprar\" action=\"bypass -h Quest STD ShooterDeactivation\" width=200 height=31 back=\"L2UI_CT1.OlympiadWnd_DF_Back_BuyEtc\" fore=\"L2UI_CT1.OlympiadWnd_DF_BuyEtc\"></td></tr></table><br>");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- replyEtcStore.append("<br1><table><tr><td><img src=\"L2UI.Squaregray\" width=\"240\" height=\"2\"></td></tr></table><br>");
- replyEtcStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=80><tr><td align=center valign=bottom width=200 height=80><font color=\"LEVEL\">Deactivation Kit</font><br1> to deactivate bombs<br1> planted in our Conning de<br1> Tower. If it deactivates <br1>succefully, our team will get<br1> 10 points.<br1> NOTE: ONLY ONE USE.<br1></td></tr></table>");
- replyEtcStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Price</td><td align=center valign=bottom width=60 height=25>1500 $</td></tr></table>");
- replyEtcStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=30><tr><td align=center valign=bottom width=140 height=30><button value=\"Buy\" action=\"bypass -h Quest STD ShooterDeactivation\" width=200 height=31 back=\"L2UI_CT1.OlympiadWnd_DF_Back_BuyEtc\" fore=\"L2UI_CT1.OlympiadWnd_DF_BuyEtc\"></td></tr></table><br>");
- }
- }
- else
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- replyEtcStore.append("<br1><table><tr><td><img src=\"L2UI.Squaregray\" width=\"240\" height=\"2\"></td></tr></table><br>");
- replyEtcStore.append("<table border=1 cellpadding=0 cellspacing=1 width=200 height=30><tr><td align=center valign=bottom width=200 height=30><font color=\"LEVEL\">Kit de Desactivación</font></td></tr></table>");
- replyEtcStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=30><tr><td align=center valign=bottom width=140 height=30>Adquirido</td></tr></table><br>");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- replyEtcStore.append("<br1><table><tr><td><img src=\"L2UI.Squaregray\" width=\"240\" height=\"2\"></td></tr></table><br>");
- replyEtcStore.append("<table border=1 cellpadding=0 cellspacing=1 width=200 height=30><tr><td align=center valign=bottom width=200 height=30><font color=\"LEVEL\">Deactivation Kit</font></td></tr></table>");
- replyEtcStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=30><tr><td align=center valign=bottom width=140 height=30>Acquired</td></tr></table><br>");
- }
- }
- if (GrenadeSkill <= 0)
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- replyEtcStore.append("<br1><table><tr><td><img src=\"L2UI.Squaregray\" width=\"240\" height=\"2\"></td></tr></table><br>");
- replyEtcStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=80><tr><td align=center valign=bottom width=200 height=80>Pack de <font color=\"LEVEL\">Granadas</font> que explosionan<br1> cuando se agota la espoleta, <br1> causando daño en area.<br1> No puedes moverte mientras<br1> tiras la granada.<br1> ¡Cuidado de no alcanzar<br1> a tus compañeros!</td></tr></table>");
- replyEtcStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Precio</td><td align=center valign=bottom width=60 height=25>2000 $</td></tr></table>");
- replyEtcStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=30><tr><td align=center valign=bottom width=140 height=30><button value=\"Comprar\" action=\"bypass -h Quest STD ShooterGrenade\" width=200 height=31 back=\"L2UI_CT1.OlympiadWnd_DF_Back_BuyEtc\" fore=\"L2UI_CT1.OlympiadWnd_DF_BuyEtc\"></td></tr></table><br>");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- replyEtcStore.append("<br1><table><tr><td><img src=\"L2UI.Squaregray\" width=\"240\" height=\"2\"></td></tr></table><br>");
- replyEtcStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=80><tr><td align=center valign=bottom width=200 height=80>Pack de <font color=\"LEVEL\">Grenades</font> that explodes<br1> when the fuse is exhausted, <br1> dealing area damage.<br1> You can't move while you're<br1> throwing the granade.<br1> Be careful and don't<br1> damage your team partners!</td></tr></table>");
- replyEtcStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Price</td><td align=center valign=bottom width=60 height=25>2000 $</td></tr></table>");
- replyEtcStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=30><tr><td align=center valign=bottom width=140 height=30><button value=\"Buy\" action=\"bypass -h Quest STD ShooterGrenade\" width=200 height=31 back=\"L2UI_CT1.OlympiadWnd_DF_Back_BuyEtc\" fore=\"L2UI_CT1.OlympiadWnd_DF_BuyEtc\"></td></tr></table><br>");
- }
- }
- else
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- replyEtcStore.append("<br1><table><tr><td><img src=\"L2UI.Squaregray\" width=\"240\" height=\"2\"></td></tr></table><br>");
- replyEtcStore.append("<table border=1 cellpadding=0 cellspacing=1 width=200 height=30><tr><td align=center valign=bottom width=200 height=30><font color=\"LEVEL\">Granadas</font></td></tr></table>");
- replyEtcStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=30><tr><td align=center valign=bottom width=140 height=30>Adquiridas</td></tr></table><br>");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- replyEtcStore.append("<br1><table><tr><td><img src=\"L2UI.Squaregray\" width=\"240\" height=\"2\"></td></tr></table><br>");
- replyEtcStore.append("<table border=1 cellpadding=0 cellspacing=1 width=200 height=30><tr><td align=center valign=bottom width=200 height=30><font color=\"LEVEL\">Grenades</font></td></tr></table>");
- replyEtcStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=30><tr><td align=center valign=bottom width=140 height=30>Acquired</td></tr></table><br>");
- }
- }
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- replyEtcStore.append("<br><br><table border=0 cellpadding=0 cellspacing=2><tr><td align=center>¡Disfruta del Evento!<br><br><br></td></tr></table></body></html>");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- replyEtcStore.append("<br><br><table border=0 cellpadding=0 cellspacing=2><tr><td align=center>Enjoy the Event!<br><br><br></td></tr></table></body></html>");
- }
- ShooterEtcStore.setHtml(replyEtcStore.toString());
- activeChar.sendPacket(ShooterEtcStore);
- }
- public void showShooterEtcTutorial(L2PcInstance activeChar)
- {
- NpcHtmlMessage ShooterEtcStore = new NpcHtmlMessage(5);
- TextBuilder replyEtcStore = new TextBuilder("<html><body><title>Shot The Dog Event</title><table border=0 cellpadding=0 cellspacing=0 width=275 height=358><tr><td valign=\"top\" align=\"center\"><br><font color=\"LEVEL\">Shot The Dog Event</font><br>");
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- replyEtcStore.append("<br1><table><tr><td><img src=\"L2UI.Squaregray\" width=\"240\" height=\"2\"></td></tr></table><br>");
- replyEtcStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=80><tr><td align=center valign=bottom width=200 height=80><font color=\"LEVEL\">Camuflaje</font> que te oculta del<br1> enemigo durante unos segundos.<br1> Mientras dure el efecto <br1>se reduce tu velocidad.</td></tr></table>");
- replyEtcStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Precio</td><td align=center valign=bottom width=60 height=25>1400 $</td></tr></table>");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- replyEtcStore.append("<br1><table><tr><td><img src=\"L2UI.Squaregray\" width=\"240\" height=\"2\"></td></tr></table><br>");
- replyEtcStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=80><tr><td align=center valign=bottom width=200 height=80><font color=\"LEVEL\">Camouflage</font> that hides you from<br1> the enemy during seconds.<br1> While the effect is on <br1>your speed is decreaed.</td></tr></table>");
- replyEtcStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Price</td><td align=center valign=bottom width=60 height=25>1400 $</td></tr></table>");
- }
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- replyEtcStore.append("<br1><table><tr><td><img src=\"L2UI.Squaregray\" width=\"240\" height=\"2\"></td></tr></table><br>");
- replyEtcStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=60><tr><td align=center valign=bottom width=200 height=60><font color=\"LEVEL\">Gafas de Visión Nocturna</font><br1> que perciben si hay cerca<br1>enemigos camuflados.</td></tr></table>");
- replyEtcStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Precio</td><td align=center valign=bottom width=60 height=25>900 $</td></tr></table>");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- replyEtcStore.append("<br1><table><tr><td><img src=\"L2UI.Squaregray\" width=\"240\" height=\"2\"></td></tr></table><br>");
- replyEtcStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=60><tr><td align=center valign=bottom width=200 height=60><font color=\"LEVEL\">Night Vision Glasses</font><br1> that perceives if there are <br1>camouflaged enemies near.</td></tr></table>");
- replyEtcStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Price</td><td align=center valign=bottom width=60 height=25>900 $</td></tr></table>");
- }
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- replyEtcStore.append("<br1><table><tr><td><img src=\"L2UI.Squaregray\" width=\"240\" height=\"2\"></td></tr></table><br>");
- replyEtcStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=80><tr><td align=center valign=bottom width=200 height=80><font color=\"LEVEL\">Bomba con Temporizador</font><br1> para colocar en el Centro de<br1>Mando del enemigo.<br1> Si la explosión tiene éxito,<br1> tu equipo conseguirá 10 puntos<br1> y el equipo enemigo no podrá<br1> comprar armas durante 1 minuto.<br1> NOTA: DE UN SOLO USO.<br1></td></tr></table>");
- replyEtcStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Precio</td><td align=center valign=bottom width=60 height=25>4000 $</td></tr></table>");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- replyEtcStore.append("<br1><table><tr><td><img src=\"L2UI.Squaregray\" width=\"240\" height=\"2\"></td></tr></table><br>");
- replyEtcStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=80><tr><td align=center valign=bottom width=200 height=80><font color=\"LEVEL\">Time Bomb</font><br1> to plant near the enemy's <br1>Conning Tower.<br1> If it explodes succefully,<br1> your team will get 10 points<br1> and the enemy cannot<br1> buy supplies in 1 minut.<br1> NOTE: ONLY ONE USE.<br1></td></tr></table>");
- replyEtcStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Price</td><td align=center valign=bottom width=60 height=25>4000 $</td></tr></table>");
- }
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- replyEtcStore.append("<br1><table><tr><td><img src=\"L2UI.Squaregray\" width=\"240\" height=\"2\"></td></tr></table><br>");
- replyEtcStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=80><tr><td align=center valign=bottom width=200 height=80><font color=\"LEVEL\">Kit de Desactivación</font><br1> para desactivar bombas<br1> colocadas en tu Centro de<br1> Mando. Si se desactiva <br1>con éxito, el equipo gana<br1> 10 puntos. <br1> NOTA: UN SOLO USO.<br1></td></tr></table>");
- replyEtcStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Precio</td><td align=center valign=bottom width=60 height=25>1500 $</td></tr></table>");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- replyEtcStore.append("<br1><table><tr><td><img src=\"L2UI.Squaregray\" width=\"240\" height=\"2\"></td></tr></table><br>");
- replyEtcStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=80><tr><td align=center valign=bottom width=200 height=80><font color=\"LEVEL\">Deactivation Kit</font><br1> to deactivate bombs<br1> planted in our Conning de<br1> Tower. If it deactivates <br1>succefully, our team will get<br1> 10 points.<br1> NOTE: ONLY ONE USE.<br1></td></tr></table>");
- replyEtcStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Price</td><td align=center valign=bottom width=60 height=25>1500 $</td></tr></table>");
- }
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- replyEtcStore.append("<br1><table><tr><td><img src=\"L2UI.Squaregray\" width=\"240\" height=\"2\"></td></tr></table><br>");
- replyEtcStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=80><tr><td align=center valign=bottom width=200 height=80>Pack de <font color=\"LEVEL\">Granadas</font> que explosionan<br1> cuando se agota la espoleta, <br1> causando daño en area.<br1> No puedes moverte mientras<br1> tiras la granada.<br1> ¡Cuidado de no alcanzar<br1> a tus compañeros!</td></tr></table>");
- replyEtcStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Precio</td><td align=center valign=bottom width=60 height=25>2000 $</td></tr></table>");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- replyEtcStore.append("<br1><table><tr><td><img src=\"L2UI.Squaregray\" width=\"240\" height=\"2\"></td></tr></table><br>");
- replyEtcStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=80><tr><td align=center valign=bottom width=200 height=80>Pack de <font color=\"LEVEL\">Grenades</font> that explodes<br1> when the fuse is exhausted, <br1> dealing area damage.<br1> You can't move while you're<br1> throwing the granade.<br1> Be careful and don't<br1> damage your team partners!</td></tr></table>");
- replyEtcStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Price</td><td align=center valign=bottom width=60 height=25>2000 $</td></tr></table>");
- }
- replyEtcStore.append("<br><br></td></tr></table></body></html>");
- ShooterEtcStore.setHtml(replyEtcStore.toString());
- activeChar.sendPacket(ShooterEtcStore);
- }
- public void showShooterSupportMenu(L2PcInstance activeChar)
- {
- NpcHtmlMessage ShooterSupportStore = new NpcHtmlMessage(5);
- TextBuilder replySupStore = new TextBuilder("<html><body scroll=\"no\"><title>Shot The Dog Event</title><table border=0 cellpadding=0 cellspacing=0 width=292 height=358 background=\"L2UI_CH3.refinewnd_back_Pattern\"><tr><td valign=\"top\" align=\"center\"><br><font color=\"LEVEL\">Shot The Dog Event</font><br>");
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- replySupStore.append("<table border=0 cellpadding=0 cellspacing=2><tr><td align=center>Tiempo restante de Evento:<br1>" + (((LaszloEventEngine.getShooterReadTime(2) - System.currentTimeMillis()) / 1000) / 60) + " minuto(s) y " + (((LaszloEventEngine.getShooterReadTime(2) - System.currentTimeMillis()) / 1000) - (((((LaszloEventEngine.getShooterReadTime(2) - System.currentTimeMillis()) / 1000) / 60)) * 60)) + " segundo(s).</td></tr></table><br1>");
- replySupStore.append("<table border=0 cellpadding=0 cellspacing=2><tr><td align=center>¡Bienvenido " + activeChar.getName() + "!<br1> Actualmente tienes " + activeChar.getDollarsShooterEvent() + " Dollars Dog.<br> ¿Que apoyo deseas?</td></tr></table><br><br>");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- replySupStore.append("<table border=0 cellpadding=0 cellspacing=2><tr><td align=center>Event remaining time:<br1>" + (((LaszloEventEngine.getShooterReadTime(2) - System.currentTimeMillis()) / 1000) / 60) + " minut(s) and " + (((LaszloEventEngine.getShooterReadTime(2) - System.currentTimeMillis()) / 1000) - (((((LaszloEventEngine.getShooterReadTime(2) - System.currentTimeMillis()) / 1000) / 60)) * 60)) + " second(s).</td></tr></table><br1>");
- replySupStore.append("<table border=0 cellpadding=0 cellspacing=2><tr><td align=center>¡Welcome " + activeChar.getName() + "!<br1> Actually you've got " + activeChar.getDollarsShooterEvent() + " Dollars Dog.<br> What support do you want?</td></tr></table><br><br>");
- }
- KevlarSkill = 0;
- HerbsSkill = 0;
- AmmoSkill = 0;
- L2Effect[] effects = activeChar.getAllEffects();
- if ((effects != null) && (effects.length != 0))
- {
- for (L2Effect e : effects)
- {
- if (e.getSkill().getId() == 40015)
- {
- KevlarSkill = 1;
- }
- if (e.getSkill().getId() == 40016)
- {
- HerbsSkill = 1;
- }
- if (e.getSkill().getId() == 40017)
- {
- AmmoSkill = 1;
- }
- }
- }
- if (KevlarSkill == 0)
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- replySupStore.append("<br1><table><tr><td><img src=\"L2UI.Squaregray\" width=\"240\" height=\"2\"></td></tr></table><br>");
- replySupStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=40><tr><td align=center valign=bottom width=200 height=40><font color=\"LEVEL\">Chaleco Kevlar</font> que aumenta<br1> tu defensa contra los disparos.</td></tr></table>");
- replySupStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Precio</td><td align=center valign=bottom width=60 height=25>1000 $</td></tr></table>");
- replySupStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=30><tr><td align=center valign=bottom width=140 height=30><button value=\"Comprar\" action=\"bypass -h Quest STD ShooterKevlar\" width=200 height=31 back=\"L2UI_CT1.OlympiadWnd_DF_Back_BuyEquip\" fore=\"L2UI_CT1.OlympiadWnd_DF_BuyEquip\"></td></tr></table><br>");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- replySupStore.append("<br1><table><tr><td><img src=\"L2UI.Squaregray\" width=\"240\" height=\"2\"></td></tr></table><br>");
- replySupStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=40><tr><td align=center valign=bottom width=200 height=40><font color=\"LEVEL\">Kevlar Vest</font> that increases<br1> your defenses against shots.</td></tr></table>");
- replySupStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Price</td><td align=center valign=bottom width=60 height=25>1000 $</td></tr></table>");
- replySupStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=30><tr><td align=center valign=bottom width=140 height=30><button value=\"Buy\" action=\"bypass -h Quest STD ShooterKevlar\" width=200 height=31 back=\"L2UI_CT1.OlympiadWnd_DF_Back_BuyEquip\" fore=\"L2UI_CT1.OlympiadWnd_DF_BuyEquip\"></td></tr></table><br>");
- }
- }
- else
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- replySupStore.append("<br1><table><tr><td><img src=\"L2UI.Squaregray\" width=\"240\" height=\"2\"></td></tr></table><br>");
- replySupStore.append("<table border=1 cellpadding=0 cellspacing=1 width=200 height=30><tr><td align=center valign=bottom width=200 height=30><font color=\"LEVEL\">Chaleco Kevlar</font></td></tr></table>");
- replySupStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=30><tr><td align=center valign=bottom width=140 height=30>Adquirido</td></tr></table><br>");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- replySupStore.append("<br1><table><tr><td><img src=\"L2UI.Squaregray\" width=\"240\" height=\"2\"></td></tr></table><br>");
- replySupStore.append("<table border=1 cellpadding=0 cellspacing=1 width=200 height=30><tr><td align=center valign=bottom width=200 height=30><font color=\"LEVEL\">Kevlar Vest</font></td></tr></table>");
- replySupStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=30><tr><td align=center valign=bottom width=140 height=30>Acquired</td></tr></table><br>");
- }
- }
- if (HerbsSkill == 0)
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- replySupStore.append("<br1><table><tr><td><img src=\"L2UI.Squaregray\" width=\"240\" height=\"2\"></td></tr></table><br>");
- replySupStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=70><tr><td align=center valign=bottom width=200 height=70><font color=\"LEVEL\">Hierbas Medicinales</font><br1> que aumentan tu capacidad<br1> de curación con First Aids.</td></tr></table>");
- replySupStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Precio</td><td align=center valign=bottom width=60 height=25>1000 $</td></tr></table>");
- replySupStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=30><tr><td align=center valign=bottom width=140 height=30><button value=\"Comprar\" action=\"bypass -h Quest STD ShooterHerbs\" width=200 height=31 back=\"L2UI_CT1.OlympiadWnd_DF_Back_BuyEquip\" fore=\"L2UI_CT1.OlympiadWnd_DF_BuyEquip\"></td></tr></table><br>");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- replySupStore.append("<br1><table><tr><td><img src=\"L2UI.Squaregray\" width=\"240\" height=\"2\"></td></tr></table><br>");
- replySupStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=70><tr><td align=center valign=bottom width=200 height=70><font color=\"LEVEL\">Medicinal Herbs</font><br1> that increases your healing<br1> power with First Aids.</td></tr></table>");
- replySupStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Price</td><td align=center valign=bottom width=60 height=25>1000 $</td></tr></table>");
- replySupStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=30><tr><td align=center valign=bottom width=140 height=30><button value=\"Buy\" action=\"bypass -h Quest STD ShooterHerbs\" width=200 height=31 back=\"L2UI_CT1.OlympiadWnd_DF_Back_BuyEquip\" fore=\"L2UI_CT1.OlympiadWnd_DF_BuyEquip\"></td></tr></table><br>");
- }
- }
- else
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- replySupStore.append("<br1><table><tr><td><img src=\"L2UI.Squaregray\" width=\"240\" height=\"2\"></td></tr></table><br>");
- replySupStore.append("<table border=1 cellpadding=0 cellspacing=1 width=200 height=30><tr><td align=center valign=bottom width=200 height=30><font color=\"LEVEL\">Hierbas Medicinales</font></td></tr></table>");
- replySupStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=30><tr><td align=center valign=bottom width=140 height=30>Adquiridas</td></tr></table><br>");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- replySupStore.append("<br1><table><tr><td><img src=\"L2UI.Squaregray\" width=\"240\" height=\"2\"></td></tr></table><br>");
- replySupStore.append("<table border=1 cellpadding=0 cellspacing=1 width=200 height=30><tr><td align=center valign=bottom width=200 height=30><font color=\"LEVEL\">Medicinal Herbs</font></td></tr></table>");
- replySupStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=30><tr><td align=center valign=bottom width=140 height=30>Acquired</td></tr></table><br>");
- }
- }
- if (AmmoSkill == 0)
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- replySupStore.append("<br1><table><tr><td><img src=\"L2UI.Squaregray\" width=\"240\" height=\"2\"></td></tr></table><br>");
- replySupStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=70><tr><td align=center valign=bottom width=200 height=70><font color=\"LEVEL\">Expansión de Munición</font><br1> que te permite llevar<br1> el doble de munición.</td></tr></table>");
- replySupStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Precio</td><td align=center valign=bottom width=60 height=25>1000 $</td></tr></table>");
- replySupStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=30><tr><td align=center valign=bottom width=140 height=30><button value=\"Comprar\" action=\"bypass -h Quest STD ShooterAmmo\" width=200 height=31 back=\"L2UI_CT1.OlympiadWnd_DF_Back_BuyEquip\" fore=\"L2UI_CT1.OlympiadWnd_DF_BuyEquip\"></td></tr></table><br>");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- replySupStore.append("<br1><table><tr><td><img src=\"L2UI.Squaregray\" width=\"240\" height=\"2\"></td></tr></table><br>");
- replySupStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=70><tr><td align=center valign=bottom width=200 height=70><font color=\"LEVEL\">Ammo Expansion</font><br1> that allows you to double your<br1> ammo size.</td></tr></table>");
- replySupStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Price</td><td align=center valign=bottom width=60 height=25>1000 $</td></tr></table>");
- replySupStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=30><tr><td align=center valign=bottom width=140 height=30><button value=\"Buy\" action=\"bypass -h Quest STD ShooterAmmo\" width=200 height=31 back=\"L2UI_CT1.OlympiadWnd_DF_Back_BuyEquip\" fore=\"L2UI_CT1.OlympiadWnd_DF_BuyEquip\"></td></tr></table><br>");
- }
- }
- else
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- replySupStore.append("<br1><table><tr><td><img src=\"L2UI.Squaregray\" width=\"240\" height=\"2\"></td></tr></table><br>");
- replySupStore.append("<table border=1 cellpadding=0 cellspacing=1 width=200 height=30><tr><td align=center valign=bottom width=200 height=30><font color=\"LEVEL\">Expansión de Munición</font></td></tr></table>");
- replySupStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=30><tr><td align=center valign=bottom width=140 height=30>Adquirida</td></tr></table><br>");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- replySupStore.append("<br1><table><tr><td><img src=\"L2UI.Squaregray\" width=\"240\" height=\"2\"></td></tr></table><br>");
- replySupStore.append("<table border=1 cellpadding=0 cellspacing=1 width=200 height=30><tr><td align=center valign=bottom width=200 height=30><font color=\"LEVEL\">Ammo Expansion</font></td></tr></table>");
- replySupStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=30><tr><td align=center valign=bottom width=140 height=30>Acquired</td></tr></table><br>");
- }
- }
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- replySupStore.append("<table border=0 cellpadding=0 cellspacing=2><tr><td align=center>¡Disfruta del Evento!<br><br><br></td></tr></table></body></html>");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- replySupStore.append("<table border=0 cellpadding=0 cellspacing=2><tr><td align=center>Enjoy the Event!<br><br><br></td></tr></table></body></html>");
- }
- ShooterSupportStore.setHtml(replySupStore.toString());
- activeChar.sendPacket(ShooterSupportStore);
- }
- public void showShooterSupportTutorial(L2PcInstance activeChar)
- {
- NpcHtmlMessage ShooterSupportStore = new NpcHtmlMessage(5);
- TextBuilder replySupStore = new TextBuilder("<html><body scroll=\"no\"><title>Shot The Dog Event</title><table border=0 cellpadding=0 cellspacing=0 width=292 height=358 background=\"L2UI_CH3.refinewnd_back_Pattern\"><tr><td valign=\"top\" align=\"center\"><br><font color=\"LEVEL\">Shot The Dog Event</font><br>");
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- replySupStore.append("<br1><table><tr><td><img src=\"L2UI.Squaregray\" width=\"240\" height=\"2\"></td></tr></table><br>");
- replySupStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=40><tr><td align=center valign=bottom width=200 height=40><font color=\"LEVEL\">Chaleco Kevlar</font> que aumenta<br1> tu defensa contra los disparos.</td></tr></table>");
- replySupStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Precio</td><td align=center valign=bottom width=60 height=25>1000 $</td></tr></table>");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- replySupStore.append("<br1><table><tr><td><img src=\"L2UI.Squaregray\" width=\"240\" height=\"2\"></td></tr></table><br>");
- replySupStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=40><tr><td align=center valign=bottom width=200 height=40><font color=\"LEVEL\">Kevlar Vest</font> that increases<br1> your defenses against shots.</td></tr></table>");
- replySupStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Price</td><td align=center valign=bottom width=60 height=25>1000 $</td></tr></table>");
- }
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- replySupStore.append("<br1><table><tr><td><img src=\"L2UI.Squaregray\" width=\"240\" height=\"2\"></td></tr></table><br>");
- replySupStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=70><tr><td align=center valign=bottom width=200 height=70><font color=\"LEVEL\">Hierbas Medicinales</font><br1> que aumentan tu capacidad<br1> de curación con First Aids.</td></tr></table>");
- replySupStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Precio</td><td align=center valign=bottom width=60 height=25>1000 $</td></tr></table>");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- replySupStore.append("<br1><table><tr><td><img src=\"L2UI.Squaregray\" width=\"240\" height=\"2\"></td></tr></table><br>");
- replySupStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=70><tr><td align=center valign=bottom width=200 height=70><font color=\"LEVEL\">Medicinal Herbs</font><br1> that increases your healing<br1> power with First Aids.</td></tr></table>");
- replySupStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Price</td><td align=center valign=bottom width=60 height=25>1000 $</td></tr></table>");
- }
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- replySupStore.append("<br1><table><tr><td><img src=\"L2UI.Squaregray\" width=\"240\" height=\"2\"></td></tr></table><br>");
- replySupStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=70><tr><td align=center valign=bottom width=200 height=70><font color=\"LEVEL\">Expansión de Munición</font><br1> que te permite llevar<br1> el doble de munición.</td></tr></table>");
- replySupStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Precio</td><td align=center valign=bottom width=60 height=25>1000 $</td></tr></table>");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- replySupStore.append("<br1><table><tr><td><img src=\"L2UI.Squaregray\" width=\"240\" height=\"2\"></td></tr></table><br>");
- replySupStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=70><tr><td align=center valign=bottom width=200 height=70><font color=\"LEVEL\">Ammo Expansion</font><br1> that allows you to double your<br1> ammo size.</td></tr></table>");
- replySupStore.append("<table border=1 cellpadding=0 cellspacing=0 width=200 height=25><tr><td align=center valign=bottom width=140 height=25>Price</td><td align=center valign=bottom width=60 height=25>1000 $</td></tr></table>");
- }
- replySupStore.append("<br></td></tr></table></body></html>");
- ShooterSupportStore.setHtml(replySupStore.toString());
- activeChar.sendPacket(ShooterSupportStore);
- }
- public void showShooterWinnerHtml(L2PcInstance activeChar)
- {
- int itemId;
- itemId = REWARDS_IDS[0];
- L2ItemInstance itemwinner = new L2ItemInstance(IdFactory.getInstance().getNextId(), itemId);
- NpcHtmlMessage ShooterWinner = new NpcHtmlMessage(5);
- TextBuilder replyShooterWinner = new TextBuilder("<html><body scroll=\"no\"><title>Shot The Dog Event</title><table border=0 cellpadding=0 cellspacing=0 width=292 height=358 background=\"L2UI_CH3.refinewnd_back_Pattern\"><tr><td valign=\"top\" align=\"center\"><br><font color=\"LEVEL\">Shot The Dog Event</font><br>");
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- replyShooterWinner.append("<table border=0 cellpadding=0 cellspacing=2><tr><td align=center>¡Evento Finalizado!<br> <font color=\"LEVEL\">¡Enhorabuena, tu equipo ha ganado!</font><br><br> Aqui tienes tu recompensa:<br1> <font color=\"LEVEL\">" + Config.SHOOTER_EVENT_REWARD_QUANT + "</font> unidades de <font color=\"LEVEL\">" + itemwinner.getItemName() + "</font>.<br>Durante los siguientes " + (Config.SHOOTER_EVENT_STADISTICS_TIME / 60000) + " minuto(s) podrás ver<br1> las puntuaciones del Evento.<br></td></tr></table><br>");
- replyShooterWinner.append("<table border=0 cellpadding=0 cellspacing=2><tr><td align=center>Para ver las puntuaciones acude a " + InscriptionNpc[0].getName() + " <br1>en " + MapRegionManager.getInstance().getClosestTownName(InscriptionNpc[0]) + ", " + MapRegionManager.getInstance().getClosestTownName(InscriptionNpc[1]) + "<br1>y " + MapRegionManager.getInstance().getClosestTownName(InscriptionNpc[2]) + ", o con el comando .score_STD<br>¡Gracias por participar!<br></td></tr></table></td></tr></table></body></html>");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- replyShooterWinner.append("<table border=0 cellpadding=0 cellspacing=2><tr><td align=center>Event Ended!<br> <font color=\"LEVEL\">Congratulations, your Team has won!</font><br><br> Here is your reward:<br1> <font color=\"LEVEL\">" + Config.SHOOTER_EVENT_REWARD_QUANT + "</font> of <font color=\"LEVEL\">" + itemwinner.getItemName() + "</font>.<br>During the following " + (Config.SHOOTER_EVENT_STADISTICS_TIME / 60000) + " minut(s) you could see <br1> the Event Score.<br></td></tr></table><br>");
- replyShooterWinner.append("<table border=0 cellpadding=0 cellspacing=2><tr><td align=center>To see the scores go to " + InscriptionNpc[0].getName() + " <br1>in " + MapRegionManager.getInstance().getClosestTownName(InscriptionNpc[0]) + ", " + MapRegionManager.getInstance().getClosestTownName(InscriptionNpc[1]) + "<br1>and " + MapRegionManager.getInstance().getClosestTownName(InscriptionNpc[2]) + ", or using <br1>the command .score_STD<br>Thanks for playing!<br></td></tr></table></td></tr></table></body></html>");
- }
- ShooterWinner.setHtml(replyShooterWinner.toString());
- activeChar.sendPacket(ShooterWinner);
- }
- public void showShooterLoserHtml(L2PcInstance activeChar)
- {
- int itemId;
- itemId = REWARDS_IDS[1];
- L2ItemInstance itemloser = new L2ItemInstance(IdFactory.getInstance().getNextId(), itemId);
- NpcHtmlMessage ShooterLoser = new NpcHtmlMessage(5);
- TextBuilder replyShooterLoser = new TextBuilder("<html><body scroll=\"no\"><title>Shot The Dog Event</title><table border=0 cellpadding=0 cellspacing=0 width=292 height=358 background=\"L2UI_CH3.refinewnd_back_Pattern\"><tr><td valign=\"top\" align=\"center\"><br><font color=\"LEVEL\">Shot The Dog Event</font><br>");
- if (Config.SHOOTER_EVENT_ENABLE_REWARD_LOSER)
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- replyShooterLoser.append("<table border=0 cellpadding=0 cellspacing=2><tr><td align=center>¡Evento Finalizado!<br1><font color=\"LEVEL\">¡Lástima, tu equipo ha perdido!</font><br><br> Premio de consolación:<br1> <font color=\"LEVEL\">" + Config.SHOOTER_EVENT_REWARD_QUANT_LOSER + "</font> unidades de <font color=\"LEVEL\">" + itemloser.getItemName() + "</font>.<br>Durante los siguientes " + (Config.SHOOTER_EVENT_STADISTICS_TIME / 60000) + " minuto(s) podrás ver<br1> las puntuaciones del Evento.<br></td></tr></table><br>");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- replyShooterLoser.append("<table border=0 cellpadding=0 cellspacing=2><tr><td align=center>Event Ended!<br1><font color=\"LEVEL\">So sad, your team has lost!</font><br><br> Consolation reward:<br1> <font color=\"LEVEL\">" + Config.SHOOTER_EVENT_REWARD_QUANT_LOSER + "</font> of <font color=\"LEVEL\">" + itemloser.getItemName() + "</font>.<br>During the following " + (Config.SHOOTER_EVENT_STADISTICS_TIME / 60000) + " minut(s) you could see <br1> the Event Score.<br></td></tr></table><br>");
- }
- }
- else
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- replyShooterLoser.append("<table border=0 cellpadding=0 cellspacing=2><tr><td align=center>¡Evento Finalizado! <br1><font color=\"LEVEL\">¡Lástima, tu equipo ha perdido!</font><br>Durante los siguientes " + (Config.SHOOTER_EVENT_STADISTICS_TIME / 60000) + " minuto(s) podrás ver<br1> las puntuaciones del Evento.<br></td></tr></table><br>");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- replyShooterLoser.append("<table border=0 cellpadding=0 cellspacing=2><tr><td align=center>Event Ended! <br1><font color=\"LEVEL\">So sad, your team has lost!</font><br>During the following " + (Config.SHOOTER_EVENT_STADISTICS_TIME / 60000) + " minut(s) you could see <br1> the Event Score.<br></td></tr></table><br>");
- }
- }
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- replyShooterLoser.append("<table border=0 cellpadding=0 cellspacing=2><tr><td align=center>Para ver las puntuaciones acude a " + InscriptionNpc[0].getName() + " <br1>en " + MapRegionManager.getInstance().getClosestTownName(InscriptionNpc[0]) + ", " + MapRegionManager.getInstance().getClosestTownName(InscriptionNpc[1]) + "<br1>y " + MapRegionManager.getInstance().getClosestTownName(InscriptionNpc[2]) + ", o con el comando .score_STD<br>¡Gracias por participar!<br></td></tr></table></td></tr></table></body></html>");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- replyShooterLoser.append("<table border=0 cellpadding=0 cellspacing=2><tr><td align=center>To see the scores go to " + InscriptionNpc[0].getName() + " <br1>in " + MapRegionManager.getInstance().getClosestTownName(InscriptionNpc[0]) + ", " + MapRegionManager.getInstance().getClosestTownName(InscriptionNpc[1]) + "<br1>and " + MapRegionManager.getInstance().getClosestTownName(InscriptionNpc[2]) + ", or using <br1>the command .score_STD<br>Thanks for playing!<br></td></tr></table></td></tr></table></body></html>");
- }
- ShooterLoser.setHtml(replyShooterLoser.toString());
- activeChar.sendPacket(ShooterLoser);
- }
- public void showShooterTieHtml(L2PcInstance activeChar)
- {
- int itemId;
- itemId = REWARDS_IDS[2];
- L2ItemInstance itemtie = new L2ItemInstance(IdFactory.getInstance().getNextId(), itemId);
- NpcHtmlMessage ShooterTie = new NpcHtmlMessage(5);
- TextBuilder replyShooterTie = new TextBuilder("<html><body scroll=\"no\"><title>Shot The Dog Event</title><table border=0 cellpadding=0 cellspacing=0 width=292 height=358 background=\"L2UI_CH3.refinewnd_back_Pattern\"><tr><td valign=\"top\" align=\"center\"><br><font color=\"LEVEL\">Shot The Dog Event</font><br>");
- if (Config.SHOOTER_EVENT_ENABLE_REWARD_TIE)
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- replyShooterTie.append("<table border=0 cellpadding=0 cellspacing=2><tr><td align=center>¡Evento Finalizado!<br1><font color=\"LEVEL\">¡Los equipos han empatado!</font><br><br> Premio por participar:<br1> <font color=\"LEVEL\">" + Config.SHOOTER_EVENT_REWARD_QUANT_TIE + "</font> unidades de <font color=\"LEVEL\">" + itemtie.getItemName() + "</font>.<br>Durante los siguientes " + (Config.SHOOTER_EVENT_STADISTICS_TIME / 60000) + " minuto(s) podrás ver<br1> las puntuaciones del Evento.<br></td></tr></table><br>");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- replyShooterTie.append("<table border=0 cellpadding=0 cellspacing=2><tr><td align=center>Event Ended!<br1><font color=\"LEVEL\">The teams are tied!</font><br><br> Reward for playing:<br1> <font color=\"LEVEL\">" + Config.SHOOTER_EVENT_REWARD_QUANT_TIE + "</font> unidades de <font color=\"LEVEL\">" + itemtie.getItemName() + "</font>.<br>During the following " + (Config.SHOOTER_EVENT_STADISTICS_TIME / 60000) + " minut(s) you could see <br1> the Event Score.<br></td></tr></table><br>");
- }
- }
- else
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- replyShooterTie.append("<table border=0 cellpadding=0 cellspacing=2><tr><td align=center>¡Evento Finalizado!<br1><font color=\"LEVEL\">¡Los equipos han empatado!</font><br>Durante los siguientes " + (Config.SHOOTER_EVENT_STADISTICS_TIME / 60000) + " minuto(s) podrás ver<br1> las puntuaciones del Evento.<br></td></tr></table><br>");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- replyShooterTie.append("<table border=0 cellpadding=0 cellspacing=2><tr><td align=center>Event Ended!<br1><font color=\"LEVEL\">The teams are tied!</font><br>During the following " + (Config.SHOOTER_EVENT_STADISTICS_TIME / 60000) + " minut(s) you could see <br1> the Event Score.<br></td></tr></table><br>");
- }
- }
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- replyShooterTie.append("<table border=0 cellpadding=0 cellspacing=2><tr><td align=center>Para ver las puntuaciones acude a " + InscriptionNpc[0].getName() + " <br1>en " + MapRegionManager.getInstance().getClosestTownName(InscriptionNpc[0]) + ", " + MapRegionManager.getInstance().getClosestTownName(InscriptionNpc[1]) + " <br1> y " + MapRegionManager.getInstance().getClosestTownName(InscriptionNpc[2]) + ", o con el comando .score_STD<br>¡Gracias por participar!<br></td></tr></table></td></tr></table></body></html>");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- replyShooterTie.append("<table border=0 cellpadding=0 cellspacing=2><tr><td align=center>To see the scores go to " + InscriptionNpc[0].getName() + " <br1>in " + MapRegionManager.getInstance().getClosestTownName(InscriptionNpc[0]) + ", " + MapRegionManager.getInstance().getClosestTownName(InscriptionNpc[1]) + "<br1>and " + MapRegionManager.getInstance().getClosestTownName(InscriptionNpc[2]) + ", or using <br1>the command .score_STD<br> Thanks for playing!<br></td></tr></table></td></tr></table></body></html>");
- }
- ShooterTie.setHtml(replyShooterTie.toString());
- activeChar.sendPacket(ShooterTie);
- }
- public static void showShooterFeaturesMenu(L2PcInstance activeChar)
- {
- int itemId;
- NpcHtmlMessage ShooterFeatures = new NpcHtmlMessage(5);
- TextBuilder replyShooterFeatures = new TextBuilder("<html><body><title>Shot The Dog Event</title><table border=0 cellpadding=0 cellspacing=0 width=275 height=358 background=\"L2UI_CH3.refinewnd_back_Pattern\"><tr><td valign=\"top\" align=\"center\"><br><font color=\"LEVEL\">Shot The Dog Event</font><br>");
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- replyShooterFeatures.append("<table border=0 cellpadding=0 cellspacing=2><tr><td align=center>Estas son las características del Evento:<br></td></tr></table><br1>");
- if (Config.SHOOTER_EVENT_LEVEL_LIMIT)
- {
- replyShooterFeatures.append("<table border=0 cellpadding=0 cellspacing=2><tr><td align=center>Level Min-Max permitido: <font color=\"LEVEL\">" + Config.SHOOTER_EVENT_LEVEL_LIMIT_MIN + " - " + Config.SHOOTER_EVENT_LEVEL_LIMIT_MAX + "</font></td></tr></table><br1>");
- }
- replyShooterFeatures.append("<table border=0 cellpadding=0 cellspacing=2><tr><td align=center>Capacidad Máxima de Jugadores: <font color=\"LEVEL\">" + Config.SHOOTER_EVENT_PARTICIPANTS_MAX_TOTAL + "</font></td></tr></table><br1>");
- replyShooterFeatures.append("<table border=0 cellpadding=0 cellspacing=2><tr><td align=center>Capacidad Mínima de Jugadores: <font color=\"LEVEL\">" + Config.SHOOTER_EVENT_PARTICIPANTS_MIN + "</font></td></tr></table><br1>");
- replyShooterFeatures.append("<table border=0 cellpadding=0 cellspacing=2><tr><td align=center>Instances Multiples activas: ");
- if (Config.SHOOTER_EVENT_MULTIPLE_INSTANCE)
- {
- replyShooterFeatures.append("<font color=\"LEVEL\">Activado</font></td></tr></table><br1>");
- replyShooterFeatures.append("<table border=0 cellpadding=0 cellspacing=2><tr><td align=center>Capacidad Máxima de Jugadores por Instance: <font color=\"LEVEL\">" + Config.SHOOTER_EVENT_PARTICIPANTS_MAX_INSTANCE + "</font></td></tr></table><br1>");
- }
- else
- {
- replyShooterFeatures.append("<font color=\"LEVEL\">Desactivado</font></td></tr></table><br1>");
- }
- itemId = REWARDS_IDS[0];
- L2ItemInstance itemwinner = new L2ItemInstance(IdFactory.getInstance().getNextId(), itemId);
- replyShooterFeatures.append("<table border=0 cellpadding=0 cellspacing=2><tr><td align=center>Premio ganadores: <font color=\"LEVEL\">" + Config.SHOOTER_EVENT_REWARD_QUANT + "</font> unidades de <font color=\"LEVEL\">" + itemwinner.getItemName() + "</font></td></tr></table><br1>");
- if (Config.SHOOTER_EVENT_ENABLE_REWARD_LOSER)
- {
- itemId = REWARDS_IDS[1];
- L2ItemInstance itemloser = new L2ItemInstance(IdFactory.getInstance().getNextId(), itemId);
- replyShooterFeatures.append("<table border=0 cellpadding=0 cellspacing=2><tr><td align=center>Premio para perdedores: <font color=\"LEVEL\">" + Config.SHOOTER_EVENT_REWARD_QUANT_LOSER + "</font> unidades de <font color=\"LEVEL\">" + itemloser.getItemName() + "</font></td></tr></table><br1>");
- }
- if (Config.SHOOTER_EVENT_ENABLE_REWARD_TIE)
- {
- itemId = REWARDS_IDS[2];
- L2ItemInstance itemtie = new L2ItemInstance(IdFactory.getInstance().getNextId(), itemId);
- replyShooterFeatures.append("<table border=0 cellpadding=0 cellspacing=2><tr><td align=center>En caso de empate: <font color=\"LEVEL\">" + Config.SHOOTER_EVENT_REWARD_QUANT_TIE + "</font> unidades de <font color=\"LEVEL\">" + itemtie.getItemName() + "</font></td></tr></table><br1>");
- }
- replyShooterFeatures.append("<table border=0 cellpadding=0 cellspacing=2><tr><td align=center>Tiempo de Inscripción: <font color=\"LEVEL\">" + (Config.SHOOTER_EVENT_INSCRIPTION_TIME / 60000) + "</font> minuto(s).</td></tr></table><br1>");
- replyShooterFeatures.append("<table border=0 cellpadding=0 cellspacing=2><tr><td align=center>Tiempo de Preparación: <font color=\"LEVEL\">" + (Config.SHOOTER_EVENT_PREPARATION_TIME / 1000) + "</font> segundo(s)</td></tr></table><br1>");
- replyShooterFeatures.append("<table border=0 cellpadding=0 cellspacing=2><tr><td align=center>Tiempo de Batalla: <font color=\"LEVEL\">" + (Config.SHOOTER_EVENT_PROCESS_TIME / 60000) + "</font> minuto(s).</td></tr></table><br1>");
- replyShooterFeatures.append("<table border=0 cellpadding=0 cellspacing=2><tr><td align=center>Tiempo de Vis. de Puntuaciones: <font color=\"LEVEL\">" + (Config.SHOOTER_EVENT_STADISTICS_TIME / 60000) + "</font> minuto(s).</td></tr></table><br1>");
- replyShooterFeatures.append("<table border=0 cellpadding=0 cellspacing=2><tr><td align=center>Fuego amigo: ");
- if (Config.SHOOTER_EVENT_FIRE_FRIEND)
- {
- replyShooterFeatures.append("<font color=\"LEVEL\">Activado</font></td></tr></table><br1>");
- }
- else
- {
- replyShooterFeatures.append("<font color=\"LEVEL\">Desactivado</font></td></tr></table><br1>");
- }
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- replyShooterFeatures.append("<table border=0 cellpadding=0 cellspacing=2><tr><td align=center>Features of the Event:<br></td></tr></table><br1>");
- if (Config.SHOOTER_EVENT_LEVEL_LIMIT)
- {
- replyShooterFeatures.append("<table border=0 cellpadding=0 cellspacing=2><tr><td align=center>Level Min-Max allowed: <font color=\"LEVEL\">" + Config.SHOOTER_EVENT_LEVEL_LIMIT_MIN + " - " + Config.SHOOTER_EVENT_LEVEL_LIMIT_MAX + "</font></td></tr></table><br1>");
- }
- replyShooterFeatures.append("<table border=0 cellpadding=0 cellspacing=2><tr><td align=center>Max number of players: <font color=\"LEVEL\">" + Config.SHOOTER_EVENT_PARTICIPANTS_MAX_TOTAL + "</font></td></tr></table><br1>");
- replyShooterFeatures.append("<table border=0 cellpadding=0 cellspacing=2><tr><td align=center>Min number of players: <font color=\"LEVEL\">" + Config.SHOOTER_EVENT_PARTICIPANTS_MIN + "</font></td></tr></table><br1>");
- replyShooterFeatures.append("<table border=0 cellpadding=0 cellspacing=2><tr><td align=center>Multiple Instance Mode: ");
- if (Config.SHOOTER_EVENT_MULTIPLE_INSTANCE)
- {
- replyShooterFeatures.append("<font color=\"LEVEL\">Activated</font></td></tr></table><br1>");
- replyShooterFeatures.append("<table border=0 cellpadding=0 cellspacing=2><tr><td align=center>Max number of players/instance: <font color=\"LEVEL\">" + Config.SHOOTER_EVENT_PARTICIPANTS_MAX_INSTANCE + "</font></td></tr></table><br1>");
- }
- else
- {
- replyShooterFeatures.append("<font color=\"LEVEL\">Deactivated</font></td></tr></table><br1>");
- }
- itemId = REWARDS_IDS[0];
- L2ItemInstance itemwinner = new L2ItemInstance(IdFactory.getInstance().getNextId(), itemId);
- replyShooterFeatures.append("<table border=0 cellpadding=0 cellspacing=2><tr><td align=center>Reward for winners: <font color=\"LEVEL\">" + Config.SHOOTER_EVENT_REWARD_QUANT + "</font> of <font color=\"LEVEL\">" + itemwinner.getItemName() + "</font></td></tr></table><br1>");
- if (Config.SHOOTER_EVENT_ENABLE_REWARD_LOSER)
- {
- itemId = REWARDS_IDS[1];
- L2ItemInstance itemloser = new L2ItemInstance(IdFactory.getInstance().getNextId(), itemId);
- replyShooterFeatures.append("<table border=0 cellpadding=0 cellspacing=2><tr><td align=center>Reward for losers: <font color=\"LEVEL\">" + Config.SHOOTER_EVENT_REWARD_QUANT_LOSER + "</font> of <font color=\"LEVEL\">" + itemloser.getItemName() + "</font></td></tr></table><br1>");
- }
- if (Config.SHOOTER_EVENT_ENABLE_REWARD_TIE)
- {
- itemId = REWARDS_IDS[2];
- L2ItemInstance itemtie = new L2ItemInstance(IdFactory.getInstance().getNextId(), itemId);
- replyShooterFeatures.append("<table border=0 cellpadding=0 cellspacing=2><tr><td align=center>Reward in tie: <font color=\"LEVEL\">" + Config.SHOOTER_EVENT_REWARD_QUANT_TIE + "</font> of <font color=\"LEVEL\">" + itemtie.getItemName() + "</font></td></tr></table><br1>");
- }
- replyShooterFeatures.append("<table border=0 cellpadding=0 cellspacing=2><tr><td align=center>Inscription Period: <font color=\"LEVEL\">" + (Config.SHOOTER_EVENT_INSCRIPTION_TIME / 60000) + "</font> minut(s).</td></tr></table><br1>");
- replyShooterFeatures.append("<table border=0 cellpadding=0 cellspacing=2><tr><td align=center>Preparation Period: <font color=\"LEVEL\">" + (Config.SHOOTER_EVENT_PREPARATION_TIME / 1000) + "</font> second(s)</td></tr></table><br1>");
- replyShooterFeatures.append("<table border=0 cellpadding=0 cellspacing=2><tr><td align=center>Fight Period: <font color=\"LEVEL\">" + (Config.SHOOTER_EVENT_PROCESS_TIME / 60000) + "</font> minut(s).</td></tr></table><br1>");
- replyShooterFeatures.append("<table border=0 cellpadding=0 cellspacing=2><tr><td align=center>Score View Period: <font color=\"LEVEL\">" + (Config.SHOOTER_EVENT_STADISTICS_TIME / 60000) + "</font> minut(s).</td></tr></table><br1>");
- replyShooterFeatures.append("<table border=0 cellpadding=0 cellspacing=2><tr><td align=center>Fire friend: ");
- if (Config.SHOOTER_EVENT_FIRE_FRIEND)
- {
- replyShooterFeatures.append("<font color=\"LEVEL\">Activated</font></td></tr></table><br1>");
- }
- else
- {
- replyShooterFeatures.append("<font color=\"LEVEL\">Deactivated</font></td></tr></table><br1>");
- }
- }
- replyShooterFeatures.append("</td></tr></table></body></html>");
- ShooterFeatures.setHtml(replyShooterFeatures.toString());
- activeChar.sendPacket(ShooterFeatures);
- }
- public void showShooterObserverMenu(L2PcInstance activeChar)
- {
- NpcHtmlMessage ShooterObserver = new NpcHtmlMessage(5);
- TextBuilder replyShooterObserver = new TextBuilder("<html><body><title>Shot The Dog Event</title><table border=0 cellpadding=0 cellspacing=0 width=275 height=358 background=\"L2UI_CH3.refinewnd_back_Pattern\"><tr><td valign=\"top\" align=\"center\"><br><font color=\"LEVEL\">Shot The Dog Event</font><br>");
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- replyShooterObserver.append("<table border=0 cellpadding=0 cellspacing=2><tr><td align=center>¿Que Zona deseas observar?<br><br1> ");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- replyShooterObserver.append("<table border=0 cellpadding=0 cellspacing=2><tr><td align=center>What Zone do you want to view?<br><br1> ");
- }
- if (LaszloEventEngine.isInPeriodShooterEvent())
- {
- if (LaszloEventEngine.getShooterEventState() == 3)
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- replyShooterObserver.append("<table border=1 cellpadding=0 cellspacing=0 width=150 height=30><tr><td align=center valign=bottom width=150 height=30>Zona 1</td></tr></table>");
- replyShooterObserver.append("<table border=1 cellpadding=0 cellspacing=0 width=150 height=30><tr><td align=center valign=bottom width=150 height=30><button value=\"Observar\" action=\"bypass -h Quest STD ShooterObserver1\" width=150 height=30 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\"></td></tr></table><br1>");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- replyShooterObserver.append("<table border=1 cellpadding=0 cellspacing=0 width=150 height=30><tr><td align=center valign=bottom width=150 height=30>Zone 1</td></tr></table>");
- replyShooterObserver.append("<table border=1 cellpadding=0 cellspacing=0 width=150 height=30><tr><td align=center valign=bottom width=150 height=30><button value=\"View\" action=\"bypass -h Quest STD ShooterObserver1\" width=150 height=30 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\"></td></tr></table><br1>");
- }
- }
- if (LaszloEventEngine.isShooterEventInstancesSlot(0))
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- replyShooterObserver.append("<br1><table><tr><td><img src=\"L2UI.Squaregray\" width=\"240\" height=\"2\"></td></tr></table><br>");
- replyShooterObserver.append("<table border=1 cellpadding=0 cellspacing=0 width=150 height=30><tr><td align=center valign=bottom width=150 height=30>Zona 2</td></tr></table>");
- replyShooterObserver.append("<table border=1 cellpadding=0 cellspacing=0 width=150 height=30><tr><td align=center valign=bottom width=150 height=30><button value=\"Observar\" action=\"bypass -h Quest STD ShooterObserver2\" width=150 height=30 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\"></td></tr></table><br1>");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- replyShooterObserver.append("<br1><table><tr><td><img src=\"L2UI.Squaregray\" width=\"240\" height=\"2\"></td></tr></table><br>");
- replyShooterObserver.append("<table border=1 cellpadding=0 cellspacing=0 width=150 height=30><tr><td align=center valign=bottom width=150 height=30>Zone 2</td></tr></table>");
- replyShooterObserver.append("<table border=1 cellpadding=0 cellspacing=0 width=150 height=30><tr><td align=center valign=bottom width=150 height=30><button value=\"View\" action=\"bypass -h Quest STD ShooterObserver2\" width=150 height=30 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\"></td></tr></table><br1>");
- }
- }
- if (LaszloEventEngine.isShooterEventInstancesSlot(1))
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- replyShooterObserver.append("<br1><table><tr><td><img src=\"L2UI.Squaregray\" width=\"240\" height=\"2\"></td></tr></table><br>");
- replyShooterObserver.append("<table border=1 cellpadding=0 cellspacing=0 width=150 height=30><tr><td align=center valign=bottom width=150 height=30>Zona 3</td></tr></table>");
- replyShooterObserver.append("<table border=1 cellpadding=0 cellspacing=0 width=150 height=30><tr><td align=center valign=bottom width=150 height=30><button value=\"Observar\" action=\"bypass -h Quest STD ShooterObserver3\" width=150 height=30 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\"></td></tr></table><br1>");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- replyShooterObserver.append("<br1><table><tr><td><img src=\"L2UI.Squaregray\" width=\"240\" height=\"2\"></td></tr></table><br>");
- replyShooterObserver.append("<table border=1 cellpadding=0 cellspacing=0 width=150 height=30><tr><td align=center valign=bottom width=150 height=30>Zone 3</td></tr></table>");
- replyShooterObserver.append("<table border=1 cellpadding=0 cellspacing=0 width=150 height=30><tr><td align=center valign=bottom width=150 height=30><button value=\"View\" action=\"bypass -h Quest STD ShooterObserver3\" width=150 height=30 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\"></td></tr></table><br1>");
- }
- }
- if (LaszloEventEngine.isShooterEventInstancesSlot(2))
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- replyShooterObserver.append("<br1><table><tr><td><img src=\"L2UI.Squaregray\" width=\"240\" height=\"2\"></td></tr></table><br>");
- replyShooterObserver.append("<table border=1 cellpadding=0 cellspacing=0 width=150 height=30><tr><td align=center valign=bottom width=150 height=30>Zona 4</td></tr></table>");
- replyShooterObserver.append("<table border=1 cellpadding=0 cellspacing=0 width=150 height=30><tr><td align=center valign=bottom width=150 height=30><button value=\"Observar\" action=\"bypass -h Quest STD ShooterObserver4\" width=150 height=30 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\"></td></tr></table><br1>");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- replyShooterObserver.append("<br1><table><tr><td><img src=\"L2UI.Squaregray\" width=\"240\" height=\"2\"></td></tr></table><br>");
- replyShooterObserver.append("<table border=1 cellpadding=0 cellspacing=0 width=150 height=30><tr><td align=center valign=bottom width=150 height=30>Zone 4</td></tr></table>");
- replyShooterObserver.append("<table border=1 cellpadding=0 cellspacing=0 width=150 height=30><tr><td align=center valign=bottom width=150 height=30><button value=\"View\" action=\"bypass -h Quest STD ShooterObserver4\" width=150 height=30 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\"></td></tr></table><br1>");
- }
- }
- if (LaszloEventEngine.isShooterEventInstancesSlot(3))
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- replyShooterObserver.append("<br1><table><tr><td><img src=\"L2UI.Squaregray\" width=\"240\" height=\"2\"></td></tr></table><br>");
- replyShooterObserver.append("<table border=1 cellpadding=0 cellspacing=0 width=150 height=30><tr><td align=center valign=bottom width=150 height=30>Zona 5</td></tr></table>");
- replyShooterObserver.append("<table border=1 cellpadding=0 cellspacing=0 width=150 height=30><tr><td align=center valign=bottom width=150 height=30><button value=\"Observar\" action=\"bypass -h Quest STD ShooterObserver5\" width=150 height=30 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\"></td></tr></table><br1>");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- replyShooterObserver.append("<br1><table><tr><td><img src=\"L2UI.Squaregray\" width=\"240\" height=\"2\"></td></tr></table><br>");
- replyShooterObserver.append("<table border=1 cellpadding=0 cellspacing=0 width=150 height=30><tr><td align=center valign=bottom width=150 height=30>Zone 5</td></tr></table>");
- replyShooterObserver.append("<table border=1 cellpadding=0 cellspacing=0 width=150 height=30><tr><td align=center valign=bottom width=150 height=30><button value=\"View\" action=\"bypass -h Quest STD ShooterObserver5\" width=150 height=30 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\"></td></tr></table><br1>");
- }
- }
- }
- replyShooterObserver.append("</td></tr></table></body></html>");
- ShooterObserver.setHtml(replyShooterObserver.toString());
- activeChar.sendPacket(ShooterObserver);
- }
- public static void showShooterStadistics(L2PcInstance activeChar)
- {
- NpcHtmlMessage ShooterStadistics = new NpcHtmlMessage(5);
- TextBuilder replyShooterStadistics = new TextBuilder("<html><body><title>Shot The Dog Event</title><table border=0 cellpadding=0 cellspacing=0 width=275 height=358 background=\"L2UI_CH3.refinewnd_back_Pattern\"><tr><td valign=\"top\" align=\"center\"><br><font color=\"LEVEL\">Shot The Dog Event</font><br>");
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- replyShooterStadistics.append("<table border=0 cellpadding=0 cellspacing=2><tr><td align=center>Estado del Evento:<br1> ");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- replyShooterStadistics.append("<table border=0 cellpadding=0 cellspacing=2><tr><td align=center>Event State:<br1> ");
- }
- if (LaszloEventEngine.isInPeriodShooterEvent())
- {
- if (LaszloEventEngine.getShooterEventState() == 3)
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- replyShooterStadistics.append("- Periodo de Batalla</td></tr></table><br>");
- replyShooterStadistics.append("<table border=0 cellpadding=0 cellspacing=2><tr><td align=center>----- Estadisticas Actuales -----</td></tr></table><br>");
- replyShooterStadistics.append("<table border=1 cellpadding=0 cellspacing=0 width=240 height=90><tr><td align=center valign=bottom width=90 height=30>Zona 1</td><td align=center valign=bottom width=75 height=30>Equipo Rojo</td><td align=center valign=bottom width=75 height=30>Equipo Azul</td></tr>");
- replyShooterStadistics.append("<tr><td align=center valign=bottom width=90 height=30>Participantes</td><td align=center valign=bottom width=75 height=30>" + LaszloEventEngine.getShooterRedPartakerNum(0) + "</td><td align=center valign=bottom width=75 height=30>" + LaszloEventEngine.getShooterBluePartakerNum(0) + "</td></tr>");
- replyShooterStadistics.append("<tr><td align=center valign=bottom width=90 height=30>Puntuación</td><td align=center valign=bottom width=75 height=30>" + LaszloEventEngine.getShooterRedPoints(0) + "</td><td align=center valign=bottom width=75 height=30>" + LaszloEventEngine.getShooterBluePoints(0) + "</td></tr></table><br>");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- replyShooterStadistics.append("- Fight Period</td></tr></table><br>");
- replyShooterStadistics.append("<table border=0 cellpadding=0 cellspacing=2><tr><td align=center>----- Current Stadistics -----</td></tr></table><br>");
- replyShooterStadistics.append("<table border=1 cellpadding=0 cellspacing=0 width=240 height=90><tr><td align=center valign=bottom width=90 height=30>Zone 1</td><td align=center valign=bottom width=75 height=30>Red Team</td><td align=center valign=bottom width=75 height=30>Blue Team</td></tr>");
- replyShooterStadistics.append("<tr><td align=center valign=bottom width=90 height=30>Participants</td><td align=center valign=bottom width=75 height=30>" + LaszloEventEngine.getShooterRedPartakerNum(0) + "</td><td align=center valign=bottom width=75 height=30>" + LaszloEventEngine.getShooterBluePartakerNum(0) + "</td></tr>");
- replyShooterStadistics.append("<tr><td align=center valign=bottom width=90 height=30>Score</td><td align=center valign=bottom width=75 height=30>" + LaszloEventEngine.getShooterRedPoints(0) + "</td><td align=center valign=bottom width=75 height=30>" + LaszloEventEngine.getShooterBluePoints(0) + "</td></tr></table><br>");
- }
- for (int i = 0; i < 4; i++)
- {
- if (LaszloEventEngine.isShooterEventInstancesSlot(i))
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- replyShooterStadistics.append("<table border=1 cellpadding=0 cellspacing=0 width=240 height=90><tr><td align=center valign=bottom width=90 height=30>Zona " + (i + 2) + " </td><td align=center valign=bottom width=75 height=30>Equipo Rojo</td><td align=center valign=bottom width=75 height=30>Equipo Azul</td></tr>");
- replyShooterStadistics.append("<tr><td align=center valign=bottom width=90 height=30>Participantes</td><td align=center valign=bottom width=75 height=30>" + LaszloEventEngine.getShooterRedPartakerNum(i + 1) + "</td><td align=center valign=bottom width=75 height=30>" + LaszloEventEngine.getShooterBluePartakerNum(i + 1) + "</td></tr>");
- replyShooterStadistics.append("<tr><td align=center valign=bottom width=90 height=30>Puntuacion</td><td align=center valign=bottom width=75 height=30>" + LaszloEventEngine.getShooterRedPoints(i + 1) + "</td><td align=center valign=bottom width=75 height=30>" + LaszloEventEngine.getShooterBluePoints(i + 1) + "</td></tr></table><br>");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- replyShooterStadistics.append("<table border=1 cellpadding=0 cellspacing=0 width=240 height=90><tr><td align=center valign=bottom width=90 height=30>Zone " + (i + 2) + " </td><td align=center valign=bottom width=75 height=30>Red Team</td><td align=center valign=bottom width=75 height=30>Blue Team</td></tr>");
- replyShooterStadistics.append("<tr><td align=center valign=bottom width=90 height=30>Participants</td><td align=center valign=bottom width=75 height=30>" + LaszloEventEngine.getShooterRedPartakerNum(i + 1) + "</td><td align=center valign=bottom width=75 height=30>" + LaszloEventEngine.getShooterBluePartakerNum(i + 1) + "</td></tr>");
- replyShooterStadistics.append("<tr><td align=center valign=bottom width=90 height=30>Score</td><td align=center valign=bottom width=75 height=30>" + LaszloEventEngine.getShooterRedPoints(i + 1) + "</td><td align=center valign=bottom width=75 height=30>" + LaszloEventEngine.getShooterBluePoints(i + 1) + "</td></tr></table><br>");
- }
- }
- }
- }
- else if (LaszloEventEngine.getShooterEventState() == 4)
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- replyShooterStadistics.append("- Periodo de Entrega del Premio</td></tr></table><br>");
- if ((activeChar.getMatrixStadisticsShooterEvent(0) != 0) || (activeChar.getMatrixStadisticsShooterEvent(1) != 0) || (activeChar.getMatrixStadisticsShooterEvent(2) != 0) || (activeChar.getMatrixStadisticsShooterEvent(3) != 0) || (activeChar.getMatrixStadisticsShooterEvent(4) != 0) || (activeChar.getMatrixStadisticsShooterEvent(5) != 0) || (activeChar.getMatrixStadisticsShooterEvent(6) != 0) || (activeChar.getMatrixStadisticsShooterEvent(7) != 0))
- {
- replyShooterStadistics.append("<table border=0 cellpadding=0 cellspacing=2><tr><td align=center>-------- Estadisticas Personales --------</td></tr></table><br>");
- replyShooterStadistics.append("<table border=0 cellpadding=0 cellspacing=0><tr><td align=center>Nombre del Jugador: " + activeChar.getName() + "</td></tr></table><br1>");
- }
- if (activeChar.getMatrixStadisticsShooterEvent(1) != 0)
- {
- replyShooterStadistics.append("<table border=0 cellpadding=0 cellspacing=0><tr><td align=center>Veces Asesinado: " + activeChar.getMatrixStadisticsShooterEvent(1) + "</td></tr></table><br1>");
- }
- if (activeChar.getMatrixStadisticsShooterEvent(0) != 0)
- {
- replyShooterStadistics.append("<table border=0 cellpadding=0 cellspacing=0><tr><td align=center>Jugadores Asesinados: " + activeChar.getMatrixStadisticsShooterEvent(0) + "</td></tr></table><br1>");
- }
- if (activeChar.getMatrixStadisticsShooterEvent(2) != 0)
- {
- replyShooterStadistics.append("<table border=0 cellpadding=0 cellspacing=0><tr><td align=center>Mayor Racha: " + activeChar.getMatrixStadisticsShooterEvent(2) + "</td></tr></table><br1>");
- }
- if (activeChar.getMatrixStadisticsShooterEvent(3) != 0)
- {
- replyShooterStadistics.append("<table border=0 cellpadding=0 cellspacing=0><tr><td align=center>Bombas plantadas: " + activeChar.getMatrixStadisticsShooterEvent(3) + "</td></tr></table><br1>");
- }
- if (activeChar.getMatrixStadisticsShooterEvent(4) != 0)
- {
- replyShooterStadistics.append("<table border=0 cellpadding=0 cellspacing=0><tr><td align=center>Bombas desactivadas: " + activeChar.getMatrixStadisticsShooterEvent(4) + "</td></tr></table><br1>");
- }
- if (activeChar.getMatrixStadisticsShooterEvent(5) != 0)
- {
- replyShooterStadistics.append("<table border=0 cellpadding=0 cellspacing=0><tr><td align=center>Dinero acumulado total: " + activeChar.getMatrixStadisticsShooterEvent(5) + "</td></tr></table><br1>");
- }
- if (activeChar.getMatrixStadisticsShooterEvent(6) != 0)
- {
- replyShooterStadistics.append("<table border=0 cellpadding=0 cellspacing=0><tr><td align=center>Dinero gastado total: " + activeChar.getMatrixStadisticsShooterEvent(6) + "</td></tr></table><br1>");
- }
- if (activeChar.getMatrixStadisticsShooterEvent(7) != 0)
- {
- replyShooterStadistics.append("<table border=0 cellpadding=0 cellspacing=0><tr><td align=center>Armas robadas: " + activeChar.getMatrixStadisticsShooterEvent(7) + "</td></tr></table><br1>");
- }
- replyShooterStadistics.append("<br><table border=0 cellpadding=0 cellspacing=2><tr><td align=center>-------- Estadisticas Finales --------</td></tr></table><br>");
- replyShooterStadistics.append("<table border=1 cellpadding=0 cellspacing=0 width=240 height=90><tr><td align=center valign=bottom width=90 height=30>Zona 1</td><td align=center valign=bottom width=75 height=30>Equipo Rojo</td><td align=center valign=bottom width=75 height=30>Equipo Azul</td></tr>");
- replyShooterStadistics.append("<tr><td align=center valign=bottom width=90 height=30>Participantes</td><td align=center valign=bottom width=75 height=30>" + LaszloEventEngine.getShooterRedPartakerNum(0) + "</td><td align=center valign=bottom width=75 height=30>" + LaszloEventEngine.getShooterBluePartakerNum(0) + "</td></tr>");
- replyShooterStadistics.append("<tr><td align=center valign=bottom width=90 height=30>Puntuacion</td><td align=center valign=bottom width=75 height=30>" + LaszloEventEngine.getShooterRedPoints(0) + "</td><td align=center valign=bottom width=75 height=30>" + LaszloEventEngine.getShooterBluePoints(0) + "</td></tr></table>");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- replyShooterStadistics.append("- Reward and Score View Period</td></tr></table><br>");
- if ((activeChar.getMatrixStadisticsShooterEvent(0) != 0) || (activeChar.getMatrixStadisticsShooterEvent(1) != 0) || (activeChar.getMatrixStadisticsShooterEvent(2) != 0) || (activeChar.getMatrixStadisticsShooterEvent(3) != 0) || (activeChar.getMatrixStadisticsShooterEvent(4) != 0) || (activeChar.getMatrixStadisticsShooterEvent(5) != 0) || (activeChar.getMatrixStadisticsShooterEvent(6) != 0) || (activeChar.getMatrixStadisticsShooterEvent(7) != 0))
- {
- replyShooterStadistics.append("<table border=0 cellpadding=0 cellspacing=2><tr><td align=center>-------- Personal Score --------</td></tr></table><br>");
- replyShooterStadistics.append("<table border=0 cellpadding=0 cellspacing=0><tr><td align=center>Player name: " + activeChar.getName() + "</td></tr></table><br1>");
- }
- if (activeChar.getMatrixStadisticsShooterEvent(1) != 0)
- {
- replyShooterStadistics.append("<table border=0 cellpadding=0 cellspacing=0><tr><td align=center>Times dead: " + activeChar.getMatrixStadisticsShooterEvent(1) + "</td></tr></table><br1>");
- }
- if (activeChar.getMatrixStadisticsShooterEvent(0) != 0)
- {
- replyShooterStadistics.append("<table border=0 cellpadding=0 cellspacing=0><tr><td align=center>Players killed: " + activeChar.getMatrixStadisticsShooterEvent(0) + "</td></tr></table><br1>");
- }
- if (activeChar.getMatrixStadisticsShooterEvent(2) != 0)
- {
- replyShooterStadistics.append("<table border=0 cellpadding=0 cellspacing=0><tr><td align=center>High kill strike: " + activeChar.getMatrixStadisticsShooterEvent(2) + "</td></tr></table><br1>");
- }
- if (activeChar.getMatrixStadisticsShooterEvent(3) != 0)
- {
- replyShooterStadistics.append("<table border=0 cellpadding=0 cellspacing=0><tr><td align=center>Bombs planted: " + activeChar.getMatrixStadisticsShooterEvent(3) + "</td></tr></table><br1>");
- }
- if (activeChar.getMatrixStadisticsShooterEvent(4) != 0)
- {
- replyShooterStadistics.append("<table border=0 cellpadding=0 cellspacing=0><tr><td align=center>Bombs deactivated: " + activeChar.getMatrixStadisticsShooterEvent(4) + "</td></tr></table><br1>");
- }
- if (activeChar.getMatrixStadisticsShooterEvent(5) != 0)
- {
- replyShooterStadistics.append("<table border=0 cellpadding=0 cellspacing=0><tr><td align=center>Dollars acumulated: " + activeChar.getMatrixStadisticsShooterEvent(5) + "</td></tr></table><br1>");
- }
- if (activeChar.getMatrixStadisticsShooterEvent(6) != 0)
- {
- replyShooterStadistics.append("<table border=0 cellpadding=0 cellspacing=0><tr><td align=center>Dollars spent: " + activeChar.getMatrixStadisticsShooterEvent(6) + "</td></tr></table><br1>");
- }
- if (activeChar.getMatrixStadisticsShooterEvent(7) != 0)
- {
- replyShooterStadistics.append("<table border=0 cellpadding=0 cellspacing=0><tr><td align=center>Weapons stolen: " + activeChar.getMatrixStadisticsShooterEvent(7) + "</td></tr></table><br1>");
- }
- replyShooterStadistics.append("<br><table border=0 cellpadding=0 cellspacing=2><tr><td align=center>-------- Final Stadistics --------</td></tr></table><br>");
- replyShooterStadistics.append("<table border=1 cellpadding=0 cellspacing=0 width=240 height=90><tr><td align=center valign=bottom width=90 height=30>Zone 1</td><td align=center valign=bottom width=75 height=30>Red Team</td><td align=center valign=bottom width=75 height=30>Blue Team</td></tr>");
- replyShooterStadistics.append("<tr><td align=center valign=bottom width=90 height=30>participants</td><td align=center valign=bottom width=75 height=30>" + LaszloEventEngine.getShooterRedPartakerNum(0) + "</td><td align=center valign=bottom width=75 height=30>" + LaszloEventEngine.getShooterBluePartakerNum(0) + "</td></tr>");
- replyShooterStadistics.append("<tr><td align=center valign=bottom width=90 height=30>Score</td><td align=center valign=bottom width=75 height=30>" + LaszloEventEngine.getShooterRedPoints(0) + "</td><td align=center valign=bottom width=75 height=30>" + LaszloEventEngine.getShooterBluePoints(0) + "</td></tr></table>");
- }
- for (int i = 0; i <= Config.SHOOTER_EVENT_PARTICIPANTS_MAX_INSTANCE; i++)
- {
- for (int j = 0; j < 8; j++)
- {
- if (LaszloEventEngine.getCalculateStadisticsPoints(0, i, (j + 1)) > PointStadisticNum[0][j])
- {
- PointStadisticNum[0][j] = LaszloEventEngine.getCalculateStadisticsPoints(0, i, (j + 1));
- PointStadisticId[0][j] = LaszloEventEngine.getCalculateStadisticsPoints(0, i, 0);
- }
- }
- }
- if (PointStadisticNum[0][0] != 0) // Lee Asesino
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- replyShooterStadistics.append("<table border=2 cellpadding=0 cellspacing=0 width=240 height=30><tr><td align=center valign=bottom width=240 height=30><font color=\"LEVEL\">El Asesino</font>: Mas muertes causadas</td></tr></table>");
- replyShooterStadistics.append("<table border=1 cellpadding=0 cellspacing=0 width=240 height=30><tr><td align=center valign=bottom width=180 height=30>" + CharNameTable.getInstance().getNameById(PointStadisticId[0][0]) + "</td><td align=center valign=bottom width=60 height=30> " + PointStadisticNum[0][0] + " </td></tr></table>");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- replyShooterStadistics.append("<table border=2 cellpadding=0 cellspacing=0 width=240 height=30><tr><td align=center valign=bottom width=240 height=30><font color=\"LEVEL\">The Assassin</font>: More deaths caused</td></tr></table>");
- replyShooterStadistics.append("<table border=1 cellpadding=0 cellspacing=0 width=240 height=30><tr><td align=center valign=bottom width=180 height=30>" + CharNameTable.getInstance().getNameById(PointStadisticId[0][0]) + "</td><td align=center valign=bottom width=60 height=30> " + PointStadisticNum[0][0] + " </td></tr></table>");
- }
- }
- if (PointStadisticNum[0][1] != 0) // Lee Victima
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- replyShooterStadistics.append("<table border=2 cellpadding=0 cellspacing=0 width=240 height=30><tr><td align=center valign=bottom width=240 height=30><font color=\"LEVEL\">La Víctima</font>: Mas veces asesinado</td></tr></table>");
- replyShooterStadistics.append("<table border=1 cellpadding=0 cellspacing=0 width=240 height=30><tr><td align=center valign=bottom width=180 height=30>" + CharNameTable.getInstance().getNameById(PointStadisticId[0][1]) + "</td><td align=center valign=bottom width=60 height=30> " + PointStadisticNum[0][1] + "</td></tr></table>");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- replyShooterStadistics.append("<table border=2 cellpadding=0 cellspacing=0 width=240 height=30><tr><td align=center valign=bottom width=240 height=30><font color=\"LEVEL\">The Victim</font>: More tiems dead</td></tr></table>");
- replyShooterStadistics.append("<table border=1 cellpadding=0 cellspacing=0 width=240 height=30><tr><td align=center valign=bottom width=180 height=30>" + CharNameTable.getInstance().getNameById(PointStadisticId[0][1]) + "</td><td align=center valign=bottom width=60 height=30> " + PointStadisticNum[0][1] + "</td></tr></table>");
- }
- }
- if (PointStadisticNum[0][2] != 0) // Lee Berserker
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- replyShooterStadistics.append("<table border=2 cellpadding=0 cellspacing=0 width=240 height=30><tr><td align=center valign=bottom width=240 height=30><font color=\"LEVEL\">El Berserker</font>: Mayor racha de muertes</td></tr></table>");
- replyShooterStadistics.append("<table border=1 cellpadding=0 cellspacing=0 width=240 height=30><tr><td align=center valign=bottom width=180 height=30>" + CharNameTable.getInstance().getNameById(PointStadisticId[0][2]) + "</td><td align=center valign=bottom width=60 height=30> " + PointStadisticNum[0][2] + " </td></tr></table>");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- replyShooterStadistics.append("<table border=2 cellpadding=0 cellspacing=0 width=240 height=30><tr><td align=center valign=bottom width=240 height=30><font color=\"LEVEL\">The Berserker</font>: More kills streak</td></tr></table>");
- replyShooterStadistics.append("<table border=1 cellpadding=0 cellspacing=0 width=240 height=30><tr><td align=center valign=bottom width=180 height=30>" + CharNameTable.getInstance().getNameById(PointStadisticId[0][2]) + "</td><td align=center valign=bottom width=60 height=30> " + PointStadisticNum[0][2] + " </td></tr></table>");
- }
- }
- if (PointStadisticNum[0][3] != 0) // Lee Bomberman
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- replyShooterStadistics.append("<table border=2 cellpadding=0 cellspacing=0 width=240 height=30><tr><td align=center valign=bottom width=240 height=30><font color=\"LEVEL\">Bomberman</font>: Mas bombas colocadas</td></tr></table>");
- replyShooterStadistics.append("<table border=1 cellpadding=0 cellspacing=0 width=240 height=30><tr><td align=center valign=bottom width=180 height=30>" + CharNameTable.getInstance().getNameById(PointStadisticId[0][3]) + "</td><td align=center valign=bottom width=60 height=30> " + PointStadisticNum[0][3] + " </td></tr></table>");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- replyShooterStadistics.append("<table border=2 cellpadding=0 cellspacing=0 width=240 height=30><tr><td align=center valign=bottom width=240 height=30><font color=\"LEVEL\">Bomberman</font>: More bombs planted</td></tr></table>");
- replyShooterStadistics.append("<table border=1 cellpadding=0 cellspacing=0 width=240 height=30><tr><td align=center valign=bottom width=180 height=30>" + CharNameTable.getInstance().getNameById(PointStadisticId[0][3]) + "</td><td align=center valign=bottom width=60 height=30> " + PointStadisticNum[0][3] + " </td></tr></table>");
- }
- }
- if (PointStadisticNum[0][4] != 0) // Lee Artificiero
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- replyShooterStadistics.append("<table border=2 cellpadding=0 cellspacing=0 width=240 height=30><tr><td align=center valign=bottom width=240 height=30><font color=\"LEVEL\">El Artificiero</font>: Mas bombas desactivadas</td></tr></table>");
- replyShooterStadistics.append("<table border=1 cellpadding=0 cellspacing=0 width=240 height=30><tr><td align=center valign=bottom width=180 height=30>" + CharNameTable.getInstance().getNameById(PointStadisticId[0][4]) + "</td><td align=center valign=bottom width=60 height=30> " + PointStadisticNum[0][4] + " </td></tr></table>");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- replyShooterStadistics.append("<table border=2 cellpadding=0 cellspacing=0 width=240 height=30><tr><td align=center valign=bottom width=240 height=30><font color=\"LEVEL\">The Deactivator</font>: More bombs deactivated</td></tr></table>");
- replyShooterStadistics.append("<table border=1 cellpadding=0 cellspacing=0 width=240 height=30><tr><td align=center valign=bottom width=180 height=30>" + CharNameTable.getInstance().getNameById(PointStadisticId[0][4]) + "</td><td align=center valign=bottom width=60 height=30> " + PointStadisticNum[0][4] + " </td></tr></table>");
- }
- }
- if (PointStadisticNum[0][5] != 0) // Lee Sr. Burns
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- replyShooterStadistics.append("<table border=2 cellpadding=0 cellspacing=0 width=240 height=30><tr><td align=center valign=bottom width=240 height=30><font color=\"LEVEL\">Sr. Burns</font>: Mas dinero acumulado</td></tr></table>");
- replyShooterStadistics.append("<table border=1 cellpadding=0 cellspacing=0 width=240 height=30><tr><td align=center valign=bottom width=180 height=30>" + CharNameTable.getInstance().getNameById(PointStadisticId[0][5]) + "</td><td align=center valign=bottom width=60 height=30> " + PointStadisticNum[0][5] + " </td></tr></table>");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- replyShooterStadistics.append("<table border=2 cellpadding=0 cellspacing=0 width=240 height=30><tr><td align=center valign=bottom width=240 height=30><font color=\"LEVEL\">Mr. Burns</font>: More dollars joined</td></tr></table>");
- replyShooterStadistics.append("<table border=1 cellpadding=0 cellspacing=0 width=240 height=30><tr><td align=center valign=bottom width=180 height=30>" + CharNameTable.getInstance().getNameById(PointStadisticId[0][5]) + "</td><td align=center valign=bottom width=60 height=30> " + PointStadisticNum[0][5] + " </td></tr></table>");
- }
- }
- if (PointStadisticNum[0][6] != 0) // Lee Derrochador
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- replyShooterStadistics.append("<table border=2 cellpadding=0 cellspacing=0 width=240 height=30><tr><td align=center valign=bottom width=240 height=30><font color=\"LEVEL\">El Derrochador</font>: Mas dinero gastado</td></tr></table>");
- replyShooterStadistics.append("<table border=1 cellpadding=0 cellspacing=0 width=240 height=30><tr><td align=center valign=bottom width=180 height=30>" + CharNameTable.getInstance().getNameById(PointStadisticId[0][6]) + "</td><td align=center valign=bottom width=60 height=30> " + PointStadisticNum[0][6] + " </td></tr></table>");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- replyShooterStadistics.append("<table border=2 cellpadding=0 cellspacing=0 width=240 height=30><tr><td align=center valign=bottom width=240 height=30><font color=\"LEVEL\">El Wastrel</font>: More money spent</td></tr></table>");
- replyShooterStadistics.append("<table border=1 cellpadding=0 cellspacing=0 width=240 height=30><tr><td align=center valign=bottom width=180 height=30>" + CharNameTable.getInstance().getNameById(PointStadisticId[0][6]) + "</td><td align=center valign=bottom width=60 height=30> " + PointStadisticNum[0][6] + " </td></tr></table>");
- }
- }
- if (PointStadisticNum[0][7] != 0) // Lee Chorizo
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- replyShooterStadistics.append("<table border=2 cellpadding=0 cellspacing=0 width=240 height=30><tr><td align=center valign=bottom width=240 height=30><font color=\"LEVEL\">El Chorizo</font>: Mas armas robadas</td></tr></table>");
- replyShooterStadistics.append("<table border=1 cellpadding=0 cellspacing=0 width=240 height=30><tr><td align=center valign=bottom width=180 height=30>" + CharNameTable.getInstance().getNameById(PointStadisticId[0][7]) + "</td><td align=center valign=bottom width=60 height=30> " + PointStadisticNum[0][7] + " </td></tr></table>");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- replyShooterStadistics.append("<table border=2 cellpadding=0 cellspacing=0 width=240 height=30><tr><td align=center valign=bottom width=240 height=30><font color=\"LEVEL\">The Grabber</font>: More weapons stolen</td></tr></table>");
- replyShooterStadistics.append("<table border=1 cellpadding=0 cellspacing=0 width=240 height=30><tr><td align=center valign=bottom width=180 height=30>" + CharNameTable.getInstance().getNameById(PointStadisticId[0][7]) + "</td><td align=center valign=bottom width=60 height=30> " + PointStadisticNum[0][7] + " </td></tr></table>");
- }
- }
- for (int o = 0; o < 4; o++)
- {
- if (LaszloEventEngine.isShooterEventInstancesSlot(o))
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- replyShooterStadistics.append("<br1><table><tr><td><img src=\"L2UI.Squaregray\" width=\"240\" height=\"2\"></td></tr></table><br>");
- replyShooterStadistics.append("<table border=1 cellpadding=0 cellspacing=0 width=240 height=90><tr><td align=center valign=bottom width=90 height=30>Zona " + (o + 2) + " </td><td align=center valign=bottom width=75 height=30>Equipo Rojo</td><td align=center valign=bottom width=75 height=30>Equipo Azul</td></tr>");
- replyShooterStadistics.append("<tr><td align=center valign=bottom width=90 height=30>Participantes</td><td align=center valign=bottom width=75 height=30>" + LaszloEventEngine.getShooterRedPartakerNum(o + 1) + "</td><td align=center valign=bottom width=75 height=30>" + LaszloEventEngine.getShooterBluePartakerNum(o + 1) + "</td></tr>");
- replyShooterStadistics.append("<tr><td align=center valign=bottom width=90 height=30>Puntuacion</td><td align=center valign=bottom width=75 height=30>" + LaszloEventEngine.getShooterRedPoints(o + 1) + "</td><td align=center valign=bottom width=75 height=30>" + LaszloEventEngine.getShooterBluePoints(o + 1) + "</td></tr></table>");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- replyShooterStadistics.append("<br1><table><tr><td><img src=\"L2UI.Squaregray\" width=\"240\" height=\"2\"></td></tr></table><br>");
- replyShooterStadistics.append("<table border=1 cellpadding=0 cellspacing=0 width=240 height=90><tr><td align=center valign=bottom width=90 height=30>Zone " + (o + 2) + " </td><td align=center valign=bottom width=75 height=30>Red Team</td><td align=center valign=bottom width=75 height=30>Blue Team</td></tr>");
- replyShooterStadistics.append("<tr><td align=center valign=bottom width=90 height=30>Participants</td><td align=center valign=bottom width=75 height=30>" + LaszloEventEngine.getShooterRedPartakerNum(o + 1) + "</td><td align=center valign=bottom width=75 height=30>" + LaszloEventEngine.getShooterBluePartakerNum(o + 1) + "</td></tr>");
- replyShooterStadistics.append("<tr><td align=center valign=bottom width=90 height=30>Score</td><td align=center valign=bottom width=75 height=30>" + LaszloEventEngine.getShooterRedPoints(o + 1) + "</td><td align=center valign=bottom width=75 height=30>" + LaszloEventEngine.getShooterBluePoints(o + 1) + "</td></tr></table>");
- }
- for (int i = 0; i <= Config.SHOOTER_EVENT_PARTICIPANTS_MAX_INSTANCE; i++)
- {
- for (int j = 0; j < 8; j++)
- {
- if (LaszloEventEngine.getCalculateStadisticsPoints((o + 1), i, (j + 1)) > PointStadisticNum[(o + 1)][j])
- {
- PointStadisticNum[(o + 1)][j] = LaszloEventEngine.getCalculateStadisticsPoints((o + 1), i, (j + 1));
- PointStadisticId[(o + 1)][j] = LaszloEventEngine.getCalculateStadisticsPoints((o + 1), i, 0);
- }
- }
- }
- if (PointStadisticNum[(o + 1)][0] != 0) // Lee Asesino
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- replyShooterStadistics.append("<table border=2 cellpadding=0 cellspacing=0 width=240 height=30><tr><td align=center valign=bottom width=240 height=30><font color=\"LEVEL\">El Asesino</font>: Mas muertes causadas</td></tr></table>");
- replyShooterStadistics.append("<table border=1 cellpadding=0 cellspacing=0 width=240 height=30><tr><td align=center valign=bottom width=180 height=30>" + CharNameTable.getInstance().getNameById(PointStadisticId[(o + 1)][0]) + "</td><td align=center valign=bottom width=60 height=30> " + PointStadisticNum[(o + 1)][0] + " </td></tr></table>");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- replyShooterStadistics.append("<table border=2 cellpadding=0 cellspacing=0 width=240 height=30><tr><td align=center valign=bottom width=240 height=30><font color=\"LEVEL\">The Assassin</font>: More deaths caused</td></tr></table>");
- replyShooterStadistics.append("<table border=1 cellpadding=0 cellspacing=0 width=240 height=30><tr><td align=center valign=bottom width=180 height=30>" + CharNameTable.getInstance().getNameById(PointStadisticId[(o + 1)][0]) + "</td><td align=center valign=bottom width=60 height=30> " + PointStadisticNum[(o + 1)][0] + " </td></tr></table>");
- }
- }
- if (PointStadisticNum[(o + 1)][1] != 0) // Lee Victima
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- replyShooterStadistics.append("<table border=2 cellpadding=0 cellspacing=0 width=240 height=30><tr><td align=center valign=bottom width=240 height=30><font color=\"LEVEL\">La Víctima</font>: Mas veces asesinado</td></tr></table>");
- replyShooterStadistics.append("<table border=1 cellpadding=0 cellspacing=0 width=240 height=30><tr><td align=center valign=bottom width=180 height=30>" + CharNameTable.getInstance().getNameById(PointStadisticId[(o + 1)][1]) + "</td><td align=center valign=bottom width=60 height=30> " + PointStadisticNum[(o + 1)][1] + "</td></tr></table>");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- replyShooterStadistics.append("<table border=2 cellpadding=0 cellspacing=0 width=240 height=30><tr><td align=center valign=bottom width=240 height=30><font color=\"LEVEL\">The Victim</font>: More tiems dead</td></tr></table>");
- replyShooterStadistics.append("<table border=1 cellpadding=0 cellspacing=0 width=240 height=30><tr><td align=center valign=bottom width=180 height=30>" + CharNameTable.getInstance().getNameById(PointStadisticId[(o + 1)][1]) + "</td><td align=center valign=bottom width=60 height=30> " + PointStadisticNum[(o + 1)][1] + "</td></tr></table>");
- }
- }
- if (PointStadisticNum[(o + 1)][2] != 0) // Lee Berserker
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- replyShooterStadistics.append("<table border=2 cellpadding=0 cellspacing=0 width=240 height=30><tr><td align=center valign=bottom width=240 height=30><font color=\"LEVEL\">El Berserker</font>: Mayor racha de muertes</td></tr></table>");
- replyShooterStadistics.append("<table border=1 cellpadding=0 cellspacing=0 width=240 height=30><tr><td align=center valign=bottom width=180 height=30>" + CharNameTable.getInstance().getNameById(PointStadisticId[(o + 1)][2]) + "</td><td align=center valign=bottom width=60 height=30> " + PointStadisticNum[(o + 1)][2] + " </td></tr></table>");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- replyShooterStadistics.append("<table border=2 cellpadding=0 cellspacing=0 width=240 height=30><tr><td align=center valign=bottom width=240 height=30><font color=\"LEVEL\">The Berserker</font>: More kills streak</td></tr></table>");
- replyShooterStadistics.append("<table border=1 cellpadding=0 cellspacing=0 width=240 height=30><tr><td align=center valign=bottom width=180 height=30>" + CharNameTable.getInstance().getNameById(PointStadisticId[(o + 1)][2]) + "</td><td align=center valign=bottom width=60 height=30> " + PointStadisticNum[(o + 1)][2] + " </td></tr></table>");
- }
- }
- if (PointStadisticNum[(o + 1)][3] != 0) // Lee Bomberman
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- replyShooterStadistics.append("<table border=2 cellpadding=0 cellspacing=0 width=240 height=30><tr><td align=center valign=bottom width=240 height=30><font color=\"LEVEL\">Bomberman</font>: Mas bombas colocadas</td></tr></table>");
- replyShooterStadistics.append("<table border=1 cellpadding=0 cellspacing=0 width=240 height=30><tr><td align=center valign=bottom width=180 height=30>" + CharNameTable.getInstance().getNameById(PointStadisticId[(o + 1)][3]) + "</td><td align=center valign=bottom width=60 height=30> " + PointStadisticNum[(o + 1)][3] + " </td></tr></table>");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- replyShooterStadistics.append("<table border=2 cellpadding=0 cellspacing=0 width=240 height=30><tr><td align=center valign=bottom width=240 height=30><font color=\"LEVEL\">Bomberman</font>: More bombs planted</td></tr></table>");
- replyShooterStadistics.append("<table border=1 cellpadding=0 cellspacing=0 width=240 height=30><tr><td align=center valign=bottom width=180 height=30>" + CharNameTable.getInstance().getNameById(PointStadisticId[(o + 1)][3]) + "</td><td align=center valign=bottom width=60 height=30> " + PointStadisticNum[(o + 1)][3] + " </td></tr></table>");
- }
- }
- if (PointStadisticNum[(o + 1)][4] != 0) // Lee Artificiero
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- replyShooterStadistics.append("<table border=2 cellpadding=0 cellspacing=0 width=240 height=30><tr><td align=center valign=bottom width=240 height=30><font color=\"LEVEL\">El Artificiero</font>: Mas bombas desactivadas</td></tr></table>");
- replyShooterStadistics.append("<table border=1 cellpadding=0 cellspacing=0 width=240 height=30><tr><td align=center valign=bottom width=180 height=30>" + CharNameTable.getInstance().getNameById(PointStadisticId[(o + 1)][4]) + "</td><td align=center valign=bottom width=60 height=30> " + PointStadisticNum[(o + 1)][4] + " </td></tr></table>");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- replyShooterStadistics.append("<table border=2 cellpadding=0 cellspacing=0 width=240 height=30><tr><td align=center valign=bottom width=240 height=30><font color=\"LEVEL\">The Deactivator</font>: More bombs deactivated</td></tr></table>");
- replyShooterStadistics.append("<table border=1 cellpadding=0 cellspacing=0 width=240 height=30><tr><td align=center valign=bottom width=180 height=30>" + CharNameTable.getInstance().getNameById(PointStadisticId[(o + 1)][4]) + "</td><td align=center valign=bottom width=60 height=30> " + PointStadisticNum[(o + 1)][4] + " </td></tr></table>");
- }
- }
- if (PointStadisticNum[(o + 1)][5] != 0) // Lee Sr. Burns
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- replyShooterStadistics.append("<table border=2 cellpadding=0 cellspacing=0 width=240 height=30><tr><td align=center valign=bottom width=240 height=30><font color=\"LEVEL\">Sr. Burns</font>: Mas dinero acumulado</td></tr></table>");
- replyShooterStadistics.append("<table border=1 cellpadding=0 cellspacing=0 width=240 height=30><tr><td align=center valign=bottom width=180 height=30>" + CharNameTable.getInstance().getNameById(PointStadisticId[(o + 1)][5]) + "</td><td align=center valign=bottom width=60 height=30> " + PointStadisticNum[(o + 1)][5] + " </td></tr></table>");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- replyShooterStadistics.append("<table border=2 cellpadding=0 cellspacing=0 width=240 height=30><tr><td align=center valign=bottom width=240 height=30><font color=\"LEVEL\">Mr. Burns</font>: More dollars joined</td></tr></table>");
- replyShooterStadistics.append("<table border=1 cellpadding=0 cellspacing=0 width=240 height=30><tr><td align=center valign=bottom width=180 height=30>" + CharNameTable.getInstance().getNameById(PointStadisticId[(o + 1)][5]) + "</td><td align=center valign=bottom width=60 height=30> " + PointStadisticNum[(o + 1)][5] + " </td></tr></table>");
- }
- }
- if (PointStadisticNum[(o + 1)][6] != 0) // Lee Derrochador
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- replyShooterStadistics.append("<table border=2 cellpadding=0 cellspacing=0 width=240 height=30><tr><td align=center valign=bottom width=240 height=30><font color=\"LEVEL\">El Derrochador</font>: Mas dinero gastado</td></tr></table>");
- replyShooterStadistics.append("<table border=1 cellpadding=0 cellspacing=0 width=240 height=30><tr><td align=center valign=bottom width=180 height=30>" + CharNameTable.getInstance().getNameById(PointStadisticId[(o + 1)][6]) + "</td><td align=center valign=bottom width=60 height=30> " + PointStadisticNum[(o + 1)][6] + " </td></tr></table>");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- replyShooterStadistics.append("<table border=2 cellpadding=0 cellspacing=0 width=240 height=30><tr><td align=center valign=bottom width=240 height=30><font color=\"LEVEL\">El Wastrel</font>: More money spent</td></tr></table>");
- replyShooterStadistics.append("<table border=1 cellpadding=0 cellspacing=0 width=240 height=30><tr><td align=center valign=bottom width=180 height=30>" + CharNameTable.getInstance().getNameById(PointStadisticId[(o + 1)][6]) + "</td><td align=center valign=bottom width=60 height=30> " + PointStadisticNum[(o + 1)][6] + " </td></tr></table>");
- }
- }
- if (PointStadisticNum[(o + 1)][7] != 0) // Lee Chorizo
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- replyShooterStadistics.append("<table border=2 cellpadding=0 cellspacing=0 width=240 height=30><tr><td align=center valign=bottom width=240 height=30><font color=\"LEVEL\">El Chorizo</font>: Mas armas robadas</td></tr></table>");
- replyShooterStadistics.append("<table border=1 cellpadding=0 cellspacing=0 width=240 height=30><tr><td align=center valign=bottom width=180 height=30>" + CharNameTable.getInstance().getNameById(PointStadisticId[(o + 1)][7]) + "</td><td align=center valign=bottom width=60 height=30> " + PointStadisticNum[(o + 1)][7] + " </td></tr></table>");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- replyShooterStadistics.append("<table border=2 cellpadding=0 cellspacing=0 width=240 height=30><tr><td align=center valign=bottom width=240 height=30><font color=\"LEVEL\">The Grabber</font>: More weapons stolen</td></tr></table>");
- replyShooterStadistics.append("<table border=1 cellpadding=0 cellspacing=0 width=240 height=30><tr><td align=center valign=bottom width=180 height=30>" + CharNameTable.getInstance().getNameById(PointStadisticId[(o + 1)][7]) + "</td><td align=center valign=bottom width=60 height=30> " + PointStadisticNum[(o + 1)][7] + " </td></tr></table>");
- }
- }
- }
- }
- }
- }
- replyShooterStadistics.append("<br><br></td></tr><br><br></table></body></html>");
- ShooterStadistics.setHtml(replyShooterStadistics.toString());
- activeChar.sendPacket(ShooterStadistics);
- }
- public static void cleanEffects(L2Character activeChar)
- {
- for (L2PcInstance player : L2World.getInstance().getAllPlayersArray())
- {
- if (player != null)
- {
- if (player.isRedPartakerShooterEvent(player.getInstanceHelperShooterEvent()) || player.isBluePartakerShooterEvent(player.getInstanceHelperShooterEvent()) || player.isEnrolledShooterEvent())
- {
- if (player.isSitting())
- {
- player.standUp();
- }
- if (player.getParty() != null)
- {
- L2Party party = player.getParty();
- party.removePartyMember(player, messageType.Expelled);
- }
- if (player.isMounted() || player.isFlying())
- {
- player.dismount();
- }
- if (player.isFakeDeath())
- {
- player.stopFakeDeath(true);
- }
- if (player.hasSummon() || (player.hasSummon() && player.getSummon().isPet()))
- {
- player.getSummon().unSummon(player);
- }
- player.stopAllEffects();
- player.stopCubics();
- player.setCurrentHpMp(player.getMaxHp(), player.getMaxMp());
- player.setCurrentCp(player.getMaxCp());
- }
- }
- }
- }
- public static void playerStop(L2Character activeChar)
- {
- for (L2PcInstance player : L2World.getInstance().getAllPlayersArray())
- {
- if (player != null)
- {
- if (player.isRedPartakerShooterEvent(player.getInstanceHelperShooterEvent()) || player.isBluePartakerShooterEvent(player.getInstanceHelperShooterEvent()))
- {
- player.abortAttack();
- player.abortCast();
- player.disableAllSkills();
- player.setTarget(null);
- player.stopMove(null);
- player.setIsImmobilized(true);
- player.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
- }
- }
- }
- }
- public void ShooterRegistration(L2PcInstance player)
- {
- if (LaszloEventEngine.isInPeriodShooterEvent() && (LaszloEventEngine.getShooterEventState() == 1))
- {
- if (Config.SHOOTER_EVENT_PARTICIPANTS_MAX_TOTAL > LaszloEventEngine.getShooterRegistratedNum())
- {
- if (CheckShooterConditions(player))
- {
- LaszloEventEngine.setShooterRegistratedNum(LaszloEventEngine.getShooterRegistratedNum() + 1);
- player.broadcastPacket(new MagicSkillUse(player, player, Rnd.get(22131, 22136), 1, 1, 1));
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- player.sendMessage("Te has inscrito con exito al Evento Shot The Dog.");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- player.sendMessage("You have been inscribed succesfully at Shot The Dog Event.");
- }
- player.setEnrolledShooterEvent(true);
- NpcHtmlMessage ShooterInscription = new NpcHtmlMessage(5);
- TextBuilder replyShooterInscription = new TextBuilder("<html><body scroll=\"no\"><title>Shot The Dog Event</title><table border=0 cellpadding=0 cellspacing=0 width=292 height=358 background=\"L2UI_CH3.refinewnd_back_Pattern\"><tr><td valign=\"top\" align=\"center\"><br><font color=\"LEVEL\">Shot The Dog Event</font><br>");
- if (System.currentTimeMillis() > player.getPenaltyCancelInscriptionShooterEvent())
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- replyShooterInscription.append("<table border=0 cellpadding=0 cellspacing=2><tr><td align=center><br><br>Te has inscrito correctamente.<br>En breves dará comienzo el evento.</td></tr></table>");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- replyShooterInscription.append("<table border=0 cellpadding=0 cellspacing=2><tr><td align=center><br><br>You have been inscribed correctly.<br>The Event will start soon.</td></tr></table>");
- }
- }
- else
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- replyShooterInscription.append("<table border=0 cellpadding=0 cellspacing=2><tr><td align=center><br><br>Has cancelado tu inscripcion hace poco.<br><br><br>Espera " + ((player.getPenaltyCancelInscriptionShooterEvent() - System.currentTimeMillis()) / 1000) + " segundo(s) para<br1>que puedas volver a inscribirte.</td></tr></table>");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- replyShooterInscription.append("<table border=0 cellpadding=0 cellspacing=2><tr><td align=center><br><br>You have canceled your inscription recently.<br><br><br>Wait " + ((player.getPenaltyCancelInscriptionShooterEvent() - System.currentTimeMillis()) / 1000) + " second(s) and<br1>you will can inscribe again.</td></tr></table>");
- }
- }
- replyShooterInscription.append("</td></tr></table></body></html>");
- ShooterInscription.setHtml(replyShooterInscription.toString());
- player.sendPacket(ShooterInscription);
- }
- else
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- player.sendMessage("No se han cumplido todas las condiciones para efectuar correctamente el registro al Evento Shot The Dog.");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- player.sendMessage("The conditions to prosecute the registration haven't been fulfilled.");
- }
- return;
- }
- }
- else
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- player.sendMessage("El numero maximo de participantes permitidos para el evento ha sido superado.");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- player.sendMessage("The max number of participants allowed for the event has been reached.");
- }
- return;
- }
- }
- else
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- player.sendMessage("El Periodo de Inscripción no está en proceso y no es posible registrarse.");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- player.sendMessage("The Inscription Period has ended and it isn't possible to inscribe it.");
- }
- return;
- }
- }
- public void ShooterUnRegistration(L2PcInstance player)
- {
- if (LaszloEventEngine.isInPeriodShooterEvent() && (LaszloEventEngine.getShooterEventState() == 1))
- {
- if (CheckShooterConditions(player))
- {
- LaszloEventEngine.setShooterRegistratedNum(LaszloEventEngine.getShooterRegistratedNum() - 1);
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- player.sendMessage("Has cancelado tu inscripción al Evento Shot The Dog.");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- player.sendMessage("You have canceled your inscription succesfully at Shot The Dog Event.");
- }
- player.setPenaltyCancelInscriptionShooterEvent(System.currentTimeMillis() + (30000));
- player.setEnrolledShooterEvent(false);
- NpcHtmlMessage ShooterUnregistrer = new NpcHtmlMessage(5);
- TextBuilder replyShooterUnregistrer = new TextBuilder("<html><body scroll=\"no\"><title>Shot The Dog Event</title><table border=0 cellpadding=0 cellspacing=0 width=292 height=358 background=\"L2UI_CH3.refinewnd_back_Pattern\"><tr><td valign=\"top\" align=\"center\"><br><font color=\"LEVEL\">Shot The Dog Event</font><br>");
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- replyShooterUnregistrer.append("<table border=0 cellpadding=0 cellspacing=2><tr><td align=center><br><br>Has cancelado tu inscripcion<br1> al evento correctamente.<br><br><br>Tendras que esperar " + ((player.getPenaltyCancelInscriptionShooterEvent() - System.currentTimeMillis()) / 1000) + " segundo(s)<br1> si deseas volver a inscribirte.</td></tr></table></td></tr></table></body></html>");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- replyShooterUnregistrer.append("<table border=0 cellpadding=0 cellspacing=2><tr><td align=center><br><br>You have canceled your inscription<br1> to the event correctly.<br><br><br>You must wait <br1> if you want to inscribe again.</td></tr></table></td></tr></table></body></html>");
- }
- replyShooterUnregistrer.append("</td></tr></table></body></html>");
- ShooterUnregistrer.setHtml(replyShooterUnregistrer.toString());
- player.sendPacket(ShooterUnregistrer);
- }
- else
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- player.sendMessage("No se han cumplido todas las condiciones para cancelar correctamente el registro al Evento Shot The Dog.");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- player.sendMessage("The conditions to cancel the registration haven't been fulfilled.");
- }
- return;
- }
- }
- else
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- player.sendMessage("El Periodo de Inscripción no está en proceso y no es posible cancelar el registro.");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- player.sendMessage("The Inscription Period isn't in process and it isn't possible to cancel the registration.");
- }
- return;
- }
- }
- private boolean CheckShooterConditions(L2PcInstance player)
- {
- if (Config.SHOOTER_EVENT_LEVEL_LIMIT)
- {
- if (player.getLevel() < Config.SHOOTER_EVENT_LEVEL_LIMIT_MIN)
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- player.sendMessage("No tienes el nivel necesario para inscribirte en el evento: " + Config.SHOOTER_EVENT_LEVEL_LIMIT_MIN + ".");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- player.sendMessage("You have not enough level to inscribe it: " + Config.SHOOTER_EVENT_LEVEL_LIMIT_MIN + ".");
- }
- return false;
- }
- if (player.getLevel() > Config.SHOOTER_EVENT_LEVEL_LIMIT_MAX)
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- player.sendMessage("Tienes demasiado level para acceder al Evento: " + Config.SHOOTER_EVENT_LEVEL_LIMIT_MAX + ".");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- player.sendMessage("You have too much level to inscribe it: " + Config.SHOOTER_EVENT_LEVEL_LIMIT_MAX + ".");
- }
- return false;
- }
- }
- if (GrandBossManager.getInstance().getZone(player) != null)
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- player.sendMessage("No puedes inscribirte mientras stas dentro de una Boss Zone.");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- player.sendMessage("You cannot inscribe it while you are in a GrandBoss Zone.");
- }
- return false;
- }
- if (player.isCombatFlagEquipped())
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- player.sendMessage("No puedes inscribirte mientras estás en modo PvP");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- player.sendMessage("You cannot inscribe it while you are in PvP mode.");
- }
- return false;
- }
- if (player.getPvpFlag() != 0)
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- player.sendMessage("No se pudo efectuar el comando: Estas en modo PvP");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- player.sendMessage("You cannot inscribe it while you are in PvP mode.");
- }
- return false;
- }
- if (player.getKarma() > 0)
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- player.sendMessage("No se pudo efectuar el comando: estas en modo PK.");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- player.sendMessage("You cannot inscribe it while you are a PK.");
- }
- return false;
- }
- if (player.isCursedWeaponEquipped())
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- player.sendMessage("No puedes inscribirte mientras posees una Cursed Weapon.");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- player.sendMessage("You cannot inscribe it while you have a Cursed Weapon.");
- }
- return false;
- }
- if (player.isInJail())
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- player.sendMessage("No puedes inscribirte mientras estás en Jail.");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- player.sendMessage("You cannot inscribe it while you are in Jail.");
- }
- return false;
- }
- if (player.isInOlympiadMode())
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- player.sendMessage("No puedes inscribirte mientras estás participando en las Olimpiadas.");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- player.sendMessage("You cannot inscribe it while you are in Olympiads.");
- }
- return false;
- }
- if (L2Event.isParticipant(player))
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- player.sendMessage("No puedes inscribirte mientras estás participando en otro evento.");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- player.sendMessage("You cannot inscribe it while you are participating in another Event.");
- }
- return false;
- }
- if (player.isInDuel())
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- player.sendMessage("No puedes inscribirte mientras estás batiendote en duelo.");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- player.sendMessage("You cannot inscribe it while you are in duel.");
- }
- return false;
- }
- if (player.inObserverMode())
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- player.sendMessage("No puedes inscribirte mientras estás en modo observador.");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- player.sendMessage("You cannot inscribe it while you are in observer mode.");
- }
- return false;
- }
- if ((SiegeManager.getInstance().getSiege(player) != null) && SiegeManager.getInstance().getSiege(player).getIsInProgress())
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- player.sendMessage("No puedes inscribirte mientras estás en una Siege.");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- player.sendMessage("You cannot inscribe it while you are in a Siege.");
- }
- return false;
- }
- if (!TvTEvent.onEscapeUse(player.getObjectId()))
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- player.sendPacket(ActionFailed.STATIC_PACKET);
- player.sendMessage("No puedes inscribirte ahora mismo.");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- player.sendPacket(ActionFailed.STATIC_PACKET);
- player.sendMessage("You cannot inscribe it right now.");
- }
- return false;
- }
- if (player.isInsideZone(ZoneId.NO_SUMMON_FRIEND) || player.isInsideZone(ZoneId.PVP) || player.isInsideZone(ZoneId.SIEGE))
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- player.sendMessage("No puedes inscribirte mientras estás en una zona prohibida para la inscripcion.");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- player.sendMessage("You cannot inscribe it while you are in a forbidden zone for the inscription.");
- }
- return false;
- }
- if (TvTEvent.isPlayerParticipant(player.getObjectId()))
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- player.sendMessage("No puedes inscribirte mientras estás participando en un TvT.");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- player.sendMessage("You cannot inscribe it while you are participating in a TvT.");
- }
- return false;
- }
- if (System.currentTimeMillis() < player.getPenaltyCancelInscriptionShooterEvent())
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- player.sendMessage("Has cancelado tu inscripción hace poco. Espera " + ((player.getPenaltyCancelInscriptionShooterEvent() - System.currentTimeMillis()) / 1000) + " segundo(s) y podras volver a inscribirte.");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- player.sendMessage("You have canceled recently your inscription. Wait " + ((player.getPenaltyCancelInscriptionShooterEvent() - System.currentTimeMillis()) / 1000) + " second(s) and you will be able to inscribe it again.");
- }
- return false;
- }
- if (player.isInCombat())
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- player.sendMessage("No puedes inscribirte mientras estás en modo combate.");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- player.sendMessage("You cannot inscribe it while you are in combat.");
- }
- return false;
- }
- if (player.isDead() || player.isAlikeDead())
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- player.sendMessage("No puedes inscribirte mientras estás muerto.");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- player.sendMessage("You cannot inscribe it while you are dead.");
- }
- return false;
- }
- if (player.getPrivateStoreType() != L2PcInstance.STORE_PRIVATE_NONE)
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- player.sendMessage("No puedes inscribirte mientras estás formando una tienda.");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- player.sendMessage("You cannot inscribe it while you are in a Shop.");
- }
- return false;
- }
- if (player.isMounted() || player.isInBoat())
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- player.sendMessage("No puedes inscribirte mientras estás montado o en un barco.");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- player.sendMessage("You cannot inscribe it while you are mounted or in a boat.");
- }
- return false;
- }
- if (player.isFishing())
- {
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- player.sendMessage("No puedes inscribirte mientras estás pescando.");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- player.sendMessage("You cannot inscribe it while you are fishing.");
- }
- return false;
- }
- return true;
- }
- public void CalculatePlayersEvent(L2Character activeChar)
- {
- for (L2PcInstance player : L2World.getInstance().getAllPlayersArray())
- {
- if (player != null)
- {
- if (player.isEnrolledShooterEvent())
- {
- if (player.isCombatFlagEquipped() || player.isCursedWeaponEquipped() || player.isInJail() || player.isInOlympiadMode() || L2Event.isParticipant(player) || player.isInDuel() || player.inObserverMode() || TvTEvent.isPlayerParticipant(player.getObjectId()) || player.isInCombat() || player.isDead() || player.isAlikeDead() || player.isMounted() || player.isInBoat() || player.isFishing() || player.isInsideZone(ZoneId.NO_SUMMON_FRIEND) || player.isInsideZone(ZoneId.PVP) || player.isInsideZone(ZoneId.SIEGE) || ((SiegeManager.getInstance().getSiege(player) != null) && SiegeManager.getInstance().getSiege(player).getIsInProgress()) || (GrandBossManager.getInstance().getZone(player) != null) || (player.getKarma() > 0) || player.isProcessingTransaction() || (player.getPvpFlag() != 0) || (player.getLevel() < Config.SHOOTER_EVENT_LEVEL_LIMIT_MIN))
- {
- player.setEnrolledShooterEvent(false);
- if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("spanish"))
- {
- player.sendMessage("Una o mas de las condiciones para participar en el Evento ha sido violada y tu inscripción se ha cancelado.");
- }
- else if (Config.SHOOTER_EVENT_LANG.equalsIgnoreCase("english"))
- {
- player.sendMessage("One or more conditions to participate in the Event has been violated and your inscription has been canceled.");
- }
- }
- else
- {
- LaszloEventEngine.setShooterRegistratedNum(LaszloEventEngine.getShooterRegistratedNum() + 1);
- }
- }
- }
- }
- }
- public static void PlayerCancelShooterEvent(L2Character activeChar)
- {
- for (L2PcInstance player : L2World.getInstance().getAllPlayersArray())
- {
- if (player != null)
- {
- for (int i = 0; i < 5; i++)
- {
- if (player.isRedPartakerShooterEvent(i) || player.isBluePartakerShooterEvent(i))
- {
- if (player.isDead())
- {
- player.doRevive();
- }
- if (player.isSitting())
- {
- player.standUp();
- }
- if (player.getParty() != null)
- {
- L2Party party = player.getParty();
- party.removePartyMember(player, messageType.Expelled);
- }
- if (player.isFakeDeath())
- {
- player.stopFakeDeath(true);
- }
- if (player.getTeam() > 0)
- {
- player.setTeam(0);
- }
- player.enableAllSkills();
- player.setIsImmobilized(false);
- player.teleToLocation(82693 + Rnd.get(100, -100), 148775 + Rnd.get(100, -100), -3468);
- player.setInstanceId(0);
- }
- }
- if (player.inObserverMode())
- {
- player.setObserverShooterEvent(false);
- player.leaveOlympiadObserverMode();
- player.sendMessage("El Evento ha sido cancelado.");
- }
- }
- }
- }
- public void CalculateInstancesEvent()
- {
- Quest ShooterQuest = QuestManager.getInstance().getQuest(STD.qn);
- if (ShooterQuest != null)
- {
- if (LaszloEventEngine.getShooterRegistratedNum() < (Config.SHOOTER_EVENT_PARTICIPANTS_MIN))
- {
- ShooterQuest.cancelQuestTimer("start_event_announcment_1", null, null);
- ShooterQuest.cancelQuestTimer("start_event_announcment_2", null, null);
- ShooterQuest.cancelQuestTimer("start_event_announcment_3", null, null);
- ShooterQuest.cancelQuestTimer("start_event_announcment_4", null, null);
- ShooterQuest.cancelQuestTimer("event_calculate_players", null, null);
- ShooterQuest.cancelQuestTimer("event_calculate_instances", null, null);
- ShooterQuest.cancelQuestTimer("event_calculate_teams", null, null);
- ShooterQuest.cancelQuestTimer("event_ready_period_teleport", null, null);
- ShooterQuest.cancelQuestTimer("event_ready_period_ready", null, null);
- ShooterQuest.cancelQuestTimer("event_ready_period_fight", null, null);
- ShooterQuest.cancelQuestTimer("event_open_door", null, null);
- ShooterQuest.cancelQuestTimer("event_calculate_winner", null, null);
- ShooterQuest.cancelQuestTimer("event_almost_ended", null, null);
- ShooterQuest.cancelQuestTimer("event_reward_social", null, null);
- ShooterQuest.cancelQuestTimer("event_teleport_out", null, null);
- ShooterQuest.cancelQuestTimer("event_final_end", null, null);
- LaszloEventEngine.setInPeriodShooterEvent(false);
- LaszloEventEngine.setShooterEventState(0);
- LaszloEventEngine.setShooterRegistratedNum(0);
- LaszloEventEngine.setShooterEventExtraInstancesCreated(0);
- LaszloEventEngine.setDistributingHelperShooterEvent(0);
- RedHelper = 0;
- BlueHelper = 0;
- for (int i = 0; i < 5; i++)
- {
- LaszloEventEngine.setShooterRedPoints(i, 0);
- LaszloEventEngine.setShooterBluePoints(i, 0);
- LaszloEventEngine.setShooterPartakerNum(i, 0);
- LaszloEventEngine.setShooterRedPartakerNum(i, 0);
- LaszloEventEngine.setShooterBluePartakerNum(i, 0);
- LaszloEventEngine.setRedBombPlantedShooterEvent(i, false);
- LaszloEventEngine.setBlueBombPlantedShooterEvent(i, false);
- LaszloEventEngine.setRedStoreDownShooterEvent(i, false);
- LaszloEventEngine.setBlueStoreDownShooterEvent(i, false);
- LaszloEventEngine.setWinnerRedShooterEvent(i, false);
- LaszloEventEngine.setWinnerBlueShooterEvent(i, false);
- LaszloEventEngine.setTieShooterEvent(i, false);
- BombHelper1[i] = false;
- BombHelper2[i] = false;
- RespawnHelper[i] = false;
- for (int j = 0; j < 7; j++)
- {
- PointStadisticNum[i][j] = 0;
- PointStadisticId[i][j] = 0;
- }
- for (int j = 0; j <= Config.SHOOTER_EVENT_PARTICIPANTS_MAX_INSTANCE; j++)
- {
- for (int h = 0; h < 8; h++)
- {
- LaszloEventEngine.setCalculateStadisticsPoints(i, j, h, 0);
- }
- }
- }
- for (int j = 0; j < 4; j++)
- {
- LaszloEventEngine.setShooterEventInstancesSlot(j, false);
- }
- for (int p = 0; p < 8; p++)
- {
- Points[p] = 0;
- }
- ShooterQuest.startQuestTimer("player_cancel_event", 1000, null, null);
- }
- else
- {
- ShooterQuest.startQuestTimer("event_calculate_teams", 2000, null, null);
- ShooterQuest.startQuestTimer("event_create_instances", 1000, null, null);
- if (LaszloEventEngine.getShooterRegistratedNum() <= (Config.SHOOTER_EVENT_PARTICIPANTS_MAX_INSTANCE))
- {
- LaszloEventEngine.setShooterEventExtraInstancesCreated(0);
- }
- else if (LaszloEventEngine.getShooterRegistratedNum() > (Config.SHOOTER_EVENT_PARTICIPANTS_MAX_INSTANCE))
- {
- if (Config.SHOOTER_EVENT_MULTIPLE_INSTANCE)
- {
- if ((LaszloEventEngine.getShooterRegistratedNum() > (Config.SHOOTER_EVENT_PARTICIPANTS_MAX_INSTANCE)) && (LaszloEventEngine.getShooterRegistratedNum() <= (Config.SHOOTER_EVENT_PARTICIPANTS_MAX_INSTANCE * 2)))
- {
- LaszloEventEngine.setShooterEventExtraInstancesCreated(1);
- LaszloEventEngine.setShooterEventInstancesSlot(0, true);
- }
- else if ((LaszloEventEngine.getShooterRegistratedNum() > (Config.SHOOTER_EVENT_PARTICIPANTS_MAX_INSTANCE * 2)) && (LaszloEventEngine.getShooterRegistratedNum() <= (Config.SHOOTER_EVENT_PARTICIPANTS_MAX_INSTANCE * 3)))
- {
- LaszloEventEngine.setShooterEventExtraInstancesCreated(2);
- LaszloEventEngine.setShooterEventInstancesSlot(0, true);
- LaszloEventEngine.setShooterEventInstancesSlot(1, true);
- }
- else if ((LaszloEventEngine.getShooterRegistratedNum() > (Config.SHOOTER_EVENT_PARTICIPANTS_MAX_INSTANCE * 3)) && (LaszloEventEngine.getShooterRegistratedNum() <= (Config.SHOOTER_EVENT_PARTICIPANTS_MAX_INSTANCE * 4)))
- {
- LaszloEventEngine.setShooterEventExtraInstancesCreated(3);
- LaszloEventEngine.setShooterEventInstancesSlot(0, true);
- LaszloEventEngine.setShooterEventInstancesSlot(1, true);
- LaszloEventEngine.setShooterEventInstancesSlot(2, true);
- }
- else if ((LaszloEventEngine.getShooterRegistratedNum() > (Config.SHOOTER_EVENT_PARTICIPANTS_MAX_INSTANCE * 4)) && (LaszloEventEngine.getShooterRegistratedNum() <= (Config.SHOOTER_EVENT_PARTICIPANTS_MAX_INSTANCE * 5)))
- {
- LaszloEventEngine.setShooterEventExtraInstancesCreated(4);
- LaszloEventEngine.setShooterEventInstancesSlot(0, true);
- LaszloEventEngine.setShooterEventInstancesSlot(1, true);
- LaszloEventEngine.setShooterEventInstancesSlot(2, true);
- LaszloEventEngine.setShooterEventInstancesSlot(3, true);
- }
- }
- else
- {
- LaszloEventEngine.setShooterEventExtraInstancesCreated(0);
- for (int h = 0; h < 4; h++)
- {
- LaszloEventEngine.setShooterEventInstancesSlot(h, false);
- LaszloEventEngine.setShooterEventInstancesSlot(h, false);
- LaszloEventEngine.setShooterEventInstancesSlot(h, false);
- LaszloEventEngine.setShooterEventInstancesSlot(h, false);
- }
- }
- }
- }
- }
- }
- public void CalculateTeamsEvent(L2Character activeChar)
- {
- for (L2PcInstance player : L2World.getInstance().getAllPlayersArray())
- {
- if (player != null)
- {
- if (player.isEnrolledShooterEvent())
- {
- if ((LaszloEventEngine.getShooterRedPartakerNum(LaszloEventEngine.getDistributingHelperShooterEvent()) == LaszloEventEngine.getShooterBluePartakerNum(LaszloEventEngine.getDistributingHelperShooterEvent())) && (LaszloEventEngine.getShooterRedPartakerNum(LaszloEventEngine.getDistributingHelperShooterEvent()) == 0) && (LaszloEventEngine.getShooterBluePartakerNum(LaszloEventEngine.getDistributingHelperShooterEvent()) == 0))
- {
- if (Rnd.get(100) < 50)
- {
- RedHelper += 1;
- LaszloEventEngine.setShooterRedPartakerNum(LaszloEventEngine.getDistributingHelperShooterEvent(), RedHelper);
- player.setInstanceHelperShooterEvent(LaszloEventEngine.getDistributingHelperShooterEvent());
- player.setRedPartakerShooterEvent(LaszloEventEngine.getDistributingHelperShooterEvent(), true);
- }
- else
- {
- BlueHelper += 1;
- LaszloEventEngine.setShooterBluePartakerNum(LaszloEventEngine.getDistributingHelperShooterEvent(), BlueHelper);
- player.setInstanceHelperShooterEvent(LaszloEventEngine.getDistributingHelperShooterEvent());
- player.setBluePartakerShooterEvent(LaszloEventEngine.getDistributingHelperShooterEvent(), true);
- }
- player.setEnrolledShooterEvent(false);
- }
- else if (LaszloEventEngine.getShooterRedPartakerNum(LaszloEventEngine.getDistributingHelperShooterEvent()) > LaszloEventEngine.getShooterBluePartakerNum(LaszloEventEngine.getDistributingHelperShooterEvent()))
- {
- BlueHelper += 1;
- LaszloEventEngine.setShooterBluePartakerNum(LaszloEventEngine.getDistributingHelperShooterEvent(), BlueHelper);
- player.setBluePartakerShooterEvent(LaszloEventEngine.getDistributingHelperShooterEvent(), true);
- player.setInstanceHelperShooterEvent(LaszloEventEngine.getDistributingHelperShooterEvent());
- player.setEnrolledShooterEvent(false);
- }
- else if (LaszloEventEngine.getShooterBluePartakerNum(LaszloEventEngine.getDistributingHelperShooterEvent()) > LaszloEventEngine.getShooterRedPartakerNum(LaszloEventEngine.getDistributingHelperShooterEvent()))
- {
- RedHelper += 1;
- LaszloEventEngine.setShooterRedPartakerNum(LaszloEventEngine.getDistributingHelperShooterEvent(), RedHelper);
- player.setRedPartakerShooterEvent(LaszloEventEngine.getDistributingHelperShooterEvent(), true);
- player.setInstanceHelperShooterEvent(LaszloEventEngine.getDistributingHelperShooterEvent());
- player.setEnrolledShooterEvent(false);
- }
- else if ((LaszloEventEngine.getShooterRedPartakerNum(LaszloEventEngine.getDistributingHelperShooterEvent()) == LaszloEventEngine.getShooterBluePartakerNum(LaszloEventEngine.getDistributingHelperShooterEvent())) && (LaszloEventEngine.getShooterRedPartakerNum(LaszloEventEngine.getDistributingHelperShooterEvent()) != 0) && (LaszloEventEngine.getShooterBluePartakerNum(LaszloEventEngine.getDistributingHelperShooterEvent()) != 0))
- {
- if (Config.SHOOTER_EVENT_MULTIPLE_INSTANCE && (LaszloEventEngine.getShooterEventExtraInstancesCreated() > 0))
- {
- if (LaszloEventEngine.getDistributingHelperShooterEvent() < LaszloEventEngine.getShooterEventExtraInstancesCreated())
- {
- LaszloEventEngine.setDistributingHelperShooterEvent(LaszloEventEngine.getDistributingHelperShooterEvent() + 1);
- RedHelper -= 1;
- BlueHelper -= 1;
- }
- else if (LaszloEventEngine.getDistributingHelperShooterEvent() >= LaszloEventEngine.getShooterEventExtraInstancesCreated())
- {
- LaszloEventEngine.setDistributingHelperShooterEvent(0);
- }
- }
- if (Rnd.get(100) < 50)
- {
- RedHelper += 1;
- LaszloEventEngine.setShooterRedPartakerNum(LaszloEventEngine.getDistributingHelperShooterEvent(), RedHelper);
- player.setInstanceHelperShooterEvent(LaszloEventEngine.getDistributingHelperShooterEvent());
- player.setRedPartakerShooterEvent(LaszloEventEngine.getDistributingHelperShooterEvent(), true);
- player.sendMessage("Equipo Rojo, Instance Zone " + (player.getInstanceHelperShooterEvent() + 1) + ".");
- }
- else
- {
- BlueHelper += 1;
- LaszloEventEngine.setShooterBluePartakerNum(LaszloEventEngine.getDistributingHelperShooterEvent(), BlueHelper);
- player.setInstanceHelperShooterEvent(LaszloEventEngine.getDistributingHelperShooterEvent());
- player.setBluePartakerShooterEvent(LaszloEventEngine.getDistributingHelperShooterEvent(), true);
- }
- player.setEnrolledShooterEvent(false);
- }
- }
- }
- }
- }
- public static void CleanValuesPlayers(L2Character activeChar)
- {
- for (L2PcInstance player : L2World.getInstance().getAllPlayersArray())
- {
- if (player != null)
- {
- if (player.isEnrolledShooterEvent())
- {
- player.setEnrolledShooterEvent(false);
- }
- if (player.getDollarsShooterEvent() > 0)
- {
- player.setDollarsShooterEvent(0);
- }
- if (player.getInstanceHelperShooterEvent() > 0)
- {
- player.setInstanceHelperShooterEvent(0);
- }
- if (player.getMatrixLocShooterEvent() > 0)
- {
- player.setMatrixLocShooterEvent(0);
- }
- if (player.getRachaShooterEvent() > 0)
- {
- player.setRachaShooterEvent(0);
- }
- for (int i = 0; i < 5; i++)
- {
- if (player.isRedPartakerShooterEvent(i))
- {
- player.setRedPartakerShooterEvent(i, false);
- }
- if (player.isBluePartakerShooterEvent(i))
- {
- player.setBluePartakerShooterEvent(i, false);
- }
- }
- for (int j = 0; j < 8; j++)
- {
- if (player.getMatrixStadisticsShooterEvent(j) > 0)
- {
- player.setMatrixStadisticsShooterEvent(j, 0);
- }
- }
- }
- }
- }
- public static void CleanValuesEvent()
- {
- LaszloEventEngine.setInPeriodShooterEvent(false);
- LaszloEventEngine.setShooterEventState(0);
- LaszloEventEngine.setShooterRegistratedNum(0);
- LaszloEventEngine.setShooterEventExtraInstancesCreated(0);
- LaszloEventEngine.setDistributingHelperShooterEvent(0);
- RedHelper = 0;
- BlueHelper = 0;
- for (int k = 0; k < 4; k++)
- {
- LaszloEventEngine.setShooterEventInstancesSlot(k, false);
- LaszloEventEngine.setShooterReadTime(k, 0);
- }
- for (int p = 0; p < 8; p++)
- {
- Points[p] = 0;
- }
- for (int i = 0; i < 5; i++)
- {
- LaszloEventEngine.setShooterRedPoints(i, 0);
- LaszloEventEngine.setShooterBluePoints(i, 0);
- LaszloEventEngine.setShooterPartakerNum(i, 0);
- LaszloEventEngine.setShooterRedPartakerNum(i, 0);
- LaszloEventEngine.setShooterBluePartakerNum(i, 0);
- LaszloEventEngine.setRedBombPlantedShooterEvent(i, false);
- LaszloEventEngine.setBlueBombPlantedShooterEvent(i, false);
- LaszloEventEngine.setRedStoreDownShooterEvent(i, false);
- LaszloEventEngine.setBlueStoreDownShooterEvent(i, false);
- LaszloEventEngine.setWinnerRedShooterEvent(i, false);
- LaszloEventEngine.setWinnerBlueShooterEvent(i, false);
- LaszloEventEngine.setTieShooterEvent(i, false);
- BombHelper1[i] = false;
- BombHelper2[i] = false;
- RespawnHelper[i] = false;
- for (int j = 0; j < 8; j++)
- {
- PointStadisticNum[i][j] = 0;
- PointStadisticId[i][j] = 0;
- }
- for (int j = 0; j <= Config.SHOOTER_EVENT_PARTICIPANTS_MAX_INSTANCE; j++)
- {
- for (int h = 0; h < 9; h++)
- {
- LaszloEventEngine.setCalculateStadisticsPoints(i, j, h, 0);
- }
- }
- }
- }
- public static void main(String[] args)
- {
- new STD(-1, "STD", "laszloevents");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement