Merged with released L2J-Unity files.
This commit is contained in:
4
trunk/dist/game/data/scripts/instances/EvasHiddenSpace/31281-01.html
vendored
Normal file
4
trunk/dist/game/data/scripts/instances/EvasHiddenSpace/31281-01.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Priest Cerenas:<br>
|
||||
You are learning, adventurer. I will pray for your illumination.<br>
|
||||
(You have already completed this quest.)
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/instances/EvasHiddenSpace/31281.html
vendored
Normal file
3
trunk/dist/game/data/scripts/instances/EvasHiddenSpace/31281.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Priest Cerenas:<br>
|
||||
No, no, this will not do. You have not proven yourself worthy. (You must have started the "Soul Testing" quest to enter.)
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/instances/EvasHiddenSpace/33686.html
vendored
Normal file
5
trunk/dist/game/data/scripts/instances/EvasHiddenSpace/33686.html
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Eva's Avatar:<br>
|
||||
The Goddess of Destruction has finally resurrected! The energy of water continues to be contaminated....<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest EvasHiddenSpace exitInstance">Back</Button>
|
||||
<Button ALIGN=LEFT ICON="QUEST" action="bypass -h npc_%objectId%_Quest">Quest</Button>
|
||||
</body></html>
|
92
trunk/dist/game/data/scripts/instances/EvasHiddenSpace/EvasHiddenSpace.java
vendored
Normal file
92
trunk/dist/game/data/scripts/instances/EvasHiddenSpace/EvasHiddenSpace.java
vendored
Normal file
@@ -0,0 +1,92 @@
|
||||
/*
|
||||
* 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 <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package instances.EvasHiddenSpace;
|
||||
|
||||
import com.l2jmobius.gameserver.model.actor.L2Npc;
|
||||
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
|
||||
import com.l2jmobius.gameserver.model.instancezone.Instance;
|
||||
import com.l2jmobius.gameserver.model.quest.QuestState;
|
||||
|
||||
import instances.AbstractInstance;
|
||||
import quests.Q10369_NoblesseSoulTesting.Q10369_NoblesseSoulTesting;
|
||||
|
||||
/**
|
||||
* Eva's Hidden Space instance zone.
|
||||
* @author Gladicek, St3eT
|
||||
*/
|
||||
public final class EvasHiddenSpace extends AbstractInstance
|
||||
{
|
||||
// NPCs
|
||||
private static final int CERENAS = 31281;
|
||||
private static final int EVAS_AVATAR = 33686;
|
||||
// Misc
|
||||
private static final int TEMPLATE_ID = 217;
|
||||
|
||||
public EvasHiddenSpace()
|
||||
{
|
||||
addStartNpc(CERENAS);
|
||||
addTalkId(CERENAS, EVAS_AVATAR);
|
||||
addFirstTalkId(EVAS_AVATAR);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
String htmltext = null;
|
||||
|
||||
final QuestState qs = player.getQuestState(Q10369_NoblesseSoulTesting.class.getSimpleName());
|
||||
|
||||
if (event.equals("enterInstance"))
|
||||
{
|
||||
if ((qs != null) && qs.isStarted())
|
||||
{
|
||||
enterInstance(player, npc, TEMPLATE_ID);
|
||||
|
||||
if (qs.isCond(14))
|
||||
{
|
||||
qs.setCond(15);
|
||||
}
|
||||
else if (qs.isCond(17))
|
||||
{
|
||||
qs.setCond(18);
|
||||
}
|
||||
}
|
||||
else if ((qs != null) && qs.isCompleted())
|
||||
{
|
||||
htmltext = "31281-01.html";
|
||||
}
|
||||
else
|
||||
{
|
||||
htmltext = "31281.html";
|
||||
}
|
||||
}
|
||||
else if (event.equals("exitInstance"))
|
||||
{
|
||||
final Instance world = getPlayerInstance(player);
|
||||
if (world != null)
|
||||
{
|
||||
teleportPlayerOut(player, world);
|
||||
}
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
new EvasHiddenSpace();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user