Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ### Eclipse Workspace Patch 1.0
- #P aCis_gameserver
- Index: config/aCis.properties
- ===================================================================
- --- config/aCis.properties (revision 118)
- +++ config/aCis.properties (working copy)
- @@ -83,6 +83,24 @@
- # Default : False
- AnnounceKillPLayers = true
- +#------------------------------------------------------------
- +# Reward to PvP && Pk
- +#------------------------------------------------------------
- +# PvP reward system !
- +# Default : False
- +AllowPvpRewardSystem = False
- +# PvP reward itemId,itemCount;
- +PvpRewardItem = 57,100;6392,100;
- +#------------------------------
- +# PK reward system !
- +# Default : False
- +AllowPkRewardSystem = False
- +# PK reward itemId,itemCount;
- +PkRewardItem = 57,100;6393,100;
- +
- +#------------------------------------------------------------
- +# Hero Aura To pvp
- +#------------------------------------------------------------
- # War Legend Configs
- WarLegendAura = true
- KillsToGetWarLegendAura = 3
- Index: java/net/sf/l2j/Config.java
- ===================================================================
- --- java/net/sf/l2j/Config.java (revision 118)
- +++ java/net/sf/l2j/Config.java (working copy)
- @@ -404,6 +404,10 @@
- public static boolean ENABLE_MODIFY_SKILL_DURATION;
- public static Map<Integer, Integer> SKILL_DURATION_LIST;
- public static boolean ANNOUNCE_KILL;
- + public static boolean ALLOW_PVP_REWARD;
- + public static int[][] PVP_REWARD_ITEM;
- + public static boolean ALLOW_PK_REWARD;
- + public static int[][] PK_REWARD_ITEM;
- public static boolean WAR_LEGEND_AURA;
- public static int KILLS_TO_GET_WAR_LEGEND_AURA;
- /** Limits */
- @@ -976,6 +980,10 @@
- }
- }
- ANNOUNCE_KILL = aCis.getProperty("AnnounceKillPLayers", false);
- + ALLOW_PVP_REWARD = Boolean.parseBoolean(aCis.getProperty("AllowPvpRewardSystem", "False"));
- + PVP_REWARD_ITEM = parseItemsList(aCis.getProperty("PvpRewardItem", "57,400"));
- + ALLOW_PK_REWARD = Boolean.parseBoolean(aCis.getProperty("AllowPkRewardSystem", "False"));
- + PK_REWARD_ITEM = parseItemsList(aCis.getProperty("PkRewardItem", "57,400"));
- WAR_LEGEND_AURA = Boolean.parseBoolean(aCis.getProperty("WarLegendAura", "False"));
- KILLS_TO_GET_WAR_LEGEND_AURA = Integer.parseInt(aCis.getProperty("KillsToGetWarLegendAura", "30"));
- RUN_SPD_BOOST = aCis.getProperty("RunSpeedBoost", 0);
- Index: java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java
- ===================================================================
- --- java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java (revision 118)
- +++ java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java (working copy)
- @@ -4245,8 +4245,15 @@
- {
- setHeroAura(true);
- Broadcast.announceToOnlinePlayers("Player " + getName() + " becames War Legend with " + Config.KILLS_TO_GET_WAR_LEGEND_AURA + " PvP!!", true);
- - }
- -
- + }
- +
- + if (Config.ALLOW_PVP_REWARD)
- + {
- + for (int[] item : Config.PVP_REWARD_ITEM)
- + addItem("", item[0], item[1], this, true);
- + sendMessage("You will be rewarded for pvp kill!");
- + }
- +
- if (Config.ANNOUNCE_KILL)
- Broadcast.toAllOnlinePlayers(SystemMessage.sendString("Player " +getName()+ " Derrotou Player " + target.getName()));
- @@ -4262,6 +4269,13 @@
- if (target instanceof L2PcInstance)
- setPkKills(getPkKills() + 1);
- + if (Config.ALLOW_PK_REWARD)
- + {
- + for (int[] item : Config.PK_REWARD_ITEM)
- + addItem("", item[0], item[1], this, true);
- + sendMessage("You will be rewarded for pk kill!");
- + }
- +
- if (Config.ANNOUNCE_KILL)
- Broadcast.toAllOnlinePlayers(SystemMessage.sendString("Player " +getName()+ " Assassinou Player " + target.getName()));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement