Advertisement
WallisTeer

[ aCis ] Reward PvP/Pk

Jul 3rd, 2015
661
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.11 KB | None | 0 0
  1. ### Eclipse Workspace Patch 1.0
  2. #P aCis_gameserver
  3. Index: config/aCis.properties
  4. ===================================================================
  5. --- config/aCis.properties (revision 118)
  6. +++ config/aCis.properties (working copy)
  7. @@ -83,6 +83,24 @@
  8. # Default : False
  9. AnnounceKillPLayers = true
  10.  
  11. +#------------------------------------------------------------
  12. +# Reward to PvP && Pk
  13. +#------------------------------------------------------------
  14. +# PvP reward system !
  15. +# Default : False
  16. +AllowPvpRewardSystem = False
  17. +# PvP reward itemId,itemCount;
  18. +PvpRewardItem = 57,100;6392,100;
  19. +#------------------------------
  20. +# PK reward system !
  21. +# Default : False
  22. +AllowPkRewardSystem = False
  23. +# PK reward itemId,itemCount;
  24. +PkRewardItem = 57,100;6393,100;
  25. +
  26. +#------------------------------------------------------------
  27. +# Hero Aura To pvp
  28. +#------------------------------------------------------------
  29. # War Legend Configs
  30. WarLegendAura = true
  31. KillsToGetWarLegendAura = 3
  32. Index: java/net/sf/l2j/Config.java
  33. ===================================================================
  34. --- java/net/sf/l2j/Config.java (revision 118)
  35. +++ java/net/sf/l2j/Config.java (working copy)
  36. @@ -404,6 +404,10 @@
  37. public static boolean ENABLE_MODIFY_SKILL_DURATION;
  38. public static Map<Integer, Integer> SKILL_DURATION_LIST;
  39. public static boolean ANNOUNCE_KILL;
  40. + public static boolean ALLOW_PVP_REWARD;
  41. + public static int[][] PVP_REWARD_ITEM;
  42. + public static boolean ALLOW_PK_REWARD;
  43. + public static int[][] PK_REWARD_ITEM;
  44. public static boolean WAR_LEGEND_AURA;
  45. public static int KILLS_TO_GET_WAR_LEGEND_AURA;
  46. /** Limits */
  47. @@ -976,6 +980,10 @@
  48. }
  49. }
  50. ANNOUNCE_KILL = aCis.getProperty("AnnounceKillPLayers", false);
  51. + ALLOW_PVP_REWARD = Boolean.parseBoolean(aCis.getProperty("AllowPvpRewardSystem", "False"));
  52. + PVP_REWARD_ITEM = parseItemsList(aCis.getProperty("PvpRewardItem", "57,400"));
  53. + ALLOW_PK_REWARD = Boolean.parseBoolean(aCis.getProperty("AllowPkRewardSystem", "False"));
  54. + PK_REWARD_ITEM = parseItemsList(aCis.getProperty("PkRewardItem", "57,400"));
  55. WAR_LEGEND_AURA = Boolean.parseBoolean(aCis.getProperty("WarLegendAura", "False"));
  56. KILLS_TO_GET_WAR_LEGEND_AURA = Integer.parseInt(aCis.getProperty("KillsToGetWarLegendAura", "30"));
  57. RUN_SPD_BOOST = aCis.getProperty("RunSpeedBoost", 0);
  58. Index: java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java
  59. ===================================================================
  60. --- java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java (revision 118)
  61. +++ java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java (working copy)
  62. @@ -4245,8 +4245,15 @@
  63. {
  64. setHeroAura(true);
  65. Broadcast.announceToOnlinePlayers("Player " + getName() + " becames War Legend with " + Config.KILLS_TO_GET_WAR_LEGEND_AURA + " PvP!!", true);
  66. - }
  67. -
  68. + }
  69. +
  70. + if (Config.ALLOW_PVP_REWARD)
  71. + {
  72. + for (int[] item : Config.PVP_REWARD_ITEM)
  73. + addItem("", item[0], item[1], this, true);
  74. + sendMessage("You will be rewarded for pvp kill!");
  75. + }
  76. +
  77. if (Config.ANNOUNCE_KILL)
  78. Broadcast.toAllOnlinePlayers(SystemMessage.sendString("Player " +getName()+ " Derrotou Player " + target.getName()));
  79.  
  80. @@ -4262,6 +4269,13 @@
  81. if (target instanceof L2PcInstance)
  82. setPkKills(getPkKills() + 1);
  83.  
  84. + if (Config.ALLOW_PK_REWARD)
  85. + {
  86. + for (int[] item : Config.PK_REWARD_ITEM)
  87. + addItem("", item[0], item[1], this, true);
  88. + sendMessage("You will be rewarded for pk kill!");
  89. + }
  90. +
  91. if (Config.ANNOUNCE_KILL)
  92. Broadcast.toAllOnlinePlayers(SystemMessage.sendString("Player " +getName()+ " Assassinou Player " + target.getName()));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement