Advertisement
Guest User

Untitled

a guest
Jul 1st, 2022
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 17.51 KB | None | 0 0
  1. diff --git a/L2J_Mobius_C4_ScionsOfDestiny/.gitignore b/L2J_Mobius_C4_ScionsOfDestiny/.gitignore
  2. new file mode 100644
  3. index 0000000..ae3c172
  4. --- /dev/null
  5. +++ b/L2J_Mobius_C4_ScionsOfDestiny/.gitignore
  6. @@ -0,0 +1 @@
  7. +/bin/
  8. diff --git a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/config/General.ini b/L2J_Mobius_C4_ScionsOfDestiny/dist/game/config/General.ini
  9. index b462ee8..c3729b6 100644
  10. --- a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/config/General.ini
  11. +++ b/L2J_Mobius_C4_ScionsOfDestiny/dist/game/config/General.ini
  12. @@ -461,6 +461,11 @@
  13.  # Default: 10
  14.  WearPrice = 10
  15.  
  16. +# Disable additional adena rewards for starter villages repeatable quests based on turning in items
  17. +# True = additional reward for 10+ items not given on quest turn in, False = get additional reward for 10+ items on quest turn in
  18. +# ATTENTION: enabling this option greatly decrease adena income capabilities on low levels.
  19. +# Default: False
  20. +AltVillagesRepQuestReward = False
  21.  
  22.  # ---------------------------------------------------------------------------
  23.  # Enable/Disable features
  24. diff --git a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q257_TheGuardIsBusy/Q257_TheGuardIsBusy.java b/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q257_TheGuardIsBusy/Q257_TheGuardIsBusy.java
  25. index 7dd5655..a0ecb58 100644
  26. --- a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q257_TheGuardIsBusy/Q257_TheGuardIsBusy.java
  27. +++ b/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q257_TheGuardIsBusy/Q257_TheGuardIsBusy.java
  28. @@ -16,6 +16,7 @@
  29.   */
  30.  package quests.Q257_TheGuardIsBusy;
  31.  
  32. +import org.l2jmobius.Config;
  33.  import org.l2jmobius.gameserver.enums.Race;
  34.  import org.l2jmobius.gameserver.model.actor.Npc;
  35.  import org.l2jmobius.gameserver.model.actor.Player;
  36. @@ -104,8 +105,8 @@
  37.                     st.takeItems(ORC_NECKLACE, -1);
  38.                     st.takeItems(WEREWOLF_FANG, -1);
  39.                    
  40. -                   int reward = (10 * amulets) + (20 * (necklaces + fangs));
  41. -                   if ((amulets + necklaces + fangs) >= 10)
  42. +                   int reward = (5 * amulets) + (10 * fangs) + (15 * necklaces);
  43. +                   if (!Config.ALT_VILLAGES_REPEATABLE_QUEST_REWARD && ((amulets + necklaces + fangs) >= 10))
  44.                     {
  45.                         reward += 1000;
  46.                     }
  47. diff --git a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q259_RanchersPlea/Q259_RanchersPlea.java b/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q259_RanchersPlea/Q259_RanchersPlea.java
  48. index d827e3e..867abe2 100644
  49. --- a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q259_RanchersPlea/Q259_RanchersPlea.java
  50. +++ b/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q259_RanchersPlea/Q259_RanchersPlea.java
  51. @@ -16,6 +16,7 @@
  52.   */
  53.  package quests.Q259_RanchersPlea;
  54.  
  55. +import org.l2jmobius.Config;
  56.  import org.l2jmobius.gameserver.model.actor.Npc;
  57.  import org.l2jmobius.gameserver.model.actor.Player;
  58.  import org.l2jmobius.gameserver.model.quest.Quest;
  59. @@ -141,7 +142,12 @@
  60.                         {
  61.                             htmltext = "30497-05.htm";
  62.                             st.takeItems(GIANT_SPIDER_SKIN, -1);
  63. -                           st.rewardItems(ADENA, ((count >= 10) ? 250 : 0) + (count * 25));
  64. +                           int reward = count * 25;
  65. +                           if (!Config.ALT_VILLAGES_REPEATABLE_QUEST_REWARD && (count >= 10))
  66. +                           {
  67. +                               reward += 250;
  68. +                           }
  69. +                           st.rewardItems(ADENA, reward);
  70.                         }
  71.                         break;
  72.                     }
  73. diff --git a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q260_HuntTheOrcs/Q260_HuntTheOrcs.java b/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q260_HuntTheOrcs/Q260_HuntTheOrcs.java
  74. index 3553780..93ab129 100644
  75. --- a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q260_HuntTheOrcs/Q260_HuntTheOrcs.java
  76. +++ b/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q260_HuntTheOrcs/Q260_HuntTheOrcs.java
  77. @@ -16,6 +16,7 @@
  78.   */
  79.  package quests.Q260_HuntTheOrcs;
  80.  
  81. +import org.l2jmobius.Config;
  82.  import org.l2jmobius.gameserver.enums.Race;
  83.  import org.l2jmobius.gameserver.model.actor.Npc;
  84.  import org.l2jmobius.gameserver.model.actor.Player;
  85. @@ -116,7 +117,13 @@
  86.                     htmltext = "30221-05.htm";
  87.                     st.takeItems(ORC_AMULET, -1);
  88.                     st.takeItems(ORC_NECKLACE, -1);
  89. -                   st.rewardItems(57, (amulet * 5) + (necklace * 15));
  90. +                   int reward = (amulet * 5) + (necklace * 15);
  91. +                   if (!Config.ALT_VILLAGES_REPEATABLE_QUEST_REWARD && ((amulet + necklace) >= 10))
  92. +                   {
  93. +                       reward += 1000;
  94. +                   }
  95. +                  
  96. +                   st.rewardItems(57, reward);
  97.                     // Give newbie reward if player is eligible
  98.                     int newPlayerRewardsReceived = player.getVariables().getInt(PlayerVariables.NEW_PLAYERS_REWARDS_RECEIVED, 0);
  99.                     if (player.isNewbie() && (st.getInt("Reward") == 0) && (newPlayerRewardsReceived < 2))
  100. diff --git a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q263_OrcSubjugation/Q263_OrcSubjugation.java b/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q263_OrcSubjugation/Q263_OrcSubjugation.java
  101. index 9f95a28..25d5068 100644
  102. --- a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q263_OrcSubjugation/Q263_OrcSubjugation.java
  103. +++ b/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q263_OrcSubjugation/Q263_OrcSubjugation.java
  104. @@ -16,6 +16,7 @@
  105.   */
  106.  package quests.Q263_OrcSubjugation;
  107.  
  108. +import org.l2jmobius.Config;
  109.  import org.l2jmobius.gameserver.enums.Race;
  110.  import org.l2jmobius.gameserver.model.actor.Npc;
  111.  import org.l2jmobius.gameserver.model.actor.Player;
  112. @@ -102,7 +103,14 @@
  113.                     htmltext = "30346-05.htm";
  114.                     st.takeItems(ORC_AMULET, -1);
  115.                     st.takeItems(ORC_NECKLACE, -1);
  116. -                   st.rewardItems(57, (amulet * 20) + (necklace * 30));
  117. +                   int reward = (amulet * 20) + (necklace * 30);
  118. +                   if (!Config.ALT_VILLAGES_REPEATABLE_QUEST_REWARD && ((amulet + necklace) >= 10))
  119. +                   {
  120. +                       reward += 1000;
  121. +                   }
  122. +                  
  123. +                   st.rewardItems(57, reward);
  124. +                  
  125.                 }
  126.                 break;
  127.             }
  128. diff --git a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q265_ChainsOfSlavery/Q265_ChainsOfSlavery.java b/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q265_ChainsOfSlavery/Q265_ChainsOfSlavery.java
  129. index 3be81a9..2bfe030 100644
  130. --- a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q265_ChainsOfSlavery/Q265_ChainsOfSlavery.java
  131. +++ b/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q265_ChainsOfSlavery/Q265_ChainsOfSlavery.java
  132. @@ -16,6 +16,7 @@
  133.   */
  134.  package quests.Q265_ChainsOfSlavery;
  135.  
  136. +import org.l2jmobius.Config;
  137.  import org.l2jmobius.gameserver.enums.Race;
  138.  import org.l2jmobius.gameserver.model.actor.Npc;
  139.  import org.l2jmobius.gameserver.model.actor.Player;
  140. @@ -102,7 +103,7 @@
  141.                 else
  142.                 {
  143.                     int reward = 12 * shackles;
  144. -                   if (shackles > 10)
  145. +                   if (!Config.ALT_VILLAGES_REPEATABLE_QUEST_REWARD && (shackles >= 10))
  146.                     {
  147.                         reward += 500;
  148.                     }
  149. diff --git a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q267_WrathOfVerdure/Q267_WrathOfVerdure.java b/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q267_WrathOfVerdure/Q267_WrathOfVerdure.java
  150. index 156d988..eb94b18 100644
  151. --- a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q267_WrathOfVerdure/Q267_WrathOfVerdure.java
  152. +++ b/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q267_WrathOfVerdure/Q267_WrathOfVerdure.java
  153. @@ -16,6 +16,7 @@
  154.   */
  155.  package quests.Q267_WrathOfVerdure;
  156.  
  157. +import org.l2jmobius.Config;
  158.  import org.l2jmobius.gameserver.enums.Race;
  159.  import org.l2jmobius.gameserver.model.actor.Npc;
  160.  import org.l2jmobius.gameserver.model.actor.Player;
  161. @@ -98,6 +99,10 @@
  162.                     htmltext = "31853-05.htm";
  163.                     st.takeItems(GOBLIN_CLUB, -1);
  164.                     st.rewardItems(SILVERY_LEAF, count);
  165. +                   if (!Config.ALT_VILLAGES_REPEATABLE_QUEST_REWARD && (count >= 10))
  166. +                   {
  167. +                       st.rewardItems(57, 600);
  168. +                   }
  169.                 }
  170.                 else
  171.                 {
  172. diff --git a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q273_InvadersOfTheHolyLand/Q273_InvadersOfTheHolyLand.java b/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q273_InvadersOfTheHolyLand/Q273_InvadersOfTheHolyLand.java
  173. index 9afc5f2..9ac3147 100644
  174. --- a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q273_InvadersOfTheHolyLand/Q273_InvadersOfTheHolyLand.java
  175. +++ b/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q273_InvadersOfTheHolyLand/Q273_InvadersOfTheHolyLand.java
  176. @@ -16,6 +16,7 @@
  177.   */
  178.  package quests.Q273_InvadersOfTheHolyLand;
  179.  
  180. +import org.l2jmobius.Config;
  181.  import org.l2jmobius.gameserver.enums.Race;
  182.  import org.l2jmobius.gameserver.model.actor.Npc;
  183.  import org.l2jmobius.gameserver.model.actor.Player;
  184. @@ -111,7 +112,12 @@
  185.                         htmltext = "30566-06.htm";
  186.                     }
  187.                    
  188. -                   final int reward = (black * 3) + (red * 10) + ((black >= 10) ? ((red >= 1) ? 1800 : 1500) : 0);
  189. +                   int reward = (black * 5) + (red * 50);
  190. +                   if (!Config.ALT_VILLAGES_REPEATABLE_QUEST_REWARD)
  191. +                   {
  192. +                       reward += ((black >= 10) ? ((red >= 1) ? 1800 : 1500) : 0);
  193. +                   }
  194. +                  
  195.                     st.takeItems(BLACK_SOULSTONE, -1);
  196.                     st.takeItems(RED_SOULSTONE, -1);
  197.                     st.rewardItems(57, reward);
  198. diff --git a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q292_BrigandsSweep/Q292_BrigandsSweep.java b/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q292_BrigandsSweep/Q292_BrigandsSweep.java
  199. index a81e21f..c9b973b 100644
  200. --- a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q292_BrigandsSweep/Q292_BrigandsSweep.java
  201. +++ b/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q292_BrigandsSweep/Q292_BrigandsSweep.java
  202. @@ -16,6 +16,7 @@
  203.   */
  204.  package quests.Q292_BrigandsSweep;
  205.  
  206. +import org.l2jmobius.Config;
  207.  import org.l2jmobius.gameserver.enums.Race;
  208.  import org.l2jmobius.gameserver.model.actor.Npc;
  209.  import org.l2jmobius.gameserver.model.actor.Player;
  210. @@ -148,7 +149,13 @@
  211.                                 st.takeItems(SUSPICIOUS_CONTRACT, -1);
  212.                             }
  213.                            
  214. -                           st.rewardItems(57, ((12 * goblinNecklaces) + (36 * goblinPendants) + (33 * goblinLordPendants) + (countAll >= 10 ? 1000 : 0) + ((hasContract) ? 1120 : 0)));
  215. +                           int reward = (12 * goblinNecklaces) + (36 * goblinPendants) + (33 * goblinLordPendants) + ((hasContract) ? 1120 : 0);
  216. +                           if (!Config.ALT_VILLAGES_REPEATABLE_QUEST_REWARD && (countAll >= 10))
  217. +                           {
  218. +                               reward += 1000;
  219. +                           }
  220. +                          
  221. +                           st.rewardItems(57, reward);
  222.                         }
  223.                         break;
  224.                     }
  225. diff --git a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q293_TheHiddenVeins/Q293_TheHiddenVeins.java b/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q293_TheHiddenVeins/Q293_TheHiddenVeins.java
  226. index 0643899..458325e 100644
  227. --- a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q293_TheHiddenVeins/Q293_TheHiddenVeins.java
  228. +++ b/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q293_TheHiddenVeins/Q293_TheHiddenVeins.java
  229. @@ -16,6 +16,7 @@
  230.   */
  231.  package quests.Q293_TheHiddenVeins;
  232.  
  233. +import org.l2jmobius.Config;
  234.  import org.l2jmobius.gameserver.enums.Race;
  235.  import org.l2jmobius.gameserver.model.actor.Npc;
  236.  import org.l2jmobius.gameserver.model.actor.Player;
  237. @@ -146,9 +147,14 @@
  238.                                 htmltext = "30535-05.htm";
  239.                             }
  240.                            
  241. -                           final int reward = (chrysoliteOres * 5) + (hiddenVeinMaps * 500) + ((chrysoliteOres >= 10) ? 2000 : 0);
  242.                             st.takeItems(CHRYSOLITE_ORE, -1);
  243.                             st.takeItems(HIDDEN_VEIN_MAP, -1);
  244. +                           int reward = (chrysoliteOres * 10) + (hiddenVeinMaps * 1000);
  245. +                           if (!Config.ALT_VILLAGES_REPEATABLE_QUEST_REWARD && (chrysoliteOres >= 10))
  246. +                           {
  247. +                               reward += 2000;
  248. +                           }
  249. +                          
  250.                             st.rewardItems(57, reward);
  251.                             // Give newbie reward if player is eligible
  252.                             int newPlayerRewardsReceived = player.getVariables().getInt(PlayerVariables.NEW_PLAYERS_REWARDS_RECEIVED, 0);
  253. diff --git a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q296_TarantulasSpiderSilk/Q296_TarantulasSpiderSilk.java b/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q296_TarantulasSpiderSilk/Q296_TarantulasSpiderSilk.java
  254. index 3418ec4..4190ec5 100644
  255. --- a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q296_TarantulasSpiderSilk/Q296_TarantulasSpiderSilk.java
  256. +++ b/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q296_TarantulasSpiderSilk/Q296_TarantulasSpiderSilk.java
  257. @@ -16,6 +16,7 @@
  258.   */
  259.  package quests.Q296_TarantulasSpiderSilk;
  260.  
  261. +import org.l2jmobius.Config;
  262.  import org.l2jmobius.gameserver.model.actor.Npc;
  263.  import org.l2jmobius.gameserver.model.actor.Player;
  264.  import org.l2jmobius.gameserver.model.quest.Quest;
  265. @@ -123,7 +124,14 @@
  266.                         {
  267.                             htmltext = "30519-05.htm";
  268.                             st.takeItems(TARANTULA_SPIDER_SILK, -1);
  269. -                           st.rewardItems(57, ((count >= 10) ? 2000 : 0) + (count * 30));
  270. +                          
  271. +                           int reward = count * 20;
  272. +                           if (!Config.ALT_VILLAGES_REPEATABLE_QUEST_REWARD && (count >= 10))
  273. +                           {
  274. +                               reward += 2000;
  275. +                           }
  276. +                          
  277. +                           st.rewardItems(57, reward);
  278.                         }
  279.                         break;
  280.                     }
  281. diff --git a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q306_CrystalsOfFireAndIce/Q306_CrystalsOfFireAndIce.java b/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q306_CrystalsOfFireAndIce/Q306_CrystalsOfFireAndIce.java
  282. index f151544..ce90799 100644
  283. --- a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q306_CrystalsOfFireAndIce/Q306_CrystalsOfFireAndIce.java
  284. +++ b/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q306_CrystalsOfFireAndIce/Q306_CrystalsOfFireAndIce.java
  285. @@ -16,6 +16,7 @@
  286.   */
  287.  package quests.Q306_CrystalsOfFireAndIce;
  288.  
  289. +import org.l2jmobius.Config;
  290.  import org.l2jmobius.gameserver.model.actor.Npc;
  291.  import org.l2jmobius.gameserver.model.actor.Player;
  292.  import org.l2jmobius.gameserver.model.quest.Quest;
  293. @@ -102,7 +103,14 @@
  294.                     htmltext = "30004-05.htm";
  295.                     st.takeItems(FLAME_SHARD, -1);
  296.                     st.takeItems(ICE_SHARD, -1);
  297. -                   st.rewardItems(57, (30 * totalItems) + ((totalItems > 10) ? 5000 : 0));
  298. +                  
  299. +                   int reward = totalItems * 60;
  300. +                   if (!Config.ALT_VILLAGES_REPEATABLE_QUEST_REWARD && (totalItems >= 10))
  301. +                   {
  302. +                       reward += 5000;
  303. +                   }
  304. +                  
  305. +                   st.rewardItems(57, reward);
  306.                 }
  307.                 break;
  308.             }
  309. diff --git a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q316_DestroyPlagueCarriers/Q316_DestroyPlagueCarriers.java b/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q316_DestroyPlagueCarriers/Q316_DestroyPlagueCarriers.java
  310. index 72ce607..33d53f9 100644
  311. --- a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q316_DestroyPlagueCarriers/Q316_DestroyPlagueCarriers.java
  312. +++ b/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q316_DestroyPlagueCarriers/Q316_DestroyPlagueCarriers.java
  313. @@ -16,6 +16,7 @@
  314.   */
  315.  package quests.Q316_DestroyPlagueCarriers;
  316.  
  317. +import org.l2jmobius.Config;
  318.  import org.l2jmobius.gameserver.enums.Race;
  319.  import org.l2jmobius.gameserver.model.actor.Npc;
  320.  import org.l2jmobius.gameserver.model.actor.Player;
  321. @@ -106,7 +107,14 @@
  322.                     htmltext = "30155-07.htm";
  323.                     st.takeItems(WERERAT_FANG, -1);
  324.                     st.takeItems(VAROOL_FOULCLAW_FANG, -1);
  325. -                   st.rewardItems(57, (ratFangs * 30) + (varoolFangs * 10000) + ((ratFangs > 10) ? 5000 : 0));
  326. +                  
  327. +                   int reward = (ratFangs * 60) + (varoolFangs * 10000);
  328. +                   if (!Config.ALT_VILLAGES_REPEATABLE_QUEST_REWARD && (ratFangs >= 10))
  329. +                   {
  330. +                       reward += 5000;
  331. +                   }
  332. +                  
  333. +                   st.rewardItems(57, reward);
  334.                 }
  335.                 break;
  336.             }
  337. diff --git a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q317_CatchTheWind/Q317_CatchTheWind.java b/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q317_CatchTheWind/Q317_CatchTheWind.java
  338. index 67b258c..258430b 100644
  339. --- a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q317_CatchTheWind/Q317_CatchTheWind.java
  340. +++ b/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q317_CatchTheWind/Q317_CatchTheWind.java
  341. @@ -16,6 +16,7 @@
  342.   */
  343.  package quests.Q317_CatchTheWind;
  344.  
  345. +import org.l2jmobius.Config;
  346.  import org.l2jmobius.gameserver.model.actor.Npc;
  347.  import org.l2jmobius.gameserver.model.actor.Player;
  348.  import org.l2jmobius.gameserver.model.quest.Quest;
  349. @@ -87,7 +88,14 @@
  350.                 {
  351.                     htmltext = "30361-07.htm";
  352.                     st.takeItems(WIND_SHARD, -1);
  353. -                   st.rewardItems(57, (40 * shards) + (shards >= 10 ? 2988 : 0));
  354. +                  
  355. +                   int reward = 30 * shards;
  356. +                   if (!Config.ALT_VILLAGES_REPEATABLE_QUEST_REWARD && (shards >= 10))
  357. +                   {
  358. +                       reward += 2988;
  359. +                   }
  360. +                  
  361. +                   st.rewardItems(57, reward);
  362.                 }
  363.                 break;
  364.             }
  365. diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/Config.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/Config.java
  366. index 2f23cff..b584ee4 100644
  367. --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/Config.java
  368. +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/Config.java
  369. @@ -156,6 +156,7 @@
  370.     public static boolean ALLOW_WEAR;
  371.     public static int WEAR_DELAY;
  372.     public static int WEAR_PRICE;
  373. +   public static boolean ALT_VILLAGES_REPEATABLE_QUEST_REWARD;
  374.     public static boolean ALLOW_LOTTERY;
  375.     public static boolean ALLOW_RACE;
  376.     public static boolean ALLOW_RENTPET;
  377. @@ -1424,6 +1425,7 @@
  378.         ALLOW_WEAR = generalConfig.getBoolean("AllowWear", false);
  379.         WEAR_DELAY = generalConfig.getInt("WearDelay", 5);
  380.         WEAR_PRICE = generalConfig.getInt("WearPrice", 10);
  381. +       ALT_VILLAGES_REPEATABLE_QUEST_REWARD = generalConfig.getBoolean("AltVillagesRepQuestReward", false);
  382.         ALLOW_LOTTERY = generalConfig.getBoolean("AllowLottery", false);
  383.         ALLOW_RACE = generalConfig.getBoolean("AllowRace", false);
  384.         ALLOW_RENTPET = generalConfig.getBoolean("AllowRentPet", false);
  385.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement