Skip to content
Snippets Groups Projects
Commit 9a956791 authored by Adry85's avatar Adry85 Committed by Zoey76
Browse files

Added retail like Asamah AI.

parent 3a1764dd
No related branches found
No related tags found
No related merge requests found
<?xml version="1.0" encoding="UTF-8"?>
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/multisell.xsd">
<npcs>
<npc>32115</npc> <!-- Asamah -->
</npcs>
<item>
<!-- Adena -->
<ingredient count="375000" id="57" />
<!-- Elrokian Trap -->
<production count="1" id="8763" />
</item>
</list>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/multisell.xsd">
<npcs>
<npc>32115</npc> <!-- Asamah -->
</npcs>
<item>
<!-- Adena -->
<ingredient count="750" id="57" />
<!-- Trap Stone -->
<production count="1" id="8764" />
</item>
</list>
\ No newline at end of file
......@@ -15,6 +15,7 @@ ai/npc/Abercrombie/Abercrombie.java
ai/npc/Alarm/Alarm.java
ai/npc/Alexandria/Alexandria.java
ai/npc/ArenaManager/ArenaManager.java
ai/npc/Asamah/Asamah.java
ai/npc/AvantGarde/AvantGarde.java
ai/npc/BlackJudge/BlackJudge.java
ai/npc/BlackMarketeerOfMammon/BlackMarketeerOfMammon.java
......
<html><body>Asamah:<br>
I am Asamah, son of Mushika, chief of the Elroki tribe. These are our lands. In them lies perhaps our last hope to return to our ancient ancestral home. But these days are evil, and our hope is waning before this threat.<br>
Our strength has run out like water from a broken pot, and although my ancestors would be shamed to ask for aid, I believe only an outsider like yourself can save us now.<br>
<a action="bypass -h npc_%objectId%_Quest">Quest</a><br>
<a action="bypass -h Quest Asamah 32115-03.htm">Find out how to use the capture skill.</a><br>
<a action="bypass -h npc_%objectId%_multisell 577">Equip the trap.</a><br>
<a action="bypass -h npc_%objectId%_multisell 578">Buy</a>
</body></html>
\ No newline at end of file
<html><body>Asamah:<br>
I am Asamah, son of Mushika, chief of the Elroki tribe. These are our lands. In them lies perhaps our last hope to return to our ancient ancestral home. But these days are evil, and our hope is waning before this threat.<br>
Our strength has run out like water from a broken pot, and although my ancestors would be shamed to ask foraid, I believe only an outsider like yourself can save us now.<br>
Our strength has run out like water from a broken pot, and although my ancestors would be shamed to ask for aid, I believe only an outsider like yourself can save us now.<br>
<a action="bypass -h npc_%objectId%_Quest">Quest</a><br>
<a action="bypass -h npc_%objectId%_Chat 1">Find out how to use the capture skill.</a><br>
<a action="bypass -h npc_%objectId%_Chat 0">Buy</a>
<a action="bypass -h Quest Asamah 32115-03.htm">Find out how to use the capture skill.</a><br>
<a action="bypass -h npc_%objectId%_multisell 578">Buy</a>
</body></html>
\ No newline at end of file
<html><body>Asamah:<br>
If you have a trap, then you may use at least 3 types of capture skills. You can only use a capture skill on the predatory Tyrannosaurus.<br>
If you are capturing a Tyrannosaurus for the first time, you will use the <font color="LEVEL">Kabokula</font> technique most among the three capture skills. But you cannot completely capture this powerful predatory dinosaur with just one skill type!<br>
At this pont, watch the Tyrannosaurus reactions and use the proper skill to maintain its state of captivity. Nothing is a better teacher than your own experience, but since you have come all this way, I will tell you the traditional capture method of the Elkrohki. Listen carefuly.<br>
<a action="bypass -h npc_%objectId%_Chat 2">Next</a>
At this point, watch the Tyrannosaurus' reactions and use the proper skill to maintain its state of captivity. Nothing is a better teacher than your own experience, but since you have come all this way, I will tell you the traditional capture method of the Elkrohki. Listen carefully.<br>
<a action="bypass -h Quest Asamah 32115-04.htm">Next.</a>
</body></html>
\ No newline at end of file
<html><body>Asamah:<br>
You must know which action to use when a Tyrannosaurus tries to cancel a capture skill. When the beast <font color="LEVEL">roars, shakes and writhes</font>, the appropriate capture skills to use are <font color="LEVEL">kabokula, tapirawa and shabonoba</font>. Watch each action of the Tyrannosaurus carefuly and respond with the correct skill.<br>
Remember that using a capture skill consumes both capture stones and MP be sure to prepare enuogh of them both! May Shilen bless your efforts!
You must know which action to use when a Tyrannosaurus tries to cancel a capture skill. When the beast <font color="LEVEL">roars, shakes and writhes</font>, the appropriate capture skills to use are <font color="LEVEL">kabokula, tapirawa and shabonoba</font>. Watch each action of the Tyrannosaurus carefully and respond with the correct skill.<br>
Remember that using a capture skill consumes both capture stones and MP. Be sure to prepare enough of them both! May Shilen bless your efforts!
</body></html>
\ No newline at end of file
/*
* Copyright (C) 2004-2017 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 ai.npc.Asamah;
import com.l2jserver.gameserver.model.actor.L2Npc;
import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
import com.l2jserver.gameserver.model.quest.QuestState;
import ai.npc.AbstractNpcAI;
import quests.Q00111_ElrokianHuntersProof.Q00111_ElrokianHuntersProof;
/**
* Asamah AI.
* @author Adry_85
* @since 2.6.0.0
*/
public final class Asamah extends AbstractNpcAI
{
// NPC
private static final int ASAMAH = 32115;
public Asamah()
{
super(Asamah.class.getSimpleName(), "ai/npc");
addFirstTalkId(ASAMAH);
}
@Override
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
{
String htmltext = null;
if (event.equals("32115-03.htm") || event.equals("32115-04.htm"))
{
htmltext = event;
}
return htmltext;
}
@Override
public String onFirstTalk(L2Npc npc, L2PcInstance player)
{
final QuestState st = player.getQuestState(Q00111_ElrokianHuntersProof.class.getSimpleName());
return ((st != null) && (st.isCompleted())) ? "32115-01.htm" : "32115-02.htm";
}
public static void main(String[] args)
{
new Asamah();
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment