Advertisement
SmiDmi

Q11027_PathOfDestinyOvercome

Dec 1st, 2019
271
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 5.25 KB | None | 0 0
  1. ### Eclipse Workspace Patch 1.0
  2. #P L2J_Mobius_7.0_PreludeOfWar
  3. Index: dist/game/data/scripts/quests/Q11027_PathOfDestinyOvercome/Q11027_PathOfDestinyOvercome.java
  4. ===================================================================
  5. --- dist/game/data/scripts/quests/Q11027_PathOfDestinyOvercome/Q11027_PathOfDestinyOvercome.java    (revision 6521)
  6. +++ dist/game/data/scripts/quests/Q11027_PathOfDestinyOvercome/Q11027_PathOfDestinyOvercome.java    (working copy)
  7. @@ -16,6 +16,10 @@
  8.   */
  9.  package quests.Q11027_PathOfDestinyOvercome;
  10.  
  11. +import java.util.HashMap;
  12. +import java.util.Map;
  13. +import java.util.Map.Entry;
  14. +
  15.  import org.l2jmobius.Config;
  16.  import org.l2jmobius.gameserver.data.xml.impl.CategoryData;
  17.  import org.l2jmobius.gameserver.enums.CategoryType;
  18. @@ -33,6 +37,7 @@
  19.  import org.l2jmobius.gameserver.model.quest.State;
  20.  import org.l2jmobius.gameserver.network.NpcStringId;
  21.  import org.l2jmobius.gameserver.network.serverpackets.classchange.ExRequestClassChangeUi;
  22. +import org.l2jmobius.gameserver.network.serverpackets.SocialAction;
  23.  
  24.  import quests.Q11026_PathOfDestinyConviction.Q11026_PathOfDestinyConviction;
  25.  
  26. @@ -52,6 +57,19 @@
  27.     private static final int ATELIA = 39542;
  28.     // Reward
  29.     private static final int CHAOS_POMANDER = 37374;
  30. +   private static final Map<CategoryType, Integer> AWAKE_POWER = new HashMap<>();
  31. +   static
  32. +   {
  33. +       AWAKE_POWER.put(CategoryType.SIGEL_KNIGHT, 32264);
  34. +       AWAKE_POWER.put(CategoryType.TIRR_WARRIOR, 32265);
  35. +       AWAKE_POWER.put(CategoryType.OTHELL_ROGUE, 32266);
  36. +       AWAKE_POWER.put(CategoryType.YUL_ARCHER, 32267);
  37. +       AWAKE_POWER.put(CategoryType.FEOH_WIZARD, 32268);
  38. +       AWAKE_POWER.put(CategoryType.WYNN_SUMMONER, 32269);
  39. +       AWAKE_POWER.put(CategoryType.ISS_ENCHANTER, 32270);
  40. +       AWAKE_POWER.put(CategoryType.AEORE_HEALER, 32271);
  41. +   }
  42. +  
  43.     // Location
  44.     private static final Location TELEPORT_1 = new Location(-78670, 251026, -2960);
  45.     private static final Location TELEPORT_2 = new Location(-14180, 123840, -3120);
  46. @@ -146,6 +164,15 @@
  47.                 if (qs.isCond(6))
  48.                 {
  49.                     addExpAndSp(player, 14281098, 12852);
  50. +                   player.broadcastPacket(new SocialAction(player.getObjectId(), 20));
  51. +                       for (Entry<CategoryType, Integer> ent : AWAKE_POWER.entrySet())
  52. +                       {
  53. +                           if (player.isInCategory(ent.getKey()))
  54. +                           {
  55. +                               giveItems(player, ent.getValue(), 1);
  56. +                               break;
  57. +                           }
  58. +                       }
  59.                     giveItems(player, CHAOS_POMANDER, 2);
  60.                     qs.exitQuest(false, true);
  61.                     if (CategoryData.getInstance().isInCategory(CategoryType.FOURTH_CLASS_GROUP, player.getClassId().getId()) || //
  62. Index: java/org/l2jmobius/gameserver/enums/CategoryType.java
  63. ===================================================================
  64. --- java/org/l2jmobius/gameserver/enums/CategoryType.java   (revision 6521)
  65. +++ java/org/l2jmobius/gameserver/enums/CategoryType.java   (working copy)
  66. @@ -34,6 +34,14 @@
  67.     FOURTH_CLASS_GROUP,
  68.     EQUIP_ENABLE_R,
  69.     FIFTH_CLASS_GROUP,
  70. +   SIGEL_KNIGHT,
  71. +   TIRR_WARRIOR,
  72. +   OTHELL_ROGUE,
  73. +   YUL_ARCHER,
  74. +   FEOH_WIZARD,
  75. +   WYNN_SUMMONER,
  76. +   ISS_ENCHANTER,
  77. +   AEORE_HEALER,
  78.     SIXTH_CLASS_GROUP,
  79.     SIXTH_SIGEL_GROUP,
  80.     SIXTH_TIR_GROUP,
  81. Index: dist/game/data/CategoryData.xml
  82. ===================================================================
  83. --- dist/game/data/CategoryData.xml (revision 6521)
  84. +++ dist/game/data/CategoryData.xml (working copy)
  85. @@ -584,6 +584,58 @@
  86.         <id>145</id> <!-- wynn_summoner -->
  87.         <id>146</id> <!-- eolh_healer -->
  88.     </category>
  89. +   <category name="SIGEL_KNIGHT">
  90. +       <id>90</id> <!-- phoenix_knight -->
  91. +       <id>91</id> <!-- hell_knight -->
  92. +       <id>99</id> <!-- evas_templar -->
  93. +       <id>106</id> <!-- shillien_templar -->
  94. +   </category>
  95. +   <category name="TIRR_WARRIOR">
  96. +       <id>89</id> <!-- dreadnought -->
  97. +       <id>88</id> <!-- duelist -->
  98. +       <id>113</id> <!-- titan -->
  99. +       <id>114</id> <!-- grand_khavatari -->
  100. +       <id>118</id> <!-- maestro -->
  101. +       <id>131</id> <!-- doombringer -->
  102. +   </category>
  103. +   <category name="OTHELL_ROGUE">
  104. +       <id>93</id> <!-- adventurer -->
  105. +       <id>101</id> <!-- wind_rider -->
  106. +       <id>108</id> <!-- ghost_hunter -->
  107. +       <id>117</id> <!-- fortune_seeker -->
  108. +   </category>
  109. +   <category name="YUL_ARCHER">
  110. +       <id>92</id> <!-- sagittarius -->
  111. +       <id>102</id> <!-- moonlight_sentinel -->
  112. +       <id>109</id> <!-- ghost_sentinel -->
  113. +       <id>134</id> <!-- trickster -->
  114. +   </category>
  115. +   <category name="WYNN_SUMMONER">
  116. +       <id>96</id> <!-- arcana_lord -->
  117. +       <id>104</id> <!-- elemental_master -->
  118. +       <id>111</id> <!-- spectral_master -->
  119. +   </category>
  120. +   <category name="ISS_ENCHANTER">
  121. +       <id>98</id> <!-- hierophant -->
  122. +       <id>116</id> <!-- doomcryer -->
  123. +       <id>115</id> <!-- dominator -->
  124. +       <id>100</id> <!-- sword_muse -->
  125. +       <id>107</id> <!-- spectral_dancer -->
  126. +       <id>136</id> <!-- judicator -->
  127. +   </category>
  128. +   <category name="FEOH_WIZARD">
  129. +       <id>94</id> <!-- archmage -->
  130. +       <id>95</id> <!-- soultaker -->
  131. +       <id>103</id> <!-- mystic_muse -->
  132. +       <id>110</id> <!-- storm_screamer -->
  133. +       <id>132</id> <!-- m_soul_hound -->
  134. +       <id>133</id> <!-- f_soul_hound -->
  135. +   </category>
  136. +   <category name="AEORE_HEALER">
  137. +       <id>97</id> <!-- cardinal -->
  138. +       <id>105</id> <!-- evas_saint -->
  139. +       <id>112</id> <!-- shillien_saint -->
  140. +   </category>
  141.     <category name="SIXTH_CLASS_GROUP">
  142.         <id>148</id> <!-- Sigel Phoenix Knight -->
  143.         <id>149</id> <!-- Sigel Hell Knight -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement