diff --git a/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/events/HungryHorse/34010-01.htm b/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/events/HungryHorse/34010-01.htm
new file mode 100644
index 0000000000..9948b9db72
--- /dev/null
+++ b/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/events/HungryHorse/34010-01.htm
@@ -0,0 +1,11 @@
+
Galup:
+What a strange place! Even my great clan is unknown here.
+Aden, is it? Beh. All these dimensions twisting around... thanks to that, I fell while flying. And I lost all my carrots!
+I was raised in a proud family, so I only eat organic. That means I have a hard time finding food...
+Do you know if there are any carrots around? Organic, of course.
+Or better yet, how about you bring me the carrots? I'll give you something nice in return!
+
+
+
+
+
\ No newline at end of file
diff --git a/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/events/HungryHorse/34010-02.htm b/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/events/HungryHorse/34010-02.htm
new file mode 100644
index 0000000000..247ab3016b
--- /dev/null
+++ b/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/events/HungryHorse/34010-02.htm
@@ -0,0 +1,7 @@
+Galup:
+You brought 7 carrots? Hmm.. I'm still hungry. Well, at least you got me some, so I'll give you the Abundant blessing. Pick the one you want.
+
+
+
+
+
\ No newline at end of file
diff --git a/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/events/HungryHorse/34010-03.htm b/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/events/HungryHorse/34010-03.htm
new file mode 100644
index 0000000000..76bf10d284
--- /dev/null
+++ b/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/events/HungryHorse/34010-03.htm
@@ -0,0 +1,3 @@
+Galup:
+Huh? This isn't enough. Bring me more carrots.
+
\ No newline at end of file
diff --git a/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/events/HungryHorse/34010-04.htm b/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/events/HungryHorse/34010-04.htm
new file mode 100644
index 0000000000..bcb7750795
--- /dev/null
+++ b/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/events/HungryHorse/34010-04.htm
@@ -0,0 +1,4 @@
+Galup:
+Thanks for gathering these carrots. By any chance, do you have any more?
+
+
\ No newline at end of file
diff --git a/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/events/HungryHorse/HungryHorse.java b/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/events/HungryHorse/HungryHorse.java
new file mode 100644
index 0000000000..98a8e171cb
--- /dev/null
+++ b/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/events/HungryHorse/HungryHorse.java
@@ -0,0 +1,180 @@
+/*
+ * 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.HungryHorse;
+
+import com.l2jmobius.gameserver.model.actor.L2Npc;
+import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
+import com.l2jmobius.gameserver.model.holders.SkillHolder;
+import com.l2jmobius.gameserver.model.quest.LongTimeEvent;
+import com.l2jmobius.gameserver.model.skills.SkillCaster;
+
+/**
+ * Hungry Horse
+ * @URL http://www.lineage2.com/en/news/events/hungry-horse-event-09192017.php
+ * @author Mobius
+ */
+public final class HungryHorse extends LongTimeEvent
+{
+ // NPC
+ private static final int GALUP = 34010;
+ // Items
+ private static final int CARROT = 40363;
+ private static final int POUCH = 40365;
+ // Skills
+ private static final SkillHolder KNIGHT = new SkillHolder(15648, 1); // Knight's Harmony
+ private static final SkillHolder WARRIOR = new SkillHolder(15649, 1); // Warrior's Harmony
+ private static final SkillHolder WIZARD = new SkillHolder(15650, 1); // Wizard's Harmony
+ private static final SkillHolder[] GROUP_BUFFS =
+ {
+ new SkillHolder(15642, 1), // Horn Melody
+ new SkillHolder(15643, 1), // Drum Melody
+ new SkillHolder(15644, 1), // Pipe Organ Melody
+ new SkillHolder(15645, 1), // Guitar Melody
+ new SkillHolder(15646, 1), // Harp Melody
+ new SkillHolder(15647, 1), // Lute Melody
+ new SkillHolder(15651, 1), // Prevailing Sonata
+ new SkillHolder(15652, 1), // Daring Sonata
+ new SkillHolder(15653, 1), // Refreshing Sonata
+ };
+
+ private HungryHorse()
+ {
+ addStartNpc(GALUP);
+ addFirstTalkId(GALUP);
+ addTalkId(GALUP);
+ }
+
+ @Override
+ public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
+ {
+ String htmltext = null;
+ switch (event)
+ {
+ case "34010-01.htm":
+ case "34010-02.htm":
+ {
+ htmltext = event;
+ break;
+ }
+ case "knight":
+ {
+ if (getQuestItemsCount(player, CARROT) >= 7)
+ {
+ takeItems(player, CARROT, 7);
+ for (SkillHolder holder : GROUP_BUFFS)
+ {
+ SkillCaster.triggerCast(npc, player, holder.getSkill());
+ }
+ SkillCaster.triggerCast(npc, player, KNIGHT.getSkill());
+ }
+ else
+ {
+ htmltext = "34010-03.htm";
+ }
+ break;
+ }
+ case "warrior":
+ {
+ if (getQuestItemsCount(player, CARROT) >= 7)
+ {
+ takeItems(player, CARROT, 7);
+ for (SkillHolder holder : GROUP_BUFFS)
+ {
+ SkillCaster.triggerCast(npc, player, holder.getSkill());
+ }
+ SkillCaster.triggerCast(npc, player, WARRIOR.getSkill());
+ }
+ else
+ {
+ htmltext = "34010-03.htm";
+ }
+ break;
+ }
+ case "wizard":
+ {
+ if (getQuestItemsCount(player, CARROT) >= 7)
+ {
+ takeItems(player, CARROT, 7);
+ for (SkillHolder holder : GROUP_BUFFS)
+ {
+ SkillCaster.triggerCast(npc, player, holder.getSkill());
+ }
+ SkillCaster.triggerCast(npc, player, WIZARD.getSkill());
+ }
+ else
+ {
+ htmltext = "34010-03.htm";
+ }
+ break;
+ }
+ case "giveCarrots40":
+ {
+ if (getQuestItemsCount(player, CARROT) >= 40)
+ {
+ takeItems(player, CARROT, 40);
+ giveItems(player, POUCH, 1);
+ htmltext = "34010-04.htm";
+ }
+ else
+ {
+ htmltext = "34010-03.htm";
+ }
+ break;
+ }
+ case "giveCarrots4000":
+ {
+ if (getQuestItemsCount(player, CARROT) >= 4000)
+ {
+ takeItems(player, CARROT, 4000);
+ giveItems(player, POUCH, 100);
+ htmltext = "34010-04.htm";
+ }
+ else
+ {
+ htmltext = "34010-03.htm";
+ }
+ break;
+ }
+ case "giveCarrots40000":
+ {
+ if (getQuestItemsCount(player, CARROT) >= 40000)
+ {
+ takeItems(player, CARROT, 40000);
+ giveItems(player, POUCH, 1000);
+ htmltext = "34010-04.htm";
+ }
+ else
+ {
+ htmltext = "34010-03.htm";
+ }
+ break;
+ }
+ }
+ return htmltext;
+ }
+
+ @Override
+ public String onFirstTalk(L2Npc npc, L2PcInstance player)
+ {
+ return npc.getId() + "-01.htm";
+ }
+
+ public static void main(String[] args)
+ {
+ new HungryHorse();
+ }
+}
diff --git a/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/events/HungryHorse/config.xml b/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/events/HungryHorse/config.xml
new file mode 100644
index 0000000000..de1061f9e5
--- /dev/null
+++ b/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/events/HungryHorse/config.xml
@@ -0,0 +1,26 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/L2J_Mobius_2.5_Underground/dist/game/data/scripts/events/HungryHorse/34010-01.htm b/L2J_Mobius_2.5_Underground/dist/game/data/scripts/events/HungryHorse/34010-01.htm
new file mode 100644
index 0000000000..9948b9db72
--- /dev/null
+++ b/L2J_Mobius_2.5_Underground/dist/game/data/scripts/events/HungryHorse/34010-01.htm
@@ -0,0 +1,11 @@
+Galup:
+What a strange place! Even my great clan is unknown here.
+Aden, is it? Beh. All these dimensions twisting around... thanks to that, I fell while flying. And I lost all my carrots!
+I was raised in a proud family, so I only eat organic. That means I have a hard time finding food...
+Do you know if there are any carrots around? Organic, of course.
+Or better yet, how about you bring me the carrots? I'll give you something nice in return!
+
+
+
+
+
\ No newline at end of file
diff --git a/L2J_Mobius_2.5_Underground/dist/game/data/scripts/events/HungryHorse/34010-02.htm b/L2J_Mobius_2.5_Underground/dist/game/data/scripts/events/HungryHorse/34010-02.htm
new file mode 100644
index 0000000000..247ab3016b
--- /dev/null
+++ b/L2J_Mobius_2.5_Underground/dist/game/data/scripts/events/HungryHorse/34010-02.htm
@@ -0,0 +1,7 @@
+Galup:
+You brought 7 carrots? Hmm.. I'm still hungry. Well, at least you got me some, so I'll give you the Abundant blessing. Pick the one you want.
+
+
+
+
+
\ No newline at end of file
diff --git a/L2J_Mobius_2.5_Underground/dist/game/data/scripts/events/HungryHorse/34010-03.htm b/L2J_Mobius_2.5_Underground/dist/game/data/scripts/events/HungryHorse/34010-03.htm
new file mode 100644
index 0000000000..76bf10d284
--- /dev/null
+++ b/L2J_Mobius_2.5_Underground/dist/game/data/scripts/events/HungryHorse/34010-03.htm
@@ -0,0 +1,3 @@
+Galup:
+Huh? This isn't enough. Bring me more carrots.
+
\ No newline at end of file
diff --git a/L2J_Mobius_2.5_Underground/dist/game/data/scripts/events/HungryHorse/34010-04.htm b/L2J_Mobius_2.5_Underground/dist/game/data/scripts/events/HungryHorse/34010-04.htm
new file mode 100644
index 0000000000..bcb7750795
--- /dev/null
+++ b/L2J_Mobius_2.5_Underground/dist/game/data/scripts/events/HungryHorse/34010-04.htm
@@ -0,0 +1,4 @@
+Galup:
+Thanks for gathering these carrots. By any chance, do you have any more?
+
+
\ No newline at end of file
diff --git a/L2J_Mobius_2.5_Underground/dist/game/data/scripts/events/HungryHorse/HungryHorse.java b/L2J_Mobius_2.5_Underground/dist/game/data/scripts/events/HungryHorse/HungryHorse.java
new file mode 100644
index 0000000000..98a8e171cb
--- /dev/null
+++ b/L2J_Mobius_2.5_Underground/dist/game/data/scripts/events/HungryHorse/HungryHorse.java
@@ -0,0 +1,180 @@
+/*
+ * 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.HungryHorse;
+
+import com.l2jmobius.gameserver.model.actor.L2Npc;
+import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
+import com.l2jmobius.gameserver.model.holders.SkillHolder;
+import com.l2jmobius.gameserver.model.quest.LongTimeEvent;
+import com.l2jmobius.gameserver.model.skills.SkillCaster;
+
+/**
+ * Hungry Horse
+ * @URL http://www.lineage2.com/en/news/events/hungry-horse-event-09192017.php
+ * @author Mobius
+ */
+public final class HungryHorse extends LongTimeEvent
+{
+ // NPC
+ private static final int GALUP = 34010;
+ // Items
+ private static final int CARROT = 40363;
+ private static final int POUCH = 40365;
+ // Skills
+ private static final SkillHolder KNIGHT = new SkillHolder(15648, 1); // Knight's Harmony
+ private static final SkillHolder WARRIOR = new SkillHolder(15649, 1); // Warrior's Harmony
+ private static final SkillHolder WIZARD = new SkillHolder(15650, 1); // Wizard's Harmony
+ private static final SkillHolder[] GROUP_BUFFS =
+ {
+ new SkillHolder(15642, 1), // Horn Melody
+ new SkillHolder(15643, 1), // Drum Melody
+ new SkillHolder(15644, 1), // Pipe Organ Melody
+ new SkillHolder(15645, 1), // Guitar Melody
+ new SkillHolder(15646, 1), // Harp Melody
+ new SkillHolder(15647, 1), // Lute Melody
+ new SkillHolder(15651, 1), // Prevailing Sonata
+ new SkillHolder(15652, 1), // Daring Sonata
+ new SkillHolder(15653, 1), // Refreshing Sonata
+ };
+
+ private HungryHorse()
+ {
+ addStartNpc(GALUP);
+ addFirstTalkId(GALUP);
+ addTalkId(GALUP);
+ }
+
+ @Override
+ public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
+ {
+ String htmltext = null;
+ switch (event)
+ {
+ case "34010-01.htm":
+ case "34010-02.htm":
+ {
+ htmltext = event;
+ break;
+ }
+ case "knight":
+ {
+ if (getQuestItemsCount(player, CARROT) >= 7)
+ {
+ takeItems(player, CARROT, 7);
+ for (SkillHolder holder : GROUP_BUFFS)
+ {
+ SkillCaster.triggerCast(npc, player, holder.getSkill());
+ }
+ SkillCaster.triggerCast(npc, player, KNIGHT.getSkill());
+ }
+ else
+ {
+ htmltext = "34010-03.htm";
+ }
+ break;
+ }
+ case "warrior":
+ {
+ if (getQuestItemsCount(player, CARROT) >= 7)
+ {
+ takeItems(player, CARROT, 7);
+ for (SkillHolder holder : GROUP_BUFFS)
+ {
+ SkillCaster.triggerCast(npc, player, holder.getSkill());
+ }
+ SkillCaster.triggerCast(npc, player, WARRIOR.getSkill());
+ }
+ else
+ {
+ htmltext = "34010-03.htm";
+ }
+ break;
+ }
+ case "wizard":
+ {
+ if (getQuestItemsCount(player, CARROT) >= 7)
+ {
+ takeItems(player, CARROT, 7);
+ for (SkillHolder holder : GROUP_BUFFS)
+ {
+ SkillCaster.triggerCast(npc, player, holder.getSkill());
+ }
+ SkillCaster.triggerCast(npc, player, WIZARD.getSkill());
+ }
+ else
+ {
+ htmltext = "34010-03.htm";
+ }
+ break;
+ }
+ case "giveCarrots40":
+ {
+ if (getQuestItemsCount(player, CARROT) >= 40)
+ {
+ takeItems(player, CARROT, 40);
+ giveItems(player, POUCH, 1);
+ htmltext = "34010-04.htm";
+ }
+ else
+ {
+ htmltext = "34010-03.htm";
+ }
+ break;
+ }
+ case "giveCarrots4000":
+ {
+ if (getQuestItemsCount(player, CARROT) >= 4000)
+ {
+ takeItems(player, CARROT, 4000);
+ giveItems(player, POUCH, 100);
+ htmltext = "34010-04.htm";
+ }
+ else
+ {
+ htmltext = "34010-03.htm";
+ }
+ break;
+ }
+ case "giveCarrots40000":
+ {
+ if (getQuestItemsCount(player, CARROT) >= 40000)
+ {
+ takeItems(player, CARROT, 40000);
+ giveItems(player, POUCH, 1000);
+ htmltext = "34010-04.htm";
+ }
+ else
+ {
+ htmltext = "34010-03.htm";
+ }
+ break;
+ }
+ }
+ return htmltext;
+ }
+
+ @Override
+ public String onFirstTalk(L2Npc npc, L2PcInstance player)
+ {
+ return npc.getId() + "-01.htm";
+ }
+
+ public static void main(String[] args)
+ {
+ new HungryHorse();
+ }
+}
diff --git a/L2J_Mobius_2.5_Underground/dist/game/data/scripts/events/HungryHorse/config.xml b/L2J_Mobius_2.5_Underground/dist/game/data/scripts/events/HungryHorse/config.xml
new file mode 100644
index 0000000000..de1061f9e5
--- /dev/null
+++ b/L2J_Mobius_2.5_Underground/dist/game/data/scripts/events/HungryHorse/config.xml
@@ -0,0 +1,26 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/events/HungryHorse/34010-01.htm b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/events/HungryHorse/34010-01.htm
new file mode 100644
index 0000000000..9948b9db72
--- /dev/null
+++ b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/events/HungryHorse/34010-01.htm
@@ -0,0 +1,11 @@
+Galup:
+What a strange place! Even my great clan is unknown here.
+Aden, is it? Beh. All these dimensions twisting around... thanks to that, I fell while flying. And I lost all my carrots!
+I was raised in a proud family, so I only eat organic. That means I have a hard time finding food...
+Do you know if there are any carrots around? Organic, of course.
+Or better yet, how about you bring me the carrots? I'll give you something nice in return!
+
+
+
+
+
\ No newline at end of file
diff --git a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/events/HungryHorse/34010-02.htm b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/events/HungryHorse/34010-02.htm
new file mode 100644
index 0000000000..247ab3016b
--- /dev/null
+++ b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/events/HungryHorse/34010-02.htm
@@ -0,0 +1,7 @@
+Galup:
+You brought 7 carrots? Hmm.. I'm still hungry. Well, at least you got me some, so I'll give you the Abundant blessing. Pick the one you want.
+
+
+
+
+
\ No newline at end of file
diff --git a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/events/HungryHorse/34010-03.htm b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/events/HungryHorse/34010-03.htm
new file mode 100644
index 0000000000..76bf10d284
--- /dev/null
+++ b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/events/HungryHorse/34010-03.htm
@@ -0,0 +1,3 @@
+Galup:
+Huh? This isn't enough. Bring me more carrots.
+
\ No newline at end of file
diff --git a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/events/HungryHorse/34010-04.htm b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/events/HungryHorse/34010-04.htm
new file mode 100644
index 0000000000..bcb7750795
--- /dev/null
+++ b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/events/HungryHorse/34010-04.htm
@@ -0,0 +1,4 @@
+Galup:
+Thanks for gathering these carrots. By any chance, do you have any more?
+
+
\ No newline at end of file
diff --git a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/events/HungryHorse/HungryHorse.java b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/events/HungryHorse/HungryHorse.java
new file mode 100644
index 0000000000..98a8e171cb
--- /dev/null
+++ b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/events/HungryHorse/HungryHorse.java
@@ -0,0 +1,180 @@
+/*
+ * 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.HungryHorse;
+
+import com.l2jmobius.gameserver.model.actor.L2Npc;
+import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
+import com.l2jmobius.gameserver.model.holders.SkillHolder;
+import com.l2jmobius.gameserver.model.quest.LongTimeEvent;
+import com.l2jmobius.gameserver.model.skills.SkillCaster;
+
+/**
+ * Hungry Horse
+ * @URL http://www.lineage2.com/en/news/events/hungry-horse-event-09192017.php
+ * @author Mobius
+ */
+public final class HungryHorse extends LongTimeEvent
+{
+ // NPC
+ private static final int GALUP = 34010;
+ // Items
+ private static final int CARROT = 40363;
+ private static final int POUCH = 40365;
+ // Skills
+ private static final SkillHolder KNIGHT = new SkillHolder(15648, 1); // Knight's Harmony
+ private static final SkillHolder WARRIOR = new SkillHolder(15649, 1); // Warrior's Harmony
+ private static final SkillHolder WIZARD = new SkillHolder(15650, 1); // Wizard's Harmony
+ private static final SkillHolder[] GROUP_BUFFS =
+ {
+ new SkillHolder(15642, 1), // Horn Melody
+ new SkillHolder(15643, 1), // Drum Melody
+ new SkillHolder(15644, 1), // Pipe Organ Melody
+ new SkillHolder(15645, 1), // Guitar Melody
+ new SkillHolder(15646, 1), // Harp Melody
+ new SkillHolder(15647, 1), // Lute Melody
+ new SkillHolder(15651, 1), // Prevailing Sonata
+ new SkillHolder(15652, 1), // Daring Sonata
+ new SkillHolder(15653, 1), // Refreshing Sonata
+ };
+
+ private HungryHorse()
+ {
+ addStartNpc(GALUP);
+ addFirstTalkId(GALUP);
+ addTalkId(GALUP);
+ }
+
+ @Override
+ public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
+ {
+ String htmltext = null;
+ switch (event)
+ {
+ case "34010-01.htm":
+ case "34010-02.htm":
+ {
+ htmltext = event;
+ break;
+ }
+ case "knight":
+ {
+ if (getQuestItemsCount(player, CARROT) >= 7)
+ {
+ takeItems(player, CARROT, 7);
+ for (SkillHolder holder : GROUP_BUFFS)
+ {
+ SkillCaster.triggerCast(npc, player, holder.getSkill());
+ }
+ SkillCaster.triggerCast(npc, player, KNIGHT.getSkill());
+ }
+ else
+ {
+ htmltext = "34010-03.htm";
+ }
+ break;
+ }
+ case "warrior":
+ {
+ if (getQuestItemsCount(player, CARROT) >= 7)
+ {
+ takeItems(player, CARROT, 7);
+ for (SkillHolder holder : GROUP_BUFFS)
+ {
+ SkillCaster.triggerCast(npc, player, holder.getSkill());
+ }
+ SkillCaster.triggerCast(npc, player, WARRIOR.getSkill());
+ }
+ else
+ {
+ htmltext = "34010-03.htm";
+ }
+ break;
+ }
+ case "wizard":
+ {
+ if (getQuestItemsCount(player, CARROT) >= 7)
+ {
+ takeItems(player, CARROT, 7);
+ for (SkillHolder holder : GROUP_BUFFS)
+ {
+ SkillCaster.triggerCast(npc, player, holder.getSkill());
+ }
+ SkillCaster.triggerCast(npc, player, WIZARD.getSkill());
+ }
+ else
+ {
+ htmltext = "34010-03.htm";
+ }
+ break;
+ }
+ case "giveCarrots40":
+ {
+ if (getQuestItemsCount(player, CARROT) >= 40)
+ {
+ takeItems(player, CARROT, 40);
+ giveItems(player, POUCH, 1);
+ htmltext = "34010-04.htm";
+ }
+ else
+ {
+ htmltext = "34010-03.htm";
+ }
+ break;
+ }
+ case "giveCarrots4000":
+ {
+ if (getQuestItemsCount(player, CARROT) >= 4000)
+ {
+ takeItems(player, CARROT, 4000);
+ giveItems(player, POUCH, 100);
+ htmltext = "34010-04.htm";
+ }
+ else
+ {
+ htmltext = "34010-03.htm";
+ }
+ break;
+ }
+ case "giveCarrots40000":
+ {
+ if (getQuestItemsCount(player, CARROT) >= 40000)
+ {
+ takeItems(player, CARROT, 40000);
+ giveItems(player, POUCH, 1000);
+ htmltext = "34010-04.htm";
+ }
+ else
+ {
+ htmltext = "34010-03.htm";
+ }
+ break;
+ }
+ }
+ return htmltext;
+ }
+
+ @Override
+ public String onFirstTalk(L2Npc npc, L2PcInstance player)
+ {
+ return npc.getId() + "-01.htm";
+ }
+
+ public static void main(String[] args)
+ {
+ new HungryHorse();
+ }
+}
diff --git a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/events/HungryHorse/config.xml b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/events/HungryHorse/config.xml
new file mode 100644
index 0000000000..de1061f9e5
--- /dev/null
+++ b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/events/HungryHorse/config.xml
@@ -0,0 +1,26 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file