Various event additions.

Contributed by quangnguyen.
This commit is contained in:
MobiusDev 2018-03-08 14:05:24 +00:00
parent 96702b124a
commit 854d47b7e1
29 changed files with 635 additions and 209 deletions

View File

@ -2,223 +2,36 @@
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="xsd/LuckyGameData.xsd">
<luckygame index="2" turning_point="50000">
<common_reward>
<item id="37715" count="1" chance="0.0059" /> <!-- Talisman - Anakim -->
<item id="34777" count="1" chance="0.0046" /> <!-- Scroll of Blessing: (R99-grade) -->
<item id="35649" count="1" chance="0.01" /> <!-- Sealed Talisman - Longing -->
<item id="37714" count="1" chance="0.013" /> <!-- Talisman - Lilith -->
<item id="6656" count="1" chance="0.0151" /> <!-- Antharas' Earring -->
<item id="6660" count="1" chance="0.0167" /> <!-- Queen Ant's Ring -->
<item id="34776" count="1" chance="0.0108" /> <!-- Scroll of Blessing: (R95-grade) -->
<item id="6657" count="1" chance="0.0296" /> <!-- Valakas' Necklace -->
<item id="21712" count="1" chance="0.0296" /> <!-- Blessed Zaken's Earring -->
<item id="46395" count="1" chance="0.1626" /> <!-- Shadow Ingot -->
<item id="37507" count="1" chance="0.0342" /> <!-- Enhanced Octavis' Ring (Warrior) -->
<item id="37513" count="1" chance="0.05" /> <!-- Enhanced Octavis' Ring (Wizard) -->
<item id="37508" count="1" chance="0.065" /> <!-- Enhanced Octavis' Earring (Warrior) -->
<item id="34775" count="1" chance="0.0365" /> <!-- Scroll of Blessing: (R2-grade) (Event) -->
<item id="46494" count="1" chance="0.0417" /> <!-- Pantheon's Soul Crystal - Stage 6 -->
<item id="46509" count="1" chance="0.05" /> <!-- Lionel's Soul Crystal - Stage 6 -->
<item id="46449" count="1" chance="0.05" /> <!-- Kain's Soul Crystal - Stage 6 -->
<item id="37517" count="1" chance="0.1084" /> <!-- Enhanced Istina's Earring (Wizard) -->
<item id="46478" count="1" chance="0.1182" /> <!-- Leona's Soul Crystal - Stage 5 -->
<item id="37518" count="1" chance="0.1182" /> <!-- Enhanced Istina's Necklace (Wizard) -->
<item id="37509" count="1" chance="0.1301" /> <!-- Enhanced Octavis' Necklace (Warrior) -->
<item id="37772" count="1" chance="0.3252" /> <!-- Scroll of Blessing: Weapon (R99-grade) -->
<item id="46151" count="1" chance="0.1858" /> <!-- Superior Giant's Codex - Mastery Chapter 1 -->
<item id="46493" count="1" chance="0.2032" /> <!-- Pantheon's Soul Crystal - Stage 5 -->
<item id="46464" count="1" chance="0.2168" /> <!-- Mermoden's Soul Crystal - Stage 6 -->
<item id="6661" count="1" chance="0.2168" /> <!-- Orfen's Earring -->
<item id="46508" count="1" chance="0.2365" /> <!-- Lionel's Soul Crystal - Stage 5 -->
<item id="37781" count="1" chance="0.7804" /> <!-- Scroll of Blessing: Armor (R99-grade) -->
<item id="39641" count="1" chance="0.271" /> <!-- Venir's Talisman - Stage 8 -->
<item id="46150" count="1" chance="0.5203" /> <!-- Superior Giant's Codex Chapter 1 -->
<item id="19447" count="1" chance="0.5912" /> <!-- Blessed Scroll: Enchant Weapon (R-grade) -->
<item id="36386" count="1" chance="0.6503" /> <!-- Giant's Scroll: Enchant Weapon (R-grade) -->
<item id="36513" count="5" chance="21.6778" /> <!-- Elcyum Powder -->
<item id="39639" count="1" chance="0.8129" /> <!-- Venir's Talisman - Stage 6 -->
<item id="19448" count="1" chance="1.0839" /> <!-- Blessed Scroll: Enchant Armor (R-grade) -->
<item id="35563" count="2" chance="6.5033" /> <!-- Giant's Energy -->
<item id="39592" count="1" chance="1.8581" /> <!-- Tempest Stone -->
<item id="37771" count="1" chance="0.929" /> <!-- Scroll of Blessing: Weapon (R95-grade) -->
<item id="37780" count="1" chance="1.3007" /> <!-- Scroll of Blessing: Armor (R95-grade) -->
<item id="39633" count="1" chance="2.6013" /> <!-- Fortune Pocket - Stage 5 -->
<item id="39637" count="1" chance="3.2517" /> <!-- Venir's Talisman - Stage 4 -->
<item id="19440" count="5" chance="13.0067" /> <!-- Gemstone (R-grade) -->
<item id="17526" count="1" chance="5.4195" /> <!-- Scroll: Enchant Weapon (R-grade) -->
<item id="36389" count="1" chance="6.5033" /> <!-- Giant's Scroll: Enchant Armor (R-grade) -->
<item id="17527" count="1" chance="14.4519" /> <!-- Scroll: Enchant Armor (R-grade) -->
<item id="39631" count="1" chance="15.3022" /> <!-- Fortune Pocket - Stage 3 -->
<item id="29564" count="50" chance="0.0151" /> <!-- Attendance Coin -->
<item id="29553" count="3" chance="0.0151" /> <!-- 2nd Class Buff Scroll -->
<item id="29554" count="10" chance="0.0151" /> <!-- Quick Healing Potion -->
<item id="29565" count="3" chance="0.0151" /> <!-- XP/SP Scroll -->
<item id="29584" count="2" chance="0.0151" /> <!-- Angel Cat's Blessing Chest -->
<item id="29566" count="1" chance="0.0151" /> <!-- Attendance XP Rune -->
<item id="29585" count="1" chance="0.0151" /> <!-- Refined Romantic Chapeau -->
<item id="49512" count="1" chance="0.0151" /> <!-- Amulet: Prosperity -->
<item id="29578" count="1" chance="0.0151" /> <!-- Rare Accessory Pack -->
<item id="29587" count="1" chance="0.0151" /> <!-- Agathion - Singer & Dancer -->
</common_reward>
</luckygame>
<luckygame index="102" turning_point="10000">
<common_reward>
<item id="39573" count="1" chance="0.0052" /> <!-- Sealed Talisman - Insanity -->
<item id="37717" count="1" chance="0.0034" /> <!-- Talisman - Seven Signs -->
<item id="46553" count="1" chance="0.0028" /> <!-- Mystic Soul Crystal -->
<item id="37716" count="1" chance="0.0112" /> <!-- Seven Signs' Energy -->
<item id="35001" count="1" chance="0.0048" /> <!-- Tauti's Dual Axe -->
<item id="34998" count="1" chance="0.0056" /> <!-- Tauti's One-handed Axe -->
<item id="46062" count="1" chance="0.0056" /> <!-- Kelbim Bow -->
<item id="37715" count="1" chance="0.0244" /> <!-- Talisman - Anakim -->
<item id="34999" count="1" chance="0.0067" /> <!-- Tauti's Axe -->
<item id="46061" count="1" chance="0.0075" /> <!-- Kelbim Dual Dagger -->
<item id="46063" count="1" chance="0.0084" /> <!-- Kelbim Crossbow -->
<item id="34777" count="1" chance="0.0096" /> <!-- Scroll of Blessing: (R99-grade) -->
<item id="46060" count="1" chance="0.0096" /> <!-- Kelbim Dagger -->
<item id="35649" count="1" chance="0.1033" /> <!-- Sealed Talisman - Longing -->
<item id="23342" count="1" chance="0.0224" /> <!-- Ancient Scroll: Enchant Weapon (R-grade) -->
<item id="37714" count="1" chance="0.0269" /> <!-- Talisman - Lilith -->
<item id="35566" count="1" chance="0.0134" /> <!-- Dark Amaranthine Enhancement Stone -->
<item id="6656" count="1" chance="0.1562" /> <!-- Antharas' Earring -->
<item id="6660" count="1" chance="0.1722" /> <!-- Queen Ant's Ring -->
<item id="34776" count="1" chance="0.0224" /> <!-- Scroll of Blessing: (R95-grade) -->
<item id="39647" count="1" chance="0.0478" /> <!-- Venir's Talisman - Stage 14 -->
<item id="6657" count="1" chance="0.1526" /> <!-- Valakas' Necklace -->
<item id="21712" count="1" chance="0.1221" /> <!-- Blessed Zaken's Earring -->
<item id="46395" count="10" chance="0.3358" /> <!-- Shadow Ingot -->
<item id="37507" count="1" chance="0.0707" /> <!-- Enhanced Octavis' Ring (Warrior) -->
<item id="37513" count="1" chance="0.1033" /> <!-- Enhanced Octavis' Ring (Wizard) -->
<item id="46479" count="1" chance="0.0672" /> <!-- Leona's Soul Crystal - Stage 6 -->
<item id="37508" count="1" chance="0.1343" /> <!-- Enhanced Octavis' Earring (Warrior) -->
<item id="34775" count="1" chance="0.7545" /> <!-- Scroll of Blessing: (R2-grade) (Event) -->
<item id="46494" count="1" chance="0.0517" /> <!-- Pantheon's Soul Crystal - Stage 6 -->
<item id="46464" count="1" chance="0.062" /> <!-- Mermoden's Soul Crystal - Stage 6 -->
<item id="46449" count="1" chance="0.062" /> <!-- Kain's Soul Crystal - Stage 6 -->
<item id="39643" count="1" chance="0.4477" /> <!-- Venir's Talisman - Stage 10 -->
<item id="37517" count="1" chance="0.2238" /> <!-- Enhanced Istina's Earring (Wizard) -->
<item id="46478" count="1" chance="0.1221" /> <!-- Leona's Soul Crystal - Stage 5 -->
<item id="37518" count="1" chance="0.2442" /> <!-- Enhanced Istina's Necklace (Wizard) -->
<item id="35567" count="1" chance="0.2686" /> <!-- Dark Eternal Enhancement Stone -->
<item id="37509" count="1" chance="0.2686" /> <!-- Enhanced Octavis' Necklace (Warrior) -->
<item id="37772" count="1" chance="0.3358" /> <!-- Scroll of Blessing: Weapon (R99-grade) -->
<item id="46151" count="1" chance="0.1919" /> <!-- Superior Giant's Codex - Mastery Chapter 1 -->
<item id="46493" count="1" chance="0.2098" /> <!-- Pantheon's Soul Crystal - Stage 5 -->
<item id="46464" count="1" chance="0.1343" /> <!-- Mermoden's Soul Crystal - Stage 6 -->
<item id="6661" count="1" chance="0.2238" /> <!-- Orfen's Earring -->
<item id="46508" count="1" chance="0.0977" /> <!-- Lionel's Soul Crystal - Stage 5 -->
<item id="37781" count="1" chance="0.8058" /> <!-- Scroll of Blessing: Armor (R99-grade) -->
<item id="39641" count="1" chance="1.1192" /> <!-- Venir's Talisman - Stage 8 -->
<item id="27458" count="1" chance="0.0307" /> <!-- Rabbit Ears Box -->
<item id="27459" count="1" chance="0.0307" /> <!-- Raccoon Ears Box -->
<item id="27460" count="1" chance="0.0307" /> <!-- Cat Ears Box -->
<item id="27461" count="1" chance="0.0307" /> <!-- Romantic Chapeau Box -->
<item id="27462" count="1" chance="0.0307" /> <!-- Angel Circlet Box -->
<item id="27463" count="1" chance="0.0307" /> <!-- Demon Circlet Box -->
<item id="27464" count="1" chance="0.0307" /> <!-- Pirate's Eyepatch Box -->
<item id="27465" count="1" chance="0.0307" /> <!-- Outlaw's Eyepatch Box -->
<item id="27466" count="1" chance="0.0307" /> <!-- Eyepatch Box -->
<item id="27467" count="1" chance="0.0307" /> <!-- Party Hat Box -->
<item id="27468" count="1" chance="0.0307" /> <!-- Refined Angel Ring Box -->
<item id="27469" count="1" chance="0.0307" /> <!-- Refined Devil Horn Box -->
<item id="37719" count="1" chance="0.0839" /> <!-- Pa'agrio's Special Pack -->
<item id="37720" count="1" chance="0.0839" /> <!-- Maphr's Special Pack -->
<item id="37721" count="1" chance="0.0839" /> <!-- Sayha's Special Pack -->
<item id="37722" count="1" chance="0.0839" /> <!-- Eva's Special Pack -->
<item id="46150" count="1" chance="1.0744" /> <!-- Superior Giant's Codex Chapter 1 -->
<item id="19447" count="1" chance="1.2209" /> <!-- Blessed Scroll: Enchant Weapon (R-grade) -->
<item id="36386" count="1" chance="1.343" /> <!-- Giant's Scroll: Enchant Weapon (R-grade) -->
<item id="26446" count="1" chance="0.0672" /> <!-- Shadow Dualsword Box -->
<item id="36515" count="1" chance="1.6788" /> <!-- Elcyum -->
<item id="26445" count="1" chance="0.0839" /> <!-- Shadow Retributer Box -->
<item id="39639" count="1" chance="3.3575" /> <!-- Venir's Talisman - Stage 6 -->
<item id="26442" count="1" chance="0.0895" /> <!-- Shadow Thrower Box -->
<item id="26441" count="1" chance="0.1033" /> <!-- Shadow Stormer Box -->
<item id="19448" count="1" chance="2.2383" /> <!-- Blessed Scroll: Enchant Armor (R-grade) -->
<item id="39738" count="1" chance="2.686" /> <!-- Rune Stone -->
<item id="35563" count="10" chance="5.372" /> <!-- Giant's Energy -->
<item id="26438" count="1" chance="0.1492" /> <!-- Shadow Cutter Box -->
<item id="26439" count="1" chance="0.1679" /> <!-- Shadow Slasher Box -->
<item id="39592" count="1" chance="3.8372" /> <!-- Tempest Stone -->
<item id="37771" count="1" chance="1.9186" /> <!-- Scroll of Blessing: Weapon (R95-grade) -->
<item id="26437" count="1" chance="0.2238" /> <!-- Shadow Shaper Box -->
<item id="26444" count="1" chance="0.2238" /> <!-- Shadow Buster Box -->
<item id="26443" count="1" chance="0.2686" /> <!-- Shadow Shooter Box -->
<item id="37780" count="2" chance="1.343" /> <!-- Scroll of Blessing: Armor (R95-grade) -->
<item id="39633" count="1" chance="5.372" /> <!-- Fortune Pocket - Stage 5 -->
<item id="39637" count="1" chance="6.715" /> <!-- Venir's Talisman - Stage 4 -->
<item id="19440" count="15" chance="8.9534" /> <!-- Gemstone (R-grade) -->
<item id="17526" count="1" chance="11.1917" /> <!-- Scroll: Enchant Weapon (R-grade) -->
<item id="36389" count="2" chance="6.715" /> <!-- Giant's Scroll: Enchant Armor (R-grade) -->
<item id="17527" count="2" chance="14.9218" /> <!-- Scroll: Enchant Armor (R-grade) -->
<item id="39631" count="3" chance="10.5334" /> <!-- Fortune Pocket - Stage 3 -->
<item id="29564" count="50" chance="0.0151" /> <!-- Attendance Coin -->
<item id="29553" count="3" chance="0.0151" /> <!-- 2nd Class Buff Scroll -->
<item id="29554" count="10" chance="0.0151" /> <!-- Quick Healing Potion -->
<item id="29565" count="3" chance="0.0151" /> <!-- XP/SP Scroll -->
<item id="29584" count="2" chance="0.0151" /> <!-- Angel Cat's Blessing Chest -->
<item id="29566" count="1" chance="0.0151" /> <!-- Attendance XP Rune -->
<item id="29585" count="1" chance="0.0151" /> <!-- Refined Romantic Chapeau -->
<item id="49512" count="1" chance="0.0151" /> <!-- Amulet: Prosperity -->
<item id="29578" count="1" chance="0.0151" /> <!-- Rare Accessory Pack -->
<item id="29587" count="1" chance="0.0151" /> <!-- Agathion - Singer & Dancer -->
</common_reward>
<unique_reward>
<item id="36946" count="1" points="10000" /> <!-- Lindvior's Earring -->
<item id="37717" count="1" points="9000" /> <!-- Talisman - Seven Signs -->
<item id="19463" count="1" points="8000" /> <!-- Blessed Antharas' Earring -->
<item id="19464" count="1" points="7000" /> <!-- Blessed Valakas' Necklace -->
<item id="35564" count="1" points="6000" /> <!-- Ruler's Authority -->
<item id="17623" count="1" points="5000" /> <!-- Earth Wyrm Heart Ring -->
<item id="35570" count="1" points="4000" /> <!-- Tauti's Ring -->
<item id="35566" count="1" points="3000" /> <!-- Dark Amaranthine Enhancement Stone -->
<item id="35568" count="1" points="2000" /> <!-- Bloody Amaranthine Enhancement Stone -->
<item id="35567" count="1" points="1000" /> <!-- Dark Eternal Enhancement Stone -->
<item id="35569" count="1" points="500" /> <!-- Bloody Eternal Enhancement Stone -->
<item id="26511" count="1" points="250" /> <!-- Anakim Set Pack -->
<item id="6656" count="1" points="10000" /> <!-- Antharas' Earring -->
</unique_reward>
<modify_reward min_game="40" max_game="50">
<item id="39573" count="1" chance="0.0679" /> <!-- Sealed Talisman - Insanity -->
<item id="37717" count="1" chance="0.0441" /> <!-- Talisman - Seven Signs -->
<item id="46553" count="1" chance="0.0368" /> <!-- Mystic Soul Crystal -->
<item id="37716" count="1" chance="0.147" /> <!-- Seven Signs' Energy -->
<item id="35001" count="1" chance="0.063" /> <!-- Tauti's Dual Axe -->
<item id="34998" count="1" chance="0.0735" /> <!-- Tauti's One-handed Axe -->
<item id="46062" count="1" chance="0.0735" /> <!-- Kelbim Bow -->
<item id="37715" count="1" chance="0.3208" /> <!-- Talisman - Anakim -->
<item id="34999" count="1" chance="0.0882" /> <!-- Tauti's Axe -->
<item id="46061" count="1" chance="0.098" /> <!-- Kelbim Dual Dagger -->
<item id="46063" count="1" chance="0.1103" /> <!-- Kelbim Crossbow -->
<item id="34777" count="1" chance="0.126" /> <!-- Scroll of Blessing: (R99-grade) -->
<item id="46060" count="1" chance="0.126" /> <!-- Kelbim Dagger -->
<item id="35649" count="1" chance="0.2714" /> <!-- Sealed Talisman - Longing -->
<item id="23342" count="1" chance="0.294" /> <!-- Ancient Scroll: Enchant Weapon (R-grade) -->
<item id="37714" count="1" chance="0.3528" /> <!-- Talisman - Lilith -->
<item id="35566" count="1" chance="0.1764" /> <!-- Dark Amaranthine Enhancement Stone -->
<item id="6656" count="1" chance="0.0257" /> <!-- Antharas' Earring -->
<item id="6660" count="1" chance="2.2618" /> <!-- Queen Ant's Ring -->
<item id="34776" count="1" chance="0.294" /> <!-- Scroll of Blessing: (R95-grade) -->
<item id="39647" count="1" chance="0.6273" /> <!-- Venir's Talisman - Stage 14 -->
<item id="6657" count="1" chance="2.0048" /> <!-- Valakas' Necklace -->
<item id="21712" count="1" chance="1.6039" /> <!-- Blessed Zaken's Earring -->
<item id="46395" count="10" chance="2.2053" /> <!-- Shadow Ingot -->
<item id="37507" count="1" chance="0.9285" /> <!-- Enhanced Octavis' Ring (Warrior) -->
<item id="37513" count="1" chance="1.3571" /> <!-- Enhanced Octavis' Ring (Wizard) -->
<item id="46479" count="1" chance="0.8821" /> <!-- Leona's Soul Crystal - Stage 6 -->
<item id="37508" count="1" chance="1.7642" /> <!-- Enhanced Octavis' Earring (Warrior) -->
<item id="34775" count="1" chance="4.9557" /> <!-- Scroll of Blessing: (R2-grade) (Event) -->
<item id="46494" count="1" chance="0.6786" /> <!-- Pantheon's Soul Crystal - Stage 6 -->
<item id="46464" count="1" chance="0.8143" /> <!-- Mermoden's Soul Crystal - Stage 6 -->
<item id="46449" count="1" chance="0.8143" /> <!-- Kain's Soul Crystal - Stage 6 -->
<item id="39643" count="1" chance="5.8808" /> <!-- Venir's Talisman - Stage 10 -->
<item id="37517" count="1" chance="2.9404" /> <!-- Enhanced Istina's Earring (Wizard) -->
<item id="46478" count="1" chance="1.6039" /> <!-- Leona's Soul Crystal - Stage 5 -->
<item id="37518" count="1" chance="3.2077" /> <!-- Enhanced Istina's Necklace (Wizard) -->
<item id="35567" count="1" chance="3.5285" /> <!-- Dark Eternal Enhancement Stone -->
<item id="37509" count="1" chance="3.5285" /> <!-- Enhanced Octavis' Necklace (Warrior) -->
<item id="37772" count="1" chance="4.4106" /> <!-- Scroll of Blessing: Weapon (R99-grade) -->
<item id="46151" count="1" chance="2.5203" /> <!-- Superior Giant's Codex - Mastery Chapter 1 -->
<item id="46493" count="1" chance="2.7566" /> <!-- Pantheon's Soul Crystal - Stage 5 -->
<item id="46464" count="1" chance="1.7642" /> <!-- Mermoden's Soul Crystal - Stage 6 -->
<item id="6661" count="1" chance="2.9404" /> <!-- Orfen's Earring -->
<item id="46508" count="1" chance="1.2831" /> <!-- Lionel's Soul Crystal - Stage 5 -->
<item id="37781" count="2" chance="10.5854" /> <!-- Scroll of Blessing: Armor (R99-grade) -->
<item id="39641" count="1" chance="14.7015" /> <!-- Venir's Talisman - Stage 8 -->
<item id="27458" count="1" chance="0.4033" /> <!-- Rabbit Ears Box -->
<item id="27459" count="1" chance="0.4033" /> <!-- Raccoon Ears Box -->
<item id="27460" count="1" chance="0.4033" /> <!-- Cat Ears Box -->
<item id="27461" count="1" chance="0.4033" /> <!-- Romantic Chapeau Box -->
<item id="27462" count="1" chance="0.4033" /> <!-- Angel Circlet Box -->
<item id="27463" count="1" chance="0.4033" /> <!-- Demon Circlet Box -->
<item id="27464" count="1" chance="0.4033" /> <!-- Pirate's Eyepatch Box -->
<item id="27465" count="1" chance="0.4033" /> <!-- Outlaw's Eyepatch Box -->
<item id="27466" count="1" chance="0.4033" /> <!-- Eyepatch Box -->
<item id="27467" count="1" chance="0.4033" /> <!-- Party Hat Box -->
<item id="27468" count="1" chance="0.4033" /> <!-- Refined Angel Ring Box -->
<item id="27469" count="1" chance="0.4033" /> <!-- Refined Devil Horn Box -->
<item id="37719" count="1" chance="2.2053" /> <!-- Pa'agrio's Special Pack -->
<item id="37720" count="1" chance="2.2053" /> <!-- Maphr's Special Pack -->
<item id="37721" count="1" chance="2.2053" /> <!-- Sayha's Special Pack -->
<item id="37722" count="1" chance="2.2053" /> <!-- Eva's Special Pack -->
<item id="6660" count="1" chance="0.0679" /> <!-- Queen Ant's Ring -->
</modify_reward>
</luckygame>
</list>

