actual freya branch

This commit is contained in:
2026-09-12 15:39:57 +00:00
parent 9fa534b20e
commit 8049e0a882
18540 changed files with 1228200 additions and 0 deletions
@@ -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><br>
</body></html>
@@ -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>
@@ -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><br>
</body></html>
@@ -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><br>
</body></html>
@@ -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><br>
</body></html>
@@ -0,0 +1,131 @@
/*
* 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.TheValentineEvent;
import com.l2jserver.gameserver.instancemanager.QuestManager;
import com.l2jserver.gameserver.model.actor.L2Npc;
import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
import com.l2jserver.gameserver.model.quest.Quest;
import com.l2jserver.gameserver.model.quest.QuestState;
import com.l2jserver.gameserver.model.quest.State;
/**
* Event Code for "The Valentine Event"
* http://www.lineage2.com/archive/2009/01/the_valentine_e.html
* @author Gnat
*/
public class TheValentineEvent extends Quest
{
private static final int _npc = 4301;
private static final int _recipe = 20191;
private static final int[][] _spawns =
{
{87792,-142240,-1343,44000},
{87616,-140688,-1542,16500},
{114733,-178691,-821,0},
{115708,-182362,-1449,0},
{-44337,-113669,-224,0},
{-44628,-115409,-240,22500},
{-13073,122801,-3117,0},
{-13949,121934,-2988,32768},
{-14822,123708,-3117,8192},
{-80762,151118,-3043,28672},
{-84049,150176,-3129,4096},
{-82623,151666,-3129,49152},
{-84516,242971,-3730,34000},
{-86003,243205,-3730,60000},
{11281,15652,-4584,25000},
{11303,17732,-4574,57344},
{47151,49436,-3059,32000},
{79806,55570,-1560,0},
{83328,55824,-1525,32768},
{80986,54504,-1525,32768},
{18178,145149,-3054,7400},
{19208,144380,-3097,32768},
{19508,145775,-3086,48000},
{17396,170259,-3507,30000},
{83332,149160,-3405,49152},
{82277,148598,-3467,0},
{81621,148725,-3467,32768},
{81680,145656,-3533,32768},
{117498,76630,-2695,38000},
{115914,76449,-2711,59000},
{119536,76988,-2275,40960},
{147120,27312,-2192,40960},
{147920,25664,-2000,16384},
{111776,221104,-3543,16384},
{107904,218096,-3675,0},
{114920,220020,-3632,32768},
{147888,-58048,-2979,49000},
{147285,-56461,-2776,11500},
{44176,-48732,-800,33000},
{44294,-47642,-792,50000},
{-116677,46824,360,34828}
};
public TheValentineEvent(int questId, String name, String descr)
{
super(questId, name, descr);
addStartNpc(_npc);
addFirstTalkId(_npc);
addTalkId(_npc);
for(int[] _spawn : _spawns)
addSpawn(_npc, _spawn[0], _spawn[1], _spawn[2], _spawn[3], false, 0);
}
@Override
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
{
String htmltext = "";
QuestState st = player.getQuestState(getName());
htmltext = event;
if(event.equalsIgnoreCase("4301-3.htm"))
{
if(st.getState() == State.COMPLETED)
{
htmltext = "4301-4.htm";
}
else
{
st.giveItems(_recipe, 1);
st.playSound("Itemsound.quest_itemget");
st.setState(State.COMPLETED);
}
}
return htmltext;
}
@Override
public String onFirstTalk(L2Npc npc, L2PcInstance player)
{
String htmltext = "";
QuestState st = player.getQuestState(getName());
if (st == null)
{
Quest q = QuestManager.getInstance().getQuest(getName());
st = q.newQuestState(player);
}
htmltext = npc.getNpcId() + ".htm";
return htmltext;
}
public static void main(String[] args)
{
new TheValentineEvent(-1, "TheValentineEvent", "events");
}
}