diff --git a/trunk/dist/game/data/scripts.cfg b/trunk/dist/game/data/scripts.cfg index 655e1b2c7e..e8c018fcf3 100644 --- a/trunk/dist/game/data/scripts.cfg +++ b/trunk/dist/game/data/scripts.cfg @@ -261,6 +261,7 @@ events/CharacterBirthday/CharacterBirthday.java events/EveTheFortuneTeller/EveTheFortuneTeller.java events/HuntForSanta/HuntForSanta.java events/RedLibra/RedLibra.java +events/ThePowerOfLove/ThePowerOfLove.java # Disabled by default events #events/GiftOfVitality/GiftOfVitality.java diff --git a/trunk/dist/game/data/scripts/events/ThePowerOfLove/33893-1.htm b/trunk/dist/game/data/scripts/events/ThePowerOfLove/33893-1.htm new file mode 100644 index 0000000000..48f5500084 --- /dev/null +++ b/trunk/dist/game/data/scripts/events/ThePowerOfLove/33893-1.htm @@ -0,0 +1,6 @@ +Coco Brownie:
+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!
+ + + + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/events/ThePowerOfLove/33893-2.htm b/trunk/dist/game/data/scripts/events/ThePowerOfLove/33893-2.htm new file mode 100644 index 0000000000..2c342c3eed --- /dev/null +++ b/trunk/dist/game/data/scripts/events/ThePowerOfLove/33893-2.htm @@ -0,0 +1,12 @@ +Coco Brownie:
+A monster stole the Love Potion I made! It was my blood, sweat, and tears!
+A sip of it will double the P. Atk./ M. Atk./ Speed/ Casting Spd. for 2 minutes for everyone in your party! Awesome, right?
+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? +(The effect of the Love Potion disappears when you restart the game.)
+Also, you can choose Chocolate Truffle, Candy Heart, or Comfort Cookie. Each one restores your Vitality in peace zones and has also has its own special power.
+The Chocolate Truffle lets you use the Decadence skill, resulting in STR + 2, INT + 2, and Attribute Resistance + 20.
The Candy Heart lets you use the Sugar Rush skill, increasing STR + 2, INT + 2, DEX + 2, and WIT + 2.
The Comfort Cookie lets you use the Forever Alone 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 all of the effects, 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!
+Oh, and you know about the transformation and summoning items, right?
+Transformation items 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!
+Friend-summoning 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!
+ + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/events/ThePowerOfLove/33893-3.htm b/trunk/dist/game/data/scripts/events/ThePowerOfLove/33893-3.htm new file mode 100644 index 0000000000..b96230094a --- /dev/null +++ b/trunk/dist/game/data/scripts/events/ThePowerOfLove/33893-3.htm @@ -0,0 +1,14 @@ +Coco Brownie:
+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!
+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!
+Chocolate Truffle +Enables the Decadence skill, resulting in STR/ INT + 2, and Attribute Resistance + 20.
+Candy Heart + Enables the Sugar Rush skill, resulting in STR/ INT/ DEX/ WIT + 2.
+Comfort Cookie +Enables the Forever Alone skill, resulting in STR/ INT/ CON/ MEN + 2.
+ + + + + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/events/ThePowerOfLove/33893-4.htm b/trunk/dist/game/data/scripts/events/ThePowerOfLove/33893-4.htm new file mode 100644 index 0000000000..c7ac3147b1 --- /dev/null +++ b/trunk/dist/game/data/scripts/events/ThePowerOfLove/33893-4.htm @@ -0,0 +1,5 @@ +Coco Brownie:
+Magical Energy takes effect for only 5 minutes.
+Love potions and Coco Brownie's magic lose their effects when you restart, so be careful! Have a sweet day.
+ + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/events/ThePowerOfLove/33893-5.htm b/trunk/dist/game/data/scripts/events/ThePowerOfLove/33893-5.htm new file mode 100644 index 0000000000..4d87696165 --- /dev/null +++ b/trunk/dist/game/data/scripts/events/ThePowerOfLove/33893-5.htm @@ -0,0 +1,5 @@ +Coco:
+Chocolate Truffles it is!
+A very good choice. Here, take Coco's Transformation Chocolate and Coco's Friend Summon Chocolate as a bonus.
+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! + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/events/ThePowerOfLove/33893-6.htm b/trunk/dist/game/data/scripts/events/ThePowerOfLove/33893-6.htm new file mode 100644 index 0000000000..71e88e1884 --- /dev/null +++ b/trunk/dist/game/data/scripts/events/ThePowerOfLove/33893-6.htm @@ -0,0 +1,5 @@ +Coco:
+Candy Heart it is!
+A very good choice. Here, take Coco's Transformation Candy and Coco's Friend Summon Candy as a bonus.
+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! + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/events/ThePowerOfLove/33893-7.htm b/trunk/dist/game/data/scripts/events/ThePowerOfLove/33893-7.htm new file mode 100644 index 0000000000..e50df7bfce --- /dev/null +++ b/trunk/dist/game/data/scripts/events/ThePowerOfLove/33893-7.htm @@ -0,0 +1,5 @@ +Coco:
+Comfort Cookie it is!
+A very good choice. Here, take Coco's Transformation Cookie and Coco's Friend Summon Cookie as a bonus.
+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! + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/events/ThePowerOfLove/33893-9.htm b/trunk/dist/game/data/scripts/events/ThePowerOfLove/33893-9.htm new file mode 100644 index 0000000000..4ea5a898d3 --- /dev/null +++ b/trunk/dist/game/data/scripts/events/ThePowerOfLove/33893-9.htm @@ -0,0 +1,4 @@ +Coco Brownie:
+But you already got the event items!
If you want something else, get rid of what I gave you.
+ + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/events/ThePowerOfLove/ThePowerOfLove.java b/trunk/dist/game/data/scripts/events/ThePowerOfLove/ThePowerOfLove.java new file mode 100644 index 0000000000..b8148a3c68 --- /dev/null +++ b/trunk/dist/game/data/scripts/events/ThePowerOfLove/ThePowerOfLove.java @@ -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 . + */ +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(); + } +} diff --git a/trunk/dist/game/data/scripts/events/ThePowerOfLove/config.xml b/trunk/dist/game/data/scripts/events/ThePowerOfLove/config.xml new file mode 100644 index 0000000000..59e493faa1 --- /dev/null +++ b/trunk/dist/game/data/scripts/events/ThePowerOfLove/config.xml @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/trunk/dist/game/data/stats/skills/17100-17199.xml b/trunk/dist/game/data/stats/skills/17100-17199.xml index 2ec948d756..8f88bb332c 100644 --- a/trunk/dist/game/data/stats/skills/17100-17199.xml +++ b/trunk/dist/game/data/stats/skills/17100-17199.xml @@ -580,10 +580,19 @@ + - + + + + + + + + +