View File

@ -0,0 +1,108 @@
/*
* 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 <http://www.gnu.org/licenses/>.
*/
package events.ChefMonkeyEvent;
import com.l2jmobius.gameserver.data.xml.impl.MultisellData;
import com.l2jmobius.gameserver.model.actor.L2Npc;
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
import com.l2jmobius.gameserver.model.events.EventType;
import com.l2jmobius.gameserver.model.events.ListenerRegisterType;
import com.l2jmobius.gameserver.model.events.annotations.Id;
import com.l2jmobius.gameserver.model.events.annotations.RegisterEvent;
import com.l2jmobius.gameserver.model.events.annotations.RegisterType;
import com.l2jmobius.gameserver.model.events.impl.character.npc.OnNpcMenuSelect;
import com.l2jmobius.gameserver.model.quest.LongTimeEvent;
/**
* Chef Monkey Event<br>
* http://www.lineage2.com/en/news/events/chef-monkey-event-2016.php
* @author ChaosPaladin
*/
public final class ChefMonkeyEvent extends LongTimeEvent
{
// NPCs
private static final int EV_CHEF_MONKEY = 34292;
private ChefMonkeyEvent()
{
addStartNpc(EV_CHEF_MONKEY);
addFirstTalkId(EV_CHEF_MONKEY);
addTalkId(EV_CHEF_MONKEY);
}
@Override
public String onFirstTalk(L2Npc npc, L2PcInstance player)
{
return "ev_chef_monkey001.htm";
}
@Override
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
{
String htmltext = null;
switch (event)
{
case "ev_chef_monkey001.htm":
case "ev_chef_monkey002.htm":
case "ev_chef_monkey003.htm":
case "ev_chef_monkey004.htm":
case "ev_chef_monkey005.htm":
{
htmltext = event;
break;
}
}
return htmltext;
}
@RegisterEvent(EventType.ON_NPC_MENU_SELECT)
@RegisterType(ListenerRegisterType.NPC)
@Id(EV_CHEF_MONKEY)
public final void OnNpcMenuSelect(OnNpcMenuSelect event)
{
final L2PcInstance player = event.getTalker();
final L2Npc npc = event.getNpc();
final int ask = event.getAsk();
final int reply = event.getReply();
if (ask == -303)
{
if (reply == 2209)
{
// I want to buy Monkey Bait
MultisellData.getInstance().separateAndSend(2209, player, npc, false);
}
else if (reply == 2212)
{
// I want to exchange Tuna fish
MultisellData.getInstance().separateAndSend(2212, player, npc, false);
}
else if (reply == 3043)
{
// buy buff cocktail
MultisellData.getInstance().separateAndSend(3043, player, npc, false);
}
}
}
public static void main(String[] args)
{
new ChefMonkeyEvent();
}
}

