/* * This file is part of the L2J Mobius project. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ package events.RedLibra; import com.l2jmobius.gameserver.model.actor.L2Npc; import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance; import com.l2jmobius.gameserver.model.event.LongTimeEvent; /** * Red Libra
* Info - http://www.lineage2.com/en/news/events/01202016-red-libra.php * @author Mobius */ final class RedLibra extends LongTimeEvent { // NPCs private static final int RED = 34210; private static final int GREEN = 34211; private static final int BLACK = 34212; private static final int PINK = 34213; private static final int BLUE = 34214; private RedLibra() { super(RedLibra.class.getSimpleName(), "events"); addStartNpc(RED, GREEN, BLACK, PINK, BLUE); addFirstTalkId(RED, GREEN, BLACK, PINK, BLUE); addTalkId(RED, GREEN, BLACK, PINK, BLUE); } @Override public String onAdvEvent(String event, L2Npc npc, L2PcInstance player) { String htmltext = null; switch (event) { case "34210-1.htm": case "34211-1.htm": case "34211-2.htm": case "34212-1.htm": case "34212-2.htm": case "34212-3.htm": case "34213-1.htm": case "34213-2.htm": case "34213-3.htm": case "34214-1.htm": { htmltext = event; break; } } return htmltext; } @Override public String onFirstTalk(L2Npc npc, L2PcInstance player) { return npc.getId() + "-1.htm"; } public static void main(String[] args) { new RedLibra(); } }