Eve the Fortune Teller.

This commit is contained in:
MobiusDev
2015-12-06 02:45:08 +00:00
parent 0f63734fe9
commit 76c65e1134
12 changed files with 673 additions and 10 deletions

View File

@@ -1,5 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<list enabled="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="xsd/PrimeShop.xsd">
<!-- Fortune Telling Event Items -->
<!--
<item id="1011633" cat="4" paymentType="0" price="1" panelType="1" recommended="1" startSale="315558000" endSale="2127452400" dayOfWeek="127" startHour="0" startMinute="0" stopHour="23" stopMinute="59" stock="-1" maxStock="-1" salePercent="0" minLevel="76" maxLevel="0" minBirthday="0" maxBirthday="0" restrictionDay="0" availableCount="0" >
<item itemId="23768" count="1" />
</item>
<item id="1011632" cat="4" paymentType="1" price="35000000" panelType="1" recommended="1" startSale="315558000" endSale="2127452400" dayOfWeek="127" startHour="0" startMinute="0" stopHour="23" stopMinute="59" stock="-1" maxStock="-1" salePercent="0" minLevel="76" maxLevel="0" minBirthday="0" maxBirthday="0" restrictionDay="0" availableCount="0" >
<item itemId="23767" count="1" />
</item>
-->
<item id="1010030" cat="2" paymentType="0" price="8" panelType="0" recommended="0" startSale="315558000" endSale="2127452400" dayOfWeek="127" startHour="0" startMinute="0" stopHour="23" stopMinute="59" stock="0" maxStock="-1" salePercent="0" minLevel="0" maxLevel="0" minBirthday="0" maxBirthday="0" restrictionDay="0" availableCount="0" >
<item itemId="20332" count="5000" /> <!-- Beast Soulshot-->
</item>
@@ -720,13 +730,13 @@
<item itemId="23805" count="1" /> <!-- Hero Coin-->
<item itemId="23985" count="1" /> <!-- Extra Pass: Ancient Kartia's Labyrinth-->
</item>
<item id="1011341" cat="4" paymentType="0" price="320" panelType="1" recommended="1" startSale="1404896400" endSale="1406710800" dayOfWeek="127" startHour="0" startMinute="0" stopHour="23" stopMinute="59" stock="-1" maxStock="-1" salePercent="0" minLevel="0" maxLevel="0" minBirthday="0" maxBirthday="0" restrictionDay="0" availableCount="0" >
<item id="1011341" cat="4" paymentType="0" price="320" panelType="1" recommended="1" startSale="315558000" endSale="2127452400" dayOfWeek="127" startHour="0" startMinute="0" stopHour="23" stopMinute="59" stock="-1" maxStock="-1" salePercent="0" minLevel="0" maxLevel="0" minBirthday="0" maxBirthday="0" restrictionDay="0" availableCount="0" >
<item itemId="22883" count="1" /> <!-- Scroll: Replenish Vitality-->
<item itemId="22966" count="1" /> <!-- Vitality Maintaining Potion (1-hour)-->
<item itemId="23728" count="1" /> <!-- Erupting Vitality XP Potion-->
<item itemId="23805" count="5" /> <!-- Hero Coin-->
</item>
<item id="1011342" cat="4" paymentType="0" price="2000" panelType="1" recommended="1" startSale="1404896400" endSale="1406710800" dayOfWeek="127" startHour="0" startMinute="0" stopHour="23" stopMinute="59" stock="-1" maxStock="-1" salePercent="0" minLevel="0" maxLevel="0" minBirthday="0" maxBirthday="0" restrictionDay="0" availableCount="0" >
<item id="1011342" cat="4" paymentType="0" price="2000" panelType="1" recommended="1" startSale="315558000" endSale="2127452400" dayOfWeek="127" startHour="0" startMinute="0" stopHour="23" stopMinute="59" stock="-1" maxStock="-1" salePercent="0" minLevel="0" maxLevel="0" minBirthday="0" maxBirthday="0" restrictionDay="0" availableCount="0" >
<item itemId="22885" count="2" /> <!-- Scroll: Replenish Vitality (Top-grade)-->
<item itemId="22966" count="5" /> <!-- Vitality Maintaining Potion (1-hour)-->
<item itemId="23728" count="5" /> <!-- Erupting Vitality XP Potion-->

View File

@@ -249,6 +249,7 @@ conquerablehalls/RainbowSpringsChateau/RainbowSpringsChateau.java
# Events
events/CharacterBirthday/CharacterBirthday.java
events/EveTheFortuneTeller/EveTheFortuneTeller.java
events/HuntForSanta/HuntForSanta.java
# Disabled by default events

View 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>

View 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>

View 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();
}
}

View 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>

View File

@@ -934,17 +934,16 @@
</collision>
</npc>
<npc id="8540" level="90" type="L2Npc" name="Jayce" title="Fortunetelling Mentor">
<!-- AUTO GENERATED NPC TODO: FIX IT -->
<race>HUMAN</race>
<sex>FEMALE</sex>
<stats str="40" int="21" dex="30" wit="20" con="43" men="20">
<race>KAMAEL</race>
<sex>MALE</sex>
<stats>
<vitals hp="615901" hpRegen="7.5" mp="1345.8" mpRegen="2.7" />
<speed>
<walk ground="50" />
<run ground="120" />
</speed>
</stats>
<status attackable="false" />
<status attackable="false" targetable="false" talkable="false" />
<collision>
<radius normal="9.5" />
<height normal="22.4" />
@@ -968,10 +967,9 @@
</collision>
</npc>
<npc id="8542" level="70" type="L2Npc" name="Eve" title="Crystal Seer">
<!-- AUTO GENERATED NPC TODO: FIX IT -->
<race>HUMAN</race>
<sex>FEMALE</sex>
<stats str="40" int="21" dex="30" wit="20" con="43" men="20">
<stats>
<vitals hp="4228" hpRegen="7.5" mp="1345.8" mpRegen="2.7" />
<speed>
<walk ground="50" />