Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ### Eclipse Workspace Patch 1.0
- #P L2J_Mobius_6.0_Fafurion
- Index: dist/game/data/scripts/ai/others/AdventurersGuide/guide-07.html
- ===================================================================
- --- dist/game/data/scripts/ai/others/AdventurersGuide/guide-07.html (nonexistent)
- +++ dist/game/data/scripts/ai/others/AdventurersGuide/guide-07.html (working copy)
- @@ -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>
- \ No newline at end of file
- Index: dist/game/data/scripts/ai/others/AdventurersGuide/guide-noItems.html
- ===================================================================
- --- dist/game/data/scripts/ai/others/AdventurersGuide/guide-noItems.html (nonexistent)
- +++ dist/game/data/scripts/ai/others/AdventurersGuide/guide-noItems.html (working copy)
- @@ -0,0 +1,4 @@
- +<html><body><br>
- +You don't have enough items to donate.<br>
- +Please check again.
- +</body></html>
- \ No newline at end of file
- Index: dist/game/data/scripts/ai/others/AdventurersGuide/guide-06.html
- ===================================================================
- --- dist/game/data/scripts/ai/others/AdventurersGuide/guide-06.html (nonexistent)
- +++ dist/game/data/scripts/ai/others/AdventurersGuide/guide-06.html (working copy)
- @@ -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>
- \ No newline at end of file
- Index: dist/game/data/scripts/ai/others/AdventurersGuide/32327.html
- ===================================================================
- --- dist/game/data/scripts/ai/others/AdventurersGuide/32327.html (revision 5802)
- +++ dist/game/data/scripts/ai/others/AdventurersGuide/32327.html (working copy)
- @@ -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>
- \ No newline at end of file
- Index: dist/game/data/scripts/ai/others/AdventurersGuide/guide-04.html
- ===================================================================
- --- dist/game/data/scripts/ai/others/AdventurersGuide/guide-04.html (revision 5802)
- +++ dist/game/data/scripts/ai/others/AdventurersGuide/guide-04.html (working copy)
- @@ -1,5 +1,12 @@
- -<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>
- +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_donate_gemstones">"Receive buffs with Knight's Harmony (1 Scroll)"</Button>
- +<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Quest AdventurersGuide warrior_donate_gemstones">"Receive buffs with Warrior's Harmony (1 Scroll)"</Button>
- +<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Quest AdventurersGuide wizard_donate_gemstones">"Receive buffs with Wizard's Harmony (1 Scroll)"</Button>
- </body></html>
- \ No newline at end of file
- Index: dist/game/data/scripts/ai/others/AdventurersGuide/guide-03.html
- ===================================================================
- --- dist/game/data/scripts/ai/others/AdventurersGuide/guide-03.html (revision 5802)
- +++ dist/game/data/scripts/ai/others/AdventurersGuide/guide-03.html (working copy)
- @@ -1,5 +1,12 @@
- -<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>
- +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_donate_adena">"Receive buffs with Knight's Harmony (Cost: 3 million Adena)"</Button>
- +<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Quest AdventurersGuide warrior_donate_adena">"Receive buffs with Warrior's Harmony (Cost: 3 million Adena)"</Button>
- +<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Quest AdventurersGuide wizard_donate_adena">"Receive buffs with Wizard's Harmony (Cost: 3 million Adena)"</Button>
- </body></html>
- \ No newline at end of file
- Index: dist/game/data/scripts/ai/others/AdventurersGuide/guide-02.html
- ===================================================================
- --- dist/game/data/scripts/ai/others/AdventurersGuide/guide-02.html (revision 5802)
- +++ dist/game/data/scripts/ai/others/AdventurersGuide/guide-02.html (working copy)
- @@ -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>
- \ No newline at end of file
- Index: dist/game/data/scripts/ai/others/AdventurersGuide/guide-01.html
- ===================================================================
- --- dist/game/data/scripts/ai/others/AdventurersGuide/guide-01.html (revision 5802)
- +++ dist/game/data/scripts/ai/others/AdventurersGuide/guide-01.html (working copy)
- @@ -1,4 +1,4 @@
- -<html><body>
- +<html><body>Adventurers' Guide:<br>
- 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>
- Index: dist/game/data/scripts/ai/others/AdventurersGuide/guide-08.html
- ===================================================================
- --- dist/game/data/scripts/ai/others/AdventurersGuide/guide-08.html (nonexistent)
- +++ dist/game/data/scripts/ai/others/AdventurersGuide/guide-08.html (working copy)
- @@ -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>
- \ No newline at end of file
- Index: dist/game/data/scripts/ai/others/AdventurersGuide/AdventurersGuide.java
- ===================================================================
- --- dist/game/data/scripts/ai/others/AdventurersGuide/AdventurersGuide.java (revision 5802)
- +++ dist/game/data/scripts/ai/others/AdventurersGuide/AdventurersGuide.java (working copy)
- @@ -36,6 +36,9 @@
- 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)
- @@ -51,6 +54,16 @@
- 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 @@
- 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,7 +106,6 @@
- htmltext = "guide-noBreath.html";
- break;
- }
- -
- player.setShilensBreathDebuffLevel(2);
- htmltext = "guide-cleanedBreath.html";
- break;
- @@ -97,19 +112,145 @@
- }
- case "knight":
- {
- + 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, KNIGHT.getSkill());
- break;
- }
- case "warrior":
- {
- + 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, WARRIOR.getSkill());
- break;
- }
- case "wizard":
- {
- + 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, WIZARD.getSkill());
- break;
- }
- + case "knight_donate_adena":
- + {
- + if (getQuestItemsCount(player, ADENA) >= 3000000)
- + {
- + takeItems(player, ADENA, 3000000);
- + for (SkillHolder holder : DONATE_BUFFS)
- + {
- + SkillCaster.triggerCast(npc, player, holder.getSkill());
- + }
- + htmltext = applyBuffs(npc, player, KNIGHT.getSkill());
- + }
- + else
- + {
- + htmltext = "guide-noItems.html";
- + }
- + break;
- + }
- + case "warrior_donate_adena":
- + {
- + if (getQuestItemsCount(player, ADENA) >= 3000000)
- + {
- + takeItems(player, ADENA, 3000000);
- + for (SkillHolder holder : DONATE_BUFFS)
- + {
- + SkillCaster.triggerCast(npc, player, holder.getSkill());
- + }
- + htmltext = applyBuffs(npc, player, WARRIOR.getSkill());
- + }
- + else
- + {
- + htmltext = "guide-noItems.html";
- + }
- + break;
- + }
- + case "wizard_donate_adena":
- + {
- + if (getQuestItemsCount(player, ADENA) >= 3000000)
- + {
- + takeItems(player, ADENA, 3000000);
- + for (SkillHolder holder : DONATE_BUFFS)
- + {
- + SkillCaster.triggerCast(npc, player, holder.getSkill());
- + }
- + htmltext = applyBuffs(npc, player, WIZARD.getSkill());
- + }
- + else
- + {
- + htmltext = "guide-noItems.html";
- + }
- + break;
- + }
- + case "knight_donate_gemstones":
- + {
- + 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, KNIGHT.getSkill());
- + }
- + else
- + {
- + htmltext = "guide-noItems.html";
- + }
- + break;
- + }
- + case "warrior_donate_gemstones":
- + {
- + 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, WARRIOR.getSkill());
- + }
- + else
- + {
- + htmltext = "guide-noItems.html";
- + }
- + break;
- + }
- + case "wizard_donate_gemstones":
- + {
- + 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, WIZARD.getSkill());
- + }
- + else
- + {
- + htmltext = "guide-noItems.html";
- + }
- + break;
- + }
- }
- return htmltext;
- }
- @@ -116,17 +257,11 @@
- 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());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement