Advertisement
SmiDmi

New Adventurers' Guide

Aug 18th, 2019
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 18.64 KB | None | 0 0
  1. ### Eclipse Workspace Patch 1.0
  2. #P L2J_Mobius_6.0_Fafurion
  3. Index: dist/game/data/scripts/ai/others/AdventurersGuide/guide-07.html
  4. ===================================================================
  5. --- dist/game/data/scripts/ai/others/AdventurersGuide/guide-07.html (nonexistent)
  6. +++ dist/game/data/scripts/ai/others/AdventurersGuide/guide-07.html (working copy)
  7. @@ -0,0 +1,5 @@
  8. +<html><body>
  9. +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>
  10. +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>
  11. +<Button ALIGN=LEFT ICON="RETURN" action="bypass -h npc_%objectId%_Quest AdventurersGuide guide-06.html">Back</Button>
  12. +</body></html>
  13. \ No newline at end of file
  14. Index: dist/game/data/scripts/ai/others/AdventurersGuide/guide-noItems.html
  15. ===================================================================
  16. --- dist/game/data/scripts/ai/others/AdventurersGuide/guide-noItems.html    (nonexistent)
  17. +++ dist/game/data/scripts/ai/others/AdventurersGuide/guide-noItems.html    (working copy)
  18. @@ -0,0 +1,4 @@
  19. +<html><body><br>
  20. +You don't have enough items to donate.<br>
  21. +Please check again.
  22. +</body></html>
  23. \ No newline at end of file
  24. Index: dist/game/data/scripts/ai/others/AdventurersGuide/guide-06.html
  25. ===================================================================
  26. --- dist/game/data/scripts/ai/others/AdventurersGuide/guide-06.html (nonexistent)
  27. +++ dist/game/data/scripts/ai/others/AdventurersGuide/guide-06.html (working copy)
  28. @@ -0,0 +1,6 @@
  29. +<html><body>
  30. +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>
  31. +Well?<br>
  32. +<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Quest AdventurersGuide guide-07.html">"How do I use Steel Door Guild Coins?"</Button>
  33. +<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Quest AdventurersGuide guide-08.html">"Here, I have some Steel Door Guild Coins..."</Button>
  34. +</body></html>
  35. \ No newline at end of file
  36. Index: dist/game/data/scripts/ai/others/AdventurersGuide/32327.html
  37. ===================================================================
  38. --- dist/game/data/scripts/ai/others/AdventurersGuide/32327.html    (revision 5802)
  39. +++ dist/game/data/scripts/ai/others/AdventurersGuide/32327.html    (working copy)
  40. @@ -2,9 +2,11 @@
  41.  Greetings, traveler! How may I be of assistance?<br>
  42.  My job is to offer what little assistance I can as you charge into all this endless evil and intense fighting!<br>
  43.  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>
  44. -<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>
  45. +If you have some items that you can donate to me, I'll give you the highest buff that I can.<br>
  46. +<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>
  47. +<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>
  48. +<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>
  49.  <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>
  50. -<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Quest AdventurersGuide guide-02.html">"Here, I have some Steel Door Guild Coins..."</Button>
  51. -<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>
  52. +<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Quest AdventurersGuide guide-06.html">"Here, I have some Steel Door Guild Coins..."</Button>
  53.  <Button ALIGN=LEFT ICON="QUEST" action="bypass -h npc_%objectId%_Quest">Quest</Button>
  54.  </body></html>
  55. \ No newline at end of file
  56. Index: dist/game/data/scripts/ai/others/AdventurersGuide/guide-04.html
  57. ===================================================================
  58. --- dist/game/data/scripts/ai/others/AdventurersGuide/guide-04.html (revision 5802)
  59. +++ dist/game/data/scripts/ai/others/AdventurersGuide/guide-04.html (working copy)
  60. @@ -1,5 +1,12 @@
  61. -<html><body>
  62. -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>
  63. -Well?<br>
  64. -<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_multisell 902">"I want to buy some things."</Button>
  65. +<html><body>Adventurers' Guide:<br>
  66. +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>
  67. +Here's the list of the list of buffs I can give you.<br>
  68. +Horn Melody Lv. 4 / Drum Melody Lv. 4<br1>
  69. +Pipe Organ Melody Lv. 4/Guitar Melody Lv. 4<br1>
  70. +Prevailing Sonata/Daring Sonata/Refreshing Sonata<br1>
  71. +You can receive the above buffs as a group.<br>
  72. +For Knight's Harmony / Warrior's Harmony / Wizard's Harmony, you will have to choose one.<br>
  73. +<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Quest AdventurersGuide knight_donate_gemstones">"Receive buffs with Knight's Harmony (1 Scroll)"</Button>
  74. +<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Quest AdventurersGuide warrior_donate_gemstones">"Receive buffs with Warrior's Harmony (1 Scroll)"</Button>
  75. +<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Quest AdventurersGuide wizard_donate_gemstones">"Receive buffs with Wizard's Harmony (1 Scroll)"</Button>
  76.  </body></html>
  77. \ No newline at end of file
  78. Index: dist/game/data/scripts/ai/others/AdventurersGuide/guide-03.html
  79. ===================================================================
  80. --- dist/game/data/scripts/ai/others/AdventurersGuide/guide-03.html (revision 5802)
  81. +++ dist/game/data/scripts/ai/others/AdventurersGuide/guide-03.html (working copy)
  82. @@ -1,5 +1,12 @@
  83. -<html><body>
  84. -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>
  85. -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>
  86. -<Button ALIGN=LEFT ICON="RETURN" action="bypass -h npc_%objectId%_Quest AdventurersGuide guide-02.html">Back</Button>
  87. +<html><body>Adventurers' Guide:<br>
  88. +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>
  89. +This is the list of buffs:<br>
  90. +Horn Melody Lv. 4 / Drum Melody Lv. 4<br1>
  91. +Pipe Organ Melody Lv. 4/Guitar Melody Lv. 4<br1>
  92. +Prevailing Sonata/Daring Sonata/Refreshing Sonata<br1>
  93. +You can receive the above buffs as a group.<br>
  94. +For Knight's Harmony / Warrior's Harmony / Wizard's Harmony, you will have to choose one.<br>
  95. +<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>
  96. +<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>
  97. +<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>
  98.  </body></html>
  99. \ No newline at end of file
  100. Index: dist/game/data/scripts/ai/others/AdventurersGuide/guide-02.html
  101. ===================================================================
  102. --- dist/game/data/scripts/ai/others/AdventurersGuide/guide-02.html (revision 5802)
  103. +++ dist/game/data/scripts/ai/others/AdventurersGuide/guide-02.html (working copy)
  104. @@ -1,6 +1,7 @@
  105. -<html><body>
  106. -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>
  107. -Well?<br>
  108. -<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Quest AdventurersGuide guide-03.html">"How do I use Steel Door Guild Coins?"</Button>
  109. -<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Quest AdventurersGuide guide-04.html">"Here, I have some Steel Door Guild Coins..."</Button>
  110. +<html><body>Adventurers' Guide:<br>
  111. +Sharing is rtuly a valuable thing. Thanks to you, we can support the beginner adventurers for free.<br>
  112. +If you donate some items, I can give you the highest level buff that I can give you.<br>
  113. +What will you donate?<br>
  114. +<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Quest AdventurersGuide guide-03.html">"I'll donate Adena."</Button>
  115. +<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Quest AdventurersGuide guide-04.html">"I'll donate Gemstones (R-grade)."</Button>
  116.  </body></html>
  117. \ No newline at end of file
  118. Index: dist/game/data/scripts/ai/others/AdventurersGuide/guide-01.html
  119. ===================================================================
  120. --- dist/game/data/scripts/ai/others/AdventurersGuide/guide-01.html (revision 5802)
  121. +++ dist/game/data/scripts/ai/others/AdventurersGuide/guide-01.html (working copy)
  122. @@ -1,4 +1,4 @@
  123. -<html><body>
  124. +<html><body>Adventurers' Guide:<br>
  125.  I can offer you the following buffs, if you're below Lv. 100.<br>
  126.  Horn Melody / Drum Melody / Pipe Organ Melody<br1>
  127.  Guitar Melody / Harp Melody / Lute Melody<br1>
  128. Index: dist/game/data/scripts/ai/others/AdventurersGuide/guide-08.html
  129. ===================================================================
  130. --- dist/game/data/scripts/ai/others/AdventurersGuide/guide-08.html (nonexistent)
  131. +++ dist/game/data/scripts/ai/others/AdventurersGuide/guide-08.html (working copy)
  132. @@ -0,0 +1,5 @@
  133. +<html><body>
  134. +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>
  135. +Well?<br>
  136. +<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_multisell 902">"I want to buy some things."</Button>
  137. +</body></html>
  138. \ No newline at end of file
  139. Index: dist/game/data/scripts/ai/others/AdventurersGuide/AdventurersGuide.java
  140. ===================================================================
  141. --- dist/game/data/scripts/ai/others/AdventurersGuide/AdventurersGuide.java (revision 5802)
  142. +++ dist/game/data/scripts/ai/others/AdventurersGuide/AdventurersGuide.java (working copy)
  143. @@ -36,6 +36,9 @@
  144.         32327,
  145.         33950,
  146.     };
  147. +   // Items
  148. +    private static final int ADENA = 57;
  149. +    private static final int GEMSTONE_R = 19440;
  150.     // Skills
  151.     private static final SkillHolder BLESS_PROTECTION = new SkillHolder(5182, 1); // Blessing of Protection
  152.     private static final SkillHolder KNIGHT = new SkillHolder(15648, 1); // Knight's Harmony (Adventurer)
  153. @@ -51,6 +54,16 @@
  154.         new SkillHolder(15652, 1), // Daring Sonata (Adventurer)
  155.         new SkillHolder(15653, 1), // Refreshing Sonata (Adventurer)
  156.     };
  157. +    private static final SkillHolder[] DONATE_BUFFS =
  158. +    {
  159. +        new SkillHolder(15642, 4), // Horn Melody (Adventurer)
  160. +        new SkillHolder(15643, 4), // Drum Melody (Adventurer)
  161. +        new SkillHolder(15644, 4), // Pipe Organ Melody (Adventurer)
  162. +        new SkillHolder(15645, 4), // Guitar Melody (Adventurer)
  163. +        new SkillHolder(15651, 1), // Prevailing Sonata (Adventurer)
  164. +        new SkillHolder(15652, 1), // Daring Sonata (Adventurer)
  165. +        new SkillHolder(15653, 1), // Refreshing Sonata (Adventurer)
  166. +    };
  167.     // Misc
  168.     private static int MAX_LEVEL_BUFFS = 99;
  169.     private static int MIN_LEVEL_PROTECTION = 40;
  170. @@ -74,6 +87,9 @@
  171.             case "guide-03.html":
  172.             case "guide-04.html":
  173.             case "guide-05.html":
  174. +           case "guide-06.html":
  175. +           case "guide-07.html":
  176. +           case "guide-08.html":
  177.             {
  178.                 htmltext = event;
  179.                 break;
  180. @@ -90,7 +106,6 @@
  181.                     htmltext = "guide-noBreath.html";
  182.                     break;
  183.                 }
  184. -              
  185.                 player.setShilensBreathDebuffLevel(2);
  186.                 htmltext = "guide-cleanedBreath.html";
  187.                 break;
  188. @@ -97,19 +112,145 @@
  189.             }
  190.             case "knight":
  191.             {
  192. +               if (player.getLevel() > MAX_LEVEL_BUFFS)
  193. +                {
  194. +                    return "guide-noBuffs.html";
  195. +                }
  196. +                for (SkillHolder holder : GROUP_BUFFS)
  197. +                {
  198. +                    SkillCaster.triggerCast(npc, player, holder.getSkill());
  199. +                }
  200.                 htmltext = applyBuffs(npc, player, KNIGHT.getSkill());
  201.                 break;
  202.             }
  203.             case "warrior":
  204.             {
  205. +               if (player.getLevel() > MAX_LEVEL_BUFFS)
  206. +                {
  207. +                    return "guide-noBuffs.html";
  208. +                }
  209. +                for (SkillHolder holder : GROUP_BUFFS)
  210. +                {
  211. +                    SkillCaster.triggerCast(npc, player, holder.getSkill());
  212. +                }
  213.                 htmltext = applyBuffs(npc, player, WARRIOR.getSkill());
  214.                 break;
  215.             }
  216.             case "wizard":
  217.             {
  218. +               if (player.getLevel() > MAX_LEVEL_BUFFS)
  219. +                {
  220. +                    return "guide-noBuffs.html";
  221. +                }
  222. +                for (SkillHolder holder : GROUP_BUFFS)
  223. +                {
  224. +                    SkillCaster.triggerCast(npc, player, holder.getSkill());
  225. +                }
  226.                 htmltext = applyBuffs(npc, player, WIZARD.getSkill());
  227.                 break;
  228.             }
  229. +           case "knight_donate_adena":
  230. +           {
  231. +               if (getQuestItemsCount(player, ADENA) >= 3000000)
  232. +               {
  233. +                   takeItems(player, ADENA, 3000000);
  234. +                   for (SkillHolder holder : DONATE_BUFFS)
  235. +                   {
  236. +                       SkillCaster.triggerCast(npc, player, holder.getSkill());
  237. +                   }
  238. +                  htmltext = applyBuffs(npc, player, KNIGHT.getSkill());
  239. +               }
  240. +               else
  241. +               {
  242. +                   htmltext = "guide-noItems.html";
  243. +               }
  244. +               break;
  245. +           }
  246. +           case "warrior_donate_adena":
  247. +           {
  248. +               if (getQuestItemsCount(player, ADENA) >= 3000000)
  249. +               {
  250. +                   takeItems(player, ADENA, 3000000);
  251. +                   for (SkillHolder holder : DONATE_BUFFS)
  252. +                   {
  253. +                       SkillCaster.triggerCast(npc, player, holder.getSkill());
  254. +                   }
  255. +                  htmltext = applyBuffs(npc, player, WARRIOR.getSkill());
  256. +               }
  257. +               else
  258. +               {
  259. +                   htmltext = "guide-noItems.html";
  260. +               }
  261. +               break;
  262. +           }
  263. +           case "wizard_donate_adena":
  264. +           {
  265. +               if (getQuestItemsCount(player, ADENA) >= 3000000)
  266. +               {
  267. +                   takeItems(player, ADENA, 3000000);
  268. +                   for (SkillHolder holder : DONATE_BUFFS)
  269. +                   {
  270. +                       SkillCaster.triggerCast(npc, player, holder.getSkill());
  271. +                   }
  272. +                  htmltext = applyBuffs(npc, player, WIZARD.getSkill());
  273. +               }
  274. +               else
  275. +               {
  276. +                   htmltext = "guide-noItems.html";
  277. +               }
  278. +               break;
  279. +           }
  280. +           case "knight_donate_gemstones":
  281. +           {
  282. +               if (getQuestItemsCount(player, GEMSTONE_R) >= 5)
  283. +               {
  284. +                   takeItems(player, GEMSTONE_R, 5);
  285. +                   for (SkillHolder holder : DONATE_BUFFS)
  286. +                   {
  287. +                       SkillCaster.triggerCast(npc, player, holder.getSkill());
  288. +                   }
  289. +                  htmltext = applyBuffs(npc, player, KNIGHT.getSkill());
  290. +               }
  291. +               else
  292. +               {
  293. +                   htmltext = "guide-noItems.html";
  294. +               }
  295. +               break;
  296. +           }
  297. +           case "warrior_donate_gemstones":
  298. +           {
  299. +               if (getQuestItemsCount(player, GEMSTONE_R) >= 5)
  300. +               {
  301. +                   takeItems(player, GEMSTONE_R, 5);
  302. +                   for (SkillHolder holder : DONATE_BUFFS)
  303. +                   {
  304. +                       SkillCaster.triggerCast(npc, player, holder.getSkill());
  305. +                   }
  306. +                  htmltext = applyBuffs(npc, player, WARRIOR.getSkill());
  307. +               }
  308. +               else
  309. +               {
  310. +                   htmltext = "guide-noItems.html";
  311. +               }
  312. +               break;
  313. +           }
  314. +           case "wizard_donate_gemstones":
  315. +           {
  316. +               if (getQuestItemsCount(player, GEMSTONE_R) >= 5)
  317. +               {
  318. +                   takeItems(player, GEMSTONE_R, 5);
  319. +                   for (SkillHolder holder : DONATE_BUFFS)
  320. +                   {
  321. +                       SkillCaster.triggerCast(npc, player, holder.getSkill());
  322. +                   }
  323. +                  htmltext = applyBuffs(npc, player, WIZARD.getSkill());
  324. +               }
  325. +               else
  326. +               {
  327. +                   htmltext = "guide-noItems.html";
  328. +               }
  329. +               break;
  330. +           }
  331.         }
  332.         return htmltext;
  333.     }
  334. @@ -116,17 +257,11 @@
  335.    
  336.     private String applyBuffs(Npc npc, PlayerInstance player, Skill skill)
  337.     {
  338. -       if (player.getLevel() > MAX_LEVEL_BUFFS)
  339. -       {
  340. -           return "guide-noBuffs.html";
  341. -       }
  342. -      
  343.         for (SkillHolder holder : GROUP_BUFFS)
  344.         {
  345.             SkillCaster.triggerCast(npc, player, holder.getSkill());
  346.         }
  347.         SkillCaster.triggerCast(npc, player, skill);
  348. -      
  349.         if ((player.getLevel() < MIN_LEVEL_PROTECTION) && (player.getClassId().level() <= 1))
  350.         {
  351.             SkillCaster.triggerCast(npc, player, BLESS_PROTECTION.getSkill());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement