Código:### Eclipse Workspace Patch 1.0#P l2jsplashIndex: L2JSlash_CORE/java/com/l2j/splash/gameserver/model/actor/instance/L2PcInstance.java===================================================================--- L2JSlash_CORE/java/com/l2j/splash/gameserver/model/actor/instance/L2PcInstance.java (revision 27)+++ L2JSlash_CORE/java/com/l2j/splash/gameserver/model/actor/instance/L2PcInstance.java (working copy)@@ -4561,6 +4561,15 @@ sendMessage("Voce foi recompensado por este PVP Kill!"); } + if (Config.ALLOW_PVP_REWARD_HERO)+ {+ // Hero && Item Reward system+ addItem("Loot", Config.PVP_REWARD_ITEM, Config.PVP_REWARD_COUNT, this, true);+ setHero(true);+ Announcements.getInstance().announceToAll("O Player : "+getName()+" acabou de virar hero por " +Config.PVP_REWARD_COUNT+ " PVP's.");+ sendMessage("Voce foi recompensado por este PVP Kill!");+ }+ // Add karma to attacker and increase its PK counter setPvpKills(getPvpKills() + 1); updatePvPColor(getPvpKills());@@ -4625,6 +4634,15 @@ addItem("Loot", Config.PK_REWARD_ITEM, Config.PK_REWARD_COUNT, this, true); sendMessage("Voce foi recompensado por este PK Kill!"); }+ + if (Config.ALLOW_PK_REWARD_HERO) + { + // Item Reward system + addItem("Loot", Config.PK_REWARD_ITEM, Config.PK_REWARD_COUNT, this, true); + setHero(true); + Announcements.getInstance().announceToAll("O Player : "+getName()+" acabou de virar hero por " +Config.PK_REWARD_COUNT + " PK's."); + sendMessage("Voce foi recompensado por este PK Kill!"); + } // Add karma to attacker and increase its PK counter setPkKills(getPkKills() + 1);Index: L2JSlash_CORE/java/com/l2j/splash/Config.java===================================================================--- L2JSlash_CORE/java/com/l2j/splash/Config.java (revision 31) +++ L2JSlash_CORE/java/com/l2j/splash/Config.java (working copy)@@ -668,10 +668,12 @@ public static int FREIGHT_SLOTS; // PvP and PK Reward + public static boolean ALLOW_PVP_REWARD_HERO; public static boolean ALLOW_PVP_REWARD; public static int PVP_REWARD_ITEM; public static int PVP_REWARD_COUNT; + public static boolean ALLOW_PK_REWARD_HERO; public static boolean ALLOW_PK_REWARD; public static int PK_REWARD_ITEM; public static int PK_REWARD_COUNT;@@ -2784,9 +2786,11 @@ TITLE_COLOR_FOR_PK_AMOUNT4 = Integer.decode("0x" + pvpSettings.getProperty("TitleForAmount4", "00FF00")); TITLE_COLOR_FOR_PK_AMOUNT5 = Integer.decode("0x" + pvpSettings.getProperty("TitleForAmount5", "00FF00")); // PvP and PK Reward + ALLOW_PVP_REWARD_HERO = Boolean.parseBoolean(pvpSettings.getProperty("AllowPvpRewardHeroSystem", "False")); ALLOW_PVP_REWARD = Boolean.parseBoolean(pvpSettings.getProperty("AllowPvpRewardSystem", "False")); PVP_REWARD_ITEM = Integer.parseInt(pvpSettings.getProperty("PvpRewardItem", "57")); PVP_REWARD_COUNT = Integer.parseInt(pvpSettings.getProperty("PvpRewardAmount", "1")); + ALLOW_PK_REWARD_HERO = Boolean.parseBoolean(pvpSettings.getProperty("AllowPkRewardHeroSystem", "False")); ALLOW_PK_REWARD = Boolean.parseBoolean(pvpSettings.getProperty("AllowPkRewardSystem", "False")); PK_REWARD_ITEM = Integer.parseInt(pvpSettings.getProperty("PkRewardItem", "57")); PK_REWARD_COUNT = Integer.parseInt(pvpSettings.getProperty("PkRewardAmount", "1"));Index: L2JSlash_CORE/java/config/customs/pvp.ini===================================================================--- L2JSlash_CORE/java/config/customs/pvp.ini (revision 27) +++ L2JSlash_CORE/java/config/customs/pvp.ini (working copy)@@ -95,8 +95,11 @@#--------------------------------------------- ## Custom PVP/PK settings ##--------------------------------------------- # +# Pvp Hero reward system+AllowPvpRewardHeroSystem = True +# Pvp reward system-AllowPvpRewardSystem = False +AllowPvpRewardSystem = True# Pvp reward itemIdPvpRewardItem = 57@@ -105,6 +108,9 @@PvpRewardAmount = 1# Pk reward system+AllowPkRewardHeroSystem = True + +# Pk reward systemAllowPkRewardSystem = False# Pk reward itemId
Creditos : Codigos L2jserver / Modificacoes que nao sei qual foi por SAPOO
Última edição por UnderZone; 14-03-2012 às 02:28 PM.
Há 1 usuários navegando neste tópico. (0 registrados e 1 visitantes)
Marcadores