View File

@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<event name="Chef Monkey Event" active="22 02 2018-23 02 2018" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../xsd/eventConfig.xsd">
<droplist>
<add item="90167" min="1" max="1" chance="100%" /> <!-- Chef Monkeys' Banana Herb -->
</droplist>
<spawnlist>
<add npc="34292" x="-84008" y="243032" z="-3728" heading="49744" /> <!-- Talking Island -->
<add npc="34292" x="45688" y="49080" z="-3056" heading="49744" /> <!-- Elven Village -->
<add npc="34292" x="-44584" y="-113608" z="-192" heading="49744" /> <!-- Orc Village -->
<add npc="34292" x="10643" y="17034" z="-4592" heading="49744" /> <!-- Dark Elven Village -->
<add npc="34292" x="115656" y="-178056" z="-912" heading="49744" /> <!-- Dwarf Village -->
<add npc="34292" x="-80485" y="149537" z="-3016" heading="16383" /> <!-- Gluddin -->
<add npc="34292" x="-14143" y="123176" z="-3096" heading="30212" /> <!-- Gludio -->
<add npc="34292" x="16354" y="142848" z="-2680" heading="14450" /> <!-- Dion -->
<add npc="34292" x="82312" y="148616" z="-3440" heading="3355" /> <!-- Giran -->
<add npc="34292" x="82008" y="53874" z="-1472" heading="3355" /> <!-- Oren -->
<add npc="34292" x="147064" y="25928" z="-2008" heading="17863" /> <!-- Aden -->
<add npc="34292" x="117380" y="76684" z="-2672" heading="40961" /> <!-- Hunters Village -->
</spawnlist>
<messages>
<add type="onEnter" text="Chef Monkey Event will run!" />
<add type="onEnd" text="Chef Monkey Event will end!" />
</messages>
</event>

