diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/events/HappyHours/34262-1.htm b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/events/HappyHours/34262-1.htm deleted file mode 100644 index 562496c789..0000000000 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/events/HappyHours/34262-1.htm +++ /dev/null @@ -1,6 +0,0 @@ -Balthus Knights Supply Officer Sibi:
-Balthus Knight's Supply Box is a special item prepared by Duke Balthus Van Dyke for the Bathus Knights to alleviate their hardship.
-Can I really supply for the great warrior Lemniscate? Balthus Knight's Supply Box can only be obtained by one character Lv.20 and above per account.
- - - \ No newline at end of file diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/events/HappyHours/34262-2.htm b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/events/HappyHours/34262-2.htm deleted file mode 100644 index a323d5815f..0000000000 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/events/HappyHours/34262-2.htm +++ /dev/null @@ -1,6 +0,0 @@ -Balthus Knights Supply Officer Sibi:
-Augh! You're not a Balthus Knight! How come you had the crust to pretend being one!
-Well then, I forgive you this time. But if you try again to pass as ab Balthus Knight, you won't get away with that!
-(Supplies are given once a day, one piece per one account of a character who reached Level 20.)
- - \ No newline at end of file diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/events/HappyHours/34262-3.htm b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/events/HappyHours/34262-3.htm deleted file mode 100644 index 94a50a595c..0000000000 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/events/HappyHours/34262-3.htm +++ /dev/null @@ -1,6 +0,0 @@ -Balthus Knights Supply Officer Sibi:
-Hello! Do you know that greed comes before a fall? -You have already received your Supply Box, that's enough for you!
-Open your inventory, probably the box is there.
- - \ No newline at end of file diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/events/HappyHours/34262.htm b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/events/HappyHours/34262.htm deleted file mode 100644 index 09c0594652..0000000000 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/events/HappyHours/34262.htm +++ /dev/null @@ -1,13 +0,0 @@ -Balthus Knights Supply Officer Sibi:
-My name is Sibi, I am Balthus Knight's Supply Officer. The Lord of Oren Castle, Balthus Van Dyke, entrusted me with an important mission. Come to me whenever you need supplies for your missions.
-Besides, if you have Sibi's Coins, I can exchange them for useful consumables and some special rewards!
-When event ends the following items will be deleted: --Sibi's Coin --Balthus Knight's Mark --Balthus Knight's Supply Box --Sibi's Coin Box
- - - - - \ No newline at end of file diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/events/HappyHours/HappyHours.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/events/HappyHours/HappyHours.java deleted file mode 100644 index dd781227d6..0000000000 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/events/HappyHours/HappyHours.java +++ /dev/null @@ -1,126 +0,0 @@ -/* - * 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.HappyHours; - -import org.l2jmobius.commons.util.Chronos; -import org.l2jmobius.gameserver.model.World; -import org.l2jmobius.gameserver.model.actor.Npc; -import org.l2jmobius.gameserver.model.actor.Player; -import org.l2jmobius.gameserver.model.quest.LongTimeEvent; -import org.l2jmobius.gameserver.network.SystemMessageId; -import org.l2jmobius.gameserver.network.serverpackets.ExShowScreenMessage; -import org.l2jmobius.gameserver.network.serverpackets.SystemMessage; - -/** - * @author Mobius - */ -public class HappyHours extends LongTimeEvent -{ - // NPC - private static final int SIBI = 34262; - // Items - private static final int SUPPLY_BOX = 47399; - private static final int SIBIS_COIN = 49783; - // Skill - private static final int TRANSFORMATION_SKILL = 39171; - // Other - private static final int MIN_LEVEL = 20; - private static final int REWARD_INTERVAL = 60 * 60 * 1000; // 1 hour - private static long _lastRewardTime = Chronos.currentTimeMillis(); - - private HappyHours() - { - addStartNpc(SIBI); - addFirstTalkId(SIBI); - addTalkId(SIBI); - } - - @Override - public String onAdvEvent(String event, Npc npc, Player player) - { - String htmltext = null; - switch (event) - { - case "34262-1.htm": - { - htmltext = event; - break; - } - case "giveSupplyBox": - { - if (player.getLevel() < MIN_LEVEL) - { - return "34262-2.htm"; - } - if (ownsAtLeastOneItem(player, SUPPLY_BOX)) - { - return "34262-3.htm"; - } - giveItems(player, SUPPLY_BOX, 1); - break; - } - case "REWARD_SIBI_COINS": - { - if (isEventPeriod()) - { - if ((Chronos.currentTimeMillis() - (_lastRewardTime + REWARD_INTERVAL)) > 0) // Exploit check - Just in case. - { - _lastRewardTime = Chronos.currentTimeMillis(); - final ExShowScreenMessage screenMsg = new ExShowScreenMessage("You obtained 20 Sibi's coins.", ExShowScreenMessage.TOP_CENTER, 7000, 0, true, true); - final SystemMessage systemMsg = new SystemMessage(SystemMessageId.YOU_VE_OBTAINED_S1_LUCKY_COINS); - systemMsg.addInt(20); - for (Player plr : World.getInstance().getPlayers()) - { - if ((plr != null) && (plr.isOnlineInt() == 1) && plr.isAffectedBySkill(TRANSFORMATION_SKILL)) - { - plr.addItem("HappyHours", SIBIS_COIN, 20, player, false); - plr.sendPacket(screenMsg); - plr.sendPacket(systemMsg); - // TODO: Random reward. - } - } - } - } - else - { - cancelQuestTimers("REWARD_SIBI_COINS"); - } - break; - } - } - return htmltext; - } - - @Override - public String onFirstTalk(Npc npc, Player player) - { - return "34262.htm"; - } - - @Override - protected void startEvent() - { - super.startEvent(); - cancelQuestTimers("REWARD_SIBI_COINS"); - startQuestTimer("REWARD_SIBI_COINS", REWARD_INTERVAL + 1000, null, null, true); - } - - public static void main(String[] args) - { - new HappyHours(); - } -} diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/events/HappyHours/config.xml b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/events/HappyHours/config.xml deleted file mode 100644 index 372d1ac88b..0000000000 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/events/HappyHours/config.xml +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/L2J_Mobius_10.1_MasterClass/dist/game/data/scripts/events/HappyHours/34262-1.htm b/L2J_Mobius_10.1_MasterClass/dist/game/data/scripts/events/HappyHours/34262-1.htm deleted file mode 100644 index 562496c789..0000000000 --- a/L2J_Mobius_10.1_MasterClass/dist/game/data/scripts/events/HappyHours/34262-1.htm +++ /dev/null @@ -1,6 +0,0 @@ -Balthus Knights Supply Officer Sibi:
-Balthus Knight's Supply Box is a special item prepared by Duke Balthus Van Dyke for the Bathus Knights to alleviate their hardship.
-Can I really supply for the great warrior Lemniscate? Balthus Knight's Supply Box can only be obtained by one character Lv.20 and above per account.
- - - \ No newline at end of file diff --git a/L2J_Mobius_10.1_MasterClass/dist/game/data/scripts/events/HappyHours/34262-2.htm b/L2J_Mobius_10.1_MasterClass/dist/game/data/scripts/events/HappyHours/34262-2.htm deleted file mode 100644 index a323d5815f..0000000000 --- a/L2J_Mobius_10.1_MasterClass/dist/game/data/scripts/events/HappyHours/34262-2.htm +++ /dev/null @@ -1,6 +0,0 @@ -Balthus Knights Supply Officer Sibi:
-Augh! You're not a Balthus Knight! How come you had the crust to pretend being one!
-Well then, I forgive you this time. But if you try again to pass as ab Balthus Knight, you won't get away with that!
-(Supplies are given once a day, one piece per one account of a character who reached Level 20.)
- - \ No newline at end of file diff --git a/L2J_Mobius_10.1_MasterClass/dist/game/data/scripts/events/HappyHours/34262-3.htm b/L2J_Mobius_10.1_MasterClass/dist/game/data/scripts/events/HappyHours/34262-3.htm deleted file mode 100644 index 94a50a595c..0000000000 --- a/L2J_Mobius_10.1_MasterClass/dist/game/data/scripts/events/HappyHours/34262-3.htm +++ /dev/null @@ -1,6 +0,0 @@ -Balthus Knights Supply Officer Sibi:
-Hello! Do you know that greed comes before a fall? -You have already received your Supply Box, that's enough for you!
-Open your inventory, probably the box is there.
- - \ No newline at end of file diff --git a/L2J_Mobius_10.1_MasterClass/dist/game/data/scripts/events/HappyHours/34262.htm b/L2J_Mobius_10.1_MasterClass/dist/game/data/scripts/events/HappyHours/34262.htm deleted file mode 100644 index 09c0594652..0000000000 --- a/L2J_Mobius_10.1_MasterClass/dist/game/data/scripts/events/HappyHours/34262.htm +++ /dev/null @@ -1,13 +0,0 @@ -Balthus Knights Supply Officer Sibi:
-My name is Sibi, I am Balthus Knight's Supply Officer. The Lord of Oren Castle, Balthus Van Dyke, entrusted me with an important mission. Come to me whenever you need supplies for your missions.
-Besides, if you have Sibi's Coins, I can exchange them for useful consumables and some special rewards!
-When event ends the following items will be deleted: --Sibi's Coin --Balthus Knight's Mark --Balthus Knight's Supply Box --Sibi's Coin Box
- - - - - \ No newline at end of file diff --git a/L2J_Mobius_10.1_MasterClass/dist/game/data/scripts/events/HappyHours/HappyHours.java b/L2J_Mobius_10.1_MasterClass/dist/game/data/scripts/events/HappyHours/HappyHours.java deleted file mode 100644 index 785f6543c4..0000000000 --- a/L2J_Mobius_10.1_MasterClass/dist/game/data/scripts/events/HappyHours/HappyHours.java +++ /dev/null @@ -1,126 +0,0 @@ -/* - * 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.HappyHours; - -import org.l2jmobius.commons.util.Chronos; -import org.l2jmobius.gameserver.model.World; -import org.l2jmobius.gameserver.model.actor.Npc; -import org.l2jmobius.gameserver.model.actor.Player; -import org.l2jmobius.gameserver.model.quest.LongTimeEvent; -import org.l2jmobius.gameserver.network.SystemMessageId; -import org.l2jmobius.gameserver.network.serverpackets.ExShowScreenMessage; -import org.l2jmobius.gameserver.network.serverpackets.SystemMessage; - -/** - * @author Mobius - */ -public class HappyHours extends LongTimeEvent -{ - // NPC - private static final int SIBI = 34262; - // Items - private static final int SUPPLY_BOX = 47399; - private static final int SIBIS_COIN = 49783; - // Skill - private static final int TRANSFORMATION_SKILL = 39171; - // Other - private static final int MIN_LEVEL = 20; - private static final int REWARD_INTERVAL = 60 * 60 * 1000; // 1 hour - private static long _lastRewardTime = Chronos.currentTimeMillis(); - - private HappyHours() - { - addStartNpc(SIBI); - addFirstTalkId(SIBI); - addTalkId(SIBI); - } - - @Override - public String onAdvEvent(String event, Npc npc, Player player) - { - String htmltext = null; - switch (event) - { - case "34262-1.htm": - { - htmltext = event; - break; - } - case "giveSupplyBox": - { - if (player.getLevel() < MIN_LEVEL) - { - return "34262-2.htm"; - } - if (ownsAtLeastOneItem(player, SUPPLY_BOX)) - { - return "34262-3.htm"; - } - giveItems(player, SUPPLY_BOX, 1); - break; - } - case "REWARD_SIBI_COINS": - { - if (isEventPeriod()) - { - if ((Chronos.currentTimeMillis() - (_lastRewardTime + REWARD_INTERVAL)) > 0) // Exploit check - Just in case. - { - _lastRewardTime = Chronos.currentTimeMillis(); - final ExShowScreenMessage screenMsg = new ExShowScreenMessage("You obtained 20 Sibi's coins.", ExShowScreenMessage.TOP_CENTER, 7000, 0, true, true); - final SystemMessage systemMsg = new SystemMessage(SystemMessageId.YOU_VE_OBTAINED_S1_FAIRY_S_LUCKY_COINS); - systemMsg.addInt(20); - for (Player plr : World.getInstance().getPlayers()) - { - if ((plr != null) && (plr.isOnlineInt() == 1) && plr.isAffectedBySkill(TRANSFORMATION_SKILL)) - { - plr.addItem("HappyHours", SIBIS_COIN, 20, player, false); - plr.sendPacket(screenMsg); - plr.sendPacket(systemMsg); - // TODO: Random reward. - } - } - } - } - else - { - cancelQuestTimers("REWARD_SIBI_COINS"); - } - break; - } - } - return htmltext; - } - - @Override - public String onFirstTalk(Npc npc, Player player) - { - return "34262.htm"; - } - - @Override - protected void startEvent() - { - super.startEvent(); - cancelQuestTimers("REWARD_SIBI_COINS"); - startQuestTimer("REWARD_SIBI_COINS", REWARD_INTERVAL + 1000, null, null, true); - } - - public static void main(String[] args) - { - new HappyHours(); - } -} diff --git a/L2J_Mobius_10.1_MasterClass/dist/game/data/scripts/events/HappyHours/config.xml b/L2J_Mobius_10.1_MasterClass/dist/game/data/scripts/events/HappyHours/config.xml deleted file mode 100644 index 372d1ac88b..0000000000 --- a/L2J_Mobius_10.1_MasterClass/dist/game/data/scripts/events/HappyHours/config.xml +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/L2J_Mobius_10.2_MasterClass/dist/game/data/scripts/events/HappyHours/34262-1.htm b/L2J_Mobius_10.2_MasterClass/dist/game/data/scripts/events/HappyHours/34262-1.htm deleted file mode 100644 index 562496c789..0000000000 --- a/L2J_Mobius_10.2_MasterClass/dist/game/data/scripts/events/HappyHours/34262-1.htm +++ /dev/null @@ -1,6 +0,0 @@ -Balthus Knights Supply Officer Sibi:
-Balthus Knight's Supply Box is a special item prepared by Duke Balthus Van Dyke for the Bathus Knights to alleviate their hardship.
-Can I really supply for the great warrior Lemniscate? Balthus Knight's Supply Box can only be obtained by one character Lv.20 and above per account.
- - - \ No newline at end of file diff --git a/L2J_Mobius_10.2_MasterClass/dist/game/data/scripts/events/HappyHours/34262-2.htm b/L2J_Mobius_10.2_MasterClass/dist/game/data/scripts/events/HappyHours/34262-2.htm deleted file mode 100644 index a323d5815f..0000000000 --- a/L2J_Mobius_10.2_MasterClass/dist/game/data/scripts/events/HappyHours/34262-2.htm +++ /dev/null @@ -1,6 +0,0 @@ -Balthus Knights Supply Officer Sibi:
-Augh! You're not a Balthus Knight! How come you had the crust to pretend being one!
-Well then, I forgive you this time. But if you try again to pass as ab Balthus Knight, you won't get away with that!
-(Supplies are given once a day, one piece per one account of a character who reached Level 20.)
- - \ No newline at end of file diff --git a/L2J_Mobius_10.2_MasterClass/dist/game/data/scripts/events/HappyHours/34262-3.htm b/L2J_Mobius_10.2_MasterClass/dist/game/data/scripts/events/HappyHours/34262-3.htm deleted file mode 100644 index 94a50a595c..0000000000 --- a/L2J_Mobius_10.2_MasterClass/dist/game/data/scripts/events/HappyHours/34262-3.htm +++ /dev/null @@ -1,6 +0,0 @@ -Balthus Knights Supply Officer Sibi:
-Hello! Do you know that greed comes before a fall? -You have already received your Supply Box, that's enough for you!
-Open your inventory, probably the box is there.
- - \ No newline at end of file diff --git a/L2J_Mobius_10.2_MasterClass/dist/game/data/scripts/events/HappyHours/34262.htm b/L2J_Mobius_10.2_MasterClass/dist/game/data/scripts/events/HappyHours/34262.htm deleted file mode 100644 index 09c0594652..0000000000 --- a/L2J_Mobius_10.2_MasterClass/dist/game/data/scripts/events/HappyHours/34262.htm +++ /dev/null @@ -1,13 +0,0 @@ -Balthus Knights Supply Officer Sibi:
-My name is Sibi, I am Balthus Knight's Supply Officer. The Lord of Oren Castle, Balthus Van Dyke, entrusted me with an important mission. Come to me whenever you need supplies for your missions.
-Besides, if you have Sibi's Coins, I can exchange them for useful consumables and some special rewards!
-When event ends the following items will be deleted: --Sibi's Coin --Balthus Knight's Mark --Balthus Knight's Supply Box --Sibi's Coin Box
- - - - - \ No newline at end of file diff --git a/L2J_Mobius_10.2_MasterClass/dist/game/data/scripts/events/HappyHours/HappyHours.java b/L2J_Mobius_10.2_MasterClass/dist/game/data/scripts/events/HappyHours/HappyHours.java deleted file mode 100644 index 785f6543c4..0000000000 --- a/L2J_Mobius_10.2_MasterClass/dist/game/data/scripts/events/HappyHours/HappyHours.java +++ /dev/null @@ -1,126 +0,0 @@ -/* - * 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.HappyHours; - -import org.l2jmobius.commons.util.Chronos; -import org.l2jmobius.gameserver.model.World; -import org.l2jmobius.gameserver.model.actor.Npc; -import org.l2jmobius.gameserver.model.actor.Player; -import org.l2jmobius.gameserver.model.quest.LongTimeEvent; -import org.l2jmobius.gameserver.network.SystemMessageId; -import org.l2jmobius.gameserver.network.serverpackets.ExShowScreenMessage; -import org.l2jmobius.gameserver.network.serverpackets.SystemMessage; - -/** - * @author Mobius - */ -public class HappyHours extends LongTimeEvent -{ - // NPC - private static final int SIBI = 34262; - // Items - private static final int SUPPLY_BOX = 47399; - private static final int SIBIS_COIN = 49783; - // Skill - private static final int TRANSFORMATION_SKILL = 39171; - // Other - private static final int MIN_LEVEL = 20; - private static final int REWARD_INTERVAL = 60 * 60 * 1000; // 1 hour - private static long _lastRewardTime = Chronos.currentTimeMillis(); - - private HappyHours() - { - addStartNpc(SIBI); - addFirstTalkId(SIBI); - addTalkId(SIBI); - } - - @Override - public String onAdvEvent(String event, Npc npc, Player player) - { - String htmltext = null; - switch (event) - { - case "34262-1.htm": - { - htmltext = event; - break; - } - case "giveSupplyBox": - { - if (player.getLevel() < MIN_LEVEL) - { - return "34262-2.htm"; - } - if (ownsAtLeastOneItem(player, SUPPLY_BOX)) - { - return "34262-3.htm"; - } - giveItems(player, SUPPLY_BOX, 1); - break; - } - case "REWARD_SIBI_COINS": - { - if (isEventPeriod()) - { - if ((Chronos.currentTimeMillis() - (_lastRewardTime + REWARD_INTERVAL)) > 0) // Exploit check - Just in case. - { - _lastRewardTime = Chronos.currentTimeMillis(); - final ExShowScreenMessage screenMsg = new ExShowScreenMessage("You obtained 20 Sibi's coins.", ExShowScreenMessage.TOP_CENTER, 7000, 0, true, true); - final SystemMessage systemMsg = new SystemMessage(SystemMessageId.YOU_VE_OBTAINED_S1_FAIRY_S_LUCKY_COINS); - systemMsg.addInt(20); - for (Player plr : World.getInstance().getPlayers()) - { - if ((plr != null) && (plr.isOnlineInt() == 1) && plr.isAffectedBySkill(TRANSFORMATION_SKILL)) - { - plr.addItem("HappyHours", SIBIS_COIN, 20, player, false); - plr.sendPacket(screenMsg); - plr.sendPacket(systemMsg); - // TODO: Random reward. - } - } - } - } - else - { - cancelQuestTimers("REWARD_SIBI_COINS"); - } - break; - } - } - return htmltext; - } - - @Override - public String onFirstTalk(Npc npc, Player player) - { - return "34262.htm"; - } - - @Override - protected void startEvent() - { - super.startEvent(); - cancelQuestTimers("REWARD_SIBI_COINS"); - startQuestTimer("REWARD_SIBI_COINS", REWARD_INTERVAL + 1000, null, null, true); - } - - public static void main(String[] args) - { - new HappyHours(); - } -} diff --git a/L2J_Mobius_10.2_MasterClass/dist/game/data/scripts/events/HappyHours/config.xml b/L2J_Mobius_10.2_MasterClass/dist/game/data/scripts/events/HappyHours/config.xml deleted file mode 100644 index 372d1ac88b..0000000000 --- a/L2J_Mobius_10.2_MasterClass/dist/game/data/scripts/events/HappyHours/config.xml +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file