Eve the Fortune Teller.
This commit is contained in:
9
trunk/dist/game/data/scripts/events/EveTheFortuneTeller/8542-1.htm
vendored
Normal file
9
trunk/dist/game/data/scripts/events/EveTheFortuneTeller/8542-1.htm
vendored
Normal 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>
|
||||
<a action="bypass -h Quest EveTheFortuneTeller 8542.htm">Back</a></body></html>
|
12
trunk/dist/game/data/scripts/events/EveTheFortuneTeller/8542.htm
vendored
Normal file
12
trunk/dist/game/data/scripts/events/EveTheFortuneTeller/8542.htm
vendored
Normal 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>
|
111
trunk/dist/game/data/scripts/events/EveTheFortuneTeller/EveTheFortuneTeller.java
vendored
Normal file
111
trunk/dist/game/data/scripts/events/EveTheFortuneTeller/EveTheFortuneTeller.java
vendored
Normal file
@ -0,0 +1,111 @@
|
||||
/*
|
||||
* Copyright (C) 2004-2015 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.EveTheFortuneTeller;
|
||||
|
||||
import com.l2jserver.gameserver.enums.ChatType;
|
||||
import com.l2jserver.gameserver.model.Location;
|
||||
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.network.NpcStringId;
|
||||
import com.l2jserver.gameserver.network.serverpackets.NpcSay;
|
||||
import com.l2jserver.gameserver.network.serverpackets.luckygame.ExStartLuckyGame;
|
||||
import com.l2jserver.gameserver.util.Broadcast;
|
||||
|
||||
/**
|
||||
* 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 = 8542;
|
||||
private static final int JAYCE = 8540;
|
||||
// Misc
|
||||
private static final Location JAYCE_SPAWN = new Location(148090, 26644, -2209, 16383);
|
||||
private static final NpcStringId[] JAYCE_TEXT =
|
||||
{
|
||||
NpcStringId.I_LOOK_WEST,
|
||||
NpcStringId.EVE_WILL_BRING_YOU_GREAT_FORTUNE,
|
||||
NpcStringId.YOU_WILL_ONE_DAY_ASK_ME_FOR_GUIDANCE_IN_YOUR_PATH
|
||||
};
|
||||
|
||||
private EveTheFortuneTeller()
|
||||
{
|
||||
super(EveTheFortuneTeller.class.getSimpleName(), "events");
|
||||
addStartNpc(EVE);
|
||||
addFirstTalkId(EVE);
|
||||
addTalkId(EVE);
|
||||
addSpawnId(JAYCE);
|
||||
if (isEventPeriod())
|
||||
{
|
||||
addSpawn(JAYCE, JAYCE_SPAWN, false, 0);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
String htmltext = null;
|
||||
switch (event)
|
||||
{
|
||||
case "8542.htm":
|
||||
case "8542-1.htm":
|
||||
{
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
case "FortuneReadingGame":
|
||||
{
|
||||
player.sendPacket(new ExStartLuckyGame(1));
|
||||
break;
|
||||
}
|
||||
case "LuxuryFortuneReadingGame":
|
||||
{
|
||||
player.sendPacket(new ExStartLuckyGame(2));
|
||||
break;
|
||||
}
|
||||
case "JAYCE_SHOUT":
|
||||
{
|
||||
Broadcast.toKnownPlayersInRadius(npc, new NpcSay(npc.getObjectId(), ChatType.NPC_GENERAL, npc.getId(), JAYCE_TEXT[getRandom(JAYCE_TEXT.length)]), 1000);
|
||||
break;
|
||||
}
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onFirstTalk(L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
return "8542.htm";
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onSpawn(L2Npc npc)
|
||||
{
|
||||
startQuestTimer("JAYCE_SHOUT", 45000, npc, null, true);
|
||||
return super.onSpawn(npc);
|
||||
}
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
new EveTheFortuneTeller();
|
||||
}
|
||||
}
|
22
trunk/dist/game/data/scripts/events/EveTheFortuneTeller/config.xml
vendored
Normal file
22
trunk/dist/game/data/scripts/events/EveTheFortuneTeller/config.xml
vendored
Normal file
@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<event name="Eve the Fortune Teller" active="11 11 1015-18 12 2015" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../xsd/eventConfig.xsd">
|
||||
<spawnlist>
|
||||
<!-- Eve -->
|
||||
<add npc="8542" x="-114178" y="255031" z="-1538" heading="16383" /> <!-- Talking Island -->
|
||||
<add npc="8542" x="-82484" y="153527" z="-3168" heading="32767" /> <!-- Gludin -->
|
||||
<add npc="8542" x="-13373" y="124615" z="-3120" heading="49151" /> <!-- Gludio -->
|
||||
<add npc="8542" x="20550" y="144602" z="-3080" heading="33104" /> <!-- Dion -->
|
||||
<add npc="8542" x="82672" y="146596" z="-3464" heading="33000" /> <!-- Giran -->
|
||||
<add npc="8542" x="109947" y="221058" z="-3483" heading="49151" /> <!-- Heine -->
|
||||
<add npc="8542" x="81946" y="55388" z="-1520" heading="16500" /> <!-- Oren -->
|
||||
<add npc="8542" x="115775" y="76783" z="-2664" heading="58062" /> <!-- Hunters -->
|
||||
<add npc="8542" x="148123" y="26655" z="-2209" heading="16383" /> <!-- Aden -->
|
||||
<add npc="8542" x="43521" y="-49074" z="-792" heading="597" /> <!-- Rune -->
|
||||
<add npc="8542" x="146301" y="-57974" z="-2985" heading="44000" /> <!-- Goddard -->
|
||||
<add npc="8542" x="88792" y="-140711" z="-1544" heading="11500" /> <!-- Schuttgart -->
|
||||
</spawnlist>
|
||||
<messages>
|
||||
<add type="onEnd" text="Eve the Fortune Teller: Event end!" />
|
||||
<add type="onEnter" text="Eve the Fortune Teller: Event ongoing!" />
|
||||
</messages>
|
||||
</event>
|
Reference in New Issue
Block a user