View File

@ -0,0 +1,10 @@
<html><body>Event Manager Chef Monkey:<br>
One morning, I opened my eyes and found myself a genius chef! I am Chef Monkey.<br>
I have come to the Aden Continent to bring happiness to all through my food! Even the monsters have eaten my food! They drop bananas when they die!<br>
The fish love the bait I make! They cant get enough! You can use my super bait to catch a special Tuna fish!<br>
Oh, that will be a great fishing! Especially if you have a delicious Banana Cocktail with you. Alleviate your tiredness with fishing!<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h menu_select?ask=-303&reply=2212">"I want to buy Monkey Bait."</button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h menu_select?ask=-303&reply=2209">"I want to exchange Tuna fish."</button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h menu_select?ask=-303&reply=3043">"I heard you've succeeded in making awesome cocktail... Can I get one?."</button>
</body></html>
View

View File

@ -0,0 +1,7 @@
<html><body>Event Manager Chef Monkey:<br>
Do you need it explained to you again?<br>
I , Chef Monkey, am a genius chef! Everybody is after my food: the monsters, the fish, even the Seed Talisman Manager!<br>
Theyll appreciate my cooking on the Aden Continent as well. Thats why Ive gone and prepared some Monkey Bait. The fish love it!<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest ChefMonkeyEvent ev_chef_monkey003.htm">"Tell me about the Monkey Bait."</button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest ChefMonkeyEvent ev_chef_monkey005.htm">"Tell me about Chef Monkeys Banana Herb."</button>
</body></html>

