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> 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> 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> 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-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 guide-06.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> <Button ALIGN=LEFT ICON="QUEST" action="bypass -h npc_%objectId%_Quest">Quest</Button>
</body></html> </body></html>

View File

@@ -36,11 +36,14 @@ public class AdventurersGuide extends AbstractNpcAI
32327, 32327,
33950, 33950,
}; };
// Items
private static final int ADENA = 57;
private static final int GEMSTONE_R = 19440;
// Skills // Skills
private static final SkillHolder BLESS_PROTECTION = new SkillHolder(5182, 1); // Blessing of Protection 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 FANTASIA = new SkillHolder(32840, 1); // Fantasia 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[] GROUP_BUFFS = private static final SkillHolder[] GROUP_BUFFS =
{ {
new SkillHolder(15642, 1), // Horn Melody (Adventurer) 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(15652, 1), // Daring Sonata (Adventurer)
new SkillHolder(15653, 1), // Refreshing 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 // Misc
private static int MAX_LEVEL_BUFFS = 99; private static int MAX_LEVEL_BUFFS = 99;
private static int MIN_LEVEL_PROTECTION = 40; private static int MIN_LEVEL_PROTECTION = 40;
@@ -74,6 +87,9 @@ public class AdventurersGuide extends AbstractNpcAI
case "guide-03.html": case "guide-03.html":
case "guide-04.html": case "guide-04.html":
case "guide-05.html": case "guide-05.html":
case "guide-06.html":
case "guide-07.html":
case "guide-08.html":
{ {
htmltext = event; htmltext = event;
break; break;
@@ -90,25 +106,56 @@ public class AdventurersGuide extends AbstractNpcAI
htmltext = "guide-noBreath.html"; htmltext = "guide-noBreath.html";
break; break;
} }
player.setShilensBreathDebuffLevel(2); player.setShilensBreathDebuffLevel(2);
htmltext = "guide-cleanedBreath.html"; htmltext = "guide-cleanedBreath.html";
break; 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; break;
} }
case "warrior": case "fantasia_donate_adena":
{ {
htmltext = applyBuffs(npc, player, WARRIOR.getSkill()); if (getQuestItemsCount(player, ADENA) >= 3000000)
break; {
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()); if (getQuestItemsCount(player, GEMSTONE_R) >= 5)
break; {
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; return htmltext;
@@ -116,17 +163,11 @@ public class AdventurersGuide extends AbstractNpcAI
private String applyBuffs(Npc npc, PlayerInstance player, Skill skill) private String applyBuffs(Npc npc, PlayerInstance player, Skill skill)
{ {
if (player.getLevel() > MAX_LEVEL_BUFFS)
{
return "guide-noBuffs.html";
}
for (SkillHolder holder : GROUP_BUFFS) for (SkillHolder holder : GROUP_BUFFS)
{ {
SkillCaster.triggerCast(npc, player, holder.getSkill()); SkillCaster.triggerCast(npc, player, holder.getSkill());
} }
SkillCaster.triggerCast(npc, player, skill); SkillCaster.triggerCast(npc, player, skill);
if ((player.getLevel() < MIN_LEVEL_PROTECTION) && (player.getClassId().level() <= 1)) if ((player.getLevel() < MIN_LEVEL_PROTECTION) && (player.getClassId().level() <= 1))
{ {
SkillCaster.triggerCast(npc, player, BLESS_PROTECTION.getSkill()); SkillCaster.triggerCast(npc, player, BLESS_PROTECTION.getSkill());

View File

@@ -1,11 +1,9 @@
<html><body> <html><body>
I can offer you the following buffs, if you're below Lv. 100.<br> 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 / Drum Melody / Pipe Organ Melody<br1> Horn Melody Lv.1 / Drum Melody Lv.1<br1>
Guitar Melody / Harp Melody / Lute Melody<br1> Pipe Organ Melody Lv.1 / Guitar Melody Lv.1<br1>
Prevailing Sonata / Daring Sonata / Refreshing Sonata<br1> Prevailing Sonata/Daring Sonata/Refreshing Sonata<br1>
You can receive the above buffs as a group.<br> Fantasia Harmony<br>
For Knight's Harmony / Warrior's Harmony / Wizard's Harmony, you will have to choose one.<br> Get the buffs listed above.<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 fantasia">"I'll take the buff."</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>
</body></html> </body></html>

View File

@@ -1,6 +1,7 @@
<html><body> <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> Sharing is rtuly a valuable thing. Thanks to you, we can support the beginner adventurers for free.<br>
Well?<br> If you donate some items, I can give you the highest level buff that I can give you.<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> What will you donate?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Quest AdventurersGuide guide-04.html">"Here, I have some Steel Door Guild Coins..."</Button> <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> </body></html>

View File

@@ -1,5 +1,10 @@
<html><body> <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> 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>
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> This is the list of buffs:<br>
<Button ALIGN=LEFT ICON="RETURN" action="bypass -h npc_%objectId%_Quest AdventurersGuide guide-02.html">Back</Button> 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> </body></html>

View File

@@ -1,5 +1,10 @@
<html><body> <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> 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>
Well?<br> Here's the list of the list of buffs I can give you.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_multisell 902">"I want to buy some things."</Button> 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> </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> <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> </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>

View File

@@ -345,11 +345,87 @@
<reuseDelay>5000</reuseDelay> <reuseDelay>5000</reuseDelay>
</skill> </skill>
<skill id="32840" toLevel="1" name="Fantasia Harmony - Adventurer"> <skill id="32840" toLevel="1" name="Fantasia Harmony - Adventurer">
<!-- For 60 minutes, P. Atk. +22%, M. Atk. +40%, P. Def. +45%, M. Def. +15%, P./M. Critical Rate +100%, P. Critical Damage +70%, Atk. Spd. +10%, Casting Spd. +15%, Shield Defense Rate +60 minutes0, Shield Def. +60 minutes1, Skill Cooldown -60 minutes2, All Skills MP Consumption -60 minutes3. --> <!-- For 60 minutes, P. Atk. +22%, M. Atk. +40%, P. Def. +45%, M. Def. +15%, P./M. Critical Rate +100%, P. Critical Damage +70%, Atk. Spd. +10%, Casting Spd. +15%, Shield Defense Rate +30%, Shield Def. +50%, Skill Cooldown -20%, All Skills MP Consumption -15%. -->
<icon>icon.soul_spirit1</icon> <icon>icon.soul_spirit1</icon>
<operateType>A2</operateType> <operateType>A2</operateType>
<castRange>400</castRange> <castRange>400</castRange>
<effectPoint>687</effectPoint> <effectPoint>687</effectPoint>
<targetType>ENEMY</targetType>
<affectScope>SINGLE</affectScope>
<abnormalLvl>1</abnormalLvl>
<abnormalTime>3600</abnormalTime>
<abnormalType>BUFF_SPECIAL_CLASS</abnormalType>
<effectRange>900</effectRange>
<isMagic>1</isMagic> <!-- Magic Skill -->
<magicLvl>1</magicLvl>
<effects>
<effect name="DispelBySlotProbability">
<dispel>MULTI_BUFF;DANCE_OF_BLADESTORM;SONG_OF_CHAMPION;SONG_OF_EARTH;SONG_OF_HUNTER;SONG_OF_LIFE;SONG_OF_MEDITATION;SONG_OF_RENEWAL;SONG_OF_VENGEANCE;SONG_OF_VITALITY;SONG_OF_WARDING;SONG_OF_WATER;SONG_OF_WIND;DANCE_OF_BERSERKER;DANCE_OF_CONCENTRATION;DANCE_OF_FIRE;DANCE_OF_FURY;DANCE_OF_INSPIRATION;DANCE_OF_MYSTIC;DANCE_OF_SIREN;DANCE_OF_VAMPIRE;DANCE_OF_WARRIOR;SONG_OF_PURIFICATION;WISPERING_OF_BATTLE;SONG_OF_WINDSTORM;MOTION_OF_DEFENCE;INSTINCT;BERSERKER;PA_PD_UP;IMPROVE_SHIELD_RATE_DEFENCE_UP;SHIELD_PROB_UP;SHIELD_DEFENCE_UP;CANCEL_PROB_DOWN;MA_UP_SPECIAL</dispel>
<rate>100</rate>
</effect>
<effect name="BlockAbnormalSlot">
<slot>MULTI_BUFF;DANCE_OF_BLADESTORM;SONG_OF_CHAMPION;SONG_OF_EARTH;SONG_OF_HUNTER;SONG_OF_LIFE;SONG_OF_MEDITATION;SONG_OF_RENEWAL;SONG_OF_VENGEANCE;SONG_OF_VITALITY;SONG_OF_WARDING;SONG_OF_WATER;SONG_OF_WIND;DANCE_OF_BERSERKER;DANCE_OF_CONCENTRATION;DANCE_OF_FIRE;DANCE_OF_FURY;DANCE_OF_INSPIRATION;DANCE_OF_MYSTIC;DANCE_OF_SIREN;DANCE_OF_VAMPIRE;DANCE_OF_WARRIOR;SONG_OF_PURIFICATION;WISPERING_OF_BATTLE;SONG_OF_WINDSTORM;MOTION_OF_DEFENCE;INSTINCT;BERSERKER;PA_PD_UP;IMPROVE_SHIELD_RATE_DEFENCE_UP;SHIELD_PROB_UP;SHIELD_DEFENCE_UP;CANCEL_PROB_DOWN;MA_UP_SPECIAL</slot>
</effect>
<effect name="PAtk">
<amount>22</amount>
<mode>PER</mode>
</effect>
<effect name="MAtk">
<amount>40</amount>
<mode>PER</mode>
</effect>
<effect name="PhysicalDefence">
<amount>45</amount>
<mode>PER</mode>
</effect>
<effect name="MagicalDefence">
<amount>15</amount>
<mode>PER</mode>
</effect>
<effect name="CriticalRate">
<amount>100</amount>
<mode>PER</mode>
</effect>
<effect name="MagicCriticalRate">
<amount>100</amount>
<mode>PER</mode>
</effect>
<effect name="CriticalDamage">
<amount>70</amount>
<mode>PER</mode>
</effect>
<effect name="PhysicalAttackSpeed">
<amount>10</amount>
<mode>PER</mode>
</effect>
<effect name="MagicalAttackSpeed">
<amount>15</amount>
<mode>PER</mode>
</effect>
<effect name="ShieldDefenceRate">
<amount>30</amount>
<mode>PER</mode>
</effect>
<effect name="ShieldDefence">
<amount>50</amount>
<mode>PER</mode>
</effect>
<effect name="Reuse">
<amount>-20</amount>
<mode>PER</mode>
<magicType>1</magicType>
</effect>
<effect name="Reuse">
<amount>-20</amount>
<mode>PER</mode>
<magicType>0</magicType>
</effect>
<effect name="MagicMpCost">
<amount>-15</amount>
<mode>PER</mode>
<magicType>1</magicType>
</effect>
</effects>
</skill> </skill>
<skill id="32841" toLevel="1" name="Fantasia Harmony - PC Cafe"> <skill id="32841" toLevel="1" name="Fantasia Harmony - PC Cafe">
<!-- For 1 h., P. Atk. +22%, M. Atk. +40%, P. Def. +45%, M. Def. +15%, P./M. Critical Rate +100%, P. Critical Damage +70%, Atk. Spd. +10%, Casting Spd. +15%, Shield Defense Rate +1 h.0, Shield Def. +1 h.1, Skill Cooldown -1 h.2, All Skills MP Consumption -1 h.3. PC Cafe only. --> <!-- For 1 h., P. Atk. +22%, M. Atk. +40%, P. Def. +45%, M. Def. +15%, P./M. Critical Rate +100%, P. Critical Damage +70%, Atk. Spd. +10%, Casting Spd. +15%, Shield Defense Rate +1 h.0, Shield Def. +1 h.1, Skill Cooldown -1 h.2, All Skills MP Consumption -1 h.3. PC Cafe only. -->