Event The Power Of Love.

Contributed by hlwrave.
This commit is contained in:
MobiusDev
2016-02-22 17:38:38 +00:00
parent e1d406ae55
commit a20bf31fa5
12 changed files with 223 additions and 1 deletions

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,133 @@
/*
* 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.event.LongTimeEvent;
import com.l2jmobius.gameserver.model.holders.SkillHolder;
/**
* The Power Of Love
* @URL http://www.lineage2.com/en/news/events/02102016-the-power-of-love-part-iii.php
* @author hlwrave
*/
final class ThePowerOfLove extends LongTimeEvent
{
// NPC
private static final int COCO = 33893;
// Items
private static final int CT = 37705;
private static final int CT_TRANSORM = 37708;
private static final int CT_SUMMON = 37711;
private static final int CH = 37706;
private static final int CH_TRANSORM = 37709;
private static final int CH_SUMMON = 37712;
private static final int CC = 37707;
private static final int CC_TRANSORM = 37710;
private static final int CC_SUMMON = 37713;
// Skill
private static final SkillHolder COCO_M = new SkillHolder(17155, 1); // Coco's Magic
private ThePowerOfLove()
{
super(ThePowerOfLove.class.getSimpleName(), "events");
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_buff":
{
npc.setTarget(player);
npc.doCast(COCO_M.getSkill());
htmltext = "33893-4.htm";
break;
}
case "ct":
{
if (!hasQuestItems(player, CT) && (!hasQuestItems(player, CH) && (!hasQuestItems(player, CC))))
{
giveItems(player, CT, 1);
giveItems(player, CT_TRANSORM, 1);
giveItems(player, CT_SUMMON, 1);
htmltext = "33893-5.htm";
}
else
{
htmltext = "33893-9.htm";
}
break;
}
case "ch":
{
if (!hasQuestItems(player, CT) && (!hasQuestItems(player, CH) && (!hasQuestItems(player, CC))))
{
giveItems(player, CH, 1);
giveItems(player, CH_TRANSORM, 1);
giveItems(player, CH_SUMMON, 1);
htmltext = "33893-6.htm";
}
else
{
htmltext = "33893-9.htm";
}
break;
}
case "cc":
{
if (!hasQuestItems(player, CT) && (!hasQuestItems(player, CH) && (!hasQuestItems(player, CC))))
{
giveItems(player, CC, 1);
giveItems(player, CC_TRANSORM, 1);
giveItems(player, CC_SUMMON, 1);
htmltext = "33893-7.htm";
}
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,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<event name="The Power Of Love" active="10 02 2016-24 02 2016" enableShrines="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../xsd/eventConfig.xsd">
<spawnlist>
<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="80814" y="147987" z="-3448" heading="3355" /> <!-- Giran -->
<add npc="33893" x="82008" y="53874" z="-1472" heading="3355" /> <!-- Oren -->
<add npc="33893" x="147457" y="27863" z="-2248" heading="17863" /> <!-- Aden -->
<add npc="33893" x="112172" y="220447" z="-3648" heading="30708" /> <!-- Heine -->
<add npc="33893" x="148195" y="-57368" z="-2752" heading="17863" /> <!-- Goddard -->
<add npc="33893" x="44530" y="-48368" z="-776" heading="14450" /> <!-- Rune -->
<add npc="33893" x="86897" y="-141346" z="-1320" heading="49153" /> <!-- Shutgard -->
<add npc="33893" x="-114822" y="256385" z="-1472" heading="49744" /> <!-- Talking Island -->
<add npc="33893" x="-78832" y="249115" z="-3272" heading="56380" /> <!-- Faeron Village -->
<add npc="33893" x="-80485" y="149537" z="-3016" heading="16383" /> <!-- Gluddin -->
<add npc="33893" x="117380" y="76684" z="-2672" heading="40961" /> <!-- Hunters Village -->
<add npc="33893" x="208499" y="87743" z="-1006" heading="11264" /> <!-- Arcan 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>