View File

@ -0,0 +1,7 @@
<html><body>Event Manager Chef Monkey:<br>
So you'd like to know about the Monkey Bait, hmm? It's a type of bait that I've cooked up, and the fish love it! They can't get enough!<br>
Fishing with the <font color="LEVEL">Monkey Bait</font>, you'll be able to <font color="LEVEL">fish faster than before</font>! You'll also <font color="LEVEL">get more XP</font>.<br>
Sometimes, you'll get lucky and catch a <font color="LEVEL">Chef Monkey's Treasure Chest</font>. I lost it when the fish swarmed around me! But if you manage to fish the Treasure Chest around using my bait, it's yours! I don't have much need for it.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest ChefMonkeyEvent ev_chef_monkey005.htm">"Tell me about Chef Monkeys' Banana Herb."</button>
<Button ALIGN=LEFT ICON="Return" action="bypass -h Quest ChefMonkeyEvent ev_chef_monkey001.htm">Back</button>
</body></html>

View File

@ -0,0 +1,7 @@
<html><body>Event Manager Chef Monkey:<br>
The Seed Talisman Manager in the Town of Aden also likes my cooking!<br>
He asked me to make him a month's worth, so I did.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest ChefMonkeyEvent ev_chef_monkey003.htm">"Tell me about the Monkey Bait."</button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest ChefMonkeyEvent ev_chef_monkey005.htm">"Tell me about Chef Monkeys' Banana Herb."</button>
<Button ALIGN=LEFT ICON="Return" action="bypass -h Quest ChefMonkeyEvent ev_chef_monkey001.htm">Back</button>
</body></html>

View File

@ -0,0 +1,8 @@
<html><body>Event Manager Chef Monkey:<br>
You'd like to hear about Chef Monkey's Banana Herb, eh? Haha, it's quite something!<br>
When I first arrive on the Aden continent, I didn't know anything, so I ended up cooking for the monsters! They loved it. When the monsters who had eaten my food died, they dropped Banana Herbs. It was strange.<br>
<font color="LEVEL">Chef Monkey's Banana Herb</font> increases <font color="LEVEL">P. Atk., M. Atk, P. Def., and M. Def. by 50% for 5 minutes, and increases XP and SP gained by 10%</font>!<br>
I've cooked for a lot of monsters! Go out and hunt them!<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest ChefMonkeyEvent ev_chef_monkey003.htm">"Tell me about the Monkey Bait."</button>
<Button ALIGN=LEFT ICON="Return" action="bypass -h Quest ChefMonkeyEvent ev_chef_monkey001.htm">Back</button>
</body></html>

View File

@ -0,0 +1,9 @@
<html><body>Crystal Seer Eve:<br>
Welcome to the doorway to your future! Show me your tickets, and I'll show you all that you desire.<br>
As long as you bring me the Fortune Reading tickets needed, I can read your fortune.<br>
You can get various dimensional items and rare items. You can get better items from the Luxury Fortune Reading game than the Regular Fortune Reading game.<br>
To play the <font color="LEVEL">Luxury Fortune Reading game</font>, you'll need a <font color="LEVEL">Luxury Fortune Reading Ticket</font>.<br>
To play the <font color="LEVEL">Regular Fortune Reading game</font>, you'll need a <font color="LEVEL">Fortune Reading Ticket</font>.<br>
You can purchase <font color="LEVEL">Fortune Reading Tickets</font> from the <font color="LEVEL">L2Store</font> for 35,000,000 Adena each..<br>
You can purchase <font color="LEVEL">Luxury Fortune Reading Tickets</font> for 160 NCoins each.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest EveTheFortuneTeller 8542.htm">Back</Button></body></html>

View File

@ -0,0 +1,12 @@
<html><body scroll="no">
<table border=0 cellpadding=0 cellspacing=0 width=292 height=358 background="L2UI_CH3.refinewnd_back_Pattern"> <tr>
<td valign="top" align="center"> <!-- Invitation Emblem --> <table border=0 cellpadding=0 cellspacing=0> <tr>
<td align="center" width=185 height=185 background="BranchSys3.LuckyGameEmblem"></td></tr>
</table> <!-- //Invitation Emblem --> <table border=0 cellpadding=0 cellspacing=0 width="272"> <tr>
<td align="center" height="30"><font color="af9878">May your future be full of mystery!</font></td></tr>
<tr><td align="center">What would suit your fancy, traveler?</td></tr> <tr><td height="10"></td></tr>
<tr><td align="center"><button action="bypass -h Quest EveTheFortuneTeller LuxuryFortuneReadingGame" value="Luxury Fortune Reading Game" width="200" height="31" back="L2UI_CT1.HtmlWnd_DF_Awake_Down" fore="L2UI_CT1.HtmlWnd_DF_Awake"></button></td></tr>
<tr><td height="10"></td></tr> <tr><td align="center"><button action="bypass -h Quest EveTheFortuneTeller FortuneReadingGame" value="Fortune Reading Game" width="200" height="31" back="L2UI_CT1.HtmlWnd_DF_contribution_down" fore="L2UI_CT1.HtmlWnd_DF_contribution"></button></td></tr> <tr><td height="10"></td></tr>
<tr><td align="center"><button action="bypass -h Quest EveTheFortuneTeller 8542-1.htm" value="Help" width="200" height="31" back="L2UI_CT1.OlympiadWnd_DF_Info_Down" fore="L2UI_CT1.OlympiadWnd_DF_Info"></button></td></tr>
<tr><td height="10"></td></tr> </table> </td></tr></table>
</body></html>

