This commit is contained in:
10
trunk/dist/game/data/scripts/events/TheValentineEvent/4301-1.htm
vendored
Normal file
10
trunk/dist/game/data/scripts/events/TheValentineEvent/4301-1.htm
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
<html><body>
|
||||
Meow~ You're really a lovable person.<br>
|
||||
I'll definitely help you show your heart to the one who's precious to you.<br>
|
||||
If you use the <font color="LEVEL">Valentine Secret Spell</font> that I gave you, you can find out the <font color="LEVEL">way to make a special Valentine Cake</font> for the person you love~ meow~.<br>
|
||||
If you register the Valentine Secret Spell as a recipe, then collect 10 dark chocolates, 10 white chocolates, and 5 fresh creams, you can make a cake. It can fail sometimes, so pray for success in your heart~ meow~~<br>
|
||||
But, I can't give you the chocolates and fresh cream. Some unknown monsters took them after raiding the warehouse awhile ago.<br>
|
||||
But with the courage that comes from making a gift for someone precious to you, you should be able to retrieve the cake ingredients from the monsters.<br>
|
||||
<a action="bypass -h Quest TheValentineEvent 4301-2.htm">I'm curious about the event rewards.</a><br>
|
||||
<a action="bypass -h Quest TheValentineEvent 4301.htm">To the beginning</a>
|
||||
</body></html>
|
9
trunk/dist/game/data/scripts/events/TheValentineEvent/4301-2.htm
vendored
Normal file
9
trunk/dist/game/data/scripts/events/TheValentineEvent/4301-2.htm
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
<html><body>
|
||||
Meow~ It's a reward for the person receiving the gift.<br>
|
||||
If you take the Valentine Secret Spell and collect chocolates and fresh cream, you can make a special Valentine cake. The first cake that you make will probably look shabby. But with a little effort, you can turn it into a great cake.<br>
|
||||
First, the <font color="LEVEL">Simple Valentine Cake</font> - Transformation Scroll, Healing Potion, Ordinary Valentine Cake<br>
|
||||
Second, the <font color="LEVEL">Velvety Valentine Cake</font> - Armor Enchant Scroll, Blessed Scroll of Return, Blessed Scroll of Resurrection, 3 Day Energy Agathion of Love, Delicious Valentine Cake<br>
|
||||
Third, the <font color="LEVEL">Delectable Valentine Cake</font> - Weapon Enchant Scroll, 7 Day Energy Agathion of Love, Perfect Valentine Cake<br>
|
||||
Fourth, the <font color="LEVEL">Decadent Valentine Cake</font> - Top-grade Armor Enchant Scroll, 15 Day Energy Agathion of Love, 30 Day Energy Agathion of Love<br><br>
|
||||
<a action="bypass -h Quest TheValentineEvent 4301.htm">To the beginning</a>
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/events/TheValentineEvent/4301-3.htm
vendored
Normal file
5
trunk/dist/game/data/scripts/events/TheValentineEvent/4301-3.htm
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>
|
||||
Meow~<br>
|
||||
Please take the <font color="LEVEL">Valentine Secret Spell</font> to help you make a special Valentine cake.<br><br>
|
||||
<a action="bypass -h Quest TheValentineEvent 4301.htm">To the beginning</a>
|
||||
</body></html>
|
6
trunk/dist/game/data/scripts/events/TheValentineEvent/4301-4.htm
vendored
Normal file
6
trunk/dist/game/data/scripts/events/TheValentineEvent/4301-4.htm
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html><body>
|
||||
Meow~<br>
|
||||
I already gave you Valentine Secret Spell, but you're back for me. How greedy.<br>
|
||||
I can't give it to you~<br><br>
|
||||
<a action="bypass -h Quest TheValentineEvent 4301.htm">To the beginning</a>
|
||||
</body></html>
|
10
trunk/dist/game/data/scripts/events/TheValentineEvent/4301.htm
vendored
Normal file
10
trunk/dist/game/data/scripts/events/TheValentineEvent/4301.htm
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
<html><body>
|
||||
Meow~ meow~<br>
|
||||
I'm <font color="LEVEL">Valentine messenger Queen Yang</font><br>
|
||||
The goddess of love Aphrodite gave me a special mission.<br>
|
||||
She told me to help lovers stay in love forever, to deliver comaraderie to friends who are always by your side, and to give something to those who are precious to you.<br>
|
||||
I want to give all of you a special gift today. Lalala~ Lala~<br>
|
||||
<a action="bypass -h Quest TheValentineEvent 4301-1.htm">See detailed event explanation.</a><br>
|
||||
<a action="bypass -h Quest TheValentineEvent 4301-2.htm">I'm curious about the event rewards.</a><br>
|
||||
<a action="bypass -h Quest TheValentineEvent 4301-3.htm">Receive Valentine Secret Spell.</a>
|
||||
</body></html>
|
87
trunk/dist/game/data/scripts/events/TheValentineEvent/TheValentineEvent.java
vendored
Normal file
87
trunk/dist/game/data/scripts/events/TheValentineEvent/TheValentineEvent.java
vendored
Normal file
@@ -0,0 +1,87 @@
|
||||
/*
|
||||
* Copyright (C) 2004-2014 L2J DataPack
|
||||
*
|
||||
* This file is part of L2J DataPack.
|
||||
*
|
||||
* L2J DataPack 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.
|
||||
*
|
||||
* L2J DataPack 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.TheValentineEvent;
|
||||
|
||||
import com.l2jserver.gameserver.enums.QuestSound;
|
||||
import com.l2jserver.gameserver.model.actor.L2Npc;
|
||||
import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
|
||||
import com.l2jserver.gameserver.model.event.LongTimeEvent;
|
||||
import com.l2jserver.gameserver.model.quest.QuestState;
|
||||
import com.l2jserver.gameserver.model.quest.State;
|
||||
|
||||
/**
|
||||
* The Valentine Event event AI.
|
||||
* @author Gnacik
|
||||
*/
|
||||
public final class TheValentineEvent extends LongTimeEvent
|
||||
{
|
||||
// NPC
|
||||
private static final int NPC = 4301;
|
||||
// Item
|
||||
private static final int RECIPE = 20191;
|
||||
|
||||
private TheValentineEvent()
|
||||
{
|
||||
super(TheValentineEvent.class.getSimpleName(), "events");
|
||||
addStartNpc(NPC);
|
||||
addFirstTalkId(NPC);
|
||||
addTalkId(NPC);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
final QuestState st = getQuestState(player, false);
|
||||
if (st == null)
|
||||
{
|
||||
return getNoQuestMsg(player);
|
||||
}
|
||||
|
||||
String htmltext = event;
|
||||
if (event.equalsIgnoreCase("4301-3.htm"))
|
||||
{
|
||||
if (st.isCompleted())
|
||||
{
|
||||
htmltext = "4301-4.htm";
|
||||
}
|
||||
else
|
||||
{
|
||||
st.giveItems(RECIPE, 1);
|
||||
st.playSound(QuestSound.ITEMSOUND_QUEST_ITEMGET);
|
||||
st.setState(State.COMPLETED);
|
||||
}
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onFirstTalk(L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
if (player.getQuestState(getName()) == null)
|
||||
{
|
||||
newQuestState(player);
|
||||
}
|
||||
return npc.getId() + ".htm";
|
||||
}
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
new TheValentineEvent();
|
||||
}
|
||||
}
|
55
trunk/dist/game/data/scripts/events/TheValentineEvent/config.xml
vendored
Normal file
55
trunk/dist/game/data/scripts/events/TheValentineEvent/config.xml
vendored
Normal file
@@ -0,0 +1,55 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<event name="Valentine Event" active="15 12 2001-16 12 2001" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../xsd/eventConfig.xsd">
|
||||
<droplist>
|
||||
<add item="20192" min="1" max="1" chance="5%" /> <!-- Valentine Dark Chocolate -->
|
||||
<add item="20193" min="1" max="1" chance="5%" /> <!-- Valentine White Chocolate -->
|
||||
<add item="20194" min="1" max="1" chance="5%" /> <!-- Valentine Fresh Cream -->
|
||||
</droplist>
|
||||
<spawnlist>
|
||||
<add npc="4301" x="87792" y="-142240" z="-1343" heading="44000" />
|
||||
<add npc="4301" x="87616" y="-140688" z="-1542" heading="16500" />
|
||||
<add npc="4301" x="114733" y="-178691" z="-821" heading="0" />
|
||||
<add npc="4301" x="115708" y="-182362" z="-1449" heading="0" />
|
||||
<add npc="4301" x="-44337" y="-113669" z="-224" heading="0" />
|
||||
<add npc="4301" x="-44628" y="-115409" z="-240" heading="22500" />
|
||||
<add npc="4301" x="-13073" y="122801" z="-3117" heading="0" />
|
||||
<add npc="4301" x="-13949" y="121934" z="-2988" heading="32768" />
|
||||
<add npc="4301" x="-14822" y="123708" z="-3117" heading="8192" />
|
||||
<add npc="4301" x="-80762" y="151118" z="-3043" heading="28672" />
|
||||
<add npc="4301" x="-84049" y="150176" z="-3129" heading="4096" />
|
||||
<add npc="4301" x="-82623" y="151666" z="-3129" heading="49152" />
|
||||
<add npc="4301" x="-84516" y="242971" z="-3730" heading="34000" />
|
||||
<add npc="4301" x="-86003" y="243205" z="-3730" heading="60000" />
|
||||
<add npc="4301" x="11281" y="15652" z="-4584" heading="25000" />
|
||||
<add npc="4301" x="11303" y="17732" z="-4574" heading="57344" />
|
||||
<add npc="4301" x="47151" y="49436" z="-3059" heading="32000" />
|
||||
<add npc="4301" x="79806" y="55570" z="-1560" heading="0" />
|
||||
<add npc="4301" x="83328" y="55824" z="-1525" heading="32768" />
|
||||
<add npc="4301" x="80986" y="54504" z="-1525" heading="32768" />
|
||||
<add npc="4301" x="18178" y="145149" z="-3054" heading="7400" />
|
||||
<add npc="4301" x="19208" y="144380" z="-3097" heading="32768" />
|
||||
<add npc="4301" x="19508" y="145775" z="-3086" heading="48000" />
|
||||
<add npc="4301" x="17396" y="170259" z="-3507" heading="30000" />
|
||||
<add npc="4301" x="83332" y="149160" z="-3405" heading="49152" />
|
||||
<add npc="4301" x="82277" y="148598" z="-3467" heading="0" />
|
||||
<add npc="4301" x="81621" y="148725" z="-3467" heading="32768" />
|
||||
<add npc="4301" x="81680" y="145656" z="-3533" heading="32768" />
|
||||
<add npc="4301" x="117498" y="76630" z="-2695" heading="38000" />
|
||||
<add npc="4301" x="115914" y="76449" z="-2711" heading="59000" />
|
||||
<add npc="4301" x="119536" y="76988" z="-2275" heading="40960" />
|
||||
<add npc="4301" x="147120" y="27312" z="-2192" heading="40960" />
|
||||
<add npc="4301" x="147920" y="25664" z="-2000" heading="16384" />
|
||||
<add npc="4301" x="111776" y="221104" z="-3543" heading="16384" />
|
||||
<add npc="4301" x="107904" y="218096" z="-3675" heading="0" />
|
||||
<add npc="4301" x="114920" y="220020" z="-3632" heading="32768" />
|
||||
<add npc="4301" x="147888" y="-58048" z="-2979" heading="49000" />
|
||||
<add npc="4301" x="147285" y="-56461" z="-2776" heading="11500" />
|
||||
<add npc="4301" x="44176" y="-48732" z="-800" heading="33000" />
|
||||
<add npc="4301" x="44294" y="-47642" z="-792" heading="50000" />
|
||||
<add npc="4301" x="-116677" y="46824" z="360" heading="34828" />
|
||||
</spawnlist>
|
||||
<messages>
|
||||
<add type="onEnd" text="The Valentine Event end!" />
|
||||
<add type="onEnter" text="Valentine's Event is currently active. Collect all items and make your Valentine Cake!" />
|
||||
</messages>
|
||||
</event>
|
Reference in New Issue
Block a user