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

@ -1,8 +0,0 @@
<html><body>Adventurers' Guide:<br>
Are you weary from your long journey?<br>
Perhaps I can help strengthen you in your never-ending battle against the forces of evil.<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%_Link default/SupportMagic.htm">Check the list of available supplemental magic.</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Link default/SupportMagicServitor.htm">Check the list of supplement magic available for servitors.</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Link default/BlessingOfProtection.htm">Receive Blessing of Protection.</Button>
</body></html>

View File

@ -1,9 +0,0 @@
<html><body>
I can offer you the following buffs, if you're below Lv. 91.<br>
Horn Melody / Drum Melody / Pipe Organ Melody Guitar Melody / Harp Melody / Lute Melody / Prevailing Sonata / Daring Sonata / Refreshing Sonata<br>
You can receive the above buffs as a group.<br>
For Knight's Harmony / Warrior's Harmony / Wizard's Harmony, you will have to choose one.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h scripts_services.SupportMagic:getSupportMagicKnight">"I want the Knight's Harmony."</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h scripts_services.SupportMagic:getSupportMagicWarrior">"Warrior's Harmony, please."</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h scripts_services.SupportMagic:getSupportMagicWizard">"Wizard's Harmony, of course!"</Button>
</body></html>

View File

@ -1,6 +0,0 @@
<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>
Well?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Chat 3">"How do I use Steel Door Guild Coins?"</font></Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Chat 4">"Here, I have some Steel Door Guild Coins..."</Button>
</body></html>

View File

@ -1,7 +0,0 @@
<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>
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 gramble.
Don't forget that Steel Weapon Packs and Steel Armor Packs have a chance of yielding Requiem, Apocalypse, or Specter equipment!
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Chat 2">Back</Button>
</body></html>

View File

@ -1,14 +0,0 @@
<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>
So, what would you like to do?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Chat 0">"I'd like a weapon or a shield / Sigil."</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Chat 0">"I want to buy a top."</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Chat 0">"I am looking for some pants."</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Chat 0">"Do you have any good helmets?"</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Chat 0">"Gloves would be nice."</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Chat 0">"Give me the best boots you got."</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Chat 0">"Can I take a look at your necklaces?"</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Chat 0">"I'm up for a ring..."</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Chat 0">"I want some earrings."</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Chat 0">"I want to return my Steel equipment."</Button>
</body></html>

View File

@ -1,5 +1,5 @@
<html><body>Maestro Dolkin:<br>
What are we doing here, you ask? Well, I'm researching how to make lightweight armor.<br>
You can make armor from material from the Wind Spirit Realm. Can you believe that?<br>
<Button ALIGN=LEFT ICON="QUEST" action="bypass -h npc_%objectId%_Chat 0">Back</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Quest">Quest</Button>
</body></html>

View File

@ -1,6 +0,0 @@
<html><body>Newbie Guide:<br>
The Blessing of Protection is available to <font color="LEVEL">characters under level 39 who have not completed</font> their second class transfer.<br>
Protected by its power, <font color="LEVEL">you cannot receive damage from (or inflict damage to)</font> chaotic characters who are 10+ levels above you. It will not protect you on the battlefield, however.<br>
Would you like to receive the Blessing of Protection now?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_GiveBlessing">Say yes.</Button>
</body></html>

View File

@ -1,3 +0,0 @@
<html><body>Newbie Guide:<br>
I'm sorry, but you are not eligible to receive the Blessing of Protection. Only adventurers who are <font color="LEVEL">level 39 or lower, and who have not completed their 2nd class transfer</font> may receive this buff.
</body></html>

View File

@ -1,12 +0,0 @@
<html><body>
You are eligible to receive the following supplemental magic:<br>
Levels 6-75: Wind Walk<br1>
Levels 6-75: Shield<br1>
Levels 6-75: Magic Barrier<br1>
Levels 6-75: Bless the Body (Fighter), Bless the Soul (Wizard)<br1>
Levels 6-75: Vampiric Rage (Fighter), Acumen (Wizard)<br1>
Levels 6-75: Regeneration (Fighter), Concentration (Wizard)<br1>
Levels 6-75: Haste (effect increases after level 40), Empower (Wizard)<br1>
Levels 16-34: Life Cubic<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_SupportMagic">Receive supplemental magic.</Button>
</body></html>

View File

@ -1,3 +0,0 @@
<html><body>
Support magic is only available for characters who are <font color="LEVEL">level 75 or below</font>.
</body></html>