View File

@ -0,0 +1,82 @@
/*
* 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 <http://www.gnu.org/licenses/>.
*/
package events.EveTheFortuneTeller;
import com.l2jmobius.gameserver.enums.LuckyGameType;
import com.l2jmobius.gameserver.model.actor.L2Npc;
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
import com.l2jmobius.gameserver.model.quest.LongTimeEvent;
import com.l2jmobius.gameserver.network.serverpackets.luckygame.ExStartLuckyGame;
/**
* Eve the Fortune Teller Returns<br>
* Info - http://www.lineage2.com/en/news/events/11182015-eve-the-fortune-teller-returns.php
* @author Mobius
*/
public final class EveTheFortuneTeller extends LongTimeEvent
{
// NPCs
private static final int EVE = 31855;
// Items
private static final int FORTUNE_READING_TICKET = 23767;
private static final int LUXURY_FORTUNE_READING_TICKET = 23768;
private EveTheFortuneTeller()
{
addStartNpc(EVE);
addFirstTalkId(EVE);
addTalkId(EVE);
addSpawnId(EVE);
}
@Override
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
{
String htmltext = null;
switch (event)
{
case "31855.htm":
case "31855-1.htm":
{
htmltext = event;
break;
}
case "FortuneReadingGame":
{
player.sendPacket(new ExStartLuckyGame(LuckyGameType.NORMAL, player.getInventory().getInventoryItemCount(FORTUNE_READING_TICKET, -1)));
break;
}
case "LuxuryFortuneReadingGame":
{
player.sendPacket(new ExStartLuckyGame(LuckyGameType.LUXURY, player.getInventory().getInventoryItemCount(LUXURY_FORTUNE_READING_TICKET, -1)));
break;
}
}
return htmltext;
}
@Override
public String onFirstTalk(L2Npc npc, L2PcInstance player)
{
return "31855.htm";
}
public static void main(String[] args)
{
new EveTheFortuneTeller();
}
}

View File

@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<event name="Eve the Fortune Teller" active="22 02 2017-23 02 2017" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../xsd/eventConfig.xsd">
<spawnlist>
<add npc="31855" x="-84008" y="243032" z="-3728" heading="49744" /> <!-- Talking Island -->
<add npc="31855" x="45688" y="49080" z="-3056" heading="49744" /> <!-- Elven Village -->
<add npc="31855" x="-44584" y="-113608" z="-192" heading="49744" /> <!-- Orc Village -->
<add npc="31855" x="10643" y="17034" z="-4592" heading="49744" /> <!-- Dark Elven Village -->
<add npc="31855" x="115656" y="-178056" z="-912" heading="49744" /> <!-- Dwarf Village -->
<add npc="31855" x="-80485" y="149537" z="-3016" heading="16383" /> <!-- Gluddin -->
<add npc="31855" x="-14143" y="123176" z="-3096" heading="30212" /> <!-- Gludio -->
<add npc="31855" x="16354" y="142848" z="-2680" heading="14450" /> <!-- Dion -->
<add npc="31855" x="82312" y="148616" z="-3440" heading="3355" /> <!-- Giran -->
<add npc="31855" x="82008" y="53874" z="-1472" heading="3355" /> <!-- Oren -->
<add npc="31855" x="147064" y="25928" z="-2008" heading="17863" /> <!-- Aden -->
<add npc="31855" x="117380" y="76684" z="-2672" heading="40961" /> <!-- Hunters Village -->
</spawnlist>
<messages>
<add type="onEnd" text="Eve the Fortune Teller: Event end!" />
<add type="onEnter" text="Eve the Fortune Teller: Event ongoing!" />
</messages>
</event>

View File

@ -0,0 +1,6 @@
<html><body>Coco Brownie:<br>
How is your love life? As sweet as chocolate, I hope? If not, never fear! I, the cupid of Ivory Tower, have come to your rescue!<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest ThePowerOfLove 33893-2.htm">"So... what's going on?"</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest ThePowerOfLove 33893-3.htm">"You smell sweet. What's your secret?"</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest ThePowerOfLove coco_buff">"I actually want a buff that can change my weapon appearance...?"</Button>
</body></html>

View File

@ -0,0 +1,12 @@
<html><body>Coco Brownie:<br>
A monster stole the <font color="LEVEL">Love Potion</font> I made! It was my blood, sweat, and tears!<br>
A sip of it will <font color="LEVEL">double the P. Atk./ M. Atk./ Speed/ Casting Spd. for 2 minutes</font> for <font color="LEVEL">everyone in your party</font>! Awesome, right?<br>
I wouldn't call this a side effect, but the potion does tend to change the appearance of your weapon a little. But don't worry, because it's not ugly! I'm the messenger of love, remember?<br1>
(The effect of the Love Potion disappears when you restart the game.)<br>
Also, you can choose <font color="LEVEL">Chocolate Truffle, Candy Heart, or Comfort Cookie</font>. Each one <font color="LEVEL">restores your Vitality in peace zones</font> and has <font color="LEVEL">also has its own special power</font>.<br>
The <font color="LEVEL">Chocolate Truffle</font> lets you use the <font color="LEVEL">Decadence</font> skill, resulting in STR + 2, INT + 2, and Attribute Resistance + 20.<br>The <font color="LEVEL">Candy Heart</font> lets you use the <font color="LEVEL">Sugar Rush</font> skill, increasing STR + 2, INT + 2, DEX + 2, and WIT + 2.<br>The <font color="LEVEL">Comfort Cookie</font> lets you use the <font color="LEVEL">Forever Alone</font> skill, increasing STR + 2, INT + 2, CON + 2, and MEN + 2. If 3 people with each item gather around and use their skills, they can receive <font color="LEVEL">all of the effects</font>, so you might want to go looking for new friends! The skills were made from leftovers from the Love Potion, so they might look a bit, uh, excessive... But hey, they're cute, I promise!<br>
Oh, and you know about the transformation and summoning items, right?<br>
<font color="LEVEL">Transformation items</font> let you transform into either a Snow Man, Scarecrow Jack, Tin Golem, Makeshift Bat, Angry Tow, Lady Tow, or Sleepy Tow. What's so great about them, you say? Well, they're cute! So insanely cute!<br>
<font color="LEVEL">Friend-summoning</font> items let you summon your friends. Create a party, and use the items to summon a party member! Easy, right? Well, that's it! Have a very sweet day!<br>
<Button ALIGN=LEFT ICON="RETURN" action="bypass -h Quest ThePowerOfLove 33893-1.htm">Back</button>
</body></html>

