Advertisement
CostyKiller

Fixed quest Q00036_MakeASewingKit

Nov 20th, 2020
1,008
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 6.75 KB | None | 0 0
  1. Index: dist/game/data/scripts/quests/Q00036_MakeASewingKit/30847-03.htm
  2. ===================================================================
  3. --- dist/game/data/scripts/quests/Q00036_MakeASewingKit/30847-03.htm    (revision 7809)
  4. +++ dist/game/data/scripts/quests/Q00036_MakeASewingKit/30847-03.htm    (working copy)
  5. @@ -1,3 +1,3 @@
  6.  <html><body>Head Blacksmith Ferris:<br>
  7. -I need some <font color="LEVEL">enchanted iron</font>. It's made by applying magic to Iron Ore. There aren't any Mystics around, so we'll have to improvise... A creature known as the <font color="LEVEL">enchanted iron golem</font> can be found in the vicinity of the Ivory Tower. Peel off some of its scrap and bring it to me! I'll need about <font color="LEVEL">five</font> pieces. These golems are quite durable, and won't peel away easily. Give it all you've got!
  8. +I need some <font color="LEVEL">Reinforced Iron Piece</font>. It's made by applying magic to Iron Ore. There aren't any Mystics around, so we'll have to improvise... Creatures known as <font color="LEVEL">Lost Steel Golem</font> and <font color="LEVEL">Frost Steel Golem</font> can be found in Frozen Labyrinth. Peel off some of its scrap and bring it to me! I'll need about <font color="LEVEL">five</font> pieces. These golems are quite durable, and won't peel away easily. Give it all you've got!
  9.  </body></html>
  10. \ No newline at end of file
  11. Index: dist/game/data/scripts/quests/Q00036_MakeASewingKit/30847-04.html
  12. ===================================================================
  13. --- dist/game/data/scripts/quests/Q00036_MakeASewingKit/30847-04.html   (revision 7809)
  14. +++ dist/game/data/scripts/quests/Q00036_MakeASewingKit/30847-04.html   (working copy)
  15. @@ -1,3 +1,3 @@
  16.  <html><body>Head Blacksmith Ferris:<br>
  17. -What are you still doing here? Where is the <font color="LEVEL">enchanted iron</font> you said you'd bring me? Remember? Find the <font color="LEVEL">enchanted iron golem</font> in the vicinity of the Ivory Tower, peel off some of its skin and bring it to me! I'll need <font color="LEVEL">five</font> pieces. That golem is a sturdy fellow, you'll really need to use all your strength!
  18. +What are you still doing here? Where is the <font color="LEVEL">Reinforced Iron Pieces</font> you said you'd bring me? Remember? Find the <font color="LEVEL">Lost Steel Golem</font> and <font color="LEVEL">Frost Steel Golem</font> in Frozen Labyrinth, peel off some of its skin and bring it to me! I'll need <font color="LEVEL">five</font> pieces. That golem is a sturdy fellow, you'll really need to use all your strength!
  19.  </body></html>
  20. \ No newline at end of file
  21. Index: dist/game/data/scripts/quests/Q00036_MakeASewingKit/30847-05.html
  22. ===================================================================
  23. --- dist/game/data/scripts/quests/Q00036_MakeASewingKit/30847-05.html   (revision 7809)
  24. +++ dist/game/data/scripts/quests/Q00036_MakeASewingKit/30847-05.html   (working copy)
  25. @@ -1,5 +1,5 @@
  26.  <html><body>Head Blacksmith Ferris:<br>
  27. -Are these them? Let me see... Ah, yes! The luster, color and hardness... yes, It's definitely enchanted iron! Good job!<br>
  28. +Are these them? Let me see... Ah, yes! The luster, color and hardness... yes, It's definitely Reinforced Iron Piece! Good job!<br>
  29.  I hate to ask this, but could you do just one more thing? I'm still lacking some of the ingredients I need to make the Sewing kit. Would you obtain them for me too?<br>
  30.  <Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00036_MakeASewingKit 30847-06.html">"What else do you need?"</Button>
  31.  </body></html>
  32. \ No newline at end of file
  33. Index: dist/game/data/scripts/quests/Q00036_MakeASewingKit/Q00036_MakeASewingKit.java
  34. ===================================================================
  35. --- dist/game/data/scripts/quests/Q00036_MakeASewingKit/Q00036_MakeASewingKit.java  (revision 7809)
  36. +++ dist/game/data/scripts/quests/Q00036_MakeASewingKit/Q00036_MakeASewingKit.java  (working copy)
  37. @@ -25,7 +25,7 @@
  38.  
  39.  /**
  40.   * Make a Sewing Kit (36)
  41. - * @author malyelfik
  42. + * @author malyelfik, CostyKiller
  43.   */
  44.  public class Q00036_MakeASewingKit extends Quest
  45.  {
  46. @@ -32,16 +32,18 @@
  47.     // NPC
  48.     private static final int FERRIS = 30847;
  49.     // Monster
  50. -   private static final int REINFORCED_IRON_GOLEM = 20566;
  51. +   private static final int LOST_STEEL_GOLEM = 22091;
  52. +   private static final int FROST_STEEL_GOLEM = 22092;
  53.     // Items
  54.     private static final int IRON_ORE = 36521;
  55.     private static final int COKES = 36561;
  56.     private static final int SEWING_KIT = 7078;
  57. -   private static final int REINFORCED_IRON = 7163;
  58. +   private static final int REINFORCED_IRON_PIECE = 7163;
  59.     // Misc
  60.     private static final int MIN_LEVEL = 85;
  61. -   private static final int IRON_COUNT = 5;
  62. -   private static final int COUNT = 10;
  63. +   private static final int REINFORCED_IRON_PIECE_COUNT = 5;
  64. +   private static final int IRON_ORE_COUNT = 180;
  65. +   private static final int COKES_COUNT = 360;
  66.    
  67.     public Q00036_MakeASewingKit()
  68.     {
  69. @@ -48,8 +50,8 @@
  70.         super(36);
  71.         addStartNpc(FERRIS);
  72.         addTalkId(FERRIS);
  73. -       addKillId(REINFORCED_IRON_GOLEM);
  74. -       registerQuestItems(REINFORCED_IRON);
  75. +       addKillId(LOST_STEEL_GOLEM, FROST_STEEL_GOLEM);
  76. +       registerQuestItems(REINFORCED_IRON_PIECE);
  77.     }
  78.    
  79.     @Override
  80. @@ -71,17 +73,17 @@
  81.             }
  82.             case "30847-06.html":
  83.             {
  84. -               if (getQuestItemsCount(player, REINFORCED_IRON) < IRON_COUNT)
  85. +               if (getQuestItemsCount(player, REINFORCED_IRON_PIECE) < REINFORCED_IRON_PIECE_COUNT)
  86.                 {
  87.                     return getNoQuestMsg(player);
  88.                 }
  89. -               takeItems(player, REINFORCED_IRON, -1);
  90. +               takeItems(player, REINFORCED_IRON_PIECE, -1);
  91.                 qs.setCond(3, true);
  92.                 break;
  93.             }
  94.             case "30847-09.html":
  95.             {
  96. -               if ((getQuestItemsCount(player, IRON_ORE) >= COUNT) && (getQuestItemsCount(player, COKES) >= COUNT))
  97. +               if ((getQuestItemsCount(player, IRON_ORE) >= IRON_ORE_COUNT) && (getQuestItemsCount(player, COKES) >= COKES_COUNT))
  98.                 {
  99.                     takeItems(player, IRON_ORE, 180);
  100.                     takeItems(player, COKES, 360);
  101. @@ -109,8 +111,8 @@
  102.         final PlayerInstance member = getRandomPartyMember(player, 1);
  103.         if ((member != null) && getRandomBoolean())
  104.         {
  105. -           giveItems(player, REINFORCED_IRON, 1);
  106. -           if (getQuestItemsCount(player, REINFORCED_IRON) >= IRON_COUNT)
  107. +           giveItems(player, REINFORCED_IRON_PIECE, 1);
  108. +           if (getQuestItemsCount(player, REINFORCED_IRON_PIECE) >= REINFORCED_IRON_PIECE_COUNT)
  109.             {
  110.                 getQuestState(member, false).setCond(2, true);
  111.             }
  112. @@ -151,7 +153,7 @@
  113.                     }
  114.                     case 3:
  115.                     {
  116. -                       htmltext = ((getQuestItemsCount(player, IRON_ORE) >= COUNT) && (getQuestItemsCount(player, COKES) >= COUNT)) ? "30847-07.html" : "30847-08.html";
  117. +                       htmltext = ((getQuestItemsCount(player, IRON_ORE) >= IRON_ORE_COUNT) && (getQuestItemsCount(player, COKES) >= COKES_COUNT)) ? "30847-07.html" : "30847-08.html";
  118.                         break;
  119.                     }
  120.                 }
  121.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement