Skip to content
Snippets Groups Projects
Commit bb5558dd authored by St3eT's avatar St3eT
Browse files

BETA: Fixed/reworked '''Budenka''' AI.

* Reported by: maneco2
parent 967656af
No related branches found
No related tags found
No related merge requests found
Showing
with 48 additions and 10 deletions
<html><body>Budenka:<br>
Oh, it's you?! I heard about you from Guild. Did you analyze that, Bernard is engaged in what, to give the estimation?
</body></html>
\ No newline at end of file
<html><body>Budenka:<br>
Oh... From your appearance, I can see that you have crossed the Great Sea to come here.<br>
<a action="bypass -h npc_%objectId%_Chat 1">Ask who he is.</a><br>
<a action="bypass -h npc_%objectId%_Chat 2">Ask if he knows Jirrone.</a><br>
<a action="bypass -h npc_%objectId%_Chat 3">Ask if he knows Beleth.</a><br>
<a action="bypass -h npc_%objectId%_Chat 4">Ask if he knows Bernarde.</a><br>
<a action="bypass -h Quest Budenka Budenka-02.html">Ask who he is.</a><br>
<a action="bypass -h Quest Budenka Budenka-03.html">Ask if he knows Jirrone.</a><br>
<a action="bypass -h Quest Budenka Budenka-04.html">Ask if he knows Beleth.</a><br>
<a action="bypass -h Quest Budenka Budenka-05.html">Ask if he knows Bernarde.</a><br>
<a action="bypass -h npc_%objectId%_Quest">Quest.</a>
</body></html>
\ No newline at end of file
<html><body>Budenka:<br>
Who is Beleth, you ask? Only the master of this island! Sure, it's rumored that he is actually a Demon, but as long as he rules fairly and well, I say "Who cares?"
Who is Beleth, you ask? Only the master of this island! Sure, it's rumored that he is actually a Demon, but as long as he rules fairly and well, I say "Who cares?"
</body></html>
\ No newline at end of file
<html><body>Budenka:<br>
Oh, it's you! I heard about you from the Guild. Did you see Bernarde's business through to a fit conclusion?
</body></html>
\ No newline at end of file
<html><body>Budenka:<br>
Well, you already have enough high reputation in Guild. How are you?
Eh, you have a pretty lofty reputation in the Guild already. How are you?
</body></html>
\ No newline at end of file
......@@ -25,31 +25,58 @@ import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
/**
* Budenka AI.
* @author St3eT
*/
public final class Budenka extends AbstractNpcAI
{
// NPCs
private static final int BUDENKA = 32294;
// Items
private static final int STANDART_CERT = 9851;
private static final int PREMIUM_CERT = 9852;
public Budenka()
{
super(Budenka.class.getSimpleName(), "hellbound/AI/NPC");
addStartNpc(BUDENKA);
addFirstTalkId(BUDENKA);
addTalkId(BUDENKA);
}
@Override
public final String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
{
String htmltext = null;
switch (event)
{
case "Budenka-02.html":
case "Budenka-03.html":
case "Budenka-04.html":
case "Budenka-05.html":
{
htmltext = event;
break;
}
}
return htmltext;
}
@Override
public final String onFirstTalk(L2Npc npc, L2PcInstance player)
{
if (hasAtLeastOneQuestItem(player, PREMIUM_CERT))
String htmltext = null;
if (hasQuestItems(player, STANDART_CERT, PREMIUM_CERT))
{
htmltext = "Budenka-07.html";
}
else if (hasQuestItems(player, STANDART_CERT))
{
return "32294-premium.htm";
htmltext = "Budenka-06.html";
}
else if (hasAtLeastOneQuestItem(player, STANDART_CERT))
else
{
return "32294-standart.htm";
htmltext = "Budenka-01.html";
}
npc.showChatWindow(player);
return super.onFirstTalk(npc, player);
return htmltext;
}
}
\ No newline at end of file
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