View File

@ -0,0 +1,14 @@
<html><body>Coco Brownie:<br>
Oh, are you coming onto me? Not very subtle, but cute, I suppose! Hehe. I know I smell nice -- I have magical items as a result of my labor of love!<br>
It's always good to know which item you look and feel good with. What would you like? Oh, but you can still get all the skill effects of Decadence, Sugar Rush, and Forever Alone. Just find someone who has something you don't!<br>
<font color="LEVEL">Chocolate Truffle</font><br1>
Enables the Decadence skill, resulting in STR/ INT + 2, and Attribute Resistance + 20.<br>
<font color="LEVEL">Candy Heart</font>
<br1> Enables the Sugar Rush skill, resulting in STR/ INT/ DEX/ WIT + 2.<br>
<font color="LEVEL">Comfort Cookie</font> <br1>
Enables the Forever Alone skill, resulting in STR/ INT/ CON/ MEN + 2.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest ThePowerOfLove ct">Chocolate Truffle</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest ThePowerOfLove ch">Candy Heart</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest ThePowerOfLove cc">Comfort Cookie</Button>
<Button ALIGN=LEFT ICON="RETURN" action="bypass -h Quest ThePowerOfLove 33893-1.htm">Back</button>
</body></html>

View File

@ -0,0 +1,5 @@
<html><body>Coco Brownie:<br>
Magical Energy takes effect for only 5 minutes.<br>
Love potions and Coco Brownie's magic lose their effects when you restart, so be careful! Have a sweet day.<br>
<Button ALIGN=LEFT ICON="RETURN" action="bypass -h Quest ThePowerOfLove 33893-1.htm">Back</button>
</body></html>

View File

@ -0,0 +1,5 @@
<html><body>Coco:<br>
Chocolate Truffles it is!<br>
A very good choice. Here, take Coco's Transformation Chocolate and Coco's Friend Summon Chocolate as a bonus.<br>
If you don't like what you got, get rid of the things I gave you, and I'll give you something else. Have a sweet day!
</body></html>

View File

@ -0,0 +1,5 @@
<html><body>Coco:<br>
Candy Heart it is!<br>
A very good choice. Here, take Coco's Transformation Candy and Coco's Friend Summon Candy as a bonus.<br>
If you don't like what you got, get rid of the things I gave you, and I'll give you something else. Have a sweet day!
</body></html>

View File

@ -0,0 +1,5 @@
<html><body>Coco:<br>
Comfort Cookie it is!<br>
A very good choice. Here, take Coco's Transformation Cookie and Coco's Friend Summon Cookie as a bonus.<br>
If you don't like what you got, get rid of the things I gave you, and I'll give you something else. Have a sweet day!
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Coco Brownie:<br>
But you already got the event items!<br>If you want something else, get rid of what I gave you.<br>
<Button ALIGN=LEFT ICON="RETURN" action="bypass -h Quest ThePowerOfLove 33893-1.htm">Back</button>
</body></html>

View File

@ -0,0 +1,101 @@
/*
* 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 <http://www.gnu.org/licenses/>.
*/
package events.ThePowerOfLove;
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;
/**
* The Power Of Love
* @URL http://www.lineage2.com/en/news/events/02102016-the-power-of-love-part-iii.php
* @author hlwrave
*/
public final class ThePowerOfLove extends LongTimeEvent
{
// NPC
private static final int COCO = 33893;
// Items
private static final int COCOGIFBOX = 36081;
private static final int AMULETLOVE = 70232;
// Skill
private static final SkillHolder COCO_M = new SkillHolder(55327, 1); // Sweet Chocolate Energy
private ThePowerOfLove()
{
addStartNpc(COCO);
addFirstTalkId(COCO);
addTalkId(COCO);
}
@Override
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
{
String htmltext = null;
switch (event)
{
case "33893-1.htm":
case "33893-2.htm":
case "33893-3.htm":
{
htmltext = event;
break;
}
case "coco_giveItem":
{
if (!hasQuestItems(player, COCOGIFBOX))
{
giveItems(player, COCOGIFBOX, 1);
htmltext = "33893-5.htm";
}
else
{
htmltext = "33893-9.htm";
}
break;
}
case "coco_takeAmulet":
{
if (hasQuestItems(player, AMULETLOVE))
{
SkillCaster.triggerCast(npc, player, COCO_M.getSkill());
htmltext = "33893-4.htm";
takeItems(player, AMULETLOVE, 1);
}
else
{
htmltext = "33893-9.htm";
}
break;
}
}
return htmltext;
}
@Override
public String onFirstTalk(L2Npc npc, L2PcInstance player)
{
return npc.getId() + "-1.htm";
}
public static void main(String[] args)
{
new ThePowerOfLove();
}
}

View File

@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<event name="The Power Of Love" active="22 02 2018-23 02 2018" enableShrines="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../xsd/eventConfig.xsd">
<droplist>
<add item="37704" min="1" max="1" chance="30%" /> <!-- Love Potion -->
</droplist>
<spawnlist>
<add npc="33893" x="-84008" y="243032" z="-3728" heading="49744" /> <!-- Talking Island -->
<add npc="33893" x="45688" y="49080" z="-3056" heading="49744" /> <!-- Elven Village -->
<add npc="33893" x="-44584" y="-113608" z="-192" heading="49744" /> <!-- Orc Village -->
<add npc="33893" x="10643" y="17034" z="-4592" heading="49744" /> <!-- Dark Elven Village -->
<add npc="33893" x="115656" y="-178056" z="-912" heading="49744" /> <!-- Dwarf Village -->
<add npc="33893" x="-80485" y="149537" z="-3016" heading="16383" /> <!-- Gluddin -->
<add npc="33893" x="-14143" y="123176" z="-3096" heading="30212" /> <!-- Gludio -->
<add npc="33893" x="16354" y="142848" z="-2680" heading="14450" /> <!-- Dion -->
<add npc="33893" x="82312" y="148616" z="-3440" heading="3355" /> <!-- Giran -->
<add npc="33893" x="82008" y="53874" z="-1472" heading="3355" /> <!-- Oren -->
<add npc="33893" x="147064" y="25928" z="-2008" heading="17863" /> <!-- Aden -->
<add npc="33893" x="117380" y="76684" z="-2672" heading="40961" /> <!-- Hunters Village -->
</spawnlist>
<messages>
<add type="onEnd" text="The Power Of Love: Event end!" />
<add type="onEnter" text="The Power Of Love: Event ongoing!" />
</messages>
</event>

View File

@ -0,0 +1,4 @@
<html><body>Frog:<br>
How is your love life? As sweet as chocolate, I hope? If not, never fear! I, the cupid of Ivory Tower, have come to your rescue!<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest TotalRecall frog_buff">"Do you want kiss me ?"</Button>
</body></html>

