diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/others/AdventurersGuide/32327.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/others/AdventurersGuide/32327.html index a57040893c..78fd9c0c2b 100644 --- a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/others/AdventurersGuide/32327.html +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/others/AdventurersGuide/32327.html @@ -2,9 +2,11 @@ Greetings, traveler! How may I be of assistance?
My job is to offer what little assistance I can as you charge into all this endless evil and intense fighting!
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.
- +If you have some items that you can donate to me, I'll give you the highest buff that I can.
+ + + - - + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/others/AdventurersGuide/AdventurersGuide.java b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/others/AdventurersGuide/AdventurersGuide.java index bd5553f3da..f75b4d9ab9 100644 --- a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/others/AdventurersGuide/AdventurersGuide.java +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/others/AdventurersGuide/AdventurersGuide.java @@ -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()); diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/others/AdventurersGuide/guide-01.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/others/AdventurersGuide/guide-01.html index ecf89e55a5..ccc951efd5 100644 --- a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/others/AdventurersGuide/guide-01.html +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/others/AdventurersGuide/guide-01.html @@ -1,11 +1,9 @@ -I can offer you the following buffs, if you're below Lv. 100.
-Horn Melody / Drum Melody / Pipe Organ Melody -Guitar Melody / Harp Melody / Lute Melody -Prevailing Sonata / Daring Sonata / Refreshing Sonata -You can receive the above buffs as a group.
-For Knight's Harmony / Warrior's Harmony / Wizard's Harmony, you will have to choose one.
- - - +The buff for beginners will be given for free to adventurers of Lv. 99 and below. The list of buffs that you can receive is as below:
+Horn Melody Lv.1 / Drum Melody Lv.1 +Pipe Organ Melody Lv.1 / Guitar Melody Lv.1 +Prevailing Sonata/Daring Sonata/Refreshing Sonata +Fantasia Harmony
+Get the buffs listed above.
+ \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/others/AdventurersGuide/guide-02.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/others/AdventurersGuide/guide-02.html index 3f1e3b5727..efeb84b4b4 100644 --- a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/others/AdventurersGuide/guide-02.html +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/others/AdventurersGuide/guide-02.html @@ -1,6 +1,7 @@ - -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.
-Well?
- - +Adventurers' Guide:
+Sharing is rtuly a valuable thing. Thanks to you, we can support the beginner adventurers for free.
+If you donate some items, I can give you the highest level buff that I can give you.
+What will you donate?
+ + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/others/AdventurersGuide/guide-03.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/others/AdventurersGuide/guide-03.html index 6b01e5759c..234282cfa0 100644 --- a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/others/AdventurersGuide/guide-03.html +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/others/AdventurersGuide/guide-03.html @@ -1,5 +1,10 @@ - -You can use Steel Door Guild Coins to purchase weapons, armor, and accessories of each grade. 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.
-Once you outgrow the equipment, you can trade them back for Steel Door Guild Coins again! 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!
- +Adventurers' Guide:
+Will you donate Adena? If you donate 3 million Adena, I can give you the highest level buff that I can give you.
+This is the list of buffs:
+Horn Melody Lv. 4 / Drum Melody Lv. 4 +Pipe Organ Melody Lv. 4/Guitar Melody Lv. 4 +Prevailing Sonata/Daring Sonata/Refreshing Sonata +Fantasia Harmony
+Get the buffs listed above.
+ \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/others/AdventurersGuide/guide-04.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/others/AdventurersGuide/guide-04.html index f067e2265d..6654c8b5fe 100644 --- a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/others/AdventurersGuide/guide-04.html +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/others/AdventurersGuide/guide-04.html @@ -1,5 +1,10 @@ - -You can use Steel Door Guild Coins to receive equipment, and trade them back for coins again. Just remember, you cannot bring us junk to exchange for coins!
-Well?
- +Adventurers' Guide:
+Will you donate Gemstones (R-grade)? If you donate 5 Gemstones (R-grade), I can give you the highest level buff that I can give you.
+Here's the list of the list of buffs I can give you.
+Horn Melody Lv. 4 / Drum Melody Lv. 4 +Pipe Organ Melody Lv. 4/Guitar Melody Lv. 4 +Prevailing Sonata/Daring Sonata/Refreshing Sonata +Fantasia Harmony
+You can get these buffs.
+ \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/others/AdventurersGuide/guide-06.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/others/AdventurersGuide/guide-06.html new file mode 100644 index 0000000000..8a328fa3f6 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/others/AdventurersGuide/guide-06.html @@ -0,0 +1,6 @@ + +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.
+Well?
+ + + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/others/AdventurersGuide/guide-07.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/others/AdventurersGuide/guide-07.html new file mode 100644 index 0000000000..8c4e6f7a6c --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/others/AdventurersGuide/guide-07.html @@ -0,0 +1,5 @@ + +You can use Steel Door Guild Coins to purchase weapons, armor, and accessories of each grade. 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.
+Once you outgrow the equipment, you can trade them back for Steel Door Guild Coins again! 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!
+ + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/others/AdventurersGuide/guide-08.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/others/AdventurersGuide/guide-08.html new file mode 100644 index 0000000000..303b539d4e --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/others/AdventurersGuide/guide-08.html @@ -0,0 +1,5 @@ + +You can use Steel Door Guild Coins to receive equipment, and trade them back for coins again. Just remember, you cannot bring us junk to exchange for coins!
+Well?
+ + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/others/AdventurersGuide/guide-noBuffs.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/others/AdventurersGuide/guide-noBuffs.html index f980f9d5da..37a4cb98e0 100644 --- a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/others/AdventurersGuide/guide-noBuffs.html +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/others/AdventurersGuide/guide-noBuffs.html @@ -1,3 +1,3 @@ -Characters who are Lv. 100 or above cannot receive Newbie Buffs. +Characters who are Lv. 99 or above cannot receive Newbie Buffs. \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/others/AdventurersGuide/guide-noItems.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/others/AdventurersGuide/guide-noItems.html new file mode 100644 index 0000000000..47841d1a70 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/others/AdventurersGuide/guide-noItems.html @@ -0,0 +1,4 @@ +
+You don't have enough items to donate.
+Please check again. + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/stats/skills/32800-32899.xml b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/stats/skills/32800-32899.xml index cf09b2e2ff..46c172b042 100644 --- a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/stats/skills/32800-32899.xml +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/stats/skills/32800-32899.xml @@ -345,11 +345,87 @@ 5000 - + icon.soul_spirit1 A2 400 687 + ENEMY + SINGLE + 1 + 3600 + BUFF_SPECIAL_CLASS + 900 + 1 + 1 + + + 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 + 100 + + + 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 + + + 22 + PER + + + 40 + PER + + + 45 + PER + + + 15 + PER + + + 100 + PER + + + 100 + PER + + + 70 + PER + + + 10 + PER + + + 15 + PER + + + 30 + PER + + + 50 + PER + + + -20 + PER + 1 + + + -20 + PER + 0 + + + -15 + PER + 1 + +