Adventurer Guide rework.

Contributed by Stayway and Mobius.
This commit is contained in:
MobiusDev
2015-10-26 20:49:47 +00:00
parent 97d896df70
commit b389ad90f8
24 changed files with 123 additions and 103 deletions

View File

@@ -0,0 +1,9 @@
<html><body>Adventurers' Guide:<br>
Greetings, traveler! How may I be of assistance?<br>
My job is to offer what little assistance I can as you charge into all this endless evil and intense fighting!<br>
Even now, the monster attacks on this village grow stronger each day; it is only due to your tireless efforts that we have remained safe this long.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Quest AdventurersGuide guide-01.html"><font color="LEVEL">"Can I see the list of available buffs?"</font></Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Quest AdventurersGuide guide-02.html">"Here, I have some Steel Door Guild Coins..."</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Quest AdventurersGuide weakenBreath">"I heard you could weaken Shilen's Breath Lv.3 or above."</Button>
<Button ALIGN=LEFT ICON="QUEST" action="bypass -h npc_%objectId%_Quest">Quest</Button>
</body></html>

View File

@@ -0,0 +1,8 @@
<html><body>Apprentice Adventurers' Guide:<br>
You're about to start a long journey.<br>
My job is to offer what little assistance I can as you charge into all this endless evil and intense fighting!<br>
Of course, I'm just an apprentice, so I can't help you as much as the full-pledged Adventurers' Guides.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Quest AdventurersGuide guide-01.html"><font color="LEVEL">"What kinds of buffs do you have?"</font></Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_multisell 3395001">"I have some Steel Door Guild Coins..."</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Quest">Quest</Button>
</body></html>

View File

@@ -27,15 +27,16 @@ import com.l2jserver.gameserver.model.skills.Skill;
/**
* Adventurers Guide AI.
* @author St3eT
* @author St3eT, Updated by Stayway, Mobius
*/
public final class AdventurersGuide extends AbstractNpcAI
{
// NPCs
private static final int[] ADVENTURERS_GUIDE =
private static final int[] ADVENTURER_GUIDES =
{
32327,
33454, // Newbie Helper
33950, // Apprentice
};
// Skills
private static final SkillHolder BLESS_PROTECTION = new SkillHolder(5182, 1); // Blessing of Protection
@@ -58,9 +59,9 @@ public final class AdventurersGuide extends AbstractNpcAI
private AdventurersGuide()
{
super(AdventurersGuide.class.getSimpleName(), "ai/npc");
addStartNpc(ADVENTURERS_GUIDE);
addTalkId(ADVENTURERS_GUIDE);
addFirstTalkId(ADVENTURERS_GUIDE);
addStartNpc(ADVENTURER_GUIDES);
addTalkId(ADVENTURER_GUIDES);
addFirstTalkId(ADVENTURER_GUIDES);
}
@Override
@@ -112,7 +113,7 @@ public final class AdventurersGuide extends AbstractNpcAI
@Override
public String onFirstTalk(L2Npc npc, L2PcInstance player)
{
return "guide.html";
return npc.getId() + ".html";
}
private String applyBuffs(L2Npc npc, L2PcInstance player, Skill skill)

View File

@@ -1,5 +1,4 @@
<html><body>
I can offer you the following buffs, if you're below Lv. 91.<br>
<html><body>I can offer you the following buffs, if you're below Lv. 91.<br>
Horn Melody / Drum Melody / Pipe Organ Melody<br1>
Guitar Melody / Harp Melody / Lute Melody<br1>
Prevailing Sonata / Daring Sonata / Refreshing Sonata<br1>

View File

@@ -1,5 +1,4 @@
<html><body>Adventurers' Guide:<br>
The Steel Door Guild tops all Dwarven guilds in power and prestige. As such, it is our duty to aid adventurers who work to restore peace unto this war-torn land. We will be happy to offer special assistance if you have Steel Door Guild Coins.<br>
<html><body>The Steel Door Guild tops all Dwarven guilds in power and prestige. As such, it is our duty to aid adventurers who work to restore peace unto this war-torn land. We will be happy to offer special assistance if you have Steel Door Guild Coins.<br>
Well?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Quest AdventurersGuide guide-03.html">"How do I use Steel Door Guild Coins?"</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Quest AdventurersGuide guide-04.html">"Here, I have some Steel Door Guild Coins..."</Button>

View File

@@ -1,5 +1,4 @@
<html><body>Adventurers' Guide:<br>
You can use Steel Door Guild Coins to purchase <font color="LEVEL">weapons, armor, and accessories of each grade</font>. These items may be restricted in terms of augmentations or attribute options, but they will be more than enough to help you on your journey.<br>
<html><body>You can use Steel Door Guild Coins to purchase <font color="LEVEL">weapons, armor, and accessories of each grade</font>. These items may be restricted in terms of augmentations or attribute options, but they will be more than enough to help you on your journey.<br>
Once you outgrow the equipment, <font color="LEVEL">you can trade them back for Steel Door Guild Coins again</font>! You can also invest in the Aden Reconstruction project if it suits your fancy, or even gamble. Don't forget that Steel Weapon Packs and Steel Armor Packs have a chance of yielding Requiem, Apocalypse, or Specter equipment!<br>
<Button ALIGN=LEFT ICON="RETURN" action="bypass -h npc_%objectId%_Quest AdventurersGuide guide-02.html">Back</Button>
</body></html>

View File

@@ -1,5 +1,4 @@
<html><body>Adventurers' Guide:<br>
You can use Steel Door Guild Coins to receive equipment, and trade them back for coins again. Just remember, <font color="LEVEL">you cannot bring us junk to exchange for coins!</font><br>
<html><body>You can use Steel Door Guild Coins to receive equipment, and trade them back for coins again. Just remember, <font color="LEVEL">you cannot bring us junk to exchange for coins!</font><br>
So, what would you like to do?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_multisell 893">"I'd like a weapon or a shield / Sigil."</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_multisell 894">"I want to buy a top."</Button>

View File

@@ -1,4 +1,3 @@
<html><body>Adventurers' Guide<br>
I can only weaken Shilen's Breath Lv. 3 or above.<br>
<html><body>I can only weaken Shilen's Breath Lv. 3 or above.<br>
There is nothing I can do for you.
</body></html>

View File

@@ -1,3 +1,2 @@
<html><body>
Characters who are Lv. 91 or above cannot receive Newbie Buffs.
<html><body>Characters who are Lv. 91 or above cannot receive Newbie Buffs.
</body></html>