View File

@ -1,3 +0,0 @@
<html><body>Newbie Guide:<br>
You do not yet require Support Magic. Come see me again when you reach level 6.
</body></html>

View File

@ -1,3 +0,0 @@
<html><body>
Only servitors can receive this Support Magic. If you do not have a servitor, you cannot access these spells.
</body></html>

View File

@ -1,6 +0,0 @@
<html><body>
Your servitor is eligible to receive the supplemental magic listed below. These spells do not benefit pets.<br>
Eligibility is determined by the master's level.<br>
Levels 6-75: Wind Walk, Shield, Magic Barrier, Bless the Body, Bless the Soul, Vampiric Rage, Acumen, Regeneration, Concentration, Haste (increased effect after level 40), Empower<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_SupportMagicServitor">Receive supplemental magic for servitor.</Button>
</body></html>

View File

@ -0,0 +1,96 @@
<?xml version="1.0" encoding="UTF-8"?>
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/multisell.xsd">
<npcs>
<npc>33950</npc> <!-- Adventure's Guide -->
</npcs>
<item>
<!-- Steel Door Guild Coins -->
<ingredient count="50" id="37045" />
<!-- Scroll Escape: Alligator Island -->
<production count="1" id="37025" />
</item>
<item>
<!-- Steel Door Guild Coins -->
<ingredient count="50" id="37045" />
<!-- Scroll Escape: Outlaw Forest -->
<production count="1" id="37026" />
</item>
<item>
<!-- Steel Door Guild Coins -->
<ingredient count="50" id="37045" />
<!-- Scroll Escape: Sea of Spores -->
<production count="1" id="37027" />
</item>
<item>
<!-- Steel Door Guild Coins -->
<ingredient count="50" id="37045" />
<!-- Scroll Escape: Forsaken Plains -->
<production count="1" id="37028" />
</item>
<item>
<!-- Steel Door Guild Coins -->
<ingredient count="50" id="37045" />
<!-- Scroll Escape: Fields Of Massacre -->
<production count="1" id="37029" />
</item>
<item>
<!-- Steel Door Guild Coins -->
<ingredient count="50" id="37045" />
<!-- Scroll Escape: Swamp Of Screams -->
<production count="1" id="37030" />
</item>
<item>
<!-- Steel Door Guild Coins -->
<ingredient count="50" id="37045" />
<!-- Scroll Escape: Forest Of Dead -->
<production count="1" id="37031" />
</item>
<item>
<!-- Steel Door Guild Coins -->
<ingredient count="50" id="37045" />
<!-- Scroll Escape: Wall of Argos -->
<production count="1" id="37032" />
</item>
<item>
<!-- Steel Door Guild Coins -->
<ingredient count="50" id="37045" />
<!-- Scroll Escape: Varka Sillenos Barracks -->
<production count="1" id="37034" />
</item>
<item>
<!-- Steel Door Guild Coins -->
<ingredient count="50" id="37045" />
<!-- Scroll Escape: Ketra Orc Outpost -->
<production count="1" id="37035" />
</item>
<item>
<!-- Steel Door Guild Coins -->
<ingredient count="50" id="37045" />
<!-- Scroll Escape: Den Of Evil -->
<production count="1" id="37036" />
</item>
<item>
<!-- Steel Door Guild Coins -->
<ingredient count="50" id="37045" />
<!-- Scroll Escape: Sel Mahum Training Grounds -->
<production count="1" id="37037" />
</item>
<item>
<!-- Steel Door Guild Coins -->
<ingredient count="50" id="37045" />
<!-- Scroll Escape: Plains of the Lizardmen -->
<production count="1" id="37038" />
</item>
<item>
<!-- Steel Door Guild Coins -->
<ingredient count="50" id="37045" />
<!-- Scroll Escape: Field Of Silence -->
<production count="1" id="37039" />
</item>
<item>
<!-- Steel Door Guild Coins -->
<ingredient count="50" id="37045" />
<!-- Scroll Escape: Field Of Whispers -->
<production count="1" id="37040" />
</item>
</list>

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

@ -1,8 +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-fledged Adventurers' Guides.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Chat 1"><font color="LEVEL">"What kinds of buffs do you have?"</font></Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Chat 2">"I have some Steel Door Guild Coins..."</Button>
<Button ALIGN=LEFT ICON="QUEST" action="bypass -h npc_%objectId%_Quest">Quest</Button>
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>