View File

@ -0,0 +1,12 @@
<html><body>Frog:<br>
A monster stole the <font color="LEVEL">Love Potion</font> I made! It was my blood, sweat, and tears!<br>
A sip of it will <font color="LEVEL">double the P. Atk./ M. Atk./ Speed/ Casting Spd. for 2 minutes</font> for <font color="LEVEL">everyone in your party</font>! Awesome, right?<br>
I wouldn't call this a side effect, but the potion does tend to change the appearance of your weapon a little. But don't worry, because it's not ugly! I'm the messenger of love, remember?<br1>
(The effect of the Love Potion disappears when you restart the game.)<br>
Also, you can choose <font color="LEVEL">Chocolate Truffle, Candy Heart, or Comfort Cookie</font>. Each one <font color="LEVEL">restores your Vitality in peace zones</font> and has <font color="LEVEL">also has its own special power</font>.<br>
The <font color="LEVEL">Chocolate Truffle</font> lets you use the <font color="LEVEL">Decadence</font> skill, resulting in STR + 2, INT + 2, and Attribute Resistance + 20.<br>The <font color="LEVEL">Candy Heart</font> lets you use the <font color="LEVEL">Sugar Rush</font> skill, increasing STR + 2, INT + 2, DEX + 2, and WIT + 2.<br>The <font color="LEVEL">Comfort Cookie</font> lets you use the <font color="LEVEL">Forever Alone</font> skill, increasing STR + 2, INT + 2, CON + 2, and MEN + 2. If 3 people with each item gather around and use their skills, they can receive <font color="LEVEL">all of the effects</font>, so you might want to go looking for new friends! The skills were made from leftovers from the Love Potion, so they might look a bit, uh, excessive... But hey, they're cute, I promise!<br>
Oh, and you know about the transformation and summoning items, right?<br>
<font color="LEVEL">Transformation items</font> let you transform into either a Snow Man, Scarecrow Jack, Tin Golem, Makeshift Bat, Angry Tow, Lady Tow, or Sleepy Tow. What's so great about them, you say? Well, they're cute! So insanely cute!<br>
<font color="LEVEL">Friend-summoning</font> items let you summon your friends. Create a party, and use the items to summon a party member! Easy, right? Well, that's it! Have a very sweet day!<br>
<Button ALIGN=LEFT ICON="RETURN" action="bypass -h Quest TotalRecall 9013-1.htm">Back</button>
</body></html>

View File

@ -0,0 +1,14 @@
<html><body>Frog:<br>
Oh, are you coming onto me? Not very subtle, but cute, I suppose! Hehe. I know I smell nice -- I have magical items as a result of my labor of love!<br>
It's always good to know which item you look and feel good with. What would you like? Oh, but you can still get all the skill effects of Decadence, Sugar Rush, and Forever Alone. Just find someone who has something you don't!<br>
<font color="LEVEL">Chocolate Truffle</font><br1>
Enables the Decadence skill, resulting in STR/ INT + 2, and Attribute Resistance + 20.<br>
<font color="LEVEL">Candy Heart</font>
<br1> Enables the Sugar Rush skill, resulting in STR/ INT/ DEX/ WIT + 2.<br>
<font color="LEVEL">Comfort Cookie</font> <br1>
Enables the Forever Alone skill, resulting in STR/ INT/ CON/ MEN + 2.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest TotalRecall ct">Chocolate Truffle</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest TotalRecall ch">Candy Heart</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest TotalRecall cc">Comfort Cookie</Button>
<Button ALIGN=LEFT ICON="RETURN" action="bypass -h Quest TotalRecall 9013-1.htm">Back</button>
</body></html>

View File

@ -0,0 +1,5 @@
<html><body>Frog:<br>
Magical Energy takes effect for only 5 minutes.<br>
Love potions and Coco Brownie's magic lose their effects when you restart, so be careful! Have a sweet day.<br>
<Button ALIGN=LEFT ICON="RETURN" action="bypass -h Quest TotalRecall 9013-1.htm">Back</button>
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Frog:<br>
But you already got the event items!<br>If you want something else, get rid of what I gave you.<br>
<Button ALIGN=LEFT ICON="RETURN" action="bypass -h Quest TotalRecall 9013-1.htm">Back</button>
</body></html>

View File

@ -0,0 +1,77 @@
/*
* 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 <http://www.gnu.org/licenses/>.
*/
package events.TotalRecall;
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;
/**
* Total Recall Event
* @URL https://eu.4gameforum.com/threads/578395/
* @author QuangNguyen
*/
public final class TotalRecall extends LongTimeEvent
{
// NPC
private static final int FROG = 9013;
// Skill
private static final SkillHolder FROG_KISS = new SkillHolder(55314, 1);
private TotalRecall()
{
addStartNpc(FROG);
addFirstTalkId(FROG);
addTalkId(FROG);
}
@Override
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
{
String htmltext = null;
switch (event)
{
case "9013-1.htm":
case "9013-2.htm":
case "9013-3.htm":
{
htmltext = event;
break;
}
case "frog_buff":
{
SkillCaster.triggerCast(npc, player, FROG_KISS.getSkill());
htmltext = "9013-4.htm";
break;
}
}
return htmltext;
}
@Override
public String onFirstTalk(L2Npc npc, L2PcInstance player)
{
return "9013-1.htm";
}
public static void main(String[] args)
{
new TotalRecall();
}
}

View File

@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<event name="Total Recall" active="08 03 2017-09 03 2017" enableShrines="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../xsd/eventConfig.xsd">
<spawnlist>
<add npc="9013" x="-84008" y="243032" z="-3728" heading="49744" /> <!-- Talking Island -->
<add npc="9013" x="45688" y="49080" z="-3056" heading="49744" /> <!-- Elven Village -->
<add npc="9013" x="-44584" y="-113608" z="-192" heading="49744" /> <!-- Orc Village -->
<add npc="9013" x="10643" y="17034" z="-4592" heading="49744" /> <!-- Dark Elven Village -->
<add npc="9013" x="115656" y="-178056" z="-912" heading="49744" /> <!-- Dwarf Village -->
<add npc="9013" x="-80485" y="149537" z="-3016" heading="16383" /> <!-- Gluddin -->
<add npc="9013" x="-14143" y="123176" z="-3096" heading="30212" /> <!-- Gludio -->
<add npc="9013" x="16354" y="142848" z="-2680" heading="14450" /> <!-- Dion -->
<add npc="9013" x="82312" y="148616" z="-3440" heading="3355" /> <!-- Giran -->
<add npc="9013" x="82008" y="53874" z="-1472" heading="3355" /> <!-- Oren -->
<add npc="9013" x="147064" y="25928" z="-2008" heading="17863" /> <!-- Aden -->
<add npc="9013" x="117380" y="76684" z="-2672" heading="40961" /> <!-- Hunters Village -->
</spawnlist>
<messages>
<add type="onEnd" text="Total Recall: Event end!" />
<add type="onEnter" text="Total Recall: Event ongoing!" />
</messages>
</event>