Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ### Eclipse Workspace Patch 1.0
- #P L2J_Mobius_7.0_PreludeOfWar
- Index: dist/game/data/scripts/quests/Q11027_PathOfDestinyOvercome/Q11027_PathOfDestinyOvercome.java
- ===================================================================
- --- dist/game/data/scripts/quests/Q11027_PathOfDestinyOvercome/Q11027_PathOfDestinyOvercome.java (revision 6521)
- +++ dist/game/data/scripts/quests/Q11027_PathOfDestinyOvercome/Q11027_PathOfDestinyOvercome.java (working copy)
- @@ -16,6 +16,10 @@
- */
- package quests.Q11027_PathOfDestinyOvercome;
- +import java.util.HashMap;
- +import java.util.Map;
- +import java.util.Map.Entry;
- +
- import org.l2jmobius.Config;
- import org.l2jmobius.gameserver.data.xml.impl.CategoryData;
- import org.l2jmobius.gameserver.enums.CategoryType;
- @@ -33,6 +37,7 @@
- import org.l2jmobius.gameserver.model.quest.State;
- import org.l2jmobius.gameserver.network.NpcStringId;
- import org.l2jmobius.gameserver.network.serverpackets.classchange.ExRequestClassChangeUi;
- +import org.l2jmobius.gameserver.network.serverpackets.SocialAction;
- import quests.Q11026_PathOfDestinyConviction.Q11026_PathOfDestinyConviction;
- @@ -52,6 +57,19 @@
- private static final int ATELIA = 39542;
- // Reward
- private static final int CHAOS_POMANDER = 37374;
- + private static final Map<CategoryType, Integer> AWAKE_POWER = new HashMap<>();
- + static
- + {
- + AWAKE_POWER.put(CategoryType.SIGEL_KNIGHT, 32264);
- + AWAKE_POWER.put(CategoryType.TIRR_WARRIOR, 32265);
- + AWAKE_POWER.put(CategoryType.OTHELL_ROGUE, 32266);
- + AWAKE_POWER.put(CategoryType.YUL_ARCHER, 32267);
- + AWAKE_POWER.put(CategoryType.FEOH_WIZARD, 32268);
- + AWAKE_POWER.put(CategoryType.WYNN_SUMMONER, 32269);
- + AWAKE_POWER.put(CategoryType.ISS_ENCHANTER, 32270);
- + AWAKE_POWER.put(CategoryType.AEORE_HEALER, 32271);
- + }
- +
- // Location
- private static final Location TELEPORT_1 = new Location(-78670, 251026, -2960);
- private static final Location TELEPORT_2 = new Location(-14180, 123840, -3120);
- @@ -146,6 +164,15 @@
- if (qs.isCond(6))
- {
- addExpAndSp(player, 14281098, 12852);
- + player.broadcastPacket(new SocialAction(player.getObjectId(), 20));
- + for (Entry<CategoryType, Integer> ent : AWAKE_POWER.entrySet())
- + {
- + if (player.isInCategory(ent.getKey()))
- + {
- + giveItems(player, ent.getValue(), 1);
- + break;
- + }
- + }
- giveItems(player, CHAOS_POMANDER, 2);
- qs.exitQuest(false, true);
- if (CategoryData.getInstance().isInCategory(CategoryType.FOURTH_CLASS_GROUP, player.getClassId().getId()) || //
- Index: java/org/l2jmobius/gameserver/enums/CategoryType.java
- ===================================================================
- --- java/org/l2jmobius/gameserver/enums/CategoryType.java (revision 6521)
- +++ java/org/l2jmobius/gameserver/enums/CategoryType.java (working copy)
- @@ -34,6 +34,14 @@
- FOURTH_CLASS_GROUP,
- EQUIP_ENABLE_R,
- FIFTH_CLASS_GROUP,
- + SIGEL_KNIGHT,
- + TIRR_WARRIOR,
- + OTHELL_ROGUE,
- + YUL_ARCHER,
- + FEOH_WIZARD,
- + WYNN_SUMMONER,
- + ISS_ENCHANTER,
- + AEORE_HEALER,
- SIXTH_CLASS_GROUP,
- SIXTH_SIGEL_GROUP,
- SIXTH_TIR_GROUP,
- Index: dist/game/data/CategoryData.xml
- ===================================================================
- --- dist/game/data/CategoryData.xml (revision 6521)
- +++ dist/game/data/CategoryData.xml (working copy)
- @@ -584,6 +584,58 @@
- <id>145</id> <!-- wynn_summoner -->
- <id>146</id> <!-- eolh_healer -->
- </category>
- + <category name="SIGEL_KNIGHT">
- + <id>90</id> <!-- phoenix_knight -->
- + <id>91</id> <!-- hell_knight -->
- + <id>99</id> <!-- evas_templar -->
- + <id>106</id> <!-- shillien_templar -->
- + </category>
- + <category name="TIRR_WARRIOR">
- + <id>89</id> <!-- dreadnought -->
- + <id>88</id> <!-- duelist -->
- + <id>113</id> <!-- titan -->
- + <id>114</id> <!-- grand_khavatari -->
- + <id>118</id> <!-- maestro -->
- + <id>131</id> <!-- doombringer -->
- + </category>
- + <category name="OTHELL_ROGUE">
- + <id>93</id> <!-- adventurer -->
- + <id>101</id> <!-- wind_rider -->
- + <id>108</id> <!-- ghost_hunter -->
- + <id>117</id> <!-- fortune_seeker -->
- + </category>
- + <category name="YUL_ARCHER">
- + <id>92</id> <!-- sagittarius -->
- + <id>102</id> <!-- moonlight_sentinel -->
- + <id>109</id> <!-- ghost_sentinel -->
- + <id>134</id> <!-- trickster -->
- + </category>
- + <category name="WYNN_SUMMONER">
- + <id>96</id> <!-- arcana_lord -->
- + <id>104</id> <!-- elemental_master -->
- + <id>111</id> <!-- spectral_master -->
- + </category>
- + <category name="ISS_ENCHANTER">
- + <id>98</id> <!-- hierophant -->
- + <id>116</id> <!-- doomcryer -->
- + <id>115</id> <!-- dominator -->
- + <id>100</id> <!-- sword_muse -->
- + <id>107</id> <!-- spectral_dancer -->
- + <id>136</id> <!-- judicator -->
- + </category>
- + <category name="FEOH_WIZARD">
- + <id>94</id> <!-- archmage -->
- + <id>95</id> <!-- soultaker -->
- + <id>103</id> <!-- mystic_muse -->
- + <id>110</id> <!-- storm_screamer -->
- + <id>132</id> <!-- m_soul_hound -->
- + <id>133</id> <!-- f_soul_hound -->
- + </category>
- + <category name="AEORE_HEALER">
- + <id>97</id> <!-- cardinal -->
- + <id>105</id> <!-- evas_saint -->
- + <id>112</id> <!-- shillien_saint -->
- + </category>
- <category name="SIXTH_CLASS_GROUP">
- <id>148</id> <!-- Sigel Phoenix Knight -->
- <id>149</id> <!-- Sigel Hell Knight -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement