diff --git a/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/ai/areas/GainakUnderground/Lezonne/33834.html b/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/ai/areas/GainakUnderground/Lezonne/33834.html new file mode 100644 index 0000000000..e1e4c53251 --- /dev/null +++ b/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/ai/areas/GainakUnderground/Lezonne/33834.html @@ -0,0 +1,8 @@ +Lezonne:
+Are you a mercenary too?
+We've had a lot of them lately. Probably to ward off the Mysterious Assassins who occasionally invade and turn this place into a battlefield.
+And then it becomes peaceful again. But we don't know when it becomes a battlefield or how long the battlefield remains, so it's frustrating.
+I wonder what's going on...
+We don't know when it will turn into a battlefield, so I can give you a buff just in case... I can't give it to you for free... It will be 200000 Adena.
+ + \ No newline at end of file diff --git a/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/ai/areas/GainakUnderground/Lezonne/Lezonne.java b/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/ai/areas/GainakUnderground/Lezonne/Lezonne.java new file mode 100644 index 0000000000..feacbd765a --- /dev/null +++ b/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/ai/areas/GainakUnderground/Lezonne/Lezonne.java @@ -0,0 +1,89 @@ +/* + * 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 ai.areas.GainakUnderground.Lezonne; + +import org.l2jmobius.gameserver.model.actor.Npc; +import org.l2jmobius.gameserver.model.actor.Player; +import org.l2jmobius.gameserver.model.holders.SkillHolder; +import org.l2jmobius.gameserver.model.skill.SkillCaster; + +import ai.AbstractNpcAI; + +/** + * @author Notorion + */ +public class Lezonne extends AbstractNpcAI +{ + // NPC + private static final int LEZONNE = 33834; + // Items + private static final int ADENA = 57; + // Skills + private static final SkillHolder[] DONATE_BUFFS = + { + new SkillHolder(11517, 1), // Horn Melody + new SkillHolder(11518, 1), // Drum Melody + new SkillHolder(11519, 1), // Pipe Organ Melody + new SkillHolder(11520, 1), // Guitar Melody + new SkillHolder(30812, 1), // Fantasia Harmony + }; + + private Lezonne() + { + addStartNpc(LEZONNE); + addTalkId(LEZONNE); + addFirstTalkId(LEZONNE); + } + + @Override + public String onEvent(String event, Npc npc, Player player) + { + String htmltext = null; + switch (event) + { + case "index": + { + htmltext = npc.getId() + ".html"; + break; + } + + case "donate_adena": + { + if (getQuestItemsCount(player, ADENA) >= 200000) + { + takeItems(player, ADENA, 200000); + for (SkillHolder holder : DONATE_BUFFS) + { + SkillCaster.triggerCast(npc, player, holder.getSkill()); + } + } + else + { + htmltext = "noItems.html"; + } + break; + } + + } + return htmltext; + } + + public static void main(String[] args) + { + new Lezonne(); + } +} diff --git a/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/ai/areas/GainakUnderground/Lezonne/noItems.html b/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/ai/areas/GainakUnderground/Lezonne/noItems.html new file mode 100644 index 0000000000..f05b25ffda --- /dev/null +++ b/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/ai/areas/GainakUnderground/Lezonne/noItems.html @@ -0,0 +1,4 @@ +Lezonne:
+You don't have enough Adena? Did you get robbed or something? Not even a paltry 200,000 Adenas?
+Well, sorry. I'm a business person, not a philanthropist. I can't help you. + \ No newline at end of file diff --git a/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/ai/areas/GainakUnderground/Lezonne/33834.html b/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/ai/areas/GainakUnderground/Lezonne/33834.html new file mode 100644 index 0000000000..e1e4c53251 --- /dev/null +++ b/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/ai/areas/GainakUnderground/Lezonne/33834.html @@ -0,0 +1,8 @@ +Lezonne:
+Are you a mercenary too?
+We've had a lot of them lately. Probably to ward off the Mysterious Assassins who occasionally invade and turn this place into a battlefield.
+And then it becomes peaceful again. But we don't know when it becomes a battlefield or how long the battlefield remains, so it's frustrating.
+I wonder what's going on...
+We don't know when it will turn into a battlefield, so I can give you a buff just in case... I can't give it to you for free... It will be 200000 Adena.
+ + \ No newline at end of file diff --git a/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/ai/areas/GainakUnderground/Lezonne/Lezonne.java b/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/ai/areas/GainakUnderground/Lezonne/Lezonne.java new file mode 100644 index 0000000000..feacbd765a --- /dev/null +++ b/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/ai/areas/GainakUnderground/Lezonne/Lezonne.java @@ -0,0 +1,89 @@ +/* + * 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 ai.areas.GainakUnderground.Lezonne; + +import org.l2jmobius.gameserver.model.actor.Npc; +import org.l2jmobius.gameserver.model.actor.Player; +import org.l2jmobius.gameserver.model.holders.SkillHolder; +import org.l2jmobius.gameserver.model.skill.SkillCaster; + +import ai.AbstractNpcAI; + +/** + * @author Notorion + */ +public class Lezonne extends AbstractNpcAI +{ + // NPC + private static final int LEZONNE = 33834; + // Items + private static final int ADENA = 57; + // Skills + private static final SkillHolder[] DONATE_BUFFS = + { + new SkillHolder(11517, 1), // Horn Melody + new SkillHolder(11518, 1), // Drum Melody + new SkillHolder(11519, 1), // Pipe Organ Melody + new SkillHolder(11520, 1), // Guitar Melody + new SkillHolder(30812, 1), // Fantasia Harmony + }; + + private Lezonne() + { + addStartNpc(LEZONNE); + addTalkId(LEZONNE); + addFirstTalkId(LEZONNE); + } + + @Override + public String onEvent(String event, Npc npc, Player player) + { + String htmltext = null; + switch (event) + { + case "index": + { + htmltext = npc.getId() + ".html"; + break; + } + + case "donate_adena": + { + if (getQuestItemsCount(player, ADENA) >= 200000) + { + takeItems(player, ADENA, 200000); + for (SkillHolder holder : DONATE_BUFFS) + { + SkillCaster.triggerCast(npc, player, holder.getSkill()); + } + } + else + { + htmltext = "noItems.html"; + } + break; + } + + } + return htmltext; + } + + public static void main(String[] args) + { + new Lezonne(); + } +} diff --git a/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/ai/areas/GainakUnderground/Lezonne/noItems.html b/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/ai/areas/GainakUnderground/Lezonne/noItems.html new file mode 100644 index 0000000000..f05b25ffda --- /dev/null +++ b/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/ai/areas/GainakUnderground/Lezonne/noItems.html @@ -0,0 +1,4 @@ +Lezonne:
+You don't have enough Adena? Did you get robbed or something? Not even a paltry 200,000 Adenas?
+Well, sorry. I'm a business person, not a philanthropist. I can't help you. + \ No newline at end of file diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/ai/areas/GainakUnderground/Lezonne/33834.html b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/ai/areas/GainakUnderground/Lezonne/33834.html new file mode 100644 index 0000000000..e1e4c53251 --- /dev/null +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/ai/areas/GainakUnderground/Lezonne/33834.html @@ -0,0 +1,8 @@ +Lezonne:
+Are you a mercenary too?
+We've had a lot of them lately. Probably to ward off the Mysterious Assassins who occasionally invade and turn this place into a battlefield.
+And then it becomes peaceful again. But we don't know when it becomes a battlefield or how long the battlefield remains, so it's frustrating.
+I wonder what's going on...
+We don't know when it will turn into a battlefield, so I can give you a buff just in case... I can't give it to you for free... It will be 200000 Adena.
+ + \ No newline at end of file diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/ai/areas/GainakUnderground/Lezonne/Lezonne.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/ai/areas/GainakUnderground/Lezonne/Lezonne.java new file mode 100644 index 0000000000..feacbd765a --- /dev/null +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/ai/areas/GainakUnderground/Lezonne/Lezonne.java @@ -0,0 +1,89 @@ +/* + * 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 ai.areas.GainakUnderground.Lezonne; + +import org.l2jmobius.gameserver.model.actor.Npc; +import org.l2jmobius.gameserver.model.actor.Player; +import org.l2jmobius.gameserver.model.holders.SkillHolder; +import org.l2jmobius.gameserver.model.skill.SkillCaster; + +import ai.AbstractNpcAI; + +/** + * @author Notorion + */ +public class Lezonne extends AbstractNpcAI +{ + // NPC + private static final int LEZONNE = 33834; + // Items + private static final int ADENA = 57; + // Skills + private static final SkillHolder[] DONATE_BUFFS = + { + new SkillHolder(11517, 1), // Horn Melody + new SkillHolder(11518, 1), // Drum Melody + new SkillHolder(11519, 1), // Pipe Organ Melody + new SkillHolder(11520, 1), // Guitar Melody + new SkillHolder(30812, 1), // Fantasia Harmony + }; + + private Lezonne() + { + addStartNpc(LEZONNE); + addTalkId(LEZONNE); + addFirstTalkId(LEZONNE); + } + + @Override + public String onEvent(String event, Npc npc, Player player) + { + String htmltext = null; + switch (event) + { + case "index": + { + htmltext = npc.getId() + ".html"; + break; + } + + case "donate_adena": + { + if (getQuestItemsCount(player, ADENA) >= 200000) + { + takeItems(player, ADENA, 200000); + for (SkillHolder holder : DONATE_BUFFS) + { + SkillCaster.triggerCast(npc, player, holder.getSkill()); + } + } + else + { + htmltext = "noItems.html"; + } + break; + } + + } + return htmltext; + } + + public static void main(String[] args) + { + new Lezonne(); + } +} diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/ai/areas/GainakUnderground/Lezonne/noItems.html b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/ai/areas/GainakUnderground/Lezonne/noItems.html new file mode 100644 index 0000000000..f05b25ffda --- /dev/null +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/ai/areas/GainakUnderground/Lezonne/noItems.html @@ -0,0 +1,4 @@ +Lezonne:
+You don't have enough Adena? Did you get robbed or something? Not even a paltry 200,000 Adenas?
+Well, sorry. I'm a business person, not a philanthropist. I can't help you. + \ No newline at end of file diff --git a/L2J_Mobius_10.3_MasterClass/dist/game/data/scripts/ai/areas/GainakUnderground/Lezonne/33834.html b/L2J_Mobius_10.3_MasterClass/dist/game/data/scripts/ai/areas/GainakUnderground/Lezonne/33834.html new file mode 100644 index 0000000000..e1e4c53251 --- /dev/null +++ b/L2J_Mobius_10.3_MasterClass/dist/game/data/scripts/ai/areas/GainakUnderground/Lezonne/33834.html @@ -0,0 +1,8 @@ +Lezonne:
+Are you a mercenary too?
+We've had a lot of them lately. Probably to ward off the Mysterious Assassins who occasionally invade and turn this place into a battlefield.
+And then it becomes peaceful again. But we don't know when it becomes a battlefield or how long the battlefield remains, so it's frustrating.
+I wonder what's going on...
+We don't know when it will turn into a battlefield, so I can give you a buff just in case... I can't give it to you for free... It will be 200000 Adena.
+ + \ No newline at end of file diff --git a/L2J_Mobius_10.3_MasterClass/dist/game/data/scripts/ai/areas/GainakUnderground/Lezonne/Lezonne.java b/L2J_Mobius_10.3_MasterClass/dist/game/data/scripts/ai/areas/GainakUnderground/Lezonne/Lezonne.java new file mode 100644 index 0000000000..feacbd765a --- /dev/null +++ b/L2J_Mobius_10.3_MasterClass/dist/game/data/scripts/ai/areas/GainakUnderground/Lezonne/Lezonne.java @@ -0,0 +1,89 @@ +/* + * 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 ai.areas.GainakUnderground.Lezonne; + +import org.l2jmobius.gameserver.model.actor.Npc; +import org.l2jmobius.gameserver.model.actor.Player; +import org.l2jmobius.gameserver.model.holders.SkillHolder; +import org.l2jmobius.gameserver.model.skill.SkillCaster; + +import ai.AbstractNpcAI; + +/** + * @author Notorion + */ +public class Lezonne extends AbstractNpcAI +{ + // NPC + private static final int LEZONNE = 33834; + // Items + private static final int ADENA = 57; + // Skills + private static final SkillHolder[] DONATE_BUFFS = + { + new SkillHolder(11517, 1), // Horn Melody + new SkillHolder(11518, 1), // Drum Melody + new SkillHolder(11519, 1), // Pipe Organ Melody + new SkillHolder(11520, 1), // Guitar Melody + new SkillHolder(30812, 1), // Fantasia Harmony + }; + + private Lezonne() + { + addStartNpc(LEZONNE); + addTalkId(LEZONNE); + addFirstTalkId(LEZONNE); + } + + @Override + public String onEvent(String event, Npc npc, Player player) + { + String htmltext = null; + switch (event) + { + case "index": + { + htmltext = npc.getId() + ".html"; + break; + } + + case "donate_adena": + { + if (getQuestItemsCount(player, ADENA) >= 200000) + { + takeItems(player, ADENA, 200000); + for (SkillHolder holder : DONATE_BUFFS) + { + SkillCaster.triggerCast(npc, player, holder.getSkill()); + } + } + else + { + htmltext = "noItems.html"; + } + break; + } + + } + return htmltext; + } + + public static void main(String[] args) + { + new Lezonne(); + } +} diff --git a/L2J_Mobius_10.3_MasterClass/dist/game/data/scripts/ai/areas/GainakUnderground/Lezonne/noItems.html b/L2J_Mobius_10.3_MasterClass/dist/game/data/scripts/ai/areas/GainakUnderground/Lezonne/noItems.html new file mode 100644 index 0000000000..f05b25ffda --- /dev/null +++ b/L2J_Mobius_10.3_MasterClass/dist/game/data/scripts/ai/areas/GainakUnderground/Lezonne/noItems.html @@ -0,0 +1,4 @@ +Lezonne:
+You don't have enough Adena? Did you get robbed or something? Not even a paltry 200,000 Adenas?
+Well, sorry. I'm a business person, not a philanthropist. I can't help you. + \ No newline at end of file diff --git a/L2J_Mobius_11.1_TheSourceOfFlame/dist/game/data/scripts/ai/areas/GainakUnderground/Lezonne/33834.html b/L2J_Mobius_11.1_TheSourceOfFlame/dist/game/data/scripts/ai/areas/GainakUnderground/Lezonne/33834.html new file mode 100644 index 0000000000..e1e4c53251 --- /dev/null +++ b/L2J_Mobius_11.1_TheSourceOfFlame/dist/game/data/scripts/ai/areas/GainakUnderground/Lezonne/33834.html @@ -0,0 +1,8 @@ +Lezonne:
+Are you a mercenary too?
+We've had a lot of them lately. Probably to ward off the Mysterious Assassins who occasionally invade and turn this place into a battlefield.
+And then it becomes peaceful again. But we don't know when it becomes a battlefield or how long the battlefield remains, so it's frustrating.
+I wonder what's going on...
+We don't know when it will turn into a battlefield, so I can give you a buff just in case... I can't give it to you for free... It will be 200000 Adena.
+ + \ No newline at end of file diff --git a/L2J_Mobius_11.1_TheSourceOfFlame/dist/game/data/scripts/ai/areas/GainakUnderground/Lezonne/Lezonne.java b/L2J_Mobius_11.1_TheSourceOfFlame/dist/game/data/scripts/ai/areas/GainakUnderground/Lezonne/Lezonne.java new file mode 100644 index 0000000000..feacbd765a --- /dev/null +++ b/L2J_Mobius_11.1_TheSourceOfFlame/dist/game/data/scripts/ai/areas/GainakUnderground/Lezonne/Lezonne.java @@ -0,0 +1,89 @@ +/* + * 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 ai.areas.GainakUnderground.Lezonne; + +import org.l2jmobius.gameserver.model.actor.Npc; +import org.l2jmobius.gameserver.model.actor.Player; +import org.l2jmobius.gameserver.model.holders.SkillHolder; +import org.l2jmobius.gameserver.model.skill.SkillCaster; + +import ai.AbstractNpcAI; + +/** + * @author Notorion + */ +public class Lezonne extends AbstractNpcAI +{ + // NPC + private static final int LEZONNE = 33834; + // Items + private static final int ADENA = 57; + // Skills + private static final SkillHolder[] DONATE_BUFFS = + { + new SkillHolder(11517, 1), // Horn Melody + new SkillHolder(11518, 1), // Drum Melody + new SkillHolder(11519, 1), // Pipe Organ Melody + new SkillHolder(11520, 1), // Guitar Melody + new SkillHolder(30812, 1), // Fantasia Harmony + }; + + private Lezonne() + { + addStartNpc(LEZONNE); + addTalkId(LEZONNE); + addFirstTalkId(LEZONNE); + } + + @Override + public String onEvent(String event, Npc npc, Player player) + { + String htmltext = null; + switch (event) + { + case "index": + { + htmltext = npc.getId() + ".html"; + break; + } + + case "donate_adena": + { + if (getQuestItemsCount(player, ADENA) >= 200000) + { + takeItems(player, ADENA, 200000); + for (SkillHolder holder : DONATE_BUFFS) + { + SkillCaster.triggerCast(npc, player, holder.getSkill()); + } + } + else + { + htmltext = "noItems.html"; + } + break; + } + + } + return htmltext; + } + + public static void main(String[] args) + { + new Lezonne(); + } +} diff --git a/L2J_Mobius_11.1_TheSourceOfFlame/dist/game/data/scripts/ai/areas/GainakUnderground/Lezonne/noItems.html b/L2J_Mobius_11.1_TheSourceOfFlame/dist/game/data/scripts/ai/areas/GainakUnderground/Lezonne/noItems.html new file mode 100644 index 0000000000..f05b25ffda --- /dev/null +++ b/L2J_Mobius_11.1_TheSourceOfFlame/dist/game/data/scripts/ai/areas/GainakUnderground/Lezonne/noItems.html @@ -0,0 +1,4 @@ +Lezonne:
+You don't have enough Adena? Did you get robbed or something? Not even a paltry 200,000 Adenas?
+Well, sorry. I'm a business person, not a philanthropist. I can't help you. + \ No newline at end of file diff --git a/L2J_Mobius_11.2_AgeOfMagic/dist/game/data/scripts/ai/areas/GainakUnderground/Lezonne/33834.html b/L2J_Mobius_11.2_AgeOfMagic/dist/game/data/scripts/ai/areas/GainakUnderground/Lezonne/33834.html new file mode 100644 index 0000000000..e1e4c53251 --- /dev/null +++ b/L2J_Mobius_11.2_AgeOfMagic/dist/game/data/scripts/ai/areas/GainakUnderground/Lezonne/33834.html @@ -0,0 +1,8 @@ +Lezonne:
+Are you a mercenary too?
+We've had a lot of them lately. Probably to ward off the Mysterious Assassins who occasionally invade and turn this place into a battlefield.
+And then it becomes peaceful again. But we don't know when it becomes a battlefield or how long the battlefield remains, so it's frustrating.
+I wonder what's going on...
+We don't know when it will turn into a battlefield, so I can give you a buff just in case... I can't give it to you for free... It will be 200000 Adena.
+ + \ No newline at end of file diff --git a/L2J_Mobius_11.2_AgeOfMagic/dist/game/data/scripts/ai/areas/GainakUnderground/Lezonne/Lezonne.java b/L2J_Mobius_11.2_AgeOfMagic/dist/game/data/scripts/ai/areas/GainakUnderground/Lezonne/Lezonne.java new file mode 100644 index 0000000000..feacbd765a --- /dev/null +++ b/L2J_Mobius_11.2_AgeOfMagic/dist/game/data/scripts/ai/areas/GainakUnderground/Lezonne/Lezonne.java @@ -0,0 +1,89 @@ +/* + * 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 ai.areas.GainakUnderground.Lezonne; + +import org.l2jmobius.gameserver.model.actor.Npc; +import org.l2jmobius.gameserver.model.actor.Player; +import org.l2jmobius.gameserver.model.holders.SkillHolder; +import org.l2jmobius.gameserver.model.skill.SkillCaster; + +import ai.AbstractNpcAI; + +/** + * @author Notorion + */ +public class Lezonne extends AbstractNpcAI +{ + // NPC + private static final int LEZONNE = 33834; + // Items + private static final int ADENA = 57; + // Skills + private static final SkillHolder[] DONATE_BUFFS = + { + new SkillHolder(11517, 1), // Horn Melody + new SkillHolder(11518, 1), // Drum Melody + new SkillHolder(11519, 1), // Pipe Organ Melody + new SkillHolder(11520, 1), // Guitar Melody + new SkillHolder(30812, 1), // Fantasia Harmony + }; + + private Lezonne() + { + addStartNpc(LEZONNE); + addTalkId(LEZONNE); + addFirstTalkId(LEZONNE); + } + + @Override + public String onEvent(String event, Npc npc, Player player) + { + String htmltext = null; + switch (event) + { + case "index": + { + htmltext = npc.getId() + ".html"; + break; + } + + case "donate_adena": + { + if (getQuestItemsCount(player, ADENA) >= 200000) + { + takeItems(player, ADENA, 200000); + for (SkillHolder holder : DONATE_BUFFS) + { + SkillCaster.triggerCast(npc, player, holder.getSkill()); + } + } + else + { + htmltext = "noItems.html"; + } + break; + } + + } + return htmltext; + } + + public static void main(String[] args) + { + new Lezonne(); + } +} diff --git a/L2J_Mobius_11.2_AgeOfMagic/dist/game/data/scripts/ai/areas/GainakUnderground/Lezonne/noItems.html b/L2J_Mobius_11.2_AgeOfMagic/dist/game/data/scripts/ai/areas/GainakUnderground/Lezonne/noItems.html new file mode 100644 index 0000000000..f05b25ffda --- /dev/null +++ b/L2J_Mobius_11.2_AgeOfMagic/dist/game/data/scripts/ai/areas/GainakUnderground/Lezonne/noItems.html @@ -0,0 +1,4 @@ +Lezonne:
+You don't have enough Adena? Did you get robbed or something? Not even a paltry 200,000 Adenas?
+Well, sorry. I'm a business person, not a philanthropist. I can't help you. + \ No newline at end of file diff --git a/L2J_Mobius_11.3_Shinemaker/dist/game/data/scripts/ai/areas/GainakUnderground/Lezonne/33834.html b/L2J_Mobius_11.3_Shinemaker/dist/game/data/scripts/ai/areas/GainakUnderground/Lezonne/33834.html new file mode 100644 index 0000000000..e1e4c53251 --- /dev/null +++ b/L2J_Mobius_11.3_Shinemaker/dist/game/data/scripts/ai/areas/GainakUnderground/Lezonne/33834.html @@ -0,0 +1,8 @@ +Lezonne:
+Are you a mercenary too?
+We've had a lot of them lately. Probably to ward off the Mysterious Assassins who occasionally invade and turn this place into a battlefield.
+And then it becomes peaceful again. But we don't know when it becomes a battlefield or how long the battlefield remains, so it's frustrating.
+I wonder what's going on...
+We don't know when it will turn into a battlefield, so I can give you a buff just in case... I can't give it to you for free... It will be 200000 Adena.
+ + \ No newline at end of file diff --git a/L2J_Mobius_11.3_Shinemaker/dist/game/data/scripts/ai/areas/GainakUnderground/Lezonne/Lezonne.java b/L2J_Mobius_11.3_Shinemaker/dist/game/data/scripts/ai/areas/GainakUnderground/Lezonne/Lezonne.java new file mode 100644 index 0000000000..feacbd765a --- /dev/null +++ b/L2J_Mobius_11.3_Shinemaker/dist/game/data/scripts/ai/areas/GainakUnderground/Lezonne/Lezonne.java @@ -0,0 +1,89 @@ +/* + * 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 ai.areas.GainakUnderground.Lezonne; + +import org.l2jmobius.gameserver.model.actor.Npc; +import org.l2jmobius.gameserver.model.actor.Player; +import org.l2jmobius.gameserver.model.holders.SkillHolder; +import org.l2jmobius.gameserver.model.skill.SkillCaster; + +import ai.AbstractNpcAI; + +/** + * @author Notorion + */ +public class Lezonne extends AbstractNpcAI +{ + // NPC + private static final int LEZONNE = 33834; + // Items + private static final int ADENA = 57; + // Skills + private static final SkillHolder[] DONATE_BUFFS = + { + new SkillHolder(11517, 1), // Horn Melody + new SkillHolder(11518, 1), // Drum Melody + new SkillHolder(11519, 1), // Pipe Organ Melody + new SkillHolder(11520, 1), // Guitar Melody + new SkillHolder(30812, 1), // Fantasia Harmony + }; + + private Lezonne() + { + addStartNpc(LEZONNE); + addTalkId(LEZONNE); + addFirstTalkId(LEZONNE); + } + + @Override + public String onEvent(String event, Npc npc, Player player) + { + String htmltext = null; + switch (event) + { + case "index": + { + htmltext = npc.getId() + ".html"; + break; + } + + case "donate_adena": + { + if (getQuestItemsCount(player, ADENA) >= 200000) + { + takeItems(player, ADENA, 200000); + for (SkillHolder holder : DONATE_BUFFS) + { + SkillCaster.triggerCast(npc, player, holder.getSkill()); + } + } + else + { + htmltext = "noItems.html"; + } + break; + } + + } + return htmltext; + } + + public static void main(String[] args) + { + new Lezonne(); + } +} diff --git a/L2J_Mobius_11.3_Shinemaker/dist/game/data/scripts/ai/areas/GainakUnderground/Lezonne/noItems.html b/L2J_Mobius_11.3_Shinemaker/dist/game/data/scripts/ai/areas/GainakUnderground/Lezonne/noItems.html new file mode 100644 index 0000000000..f05b25ffda --- /dev/null +++ b/L2J_Mobius_11.3_Shinemaker/dist/game/data/scripts/ai/areas/GainakUnderground/Lezonne/noItems.html @@ -0,0 +1,4 @@ +Lezonne:
+You don't have enough Adena? Did you get robbed or something? Not even a paltry 200,000 Adenas?
+Well, sorry. I'm a business person, not a philanthropist. I can't help you. + \ No newline at end of file