Merged with released L2J-Unity files.
This commit is contained in:
6
trunk/dist/game/data/scripts/ai/others/MysteriousWizard/33980-01.html
vendored
Normal file
6
trunk/dist/game/data/scripts/ai/others/MysteriousWizard/33980-01.html
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html><body>Mysterious Wizard:<br>
|
||||
I was just worried about you.<br>
|
||||
I guess I was worried that a small Ertheia was led by the souls of the dead to somewhere.<br>
|
||||
But it seems I picked the wrong time.<br>
|
||||
<Button ALIGN=LEFT ICON="Normal" action="bypass -h Quest FortressOfTheDead endCinematic">"What do you mean?"</button>
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/ai/others/MysteriousWizard/33980-02.html
vendored
Normal file
5
trunk/dist/game/data/scripts/ai/others/MysteriousWizard/33980-02.html
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Mysterious Wizard:<br>
|
||||
The deaths of your companions must have been shocking for you. I thought it was strange that Skeletons were appearing near the town.<br>
|
||||
Please let your guard down. I'm just a <font color="LEVEL">wizard passing by</font>.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10751_WindsOfFateEncounters 33980-03.html">Didn't you pass by last time too?</button>
|
||||
</body></html>
|
6
trunk/dist/game/data/scripts/ai/others/MysteriousWizard/33980-03.html
vendored
Normal file
6
trunk/dist/game/data/scripts/ai/others/MysteriousWizard/33980-03.html
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html><body>Mysterious Wizard:<br>
|
||||
Me? Perhaps it was some other wizard passing by? There are many wizards in the world.<br>
|
||||
By the way, I took the liberty of burying the dead body of the Ertheia, so please do not be angry.<br>
|
||||
I will give you this to earn your trust. An item <font color="LEVEL">belonging to the dead</font>. It's as if it is from another world.<br>
|
||||
I like you very much. I hope to see you again.
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/ai/others/MysteriousWizard/33980-04.html
vendored
Normal file
4
trunk/dist/game/data/scripts/ai/others/MysteriousWizard/33980-04.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Mysterious Wizard:<br>
|
||||
I'm just a wizard passing by. I'd rather not give names and get into unnecessary relationships.<br>
|
||||
Perhaps that's why people call me the <font color="LEVEL">Mysterious Wizard</font>.
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/ai/others/MysteriousWizard/33980-05.html
vendored
Normal file
5
trunk/dist/game/data/scripts/ai/others/MysteriousWizard/33980-05.html
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Mysterious Wizard:<br>
|
||||
The deaths of your companions must have been shocking for you. I thought it was strange that Skeletons were appearing near the town.<br>
|
||||
Please let your guard down. I'm just a <font color="LEVEL">wizard passing by</font>.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10751_WindsOfFateEncounters 33980-06.html">Didn't you pass by last time too?</button>
|
||||
</body></html>
|
6
trunk/dist/game/data/scripts/ai/others/MysteriousWizard/33980-06.html
vendored
Normal file
6
trunk/dist/game/data/scripts/ai/others/MysteriousWizard/33980-06.html
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html><body>Mysterious Wizard:<br>
|
||||
Me? Perhaps it was some other wizard passing by? There are many wizards in the world.<br>
|
||||
By the way, I took the liberty of burying the dead body of the Ertheia, so please do not be angry.<br>
|
||||
I will give you this to earn your trust. An item <font color="LEVEL">belonging to the dead</font>. It's as if it is from another world.<br>
|
||||
I like you very much. I hope to see you again.
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/ai/others/MysteriousWizard/33980.html
vendored
Normal file
5
trunk/dist/game/data/scripts/ai/others/MysteriousWizard/33980.html
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Mysterious Wizard:<br>
|
||||
It seems nothing happened.<br>
|
||||
Did you find the person you were looking for?<br>
|
||||
<Button ALIGN=LEFT ICON="Normal" action="bypass -h Quest MysteriousWizard 33980-01.html">Why did you come here?"</button>
|
||||
</body></html>
|
86
trunk/dist/game/data/scripts/ai/others/MysteriousWizard/MysteriousWizard.java
vendored
Normal file
86
trunk/dist/game/data/scripts/ai/others/MysteriousWizard/MysteriousWizard.java
vendored
Normal file
@@ -0,0 +1,86 @@
|
||||
/*
|
||||
* 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 ai.others.MysteriousWizard;
|
||||
|
||||
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 ai.AbstractNpcAI;
|
||||
import quests.Q10751_WindsOfFateEncounters.Q10751_WindsOfFateEncounters;
|
||||
|
||||
/**
|
||||
* Mysterious Wizard AI.
|
||||
* @author Gladicek
|
||||
*/
|
||||
public final class MysteriousWizard extends AbstractNpcAI
|
||||
{
|
||||
// Npc
|
||||
private static final int MYSTERIOUS_WIZARD = 33980;
|
||||
// Misc
|
||||
private static final int FORTRESS_OF_THE_DEAD = 254;
|
||||
|
||||
private MysteriousWizard()
|
||||
{
|
||||
addFirstTalkId(MYSTERIOUS_WIZARD);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
return event.equals("33980-01.html") ? event : null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onFirstTalk(L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
String htmltext = null;
|
||||
final QuestState qs = player.getQuestState(Q10751_WindsOfFateEncounters.class.getSimpleName());
|
||||
final Instance world = npc.getInstanceWorld();
|
||||
|
||||
if (isFotDInstance(world))
|
||||
{
|
||||
htmltext = "33980.html";
|
||||
}
|
||||
else
|
||||
{
|
||||
if (qs != null)
|
||||
{
|
||||
if (qs.isCond(6))
|
||||
{
|
||||
htmltext = "33980-05.html";
|
||||
}
|
||||
else if (qs.isCond(7))
|
||||
{
|
||||
htmltext = "33980-04.html";
|
||||
}
|
||||
}
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
private boolean isFotDInstance(Instance instance)
|
||||
{
|
||||
return (instance != null) && (instance.getTemplateId() == FORTRESS_OF_THE_DEAD);
|
||||
}
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
new MysteriousWizard();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user