Advertisement
SmiDmi

Adventurer's Guide for PoW

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