Siga-nos em...
Follow us on Twitter Follow us on Facebook Watch us on YouTube
Registro

Alpha Servers
Resultados 1 a 1 de 1
  1. #1

    Avatar de UnderZone
    Data de Ingresso
    Feb 2012
    Localização
    Sao goncalo
    Idade
    31
    Posts
    58
    Agradecido
    1
    Peso da Avaliação
    0

    Padrão System Recompensa PVP / PK






    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.

 

 

Informações de Tópico

Usuários Navegando neste Tópico

Há 1 usuários navegando neste tópico. (0 registrados e 1 visitantes)

Tópicos Similares

  1. |Release| Mod PvP Hero system.
    Por UnderZone no fórum L2J -Mods
    Respostas: 0
    Último Post: 13-03-2012, 10:38 PM
  2. System Of A Dilma
    Por Reload no fórum IMPTube
    Respostas: 1
    Último Post: 27-10-2011, 07:44 PM
  3. |Tutorial| Two Weapons System!
    Por KromeSykes no fórum Tibia | Tutoriais
    Respostas: 0
    Último Post: 07-10-2011, 11:29 AM
  4. |Release| MOD Away System
    Por Inspector no fórum L2J -Mods
    Respostas: 0
    Último Post: 01-08-2011, 03:04 AM

Marcadores

Permissões de Postagem

  • Você não pode iniciar novos tópicos
  • Você não pode enviar respostas
  • Você não pode enviar anexos
  • Você não pode editar suas mensagens
  •