Adventurer Guide buff adjustments.

Contributed by SmiDmi.
This commit is contained in:
MobiusDevelopment
2019-10-25 07:01:46 +00:00
parent 4644d87157
commit f396c47739
12 changed files with 193 additions and 45 deletions

View File

@@ -2,9 +2,11 @@
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>
If you have some items that you can donate to me, I'll give you the highest buff that I can.<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 buffs at level 99 and under?"</font></Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Quest AdventurersGuide guide-02.html"><font color="LEVEL">"Can I see the list of available buffs I can get when I donate some items?"</font></Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Quest AdventurersGuide weakenBreath">"I heard you could weaken Shilen's Breath level 3 or above."</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Quest AdventurersGuide guide-05.html">"I'd like to exchange for a Special Appearance Stone"</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="NORMAL" action="bypass -h npc_%objectId%_Quest AdventurersGuide guide-06.html">"Here, I have some Steel Door Guild Coins..."</Button>
<Button ALIGN=LEFT ICON="QUEST" action="bypass -h npc_%objectId%_Quest">Quest</Button>
</body></html>

View File

@@ -36,11 +36,14 @@ public class AdventurersGuide extends AbstractNpcAI
32327,
33950,
};
// Items
private static final int ADENA = 57;
private static final int GEMSTONE_R = 19440;
// Skills
private static final SkillHolder BLESS_PROTECTION = new SkillHolder(5182, 1); // Blessing of Protection
private static final SkillHolder KNIGHT = new SkillHolder(15648, 1); // Knight's Harmony (Adventurer)
private static final SkillHolder WARRIOR = new SkillHolder(15649, 1); // Warrior's Harmony (Adventurer)
private static final SkillHolder WIZARD = new SkillHolder(15650, 1); // Wizard's Harmony (Adventurer)
private static final SkillHolder FANTASIA = new SkillHolder(32840, 1); // Fantasia Harmony - Adventurer
private static final SkillHolder[] GROUP_BUFFS =
{
new SkillHolder(15642, 1), // Horn Melody (Adventurer)
@@ -51,6 +54,16 @@ public class AdventurersGuide extends AbstractNpcAI
new SkillHolder(15652, 1), // Daring Sonata (Adventurer)
new SkillHolder(15653, 1), // Refreshing Sonata (Adventurer)
};
private static final SkillHolder[] DONATE_BUFFS =
{
new SkillHolder(15642, 4), // Horn Melody (Adventurer)
new SkillHolder(15643, 4), // Drum Melody (Adventurer)
new SkillHolder(15644, 4), // Pipe Organ Melody (Adventurer)
new SkillHolder(15645, 4), // Guitar Melody (Adventurer)
new SkillHolder(15651, 1), // Prevailing Sonata (Adventurer)
new SkillHolder(15652, 1), // Daring Sonata (Adventurer)
new SkillHolder(15653, 1), // Refreshing Sonata (Adventurer)
};
// Misc
private static int MAX_LEVEL_BUFFS = 99;
private static int MIN_LEVEL_PROTECTION = 40;
@@ -74,6 +87,9 @@ public class AdventurersGuide extends AbstractNpcAI
case "guide-03.html":
case "guide-04.html":
case "guide-05.html":
case "guide-06.html":
case "guide-07.html":
case "guide-08.html":
{
htmltext = event;
break;
@@ -90,25 +106,56 @@ public class AdventurersGuide extends AbstractNpcAI
htmltext = "guide-noBreath.html";
break;
}
player.setShilensBreathDebuffLevel(2);
htmltext = "guide-cleanedBreath.html";
break;
}
case "knight":
case "fantasia":
{
htmltext = applyBuffs(npc, player, KNIGHT.getSkill());
if (player.getLevel() > MAX_LEVEL_BUFFS)
{
return "guide-noBuffs.html";
}
for (SkillHolder holder : GROUP_BUFFS)
{
SkillCaster.triggerCast(npc, player, holder.getSkill());
}
htmltext = applyBuffs(npc, player, FANTASIA.getSkill());
break;
}
case "warrior":
case "fantasia_donate_adena":
{
htmltext = applyBuffs(npc, player, WARRIOR.getSkill());
break;
if (getQuestItemsCount(player, ADENA) >= 3000000)
{
takeItems(player, ADENA, 3000000);
for (SkillHolder holder : DONATE_BUFFS)
{
SkillCaster.triggerCast(npc, player, holder.getSkill());
}
htmltext = applyBuffs(npc, player, FANTASIA.getSkill());
}
else
{
htmltext = "guide-noItems.html";
}
break;
}
case "wizard":
case "fantasia_donate_gemstones":
{
htmltext = applyBuffs(npc, player, WIZARD.getSkill());
break;
if (getQuestItemsCount(player, GEMSTONE_R) >= 5)
{
takeItems(player, GEMSTONE_R, 5);
for (SkillHolder holder : DONATE_BUFFS)
{
SkillCaster.triggerCast(npc, player, holder.getSkill());
}
htmltext = applyBuffs(npc, player, FANTASIA.getSkill());
}
else
{
htmltext = "guide-noItems.html";
}
break;
}
}
return htmltext;
@@ -116,17 +163,11 @@ public class AdventurersGuide extends AbstractNpcAI
private String applyBuffs(Npc npc, PlayerInstance player, Skill skill)
{
if (player.getLevel() > MAX_LEVEL_BUFFS)
{
return "guide-noBuffs.html";
}
for (SkillHolder holder : GROUP_BUFFS)
{
SkillCaster.triggerCast(npc, player, holder.getSkill());
}
SkillCaster.triggerCast(npc, player, skill);
if ((player.getLevel() < MIN_LEVEL_PROTECTION) && (player.getClassId().level() <= 1))
{
SkillCaster.triggerCast(npc, player, BLESS_PROTECTION.getSkill());

View File

@@ -1,11 +1,9 @@
<html><body>
I can offer you the following buffs, if you're below Lv. 100.<br>
Horn Melody / Drum Melody / Pipe Organ Melody<br1>
Guitar Melody / Harp Melody / Lute Melody<br1>
Prevailing Sonata / Daring Sonata / Refreshing Sonata<br1>
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 npc_%objectId%_Quest AdventurersGuide knight">"I want the Knight's Harmony."</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Quest AdventurersGuide warrior">"Warrior's Harmony, please."</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Quest AdventurersGuide wizard">"Wizard's Harmony, of course!"</Button>
The buff for beginners will be given <font color="LEVEL">for free</font> to adventurers of <font color="LEVEL">Lv. 99 and below</font>. The list of buffs that you can receive is as below:<br>
Horn Melody Lv.1 / Drum Melody Lv.1<br1>
Pipe Organ Melody Lv.1 / Guitar Melody Lv.1<br1>
Prevailing Sonata/Daring Sonata/Refreshing Sonata<br1>
Fantasia Harmony<br>
Get the buffs listed above.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Quest AdventurersGuide fantasia">"I'll take the buff."</Button>
</body></html>

View File

@@ -1,6 +1,7 @@
<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>
<html><body>Adventurers' Guide:<br>
Sharing is rtuly a valuable thing. Thanks to you, we can support the beginner adventurers for free.<br>
If you donate some items, I can give you the highest level buff that I can give you.<br>
What will you donate?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Quest AdventurersGuide guide-03.html">"I'll donate Adena."</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Quest AdventurersGuide guide-04.html">"I'll donate Gemstones (R-grade)."</Button>
</body></html>

View File

@@ -1,5 +1,10 @@
<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>
<html><body>Adventurers' Guide:<br>
Will you donate <font color="LEVEL">Adena</font>? If you donate <font color="LEVEL">3 million Adena</font>, I can give you the highest level buff that I can give you.<br>
This is the list of buffs:<br>
Horn Melody Lv. 4 / Drum Melody Lv. 4<br1>
Pipe Organ Melody Lv. 4/Guitar Melody Lv. 4<br1>
Prevailing Sonata/Daring Sonata/Refreshing Sonata<br1>
Fantasia Harmony<br>
Get the buffs listed above.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Quest AdventurersGuide fantasia_donate_adena">"Receive buffs (Cost: 3 million Adena)"</Button>
</body></html>

View File

@@ -1,5 +1,10 @@
<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>
Well?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_multisell 902">"I want to buy some things."</Button>
<html><body>Adventurers' Guide:<br>
Will you donate <font color="LEVEL">Gemstones (R-grade)</font>? If you donate <font color="LEVEL">5 Gemstones (R-grade)</font>, I can give you the highest level buff that I can give you.<br>
Here's the list of the list of buffs I can give you.<br>
Horn Melody Lv. 4 / Drum Melody Lv. 4<br1>
Pipe Organ Melody Lv. 4/Guitar Melody Lv. 4<br1>
Prevailing Sonata/Daring Sonata/Refreshing Sonata<br1>
Fantasia Harmony<br>
You can get these buffs.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Quest AdventurersGuide fantasia_donate_gemstones">"Receive buff. (1 Scroll)"</Button>
</body></html>

View File

@@ -0,0 +1,6 @@
<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-07.html">"How do I use Steel Door Guild Coins?"</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Quest AdventurersGuide guide-08.html">"Here, I have some Steel Door Guild Coins..."</Button>
</body></html>

View File

@@ -0,0 +1,5 @@
<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-06.html">Back</Button>
</body></html>

View File

@@ -0,0 +1,5 @@
<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>
Well?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_multisell 902">"I want to buy some things."</Button>
</body></html>

View File

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

View File

@@ -0,0 +1,4 @@
<html><body><br>
You don't have enough items to donate.<br>
Please check again.
</body></html>