Advertisement
Guest User

Untitled

a guest
Jun 29th, 2022
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 67.78 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/Q011_SecretMeetingWithKetraOrcs/Q011_SecretMeetingWithKetraOrcs.java b/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q011_SecretMeetingWithKetraOrcs/Q011_SecretMeetingWithKetraOrcs.java
  25. index 87bb409..a2e5b6f 100644
  26. --- a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q011_SecretMeetingWithKetraOrcs/Q011_SecretMeetingWithKetraOrcs.java
  27. +++ b/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q011_SecretMeetingWithKetraOrcs/Q011_SecretMeetingWithKetraOrcs.java
  28. @@ -66,7 +66,7 @@
  29.             case "31371-02.htm":
  30.             {
  31.                 st.takeItems(MUNITIONS_BOX, 1);
  32. -               st.rewardExpAndSp(79787, 0);
  33. +               st.rewardExpAndSp(79761, 0);
  34.                 st.playSound(QuestState.SOUND_FINISH);
  35.                 st.exitQuest(false);
  36.                 break;
  37. diff --git a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q101_SwordOfSolidarity/Q101_SwordOfSolidarity.java b/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q101_SwordOfSolidarity/Q101_SwordOfSolidarity.java
  38. index cc30bc9..c3e7119 100644
  39. --- a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q101_SwordOfSolidarity/Q101_SwordOfSolidarity.java
  40. +++ b/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q101_SwordOfSolidarity/Q101_SwordOfSolidarity.java
  41. @@ -22,6 +22,7 @@
  42.  import org.l2jmobius.gameserver.model.quest.Quest;
  43.  import org.l2jmobius.gameserver.model.quest.QuestState;
  44.  import org.l2jmobius.gameserver.model.quest.State;
  45. +import org.l2jmobius.gameserver.model.variables.PlayerVariables;
  46.  import org.l2jmobius.gameserver.network.serverpackets.SocialAction;
  47.  
  48.  public class Q101_SwordOfSolidarity extends Quest
  49. @@ -86,18 +87,22 @@
  50.                 st.takeItems(BROKEN_SWORD_HANDLE, 1);
  51.                 st.giveItems(SWORD_OF_SOLIDARITY, 1);
  52.                 st.giveItems(LESSER_HEALING_POT, 100);
  53. -               if (player.isNewbie())
  54. +               // Give newbie reward if player is eligible
  55. +               int newPlayerRewardsReceived = player.getVariables().getInt(PlayerVariables.NEW_PLAYERS_REWARDS_RECEIVED, 0);
  56. +               if (player.isNewbie() && (newPlayerRewardsReceived < 2))
  57.                 {
  58.                     st.showQuestionMark(26);
  59.                     if (player.isMageClass())
  60.                     {
  61.                         st.playTutorialVoice("tutorial_voice_027");
  62.                         st.giveItems(SPIRITSHOT_FOR_BEGINNERS, 3000);
  63. +                       player.getVariables().set(PlayerVariables.NEW_PLAYERS_REWARDS_RECEIVED, ++newPlayerRewardsReceived);
  64.                     }
  65.                     else
  66.                     {
  67.                         st.playTutorialVoice("tutorial_voice_026");
  68.                         st.giveItems(SOULSHOT_FOR_BEGINNERS, 7000);
  69. +                       player.getVariables().set(PlayerVariables.NEW_PLAYERS_REWARDS_RECEIVED, ++newPlayerRewardsReceived);
  70.                     }
  71.                 }
  72.                 st.giveItems(ECHO_BATTLE, 10);
  73. diff --git a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q102_SeaOfSporesFever/Q102_SeaOfSporesFever.java b/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q102_SeaOfSporesFever/Q102_SeaOfSporesFever.java
  74. index ebbb082..5c73209 100644
  75. --- a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q102_SeaOfSporesFever/Q102_SeaOfSporesFever.java
  76. +++ b/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q102_SeaOfSporesFever/Q102_SeaOfSporesFever.java
  77. @@ -22,6 +22,7 @@
  78.  import org.l2jmobius.gameserver.model.quest.Quest;
  79.  import org.l2jmobius.gameserver.model.quest.QuestState;
  80.  import org.l2jmobius.gameserver.model.quest.State;
  81. +import org.l2jmobius.gameserver.model.variables.PlayerVariables;
  82.  import org.l2jmobius.gameserver.network.serverpackets.SocialAction;
  83.  
  84.  public class Q102_SeaOfSporesFever extends Quest
  85. @@ -54,6 +55,9 @@
  86.     private static final int ECHO_SOLITUDE = 4414;
  87.     private static final int ECHO_FEAST = 4415;
  88.     private static final int ECHO_CELEBRATION = 4416;
  89. +   // Newbie Rewards
  90. +   private static final int SPIRITSHOT_FOR_BEGINNERS = 5790;
  91. +   private static final int SOULSHOT_FOR_BEGINNERS = 5789;
  92.    
  93.     public Q102_SeaOfSporesFever()
  94.     {
  95. @@ -155,6 +159,25 @@
  96.                                 st.rewardItems(SOULSHOT_NO_GRADE, 1000);
  97.                             }
  98.                            
  99. +                           // Give newbie reward if player is eligible
  100. +                           int newPlayerRewardsReceived = player.getVariables().getInt(PlayerVariables.NEW_PLAYERS_REWARDS_RECEIVED, 0);
  101. +                           if (player.isNewbie() && (newPlayerRewardsReceived < 2))
  102. +                           {
  103. +                               st.showQuestionMark(26);
  104. +                               if (player.isMageClass())
  105. +                               {
  106. +                                   st.playTutorialVoice("tutorial_voice_027");
  107. +                                   st.giveItems(SPIRITSHOT_FOR_BEGINNERS, 3000);
  108. +                                   player.getVariables().set(PlayerVariables.NEW_PLAYERS_REWARDS_RECEIVED, ++newPlayerRewardsReceived);
  109. +                               }
  110. +                               else
  111. +                               {
  112. +                                   st.playTutorialVoice("tutorial_voice_026");
  113. +                                   st.giveItems(SOULSHOT_FOR_BEGINNERS, 7000);
  114. +                                   player.getVariables().set(PlayerVariables.NEW_PLAYERS_REWARDS_RECEIVED, ++newPlayerRewardsReceived);
  115. +                               }
  116. +                           }
  117. +                          
  118.                             st.giveItems(LESSER_HEALING_POT, 100);
  119.                             st.giveItems(ECHO_BATTLE, 10);
  120.                             st.giveItems(ECHO_LOVE, 10);
  121. diff --git a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q103_SpiritOfCraftsman/Q103_SpiritOfCraftsman.java b/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q103_SpiritOfCraftsman/Q103_SpiritOfCraftsman.java
  122. index 6a1c03f..ba9bdde 100644
  123. --- a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q103_SpiritOfCraftsman/Q103_SpiritOfCraftsman.java
  124. +++ b/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q103_SpiritOfCraftsman/Q103_SpiritOfCraftsman.java
  125. @@ -22,6 +22,7 @@
  126.  import org.l2jmobius.gameserver.model.quest.Quest;
  127.  import org.l2jmobius.gameserver.model.quest.QuestState;
  128.  import org.l2jmobius.gameserver.model.quest.State;
  129. +import org.l2jmobius.gameserver.model.variables.PlayerVariables;
  130.  import org.l2jmobius.gameserver.network.serverpackets.SocialAction;
  131.  
  132.  public class Q103_SpiritOfCraftsman extends Quest
  133. @@ -134,19 +135,22 @@
  134.                             {
  135.                                 st.giveItems(SOULSHOT_NO_GRADE, 1000);
  136.                             }
  137. -                          
  138. -                           if (player.isNewbie())
  139. +                           // Give newbie reward if player is eligible
  140. +                           int newPlayerRewardsReceived = player.getVariables().getInt(PlayerVariables.NEW_PLAYERS_REWARDS_RECEIVED, 0);
  141. +                           if (player.isNewbie() && (newPlayerRewardsReceived < 2))
  142.                             {
  143.                                 st.showQuestionMark(26);
  144.                                 if (player.isMageClass())
  145.                                 {
  146.                                     st.playTutorialVoice("tutorial_voice_027");
  147.                                     st.giveItems(SPIRITSHOT_FOR_BEGINNERS, 3000);
  148. +                                   player.getVariables().set(PlayerVariables.NEW_PLAYERS_REWARDS_RECEIVED, ++newPlayerRewardsReceived);
  149.                                 }
  150.                                 else
  151.                                 {
  152.                                     st.playTutorialVoice("tutorial_voice_026");
  153.                                     st.giveItems(SOULSHOT_FOR_BEGINNERS, 7000);
  154. +                                   player.getVariables().set(PlayerVariables.NEW_PLAYERS_REWARDS_RECEIVED, ++newPlayerRewardsReceived);
  155.                                 }
  156.                             }
  157.                            
  158. diff --git a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q104_SpiritOfMirrors/Q104_SpiritOfMirrors.java b/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q104_SpiritOfMirrors/Q104_SpiritOfMirrors.java
  159. index 6f42fa2..11dd4c7 100644
  160. --- a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q104_SpiritOfMirrors/Q104_SpiritOfMirrors.java
  161. +++ b/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q104_SpiritOfMirrors/Q104_SpiritOfMirrors.java
  162. @@ -23,6 +23,7 @@
  163.  import org.l2jmobius.gameserver.model.quest.Quest;
  164.  import org.l2jmobius.gameserver.model.quest.QuestState;
  165.  import org.l2jmobius.gameserver.model.quest.State;
  166. +import org.l2jmobius.gameserver.model.variables.PlayerVariables;
  167.  import org.l2jmobius.gameserver.network.serverpackets.SocialAction;
  168.  
  169.  public class Q104_SpiritOfMirrors extends Quest
  170. @@ -139,19 +140,22 @@
  171.                             {
  172.                                 st.giveItems(SOULSHOT_NO_GRADE, 1000);
  173.                             }
  174. -                          
  175. -                           if (player.isNewbie())
  176. +                           // Give newbie reward if player is eligible
  177. +                           int newPlayerRewardsReceived = player.getVariables().getInt(PlayerVariables.NEW_PLAYERS_REWARDS_RECEIVED, 0);
  178. +                           if (player.isNewbie() && (newPlayerRewardsReceived < 2))
  179.                             {
  180.                                 st.showQuestionMark(26);
  181.                                 if (player.isMageClass())
  182.                                 {
  183.                                     st.playTutorialVoice("tutorial_voice_027");
  184.                                     st.giveItems(SPIRITSHOT_FOR_BEGINNERS, 3000);
  185. +                                   player.getVariables().set(PlayerVariables.NEW_PLAYERS_REWARDS_RECEIVED, ++newPlayerRewardsReceived);
  186.                                 }
  187.                                 else
  188.                                 {
  189.                                     st.playTutorialVoice("tutorial_voice_026");
  190.                                     st.giveItems(SOULSHOT_FOR_BEGINNERS, 7000);
  191. +                                   player.getVariables().set(PlayerVariables.NEW_PLAYERS_REWARDS_RECEIVED, ++newPlayerRewardsReceived);
  192.                                 }
  193.                             }
  194.                            
  195. diff --git a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q105_SkirmishWithTheOrcs/Q105_SkirmishWithTheOrcs.java b/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q105_SkirmishWithTheOrcs/Q105_SkirmishWithTheOrcs.java
  196. index 9e62f88..be8087b 100644
  197. --- a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q105_SkirmishWithTheOrcs/Q105_SkirmishWithTheOrcs.java
  198. +++ b/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q105_SkirmishWithTheOrcs/Q105_SkirmishWithTheOrcs.java
  199. @@ -22,6 +22,7 @@
  200.  import org.l2jmobius.gameserver.model.quest.Quest;
  201.  import org.l2jmobius.gameserver.model.quest.QuestState;
  202.  import org.l2jmobius.gameserver.model.quest.State;
  203. +import org.l2jmobius.gameserver.model.variables.PlayerVariables;
  204.  import org.l2jmobius.gameserver.network.serverpackets.SocialAction;
  205.  
  206.  public class Q105_SkirmishWithTheOrcs extends Quest
  207. @@ -51,6 +52,7 @@
  208.     private static final int SOULSHOT_FOR_BEGINNERS = 5789;
  209.     private static final int RED_SUNSET_STAFF = 754;
  210.     private static final int RED_SUNSET_SWORD = 981;
  211. +   private static final int LESSER_HEALING_POT = 1060;
  212.     private static final int ECHO_BATTLE = 4412;
  213.     private static final int ECHO_LOVE = 4413;
  214.     private static final int ECHO_SOLITUDE = 4414;
  215. @@ -153,22 +155,26 @@
  216.                     {
  217.                         st.giveItems(RED_SUNSET_SWORD, 1);
  218.                     }
  219. -                  
  220. -                   if (player.isNewbie())
  221. +                   // Give newbie reward if player is eligible
  222. +                   int newPlayerRewardsReceived = player.getVariables().getInt(PlayerVariables.NEW_PLAYERS_REWARDS_RECEIVED, 0);
  223. +                   if (player.isNewbie() && (newPlayerRewardsReceived < 2))
  224.                     {
  225.                         st.showQuestionMark(26);
  226.                         if (player.isMageClass())
  227.                         {
  228.                             st.playTutorialVoice("tutorial_voice_027");
  229.                             st.giveItems(SPIRITSHOT_FOR_BEGINNERS, 3000);
  230. +                           player.getVariables().set(PlayerVariables.NEW_PLAYERS_REWARDS_RECEIVED, ++newPlayerRewardsReceived);
  231.                         }
  232.                         else
  233.                         {
  234.                             st.playTutorialVoice("tutorial_voice_026");
  235.                             st.giveItems(SOULSHOT_FOR_BEGINNERS, 7000);
  236. +                           player.getVariables().set(PlayerVariables.NEW_PLAYERS_REWARDS_RECEIVED, ++newPlayerRewardsReceived);
  237.                         }
  238.                     }
  239.                    
  240. +                   st.rewardItems(LESSER_HEALING_POT, 100);
  241.                     st.giveItems(ECHO_BATTLE, 10);
  242.                     st.giveItems(ECHO_LOVE, 10);
  243.                     st.giveItems(ECHO_SOLITUDE, 10);
  244. diff --git a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q106_ForgottenTruth/Q106_ForgottenTruth.java b/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q106_ForgottenTruth/Q106_ForgottenTruth.java
  245. index fd7d5e0..1d53ebf 100644
  246. --- a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q106_ForgottenTruth/Q106_ForgottenTruth.java
  247. +++ b/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q106_ForgottenTruth/Q106_ForgottenTruth.java
  248. @@ -22,6 +22,7 @@
  249.  import org.l2jmobius.gameserver.model.quest.Quest;
  250.  import org.l2jmobius.gameserver.model.quest.QuestState;
  251.  import org.l2jmobius.gameserver.model.quest.State;
  252. +import org.l2jmobius.gameserver.model.variables.PlayerVariables;
  253.  import org.l2jmobius.gameserver.network.serverpackets.SocialAction;
  254.  
  255.  public class Q106_ForgottenTruth extends Quest
  256. @@ -138,19 +139,22 @@
  257.                             {
  258.                                 st.giveItems(SOULSHOT_NO_GRADE, 1000);
  259.                             }
  260. -                          
  261. -                           if (player.isNewbie())
  262. +                           // Give newbie reward if player is eligible
  263. +                           int newPlayerRewardsReceived = player.getVariables().getInt(PlayerVariables.NEW_PLAYERS_REWARDS_RECEIVED, 0);
  264. +                           if (player.isNewbie() && (newPlayerRewardsReceived < 2))
  265.                             {
  266.                                 st.showQuestionMark(26);
  267.                                 if (player.isMageClass())
  268.                                 {
  269.                                     st.playTutorialVoice("tutorial_voice_027");
  270.                                     st.giveItems(SPIRITSHOT_FOR_BEGINNERS, 3000);
  271. +                                   player.getVariables().set(PlayerVariables.NEW_PLAYERS_REWARDS_RECEIVED, ++newPlayerRewardsReceived);
  272.                                 }
  273.                                 else
  274.                                 {
  275.                                     st.playTutorialVoice("tutorial_voice_026");
  276. -                                   st.giveItems(SOULSHOT_FOR_BEGINNERS, 6000);
  277. +                                   st.giveItems(SOULSHOT_FOR_BEGINNERS, 7000);
  278. +                                   player.getVariables().set(PlayerVariables.NEW_PLAYERS_REWARDS_RECEIVED, ++newPlayerRewardsReceived);
  279.                                 }
  280.                             }
  281.                            
  282. diff --git a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q107_MercilessPunishment/Q107_MercilessPunishment.java b/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q107_MercilessPunishment/Q107_MercilessPunishment.java
  283. index 01c4cb2..7b09733 100644
  284. --- a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q107_MercilessPunishment/Q107_MercilessPunishment.java
  285. +++ b/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q107_MercilessPunishment/Q107_MercilessPunishment.java
  286. @@ -22,6 +22,7 @@
  287.  import org.l2jmobius.gameserver.model.quest.Quest;
  288.  import org.l2jmobius.gameserver.model.quest.QuestState;
  289.  import org.l2jmobius.gameserver.model.quest.State;
  290. +import org.l2jmobius.gameserver.model.variables.PlayerVariables;
  291.  import org.l2jmobius.gameserver.network.serverpackets.SocialAction;
  292.  
  293.  public class Q107_MercilessPunishment extends Quest
  294. @@ -38,7 +39,6 @@
  295.     private static final int LETTER_TO_ELF = 1558;
  296.     // Rewards
  297.     private static final int BUTCHER_SWORD = 1510;
  298. -   private static final int SPIRITSHOT_FOR_BEGINNERS = 5790;
  299.     private static final int SOULSHOT_FOR_BEGINNERS = 5789;
  300.     private static final int ECHO_BATTLE = 4412;
  301.     private static final int ECHO_LOVE = 4413;
  302. @@ -162,20 +162,14 @@
  303.                            
  304.                             st.giveItems(BUTCHER_SWORD, 1);
  305.                             st.giveItems(LESSER_HEALING_POTION, 100);
  306. -                          
  307. -                           if (player.isNewbie())
  308. +                           // Give newbie reward if player is eligible
  309. +                           int newPlayerRewardsReceived = player.getVariables().getInt(PlayerVariables.NEW_PLAYERS_REWARDS_RECEIVED, 0);
  310. +                           if (player.isNewbie() && (newPlayerRewardsReceived < 2))
  311.                             {
  312.                                 st.showQuestionMark(26);
  313. -                               if (player.isMageClass())
  314. -                               {
  315. -                                   st.playTutorialVoice("tutorial_voice_027");
  316. -                                   st.giveItems(SPIRITSHOT_FOR_BEGINNERS, 3000);
  317. -                               }
  318. -                               else
  319. -                               {
  320. -                                   st.playTutorialVoice("tutorial_voice_026");
  321. -                                   st.giveItems(SOULSHOT_FOR_BEGINNERS, 6000);
  322. -                               }
  323. +                               st.playTutorialVoice("tutorial_voice_026");
  324. +                               st.giveItems(SOULSHOT_FOR_BEGINNERS, 7000);
  325. +                               player.getVariables().set(PlayerVariables.NEW_PLAYERS_REWARDS_RECEIVED, ++newPlayerRewardsReceived);
  326.                             }
  327.                            
  328.                             st.giveItems(ECHO_BATTLE, 10);
  329. diff --git a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q108_JumbleTumbleDiamondFuss/Q108_JumbleTumbleDiamondFuss.java b/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q108_JumbleTumbleDiamondFuss/Q108_JumbleTumbleDiamondFuss.java
  330. index 984ca25..7d0bad2 100644
  331. --- a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q108_JumbleTumbleDiamondFuss/Q108_JumbleTumbleDiamondFuss.java
  332. +++ b/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q108_JumbleTumbleDiamondFuss/Q108_JumbleTumbleDiamondFuss.java
  333. @@ -22,6 +22,7 @@
  334.  import org.l2jmobius.gameserver.model.quest.Quest;
  335.  import org.l2jmobius.gameserver.model.quest.QuestState;
  336.  import org.l2jmobius.gameserver.model.quest.State;
  337. +import org.l2jmobius.gameserver.model.variables.PlayerVariables;
  338.  import org.l2jmobius.gameserver.network.serverpackets.SocialAction;
  339.  
  340.  public class Q108_JumbleTumbleDiamondFuss extends Quest
  341. @@ -184,19 +185,22 @@
  342.                             st.takeItems(STAR_DIAMOND, -1);
  343.                             st.giveItems(SILVERSMITH_HAMMER, 1);
  344.                             st.giveItems(LESSER_HEALING_POTION, 100);
  345. -                          
  346. -                           if (player.isNewbie())
  347. +                           // Give newbie reward if player is eligible
  348. +                           int newPlayerRewardsReceived = player.getVariables().getInt(PlayerVariables.NEW_PLAYERS_REWARDS_RECEIVED, 0);
  349. +                           if (player.isNewbie() && (newPlayerRewardsReceived < 2))
  350.                             {
  351.                                 st.showQuestionMark(26);
  352.                                 if (player.isMageClass())
  353.                                 {
  354.                                     st.playTutorialVoice("tutorial_voice_027");
  355.                                     st.giveItems(SPIRITSHOT_FOR_BEGINNERS, 3000);
  356. +                                   player.getVariables().set(PlayerVariables.NEW_PLAYERS_REWARDS_RECEIVED, ++newPlayerRewardsReceived);
  357.                                 }
  358.                                 else
  359.                                 {
  360.                                     st.playTutorialVoice("tutorial_voice_026");
  361. -                                   st.giveItems(SOULSHOT_FOR_BEGINNERS, 6000);
  362. +                                   st.giveItems(SOULSHOT_FOR_BEGINNERS, 7000);
  363. +                                   player.getVariables().set(PlayerVariables.NEW_PLAYERS_REWARDS_RECEIVED, ++newPlayerRewardsReceived);
  364.                                 }
  365.                             }
  366.                            
  367. diff --git a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q159_ProtectTheWaterSource/Q159_ProtectTheWaterSource.java b/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q159_ProtectTheWaterSource/Q159_ProtectTheWaterSource.java
  368. index de61ca9..7e70bea 100644
  369. --- a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q159_ProtectTheWaterSource/Q159_ProtectTheWaterSource.java
  370. +++ b/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q159_ProtectTheWaterSource/Q159_ProtectTheWaterSource.java
  371. @@ -140,7 +140,7 @@
  372.         {
  373.             st.setCond(2);
  374.         }
  375. -       else if (st.isCond(2) && st.dropItems(PLAGUE_DUST, 1, 5, 400000))
  376. +       else if (st.isCond(3) && st.dropItems(PLAGUE_DUST, 1, 5, 400000))
  377.         {
  378.             st.setCond(4);
  379.         }
  380. 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
  381. index 640367b..a0ecb58 100644
  382. --- a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q257_TheGuardIsBusy/Q257_TheGuardIsBusy.java
  383. +++ b/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q257_TheGuardIsBusy/Q257_TheGuardIsBusy.java
  384. @@ -16,11 +16,14 @@
  385.   */
  386.  package quests.Q257_TheGuardIsBusy;
  387.  
  388. +import org.l2jmobius.Config;
  389. +import org.l2jmobius.gameserver.enums.Race;
  390.  import org.l2jmobius.gameserver.model.actor.Npc;
  391.  import org.l2jmobius.gameserver.model.actor.Player;
  392.  import org.l2jmobius.gameserver.model.quest.Quest;
  393.  import org.l2jmobius.gameserver.model.quest.QuestState;
  394.  import org.l2jmobius.gameserver.model.quest.State;
  395. +import org.l2jmobius.gameserver.model.variables.PlayerVariables;
  396.  
  397.  public class Q257_TheGuardIsBusy extends Quest
  398.  {
  399. @@ -102,28 +105,31 @@
  400.                     st.takeItems(ORC_NECKLACE, -1);
  401.                     st.takeItems(WEREWOLF_FANG, -1);
  402.                    
  403. -                   int reward = (10 * amulets) + (20 * (necklaces + fangs));
  404. -                   if ((amulets + necklaces + fangs) >= 10)
  405. +                   int reward = (5 * amulets) + (10 * fangs) + (15 * necklaces);
  406. +                   if (!Config.ALT_VILLAGES_REPEATABLE_QUEST_REWARD && ((amulets + necklaces + fangs) >= 10))
  407.                     {
  408.                         reward += 1000;
  409.                     }
  410.                    
  411.                     st.rewardItems(57, reward);
  412. -                  
  413. -                   if (player.isNewbie() && (st.getInt("Reward") == 0))
  414. +                   // Give newbie reward if player is eligible
  415. +                   int newPlayerRewardsReceived = player.getVariables().getInt(PlayerVariables.NEW_PLAYERS_REWARDS_RECEIVED, 0);
  416. +                   if (player.isNewbie() && (st.getInt("Reward") == 0) && (newPlayerRewardsReceived < 2))
  417.                     {
  418.                         st.showQuestionMark(26);
  419.                         st.set("Reward", "1");
  420.                        
  421. -                       if (player.isMageClass())
  422. +                       if (player.isMageClass() && (player.getRace() != Race.ORC))
  423.                         {
  424.                             st.playTutorialVoice("tutorial_voice_027");
  425.                             st.giveItems(SPIRITSHOT_FOR_BEGINNERS, 3000);
  426. +                           player.getVariables().set(PlayerVariables.NEW_PLAYERS_REWARDS_RECEIVED, ++newPlayerRewardsReceived);
  427.                         }
  428.                         else
  429.                         {
  430.                             st.playTutorialVoice("tutorial_voice_026");
  431.                             st.giveItems(SOULSHOT_FOR_BEGINNERS, 6000);
  432. +                           player.getVariables().set(PlayerVariables.NEW_PLAYERS_REWARDS_RECEIVED, ++newPlayerRewardsReceived);
  433.                         }
  434.                     }
  435.                 }
  436. 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
  437. index d827e3e..867abe2 100644
  438. --- a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q259_RanchersPlea/Q259_RanchersPlea.java
  439. +++ b/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q259_RanchersPlea/Q259_RanchersPlea.java
  440. @@ -16,6 +16,7 @@
  441.   */
  442.  package quests.Q259_RanchersPlea;
  443.  
  444. +import org.l2jmobius.Config;
  445.  import org.l2jmobius.gameserver.model.actor.Npc;
  446.  import org.l2jmobius.gameserver.model.actor.Player;
  447.  import org.l2jmobius.gameserver.model.quest.Quest;
  448. @@ -141,7 +142,12 @@
  449.                         {
  450.                             htmltext = "30497-05.htm";
  451.                             st.takeItems(GIANT_SPIDER_SKIN, -1);
  452. -                           st.rewardItems(ADENA, ((count >= 10) ? 250 : 0) + (count * 25));
  453. +                           int reward = count * 25;
  454. +                           if (!Config.ALT_VILLAGES_REPEATABLE_QUEST_REWARD && (count >= 10))
  455. +                           {
  456. +                               reward += 250;
  457. +                           }
  458. +                           st.rewardItems(ADENA, reward);
  459.                         }
  460.                         break;
  461.                     }
  462. 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
  463. index d5b3032..93ab129 100644
  464. --- a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q260_HuntTheOrcs/Q260_HuntTheOrcs.java
  465. +++ b/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q260_HuntTheOrcs/Q260_HuntTheOrcs.java
  466. @@ -16,12 +16,14 @@
  467.   */
  468.  package quests.Q260_HuntTheOrcs;
  469.  
  470. +import org.l2jmobius.Config;
  471.  import org.l2jmobius.gameserver.enums.Race;
  472.  import org.l2jmobius.gameserver.model.actor.Npc;
  473.  import org.l2jmobius.gameserver.model.actor.Player;
  474.  import org.l2jmobius.gameserver.model.quest.Quest;
  475.  import org.l2jmobius.gameserver.model.quest.QuestState;
  476.  import org.l2jmobius.gameserver.model.quest.State;
  477. +import org.l2jmobius.gameserver.model.variables.PlayerVariables;
  478.  
  479.  public class Q260_HuntTheOrcs extends Quest
  480.  {
  481. @@ -37,6 +39,9 @@
  482.     // Items
  483.     private static final int ORC_AMULET = 1114;
  484.     private static final int ORC_NECKLACE = 1115;
  485. +   // Newbie Items
  486. +   private static final int SPIRITSHOT_FOR_BEGINNERS = 5790;
  487. +   private static final int SOULSHOT_FOR_BEGINNERS = 5789;
  488.    
  489.     public Q260_HuntTheOrcs()
  490.     {
  491. @@ -112,7 +117,33 @@
  492.                     htmltext = "30221-05.htm";
  493.                     st.takeItems(ORC_AMULET, -1);
  494.                     st.takeItems(ORC_NECKLACE, -1);
  495. -                   st.rewardItems(57, (amulet * 5) + (necklace * 15));
  496. +                   int reward = (amulet * 5) + (necklace * 15);
  497. +                   if (!Config.ALT_VILLAGES_REPEATABLE_QUEST_REWARD && ((amulet + necklace) >= 10))
  498. +                   {
  499. +                       reward += 1000;
  500. +                   }
  501. +                  
  502. +                   st.rewardItems(57, reward);
  503. +                   // Give newbie reward if player is eligible
  504. +                   int newPlayerRewardsReceived = player.getVariables().getInt(PlayerVariables.NEW_PLAYERS_REWARDS_RECEIVED, 0);
  505. +                   if (player.isNewbie() && (st.getInt("Reward") == 0) && (newPlayerRewardsReceived < 2))
  506. +                   {
  507. +                       st.showQuestionMark(26);
  508. +                       st.set("Reward", "1");
  509. +                      
  510. +                       if (player.isMageClass())
  511. +                       {
  512. +                           st.playTutorialVoice("tutorial_voice_027");
  513. +                           st.giveItems(SPIRITSHOT_FOR_BEGINNERS, 3000);
  514. +                           player.getVariables().set(PlayerVariables.NEW_PLAYERS_REWARDS_RECEIVED, ++newPlayerRewardsReceived);
  515. +                       }
  516. +                       else
  517. +                       {
  518. +                           st.playTutorialVoice("tutorial_voice_026");
  519. +                           st.giveItems(SOULSHOT_FOR_BEGINNERS, 6000);
  520. +                           player.getVariables().set(PlayerVariables.NEW_PLAYERS_REWARDS_RECEIVED, ++newPlayerRewardsReceived);
  521. +                       }
  522. +                   }
  523.                 }
  524.                 break;
  525.             }
  526. 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
  527. index 9f95a28..25d5068 100644
  528. --- a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q263_OrcSubjugation/Q263_OrcSubjugation.java
  529. +++ b/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q263_OrcSubjugation/Q263_OrcSubjugation.java
  530. @@ -16,6 +16,7 @@
  531.   */
  532.  package quests.Q263_OrcSubjugation;
  533.  
  534. +import org.l2jmobius.Config;
  535.  import org.l2jmobius.gameserver.enums.Race;
  536.  import org.l2jmobius.gameserver.model.actor.Npc;
  537.  import org.l2jmobius.gameserver.model.actor.Player;
  538. @@ -102,7 +103,14 @@
  539.                     htmltext = "30346-05.htm";
  540.                     st.takeItems(ORC_AMULET, -1);
  541.                     st.takeItems(ORC_NECKLACE, -1);
  542. -                   st.rewardItems(57, (amulet * 20) + (necklace * 30));
  543. +                   int reward = (amulet * 20) + (necklace * 30);
  544. +                   if (!Config.ALT_VILLAGES_REPEATABLE_QUEST_REWARD && ((amulet + necklace) >= 10))
  545. +                   {
  546. +                       reward += 1000;
  547. +                   }
  548. +                  
  549. +                   st.rewardItems(57, reward);
  550. +                  
  551.                 }
  552.                 break;
  553.             }
  554. 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
  555. index f221541..2bfe030 100644
  556. --- a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q265_ChainsOfSlavery/Q265_ChainsOfSlavery.java
  557. +++ b/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q265_ChainsOfSlavery/Q265_ChainsOfSlavery.java
  558. @@ -16,12 +16,14 @@
  559.   */
  560.  package quests.Q265_ChainsOfSlavery;
  561.  
  562. +import org.l2jmobius.Config;
  563.  import org.l2jmobius.gameserver.enums.Race;
  564.  import org.l2jmobius.gameserver.model.actor.Npc;
  565.  import org.l2jmobius.gameserver.model.actor.Player;
  566.  import org.l2jmobius.gameserver.model.quest.Quest;
  567.  import org.l2jmobius.gameserver.model.quest.QuestState;
  568.  import org.l2jmobius.gameserver.model.quest.State;
  569. +import org.l2jmobius.gameserver.model.variables.PlayerVariables;
  570.  
  571.  public class Q265_ChainsOfSlavery extends Quest
  572.  {
  573. @@ -101,7 +103,7 @@
  574.                 else
  575.                 {
  576.                     int reward = 12 * shackles;
  577. -                   if (shackles > 10)
  578. +                   if (!Config.ALT_VILLAGES_REPEATABLE_QUEST_REWARD && (shackles >= 10))
  579.                     {
  580.                         reward += 500;
  581.                     }
  582. @@ -109,8 +111,9 @@
  583.                     htmltext = "30357-05.htm";
  584.                     st.takeItems(SHACKLE, -1);
  585.                     st.rewardItems(57, reward);
  586. -                  
  587. -                   if (player.isNewbie() && (st.getInt("Reward") == 0))
  588. +                   // Give newbie reward if player is eligible
  589. +                   int newPlayerRewardsReceived = player.getVariables().getInt(PlayerVariables.NEW_PLAYERS_REWARDS_RECEIVED, 0);
  590. +                   if (player.isNewbie() && (st.getInt("Reward") == 0) && (newPlayerRewardsReceived < 2))
  591.                     {
  592.                         st.showQuestionMark(26);
  593.                         st.set("Reward", "1");
  594. @@ -119,11 +122,13 @@
  595.                         {
  596.                             st.playTutorialVoice("tutorial_voice_027");
  597.                             st.giveItems(SPIRITSHOT_FOR_BEGINNERS, 3000);
  598. +                           player.getVariables().set(PlayerVariables.NEW_PLAYERS_REWARDS_RECEIVED, ++newPlayerRewardsReceived);
  599.                         }
  600.                         else
  601.                         {
  602.                             st.playTutorialVoice("tutorial_voice_026");
  603.                             st.giveItems(SOULSHOT_FOR_BEGINNERS, 6000);
  604. +                           player.getVariables().set(PlayerVariables.NEW_PLAYERS_REWARDS_RECEIVED, ++newPlayerRewardsReceived);
  605.                         }
  606.                     }
  607.                 }
  608. 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
  609. index 156d988..eb94b18 100644
  610. --- a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q267_WrathOfVerdure/Q267_WrathOfVerdure.java
  611. +++ b/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q267_WrathOfVerdure/Q267_WrathOfVerdure.java
  612. @@ -16,6 +16,7 @@
  613.   */
  614.  package quests.Q267_WrathOfVerdure;
  615.  
  616. +import org.l2jmobius.Config;
  617.  import org.l2jmobius.gameserver.enums.Race;
  618.  import org.l2jmobius.gameserver.model.actor.Npc;
  619.  import org.l2jmobius.gameserver.model.actor.Player;
  620. @@ -98,6 +99,10 @@
  621.                     htmltext = "31853-05.htm";
  622.                     st.takeItems(GOBLIN_CLUB, -1);
  623.                     st.rewardItems(SILVERY_LEAF, count);
  624. +                   if (!Config.ALT_VILLAGES_REPEATABLE_QUEST_REWARD && (count >= 10))
  625. +                   {
  626. +                       st.rewardItems(57, 600);
  627. +                   }
  628.                 }
  629.                 else
  630.                 {
  631. 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
  632. index 66488fd..9ac3147 100644
  633. --- a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q273_InvadersOfTheHolyLand/Q273_InvadersOfTheHolyLand.java
  634. +++ b/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q273_InvadersOfTheHolyLand/Q273_InvadersOfTheHolyLand.java
  635. @@ -16,12 +16,14 @@
  636.   */
  637.  package quests.Q273_InvadersOfTheHolyLand;
  638.  
  639. +import org.l2jmobius.Config;
  640.  import org.l2jmobius.gameserver.enums.Race;
  641.  import org.l2jmobius.gameserver.model.actor.Npc;
  642.  import org.l2jmobius.gameserver.model.actor.Player;
  643.  import org.l2jmobius.gameserver.model.quest.Quest;
  644.  import org.l2jmobius.gameserver.model.quest.QuestState;
  645.  import org.l2jmobius.gameserver.model.quest.State;
  646. +import org.l2jmobius.gameserver.model.variables.PlayerVariables;
  647.  
  648.  public class Q273_InvadersOfTheHolyLand extends Quest
  649.  {
  650. @@ -110,15 +112,23 @@
  651.                         htmltext = "30566-06.htm";
  652.                     }
  653.                    
  654. -                   final int reward = (black * 3) + (red * 10) + ((black >= 10) ? ((red >= 1) ? 1800 : 1500) : 0);
  655. +                   int reward = (black * 5) + (red * 50);
  656. +                   if (!Config.ALT_VILLAGES_REPEATABLE_QUEST_REWARD)
  657. +                   {
  658. +                       reward += ((black >= 10) ? ((red >= 1) ? 1800 : 1500) : 0);
  659. +                   }
  660. +                  
  661.                     st.takeItems(BLACK_SOULSTONE, -1);
  662.                     st.takeItems(RED_SOULSTONE, -1);
  663.                     st.rewardItems(57, reward);
  664. -                   if (player.isNewbie() && (st.getInt("Reward") == 0))
  665. +                   // Give newbie reward if player is eligible
  666. +                   int newPlayerRewardsReceived = player.getVariables().getInt(PlayerVariables.NEW_PLAYERS_REWARDS_RECEIVED, 0);
  667. +                   if (player.isNewbie() && (st.getInt("Reward") == 0) && (newPlayerRewardsReceived < 2))
  668.                     {
  669.                         st.giveItems(SOULSHOT_FOR_BEGINNERS, 6000);
  670.                         st.playTutorialVoice("tutorial_voice_026");
  671.                         st.set("Reward", "1");
  672. +                       player.getVariables().set(PlayerVariables.NEW_PLAYERS_REWARDS_RECEIVED, ++newPlayerRewardsReceived);
  673.                     }
  674.                 }
  675.                 break;
  676. 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
  677. index a81e21f..c9b973b 100644
  678. --- a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q292_BrigandsSweep/Q292_BrigandsSweep.java
  679. +++ b/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q292_BrigandsSweep/Q292_BrigandsSweep.java
  680. @@ -16,6 +16,7 @@
  681.   */
  682.  package quests.Q292_BrigandsSweep;
  683.  
  684. +import org.l2jmobius.Config;
  685.  import org.l2jmobius.gameserver.enums.Race;
  686.  import org.l2jmobius.gameserver.model.actor.Npc;
  687.  import org.l2jmobius.gameserver.model.actor.Player;
  688. @@ -148,7 +149,13 @@
  689.                                 st.takeItems(SUSPICIOUS_CONTRACT, -1);
  690.                             }
  691.                            
  692. -                           st.rewardItems(57, ((12 * goblinNecklaces) + (36 * goblinPendants) + (33 * goblinLordPendants) + (countAll >= 10 ? 1000 : 0) + ((hasContract) ? 1120 : 0)));
  693. +                           int reward = (12 * goblinNecklaces) + (36 * goblinPendants) + (33 * goblinLordPendants) + ((hasContract) ? 1120 : 0);
  694. +                           if (!Config.ALT_VILLAGES_REPEATABLE_QUEST_REWARD && (countAll >= 10))
  695. +                           {
  696. +                               reward += 1000;
  697. +                           }
  698. +                          
  699. +                           st.rewardItems(57, reward);
  700.                         }
  701.                         break;
  702.                     }
  703. 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
  704. index 82c11b2..458325e 100644
  705. --- a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q293_TheHiddenVeins/Q293_TheHiddenVeins.java
  706. +++ b/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q293_TheHiddenVeins/Q293_TheHiddenVeins.java
  707. @@ -16,12 +16,14 @@
  708.   */
  709.  package quests.Q293_TheHiddenVeins;
  710.  
  711. +import org.l2jmobius.Config;
  712.  import org.l2jmobius.gameserver.enums.Race;
  713.  import org.l2jmobius.gameserver.model.actor.Npc;
  714.  import org.l2jmobius.gameserver.model.actor.Player;
  715.  import org.l2jmobius.gameserver.model.quest.Quest;
  716.  import org.l2jmobius.gameserver.model.quest.QuestState;
  717.  import org.l2jmobius.gameserver.model.quest.State;
  718. +import org.l2jmobius.gameserver.model.variables.PlayerVariables;
  719.  
  720.  public class Q293_TheHiddenVeins extends Quest
  721.  {
  722. @@ -145,15 +147,23 @@
  723.                                 htmltext = "30535-05.htm";
  724.                             }
  725.                            
  726. -                           final int reward = (chrysoliteOres * 5) + (hiddenVeinMaps * 500) + ((chrysoliteOres >= 10) ? 2000 : 0);
  727.                             st.takeItems(CHRYSOLITE_ORE, -1);
  728.                             st.takeItems(HIDDEN_VEIN_MAP, -1);
  729. +                           int reward = (chrysoliteOres * 10) + (hiddenVeinMaps * 1000);
  730. +                           if (!Config.ALT_VILLAGES_REPEATABLE_QUEST_REWARD && (chrysoliteOres >= 10))
  731. +                           {
  732. +                               reward += 2000;
  733. +                           }
  734. +                          
  735.                             st.rewardItems(57, reward);
  736. -                           if (player.isNewbie() && (st.getInt("Reward") == 0))
  737. +                           // Give newbie reward if player is eligible
  738. +                           int newPlayerRewardsReceived = player.getVariables().getInt(PlayerVariables.NEW_PLAYERS_REWARDS_RECEIVED, 0);
  739. +                           if (player.isNewbie() && (st.getInt("Reward") == 0) && (newPlayerRewardsReceived < 2))
  740.                             {
  741.                                 st.giveItems(SOULSHOT_FOR_BEGINNERS, 6000);
  742.                                 st.playTutorialVoice("tutorial_voice_026");
  743.                                 st.set("Reward", "1");
  744. +                               player.getVariables().set(PlayerVariables.NEW_PLAYERS_REWARDS_RECEIVED, ++newPlayerRewardsReceived);
  745.                             }
  746.                         }
  747.                         break;
  748. diff --git a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q294_CovertBusiness/Q294_CovertBusiness.java b/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q294_CovertBusiness/Q294_CovertBusiness.java
  749. index d87c3c7..7ec48c4 100644
  750. --- a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q294_CovertBusiness/Q294_CovertBusiness.java
  751. +++ b/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q294_CovertBusiness/Q294_CovertBusiness.java
  752. @@ -93,9 +93,18 @@
  753.                 }
  754.                 else
  755.                 {
  756. -                   htmltext = "30534-05.htm";
  757.                     st.takeItems(BAT_FANG, -1);
  758. -                   st.giveItems(RING_OF_RACCOON, 1);
  759. +                  
  760. +                   if (!st.hasQuestItems(RING_OF_RACCOON))
  761. +                   {
  762. +                       htmltext = "30534-05.htm";
  763. +                       st.giveItems(RING_OF_RACCOON, 1);
  764. +                   }
  765. +                   else
  766. +                   {
  767. +                       htmltext = "30534-06.htm";
  768. +                       st.rewardItems(57, 2400);
  769. +                   }
  770.                     st.rewardExpAndSp(0, 600);
  771.                     st.playSound(QuestState.SOUND_FINISH);
  772.                     st.exitQuest(true);
  773. 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
  774. index 3418ec4..4190ec5 100644
  775. --- a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q296_TarantulasSpiderSilk/Q296_TarantulasSpiderSilk.java
  776. +++ b/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q296_TarantulasSpiderSilk/Q296_TarantulasSpiderSilk.java
  777. @@ -16,6 +16,7 @@
  778.   */
  779.  package quests.Q296_TarantulasSpiderSilk;
  780.  
  781. +import org.l2jmobius.Config;
  782.  import org.l2jmobius.gameserver.model.actor.Npc;
  783.  import org.l2jmobius.gameserver.model.actor.Player;
  784.  import org.l2jmobius.gameserver.model.quest.Quest;
  785. @@ -123,7 +124,14 @@
  786.                         {
  787.                             htmltext = "30519-05.htm";
  788.                             st.takeItems(TARANTULA_SPIDER_SILK, -1);
  789. -                           st.rewardItems(57, ((count >= 10) ? 2000 : 0) + (count * 30));
  790. +                          
  791. +                           int reward = count * 20;
  792. +                           if (!Config.ALT_VILLAGES_REPEATABLE_QUEST_REWARD && (count >= 10))
  793. +                           {
  794. +                               reward += 2000;
  795. +                           }
  796. +                          
  797. +                           st.rewardItems(57, reward);
  798.                         }
  799.                         break;
  800.                     }
  801. diff --git a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q299_GatherIngredientsForPie/Q299_GatherIngredientsForPie.java b/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q299_GatherIngredientsForPie/Q299_GatherIngredientsForPie.java
  802. index 10571bb..5d22ee8 100644
  803. --- a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q299_GatherIngredientsForPie/Q299_GatherIngredientsForPie.java
  804. +++ b/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q299_GatherIngredientsForPie/Q299_GatherIngredientsForPie.java
  805. @@ -32,6 +32,8 @@
  806.     private static final int FRUIT_BASKET = 7136;
  807.     private static final int AVELLAN_SPICE = 7137;
  808.     private static final int HONEY_POUCH = 7138;
  809. +   // Reward resources
  810. +   private static final int VARNISH = 1865;
  811.    
  812.     public Q299_GatherIngredientsForPie()
  813.     {
  814. @@ -93,7 +95,14 @@
  815.                 {
  816.                     htmltext = "30620-7.htm";
  817.                     st.takeItems(FRUIT_BASKET, 1);
  818. -                   st.rewardItems(57, 25000);
  819. +                   if (getRandom(100) < 70)
  820. +                   {
  821. +                       st.rewardItems(57, 25000);
  822. +                   }
  823. +                   else
  824. +                   {
  825. +                       st.giveItems(VARNISH, 50);
  826. +                   }
  827.                     st.playSound(QuestState.SOUND_FINISH);
  828.                     st.exitQuest(true);
  829.                 }
  830. 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
  831. index f151544..ce90799 100644
  832. --- a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q306_CrystalsOfFireAndIce/Q306_CrystalsOfFireAndIce.java
  833. +++ b/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q306_CrystalsOfFireAndIce/Q306_CrystalsOfFireAndIce.java
  834. @@ -16,6 +16,7 @@
  835.   */
  836.  package quests.Q306_CrystalsOfFireAndIce;
  837.  
  838. +import org.l2jmobius.Config;
  839.  import org.l2jmobius.gameserver.model.actor.Npc;
  840.  import org.l2jmobius.gameserver.model.actor.Player;
  841.  import org.l2jmobius.gameserver.model.quest.Quest;
  842. @@ -102,7 +103,14 @@
  843.                     htmltext = "30004-05.htm";
  844.                     st.takeItems(FLAME_SHARD, -1);
  845.                     st.takeItems(ICE_SHARD, -1);
  846. -                   st.rewardItems(57, (30 * totalItems) + ((totalItems > 10) ? 5000 : 0));
  847. +                  
  848. +                   int reward = totalItems * 60;
  849. +                   if (!Config.ALT_VILLAGES_REPEATABLE_QUEST_REWARD && (totalItems >= 10))
  850. +                   {
  851. +                       reward += 5000;
  852. +                   }
  853. +                  
  854. +                   st.rewardItems(57, reward);
  855.                 }
  856.                 break;
  857.             }
  858. 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
  859. index 72ce607..33d53f9 100644
  860. --- a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q316_DestroyPlagueCarriers/Q316_DestroyPlagueCarriers.java
  861. +++ b/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q316_DestroyPlagueCarriers/Q316_DestroyPlagueCarriers.java
  862. @@ -16,6 +16,7 @@
  863.   */
  864.  package quests.Q316_DestroyPlagueCarriers;
  865.  
  866. +import org.l2jmobius.Config;
  867.  import org.l2jmobius.gameserver.enums.Race;
  868.  import org.l2jmobius.gameserver.model.actor.Npc;
  869.  import org.l2jmobius.gameserver.model.actor.Player;
  870. @@ -106,7 +107,14 @@
  871.                     htmltext = "30155-07.htm";
  872.                     st.takeItems(WERERAT_FANG, -1);
  873.                     st.takeItems(VAROOL_FOULCLAW_FANG, -1);
  874. -                   st.rewardItems(57, (ratFangs * 30) + (varoolFangs * 10000) + ((ratFangs > 10) ? 5000 : 0));
  875. +                  
  876. +                   int reward = (ratFangs * 60) + (varoolFangs * 10000);
  877. +                   if (!Config.ALT_VILLAGES_REPEATABLE_QUEST_REWARD && (ratFangs >= 10))
  878. +                   {
  879. +                       reward += 5000;
  880. +                   }
  881. +                  
  882. +                   st.rewardItems(57, reward);
  883.                 }
  884.                 break;
  885.             }
  886. 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
  887. index 67b258c..258430b 100644
  888. --- a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q317_CatchTheWind/Q317_CatchTheWind.java
  889. +++ b/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q317_CatchTheWind/Q317_CatchTheWind.java
  890. @@ -16,6 +16,7 @@
  891.   */
  892.  package quests.Q317_CatchTheWind;
  893.  
  894. +import org.l2jmobius.Config;
  895.  import org.l2jmobius.gameserver.model.actor.Npc;
  896.  import org.l2jmobius.gameserver.model.actor.Player;
  897.  import org.l2jmobius.gameserver.model.quest.Quest;
  898. @@ -87,7 +88,14 @@
  899.                 {
  900.                     htmltext = "30361-07.htm";
  901.                     st.takeItems(WIND_SHARD, -1);
  902. -                   st.rewardItems(57, (40 * shards) + (shards >= 10 ? 2988 : 0));
  903. +                  
  904. +                   int reward = 30 * shards;
  905. +                   if (!Config.ALT_VILLAGES_REPEATABLE_QUEST_REWARD && (shards >= 10))
  906. +                   {
  907. +                       reward += 2988;
  908. +                   }
  909. +                  
  910. +                   st.rewardItems(57, reward);
  911.                 }
  912.                 break;
  913.             }
  914. diff --git a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q326_VanquishRemnants/Q326_VanquishRemnants.java b/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q326_VanquishRemnants/Q326_VanquishRemnants.java
  915. index adf43f5..0eff840 100644
  916. --- a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q326_VanquishRemnants/Q326_VanquishRemnants.java
  917. +++ b/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q326_VanquishRemnants/Q326_VanquishRemnants.java
  918. @@ -91,7 +91,7 @@
  919.                     st.takeItems(RED_CROSS_BADGE, -1);
  920.                     st.takeItems(BLUE_CROSS_BADGE, -1);
  921.                     st.takeItems(BLACK_CROSS_BADGE, -1);
  922. -                   st.rewardItems(57, ((redBadges * 46) + (blueBadges * 52) + (blackBadges * 58) + ((badgesSum >= 10) ? 4320 : 0)));
  923. +                   st.rewardItems(57, ((redBadges * 60) + (blueBadges * 65) + (blackBadges * 70) + ((badgesSum >= 10) ? 4320 : 0)));
  924.                     if (badgesSum >= 100)
  925.                     {
  926.                         if (!st.hasQuestItems(BLACK_LION_MARK))
  927. diff --git a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q328_SenseForBusiness/Q328_SenseForBusiness.java b/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q328_SenseForBusiness/Q328_SenseForBusiness.java
  928. index cd58d6e..07ebbcf 100644
  929. --- a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q328_SenseForBusiness/Q328_SenseForBusiness.java
  930. +++ b/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q328_SenseForBusiness/Q328_SenseForBusiness.java
  931. @@ -108,7 +108,7 @@
  932.                     st.takeItems(MONSTER_EYE_CARCASS, -1);
  933.                     st.takeItems(MONSTER_EYE_LENS, -1);
  934.                     st.takeItems(BASILISK_GIZZARD, -1);
  935. -                   st.rewardItems(57, (25 * carcasses) + (1000 * lenses) + (60 * gizzards) + ((all >= 10) ? 618 : 0));
  936. +                   st.rewardItems(57, (30 * carcasses) + (2000 * lenses) + (75 * gizzards) + ((all >= 10) ? 618 : 0));
  937.                 }
  938.                 break;
  939.             }
  940. diff --git a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q331_ArrowOfVengeance/Q331_ArrowOfVengeance.java b/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q331_ArrowOfVengeance/Q331_ArrowOfVengeance.java
  941. index 3f447d9..4f94fc7 100644
  942. --- a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q331_ArrowOfVengeance/Q331_ArrowOfVengeance.java
  943. +++ b/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q331_ArrowOfVengeance/Q331_ArrowOfVengeance.java
  944. @@ -91,7 +91,7 @@
  945.                     st.takeItems(MEDUSA_VENOM, -1);
  946.                     st.takeItems(WYRM_TOOTH, -1);
  947.                    
  948. -                   int reward = (harpyFeather * 78) + (medusaVenom * 88) + (wyrmTooth * 92);
  949. +                   int reward = (harpyFeather * 80) + (medusaVenom * 90) + (wyrmTooth * 100);
  950.                     if ((harpyFeather + medusaVenom + wyrmTooth) > 10)
  951.                     {
  952.                         reward += 3100;
  953. diff --git a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q334_TheWishingPotion/Q334_TheWishingPotion.java b/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q334_TheWishingPotion/Q334_TheWishingPotion.java
  954. index 693697f..f1fc82f 100644
  955. --- a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q334_TheWishingPotion/Q334_TheWishingPotion.java
  956. +++ b/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q334_TheWishingPotion/Q334_TheWishingPotion.java
  957. @@ -51,12 +51,15 @@
  958.     private static final int GLASS_JAGUAR = 20250;
  959.     private static final int DEMONS_TUNIC_ID = 441;
  960.     private static final int DEMONS_STOCKINGS_ID = 472;
  961. -   private static final int SCROLL_OF_ESCAPE_ID = 736;
  962.     private static final int NECKLACE_OF_GRACE_ID = 931;
  963.     private static final int SPELLBOOK_ICEBOLT_ID = 1049;
  964.     private static final int SPELLBOOK_BATTLEHEAL_ID = 1050;
  965. +   private static final int DEMONS_TUNIC_FABRIC_ID = 1979;
  966. +   private static final int DEMONS_STOCKINGS_PATTERN_ID = 1980;
  967.     private static final int DEMONS_BOOTS_ID = 2435;
  968.     private static final int DEMONS_GLOVES_ID = 2459;
  969. +   private static final int DEMONS_BOOTS_FABRIC_ID = 2952;
  970. +   private static final int DEMONS_GLOVES_FABRIC_ID = 2953;
  971.     private static final int WISH_POTION_ID = 3467;
  972.     private static final int ANCIENT_CROWN_ID = 3468;
  973.     private static final int CERTIFICATE_OF_ROYALTY_ID = 3469;
  974. @@ -432,7 +435,23 @@
  975.                 }
  976.                 else
  977.                 {
  978. -                   st.giveItems(SCROLL_OF_ESCAPE_ID, 1);
  979. +                   final int dropChance = getRandom(100) + 1;
  980. +                   if (dropChance <= 25)
  981. +                   {
  982. +                       st.giveItems(DEMONS_TUNIC_FABRIC_ID, 1);
  983. +                   }
  984. +                   else if (dropChance <= 50)
  985. +                   {
  986. +                       st.giveItems(DEMONS_STOCKINGS_PATTERN_ID, 1);
  987. +                   }
  988. +                   else if (dropChance <= 75)
  989. +                   {
  990. +                       st.giveItems(DEMONS_BOOTS_FABRIC_ID, 1);
  991. +                   }
  992. +                   else
  993. +                   {
  994. +                       st.giveItems(DEMONS_GLOVES_FABRIC_ID, 1);
  995. +                   }
  996.                 }
  997.                 st.getPlayer().getTarget().decayMe();
  998.                 htmltext = "30742-01.htm";
  999. diff --git a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q335_TheSongOfTheHunter/Q335_TheSongOfTheHunter.java b/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q335_TheSongOfTheHunter/Q335_TheSongOfTheHunter.java
  1000. index 81c07d4..26bf4cc 100644
  1001. --- a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q335_TheSongOfTheHunter/Q335_TheSongOfTheHunter.java
  1002. +++ b/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q335_TheSongOfTheHunter/Q335_TheSongOfTheHunter.java
  1003. @@ -102,51 +102,51 @@
  1004.     // @formatter:on
  1005.     private static final Request[] REQUESTS1 =
  1006.     {
  1007. -       new Request(3727, 3769, 40, 2090, "C: 40 Totems of Kadesh").addDrop(20578, 80).addDrop(20579, 83),
  1008. -       new Request(3728, 3770, 50, 6340, "C: 50 Jade Necklaces of Timak").addDrop(20586, 89).addDrop(20588, 100),
  1009. -       new Request(3729, 3771, 50, 9480, "C: 50 Enchanted Golem Shards").addDrop(20565, 100),
  1010. -       new Request(3730, 3772, 30, 9110, "C: 30 Pieces Monster Eye Meat").addDrop(20556, 50),
  1011. -       new Request(3731, 3773, 40, 8690, "C: 40 Eggs of Dire Wyrm").addDrop(20557, 80),
  1012. -       new Request(3732, 3774, 100, 9480, "C: 100 Claws of Guardian Basilisk").addDrop(20550, 150),
  1013. -       new Request(3733, 3775, 50, 11280, "C: 50 Revenant Chains").addDrop(20552, 100),
  1014. -       new Request(3734, 3776, 30, 9640, "C: 30 Windsus Tusks").addDrop(WINDSUS, 50),
  1015. -       new Request(3735, 3777, 100, 9180, "C: 100 Skulls of Grandis").addDrop(20554, 200),
  1016. -       new Request(3736, 3778, 50, 5160, "C: 50 Taik Obsidian Amulets").addDrop(20631, 100).addDrop(20632, 93),
  1017. -       new Request(3737, 3779, 30, 3140, "C: 30 Heads of Karul Bugbear").addDrop(20600, 50),
  1018. -       new Request(3738, 3780, 40, 3160, "C: 40 Ivory Charms of Tamlin").addDrop(20601, 62).addDrop(20602, 80),
  1019. -       new Request(3739, 3781, 1, 6370, "B: Situation Preparation - Leto Chief").addSpawn(20582, 27157, 10).addDrop(27157, 100),
  1020. -       new Request(3740, 3782, 50, 19080, "B: 50 Enchanted Gargoyle Horns").addDrop(20567, 50),
  1021. -       new Request(3741, 3783, 50, 17730, "B: 50 Coiled Serpent Totems").addDrop(20269, 93).addDrop(BREKA_ORC_WARRIOR, 100),
  1022. -       new Request(3742, 3784, 1, 5790, "B: Situation Preparation - Sorcerer Catch of Leto").addSpawn(20581, 27156, 10).addDrop(27156, 100),
  1023. -       new Request(3743, 3785, 1, 8560, "B: Situation Preparation - Timak Raider Kaikee").addSpawn(20586, 27158, 10).addDrop(27158, 100),
  1024. -       new Request(3744, 3786, 30, 8320, "B: 30 Kronbe Venom Sacs").addDrop(20603, 50),
  1025. -       new Request(3745, 3787, 30, 30310, "A: 30 Eva's Charm").addDrop(20562, 50),
  1026. -       new Request(3746, 3788, 1, 27540, "A: Titan's Tablet").addSpawn(20554, 27160, 10).addDrop(27160, 100),
  1027. -       new Request(3747, 3789, 1, 20560, "A: Book of Shunaiman").addSpawn(20600, 27164, 10).addDrop(27164, 100)
  1028. +       new Request(3727, 3769, 40, 4500, "C: 40 Totems of Kadesh").addDrop(20578, 80).addDrop(20579, 83),
  1029. +       new Request(3728, 3770, 50, 7500, "C: 50 Jade Necklaces of Timak").addDrop(20586, 89).addDrop(20588, 100),
  1030. +       new Request(3729, 3771, 50, 7300, "C: 50 Enchanted Golem Shards").addDrop(20565, 100),
  1031. +       new Request(3730, 3772, 30, 5500, "C: 30 Pieces Monster Eye Meat").addDrop(20556, 50),
  1032. +       new Request(3731, 3773, 40, 5000, "C: 40 Eggs of Dire Wyrm").addDrop(20557, 80),
  1033. +       new Request(3732, 3774, 100, 6500, "C: 100 Claws of Guardian Basilisk").addDrop(20550, 150),
  1034. +       new Request(3733, 3775, 50, 4400, "C: 50 Revenant Chains").addDrop(20552, 100),
  1035. +       new Request(3734, 3776, 30, 5200, "C: 30 Windsus Tusks").addDrop(WINDSUS, 50),
  1036. +       new Request(3735, 3777, 100, 7600, "C: 100 Skulls of Grandis").addDrop(20554, 200),
  1037. +       new Request(3736, 3778, 50, 4900, "C: 50 Taik Obsidian Amulets").addDrop(20631, 100).addDrop(20632, 93),
  1038. +       new Request(3737, 3779, 30, 7600, "C: 30 Heads of Karul Bugbear").addDrop(20600, 50),
  1039. +       new Request(3738, 3780, 40, 7200, "C: 40 Ivory Charms of Tamlin").addDrop(20601, 62).addDrop(20602, 80),
  1040. +       new Request(3739, 3781, 1, 4500, "B: Situation Preparation - Leto Chief").addSpawn(20582, 27157, 10).addDrop(27157, 100),
  1041. +       new Request(3740, 3782, 50, 9500, "B: 50 Enchanted Gargoyle Horns").addDrop(20567, 50),
  1042. +       new Request(3741, 3783, 50, 5800, "B: 50 Coiled Serpent Totems").addDrop(20269, 93).addDrop(BREKA_ORC_WARRIOR, 100),
  1043. +       new Request(3742, 3784, 1, 4500, "B: Situation Preparation - Sorcerer Catch of Leto").addSpawn(20581, 27156, 10).addDrop(27156, 100),
  1044. +       new Request(3743, 3785, 1, 7000, "B: Situation Preparation - Timak Raider Kaikee").addSpawn(20586, 27158, 10).addDrop(27158, 100),
  1045. +       new Request(3744, 3786, 30, 10000, "B: 30 Kronbe Venom Sacs").addDrop(20603, 50),
  1046. +       new Request(3745, 3787, 30, 18000, "A: 30 Eva's Charm").addDrop(20562, 50),
  1047. +       new Request(3746, 3788, 1, 12000, "A: Titan's Tablet").addSpawn(20554, 27160, 10).addDrop(27160, 100),
  1048. +       new Request(3747, 3789, 1, 15000, "A: Book of Shunaiman").addSpawn(20600, 27164, 10).addDrop(27164, 100)
  1049.     };
  1050.     private static final Request[] REQUESTS2 =
  1051.     {
  1052. -       new Request(3748, 3790, 40, 6850, "C: 40 Rotting Tree Spores").addDrop(20558, 67),
  1053. -       new Request(3749, 3791, 40, 7250, "C: 40 Trisalim Venom Sacs").addDrop(20560, 66).addDrop(20561, 75),
  1054. -       new Request(3750, 3792, 50, 7160, "C: 50 Totems of Taik Orc").addDrop(20633, 53).addDrop(20634, 99),
  1055. -       new Request(3751, 3793, 40, 6580, "C: 40 Harit Barbed Necklaces").addDrop(20641, 88).addDrop(20642, 88).addDrop(20643, 91),
  1056. -       new Request(3752, 3794, 20, 10100, "C: 20 Coins of Ancient Empire").addDrop(20661, 50).addSpawn(20661, 27149, 5).addDrop(20662, 52).addSpawn(20662, 27149, 5).addDrop(27149, 300),
  1057. -       new Request(3753, 3795, 30, 13000, "C: 30 Skins of Farkran").addDrop(20667, 90),
  1058. -       new Request(3754, 3796, 40, 7660, "C: 40 Tempest Shards").addDrop(20589, 49).addSpawn(20589, 27149, 5).addDrop(27149, 500),
  1059. -       new Request(3755, 3797, 40, 7660, "C: 40 Tsunami Shards").addDrop(20590, 51).addSpawn(20590, 27149, 5).addDrop(27149, 500),
  1060. -       new Request(3756, 3798, 40, 11260, "C: 40 Manes of Pan Ruem").addDrop(20592, 80).addDrop(20598, 100),
  1061. -       new Request(3757, 3799, 40, 7660, "C: 40 Hamadryad Shard").addDrop(20594, 64).addSpawn(20594, 27149, 5).addDrop(27149, 500),
  1062. -       new Request(3758, 3800, 30, 8810, "C: 30 Manes of Vanor Silenos").addDrop(20682, 70).addDrop(20683, 85).addDrop(20684, 90),
  1063. -       new Request(3759, 3801, 30, 7350, "C: 30 Totems of Tarlk Bugbears").addDrop(TARLK_BUGBEAR_WARRIOR, 63),
  1064. -       new Request(3760, 3802, 1, 8760, "B: Situation Preparation - Overlord Okun of Timak").addSpawn(20588, 27159, 10).addDrop(27159, 100),
  1065. -       new Request(3761, 3803, 1, 9380, "B: Situation Preparation - Overlord Kakran of Taik").addSpawn(20634, 27161, 10).addDrop(27161, 100),
  1066. -       new Request(3762, 3804, 40, 17820, "B: 40 Narcissus Soulstones").addDrop(20639, 86).addSpawn(20639, 27149, 5).addDrop(27149, 500),
  1067. -       new Request(3763, 3805, 20, 17540, "B: 20 Eyes of Deprived").addDrop(20664, 77),
  1068. -       new Request(3764, 3806, 20, 14160, "B: 20 Unicorn Horns").addDrop(20593, 68).addDrop(20599, 86),
  1069. -       new Request(3765, 3807, 1, 15960, "B: Golden Mane of Silenos").addSpawn(20686, 27163, 10).addDrop(27163, 100),
  1070. -       new Request(3766, 3808, 20, 39100, "A: 20 Skulls of Executed Person").addDrop(20659, 73),
  1071. -       new Request(3767, 3809, 1, 39550, "A: Bust of Travis").addSpawn(20662, 27162, 10).addDrop(27162, 100),
  1072. -       new Request(3768, 3810, 10, 41200, "A: 10 Swords of Cadmus").addDrop(20676, 64)
  1073. +       new Request(3748, 3790, 40, 6200, "C: 40 Rotting Tree Spores").addDrop(20558, 67),
  1074. +       new Request(3749, 3791, 40, 5900, "C: 40 Trisalim Venom Sacs").addDrop(20560, 66).addDrop(20561, 75),
  1075. +       new Request(3750, 3792, 50, 7200, "C: 50 Totems of Taik Orc").addDrop(20633, 53).addDrop(20634, 99),
  1076. +       new Request(3751, 3793, 40, 7200, "C: 40 Harit Barbed Necklaces").addDrop(20641, 88).addDrop(20642, 88).addDrop(20643, 91),
  1077. +       new Request(3752, 3794, 20, 8700, "C: 20 Coins of Ancient Empire").addDrop(20661, 50).addSpawn(20661, 27149, 5).addDrop(20662, 52).addSpawn(20662, 27149, 5).addDrop(27149, 300),
  1078. +       new Request(3753, 3795, 30, 11600, "C: 30 Skins of Farkran").addDrop(20667, 90),
  1079. +       new Request(3754, 3796, 40, 6200, "C: 40 Tempest Shards").addDrop(20589, 49).addSpawn(20589, 27149, 5).addDrop(27149, 500),
  1080. +       new Request(3755, 3797, 40, 7800, "C: 40 Tsunami Shards").addDrop(20590, 51).addSpawn(20590, 27149, 5).addDrop(27149, 500),
  1081. +       new Request(3756, 3798, 40, 7800, "C: 40 Manes of Pan Ruem").addDrop(20592, 80).addDrop(20598, 100),
  1082. +       new Request(3757, 3799, 40, 7000, "C: 40 Hamadryad Shard").addDrop(20594, 64).addSpawn(20594, 27149, 5).addDrop(27149, 500),
  1083. +       new Request(3758, 3800, 30, 7100, "C: 30 Manes of Vanor Silenos").addDrop(20682, 70).addDrop(20683, 85).addDrop(20684, 90),
  1084. +       new Request(3759, 3801, 30, 13400, "C: 30 Totems of Tarlk Bugbears").addDrop(TARLK_BUGBEAR_WARRIOR, 63),
  1085. +       new Request(3760, 3802, 1, 8200, "B: Situation Preparation - Overlord Okun of Timak").addSpawn(20588, 27159, 10).addDrop(27159, 100),
  1086. +       new Request(3761, 3803, 1, 5300, "B: Situation Preparation - Overlord Kakran of Taik").addSpawn(20634, 27161, 10).addDrop(27161, 100),
  1087. +       new Request(3762, 3804, 40, 8800, "B: 40 Narcissus Soulstones").addDrop(20639, 86).addSpawn(20639, 27149, 5).addDrop(27149, 500),
  1088. +       new Request(3763, 3805, 20, 11000, "B: 20 Eyes of Deprived").addDrop(20664, 77),
  1089. +       new Request(3764, 3806, 20, 8800, "B: 20 Unicorn Horns").addDrop(20593, 68).addDrop(20599, 86),
  1090. +       new Request(3765, 3807, 1, 5500, "B: Golden Mane of Silenos").addSpawn(20686, 27163, 10).addDrop(27163, 100),
  1091. +       new Request(3766, 3808, 20, 16000, "A: 20 Skulls of Executed Person").addDrop(20659, 73),
  1092. +       new Request(3767, 3809, 1, 18000, "A: Bust of Travis").addSpawn(20662, 27162, 10).addDrop(27162, 100),
  1093. +       new Request(3768, 3810, 10, 18000, "A: 10 Swords of Cadmus").addDrop(20676, 64)
  1094.     };
  1095.    
  1096.     public Q335_TheSongOfTheHunter()
  1097. diff --git a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q338_AlligatorHunter/Q338_AlligatorHunter.java b/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q338_AlligatorHunter/Q338_AlligatorHunter.java
  1098. index d064bb0..25bd07c 100644
  1099. --- a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q338_AlligatorHunter/Q338_AlligatorHunter.java
  1100. +++ b/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q338_AlligatorHunter/Q338_AlligatorHunter.java
  1101. @@ -56,7 +56,7 @@
  1102.             case "30892-05.htm":
  1103.             {
  1104.                 final int pelts = st.getQuestItemsCount(ALLIGATOR_PELT);
  1105. -               int reward = pelts * 60;
  1106. +               int reward = pelts * 40;
  1107.                 if (pelts > 10)
  1108.                 {
  1109.                     reward += 3430;
  1110. diff --git a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q343_UnderTheShadowOfTheIvoryTower/Q343_UnderTheShadowOfTheIvoryTower.java b/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q343_UnderTheShadowOfTheIvoryTower/Q343_UnderTheShadowOfTheIvoryTower.java
  1111. index 05f7b65..716529e 100644
  1112. --- a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q343_UnderTheShadowOfTheIvoryTower/Q343_UnderTheShadowOfTheIvoryTower.java
  1113. +++ b/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q343_UnderTheShadowOfTheIvoryTower/Q343_UnderTheShadowOfTheIvoryTower.java
  1114. @@ -91,7 +91,7 @@
  1115.             {
  1116.                 if (orbs > 0)
  1117.                 {
  1118. -                   st.giveItems(57, orbs * 120);
  1119. +                   st.giveItems(57, orbs * 125);
  1120.                     st.takeItems(ORB, -1);
  1121.                 }
  1122.                 else
  1123. diff --git a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q354_ConquestOfAlligatorIsland/Q354_ConquestOfAlligatorIsland.java b/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q354_ConquestOfAlligatorIsland/Q354_ConquestOfAlligatorIsland.java
  1124. index 3e7ddf0..17d8209 100644
  1125. --- a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q354_ConquestOfAlligatorIsland/Q354_ConquestOfAlligatorIsland.java
  1126. +++ b/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q354_ConquestOfAlligatorIsland/Q354_ConquestOfAlligatorIsland.java
  1127. @@ -44,6 +44,21 @@
  1128.         DROPLIST.put(20991, new int[][]{{ALLIGATOR_TOOTH, 1, 0, 600000},{TORN_MAP_FRAGMENT, 1, 0, 100000}}); // Swamp Tribe
  1129.         // @formatter:on
  1130.     }
  1131. +   private static final int[][] ADDITIONAL_REWARDS =
  1132. +   {
  1133. +       // @formatter:off
  1134. +       {736, 15}// SoE
  1135. +       {1061, 20}, // Healing Potion
  1136. +       {734, 15}// Haste Potion
  1137. +       {735, 15}// Alacrity Potion
  1138. +       {1878, 35}, // Braided Hemp
  1139. +       {1875, 15}, // Stone of Purity
  1140. +       {1879, 15}, // Cokes
  1141. +       {1880, 15}, // Steel
  1142. +       {956, 1},   // Enchant Armor D
  1143. +       {955, 1},   // Enchant Weapon D
  1144. +       // @formatter:on
  1145. +   };
  1146.    
  1147.     public Q354_ConquestOfAlligatorIsland()
  1148.     {
  1149. @@ -84,10 +99,11 @@
  1150.                 final int amount = st.getQuestItemsCount(ALLIGATOR_TOOTH);
  1151.                 if (amount > 0)
  1152.                 {
  1153. -                   int reward = (amount * 220) + 3100;
  1154. +                   int reward = amount * 300;
  1155.                     if (amount >= 100)
  1156.                     {
  1157. -                       reward += 7600;
  1158. +                       final int[] add_reward = ADDITIONAL_REWARDS[Integer.parseInt(event)];
  1159. +                       st.rewardItems(add_reward[0], add_reward[1]);
  1160.                         htmltext = "30895-05b.htm";
  1161.                     }
  1162.                     else
  1163. diff --git a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q355_FamilyHonor/Q355_FamilyHonor.java b/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q355_FamilyHonor/Q355_FamilyHonor.java
  1164. index 88f3cdd..c4615d4 100644
  1165. --- a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q355_FamilyHonor/Q355_FamilyHonor.java
  1166. +++ b/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q355_FamilyHonor/Q355_FamilyHonor.java
  1167. @@ -87,7 +87,7 @@
  1168.                 {
  1169.                     htmltext = "30181-4.htm";
  1170.                    
  1171. -                   int reward = 2800 + (count * 120);
  1172. +                   int reward = count * 232;
  1173.                     if (count >= 100)
  1174.                     {
  1175.                         htmltext = "30181-4a.htm";
  1176. diff --git a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q356_DigUpTheSeaOfSpores/Q356_DigUpTheSeaOfSpores.java b/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q356_DigUpTheSeaOfSpores/Q356_DigUpTheSeaOfSpores.java
  1177. index f8b8e94..b0fcfd7 100644
  1178. --- a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q356_DigUpTheSeaOfSpores/Q356_DigUpTheSeaOfSpores.java
  1179. +++ b/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q356_DigUpTheSeaOfSpores/Q356_DigUpTheSeaOfSpores.java
  1180. @@ -57,11 +57,11 @@
  1181.                 st.startQuest();
  1182.                 break;
  1183.             }
  1184. -           case "30717-17.htm":
  1185. +           case "30717-16.htm":
  1186.             {
  1187.                 st.takeItems(HERB_SPORE, -1);
  1188.                 st.takeItems(CARN_SPORE, -1);
  1189. -               st.rewardItems(57, 20950);
  1190. +               st.rewardItems(57, 44000);
  1191.                 st.playSound(QuestState.SOUND_FINISH);
  1192.                 st.exitQuest(true);
  1193.                 break;
  1194. diff --git a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q365_DevilsLegacy/Q365_DevilsLegacy.java b/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q365_DevilsLegacy/Q365_DevilsLegacy.java
  1195. index 6f65212..049d702 100644
  1196. --- a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q365_DevilsLegacy/Q365_DevilsLegacy.java
  1197. +++ b/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q365_DevilsLegacy/Q365_DevilsLegacy.java
  1198. @@ -190,10 +190,10 @@
  1199.                         {
  1200.                             htmltext = "30095-05.htm";
  1201.                            
  1202. -                           final int reward = st.getQuestItemsCount(PIRATE_TREASURE_CHEST) * 400;
  1203. +                           final int reward = st.getQuestItemsCount(PIRATE_TREASURE_CHEST) * 1600;
  1204.                            
  1205.                             st.takeItems(PIRATE_TREASURE_CHEST, -1);
  1206. -                           st.rewardItems(57, reward + 19800);
  1207. +                           st.rewardItems(57, reward);
  1208.                         }
  1209.                         break;
  1210.                     }
  1211. diff --git a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q373_SupplierOfReagents/Q373_SupplierOfReagents.java b/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q373_SupplierOfReagents/Q373_SupplierOfReagents.java
  1212. index 395b683..51d9c2e 100644
  1213. --- a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q373_SupplierOfReagents/Q373_SupplierOfReagents.java
  1214. +++ b/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q373_SupplierOfReagents/Q373_SupplierOfReagents.java
  1215. @@ -128,8 +128,8 @@
  1216.     {
  1217.         // @formatter:off
  1218.         {1, 100, 1},
  1219. -       {2, 45, 3},
  1220. -       {3, 15, 5}
  1221. +       {2, 45, 2},
  1222. +       {3, 15, 3}
  1223.         // @formatter:on
  1224.     };
  1225.    
  1226. diff --git a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q384_WarehouseKeepersPastime/Q384_WarehouseKeepersPastime.java b/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q384_WarehouseKeepersPastime/Q384_WarehouseKeepersPastime.java
  1227. index 5af07d2..4aca831 100644
  1228. --- a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q384_WarehouseKeepersPastime/Q384_WarehouseKeepersPastime.java
  1229. +++ b/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q384_WarehouseKeepersPastime/Q384_WarehouseKeepersPastime.java
  1230. @@ -100,13 +100,19 @@
  1231.         {98, 852}, // Moonstone Earring
  1232.         {100, 401} // Drake Leather Armor
  1233.     };
  1234. -   private static final int[][] _rewards_100_lose =
  1235. +   private static final int[][] _rewards_100_lose_Baxt =
  1236.     {
  1237.         {50, 951}, // Scroll: Enchant Weapon (C)
  1238.         {80, 500}, // Great Helmet
  1239.         {98, 2437}, // Drake Leather Boots
  1240.         {100, 135} // Samurai Longsword
  1241.     };
  1242. +   private static final int[][] _rewards_100_lose_Cliff =
  1243. +   {
  1244. +       {70, 951}, // Scroll: Enchant Weapon (C)
  1245. +       {89, 500}, // Divine Boots
  1246. +       {100, 2437}, // Katana
  1247. +   };
  1248.     // @formatter:on
  1249.    
  1250.     public Q384_WarehouseKeepersPastime()
  1251. @@ -246,10 +252,6 @@
  1252.                         if (chance < reward[0])
  1253.                         {
  1254.                             st.giveItems(reward[1], 1);
  1255. -                           if (reward[1] == 2437)
  1256. -                           {
  1257. -                               st.giveItems(2463, 1);
  1258. -                           }
  1259.                             break;
  1260.                         }
  1261.                     }
  1262. @@ -257,14 +259,32 @@
  1263.                 else if (winningLines == 0)
  1264.                 {
  1265.                     htmltext = getHtmlText(npcId + "-25.htm");
  1266. -                  
  1267. -                   final int chance = getRandom(100);
  1268. -                   for (int[] reward : ((st.get("bet") == "10") ? _rewards_10_lose : _rewards_100_lose))
  1269. +                   if (npcId == 30685)
  1270.                     {
  1271. -                       if (chance < reward[0])
  1272. +                       final int chance = getRandom(100);
  1273. +                       for (int[] reward : ((st.get("bet") == "10") ? _rewards_10_lose : _rewards_100_lose_Baxt))
  1274.                         {
  1275. -                           st.giveItems(reward[1], 1);
  1276. -                           break;
  1277. +                           if (chance < reward[0])
  1278. +                           {
  1279. +                               st.giveItems(reward[1], 1);
  1280. +                               if (reward[1] == 2437)
  1281. +                               {
  1282. +                                   st.giveItems(2463, 1);
  1283. +                               }
  1284. +                               break;
  1285. +                           }
  1286. +                       }
  1287. +                   }
  1288. +                   else
  1289. +                   {
  1290. +                       final int chance = getRandom(100);
  1291. +                       for (int[] reward : ((st.get("bet") == "10") ? _rewards_10_lose : _rewards_100_lose_Cliff))
  1292. +                       {
  1293. +                           if (chance < reward[0])
  1294. +                           {
  1295. +                               st.giveItems(reward[1], 1);
  1296. +                               break;
  1297. +                           }
  1298.                         }
  1299.                     }
  1300.                 }
  1301. diff --git a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q627_HeartInSearchOfPower/Q627_HeartInSearchOfPower.java b/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q627_HeartInSearchOfPower/Q627_HeartInSearchOfPower.java
  1302. index 63bd7f4..0e655f5 100644
  1303. --- a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q627_HeartInSearchOfPower/Q627_HeartInSearchOfPower.java
  1304. +++ b/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q627_HeartInSearchOfPower/Q627_HeartInSearchOfPower.java
  1305. @@ -62,7 +62,7 @@
  1306.         REWARDS.put("asofe", new int[]{4043, 13, 6400});
  1307.         REWARDS.put("thon", new int[]{4044, 13, 6400});
  1308.         REWARDS.put("enria", new int[]{4042, 6, 13600});
  1309. -       REWARDS.put("mold", new int[]{4041, 3, 17200});
  1310. +       REWARDS.put("mold", new int[]{4041, 6, 17200});
  1311.         // @formatter:on
  1312.     }
  1313.    
  1314. diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/Config.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/Config.java
  1315. index 2f23cff..b584ee4 100644
  1316. --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/Config.java
  1317. +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/Config.java
  1318. @@ -156,6 +156,7 @@
  1319.     public static boolean ALLOW_WEAR;
  1320.     public static int WEAR_DELAY;
  1321.     public static int WEAR_PRICE;
  1322. +   public static boolean ALT_VILLAGES_REPEATABLE_QUEST_REWARD;
  1323.     public static boolean ALLOW_LOTTERY;
  1324.     public static boolean ALLOW_RACE;
  1325.     public static boolean ALLOW_RENTPET;
  1326. @@ -1424,6 +1425,7 @@
  1327.         ALLOW_WEAR = generalConfig.getBoolean("AllowWear", false);
  1328.         WEAR_DELAY = generalConfig.getInt("WearDelay", 5);
  1329.         WEAR_PRICE = generalConfig.getInt("WearPrice", 10);
  1330. +       ALT_VILLAGES_REPEATABLE_QUEST_REWARD = generalConfig.getBoolean("AltVillagesRepQuestReward", false);
  1331.         ALLOW_LOTTERY = generalConfig.getBoolean("AllowLottery", false);
  1332.         ALLOW_RACE = generalConfig.getBoolean("AllowRace", false);
  1333.         ALLOW_RENTPET = generalConfig.getBoolean("AllowRentPet", false);
  1334. diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/Player.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/Player.java
  1335. index 7b23297..b966282 100644
  1336. --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/Player.java
  1337. +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/Player.java
  1338. @@ -541,6 +541,7 @@
  1339.         if (Config.ALT_GAME_NEW_CHAR_ALWAYS_IS_NEWBIE)
  1340.         {
  1341.             player.setNewbie(true);
  1342. +           player.getVariables().set(PlayerVariables.NEW_PLAYERS_REWARDS_RECEIVED, 0);
  1343.         }
  1344.        
  1345.         // Add the player in the characters table of the database
  1346. diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/variables/PlayerVariables.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/variables/PlayerVariables.java
  1347. index 58bd39b..86440e7 100644
  1348. --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/variables/PlayerVariables.java
  1349. +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/variables/PlayerVariables.java
  1350. @@ -38,6 +38,9 @@
  1351.     private static final String DELETE_QUERY = "DELETE FROM character_variables WHERE charId = ?";
  1352.     private static final String INSERT_QUERY = "INSERT INTO character_variables (charId, var, val) VALUES (?, ?, ?)";
  1353.    
  1354. +   // Public variable names
  1355. +   public static final String NEW_PLAYERS_REWARDS_RECEIVED = "NEW_PLAYERS_REWARDS_RECEIVED";
  1356. +  
  1357.     private final int _objectId;
  1358.    
  1359.     public PlayerVariables(int objectId)
  1360.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement