Advertisement
Guest User

Custom Tattoos

a guest
Apr 29th, 2015
548
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 3.30 KB | None | 0 0
  1. ### Eclipse Workspace Patch 1.0
  2. #P aCis_gameserver
  3. Index: config/players.properties
  4. ===================================================================
  5. --- config/players.properties   (revision 1)
  6. +++ config/players.properties   (working copy)
  7. @@ -288,4 +288,17 @@
  8.  MaxBuffsAmount = 20
  9.  
  10.  # Store buffs/debuffs on user logout?
  11. -StoreSkillCooltime = True
  12. \ No newline at end of file
  13. +StoreSkillCooltime = True
  14. +
  15. +# Custom Tattoo Fighter/Mage.
  16. +# Default: False & 100 Pvp kills.
  17. +
  18. +RewardTattooEnable = false
  19. +# Fighter Tattoo
  20. +FighterTattooCount = 1
  21. +FighterTattooID = 492
  22. +# Mage Tattoo.
  23. +MageTattooCount = 1
  24. +MageTattooID = 493
  25. +# Pvp Kills Count.
  26. +PvpKillsCount = 100
  27. \ No newline at end of file
  28. Index: java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java
  29. ===================================================================
  30. --- java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java   (revision 1)
  31. +++ java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java   (working copy)
  32. @@ -4230,6 +4230,23 @@
  33.                 // Add PvP point to attacker.
  34.                 setPvpKills(getPvpKills() + 1);
  35.                
  36. +               // Add Fighter or Mage Tattoos
  37. +               int kills = getPvpKills();
  38. +              
  39. +               if (Config.REWARD_TATTOOS_ENABLE && kills == Config.PVP_COUNT)
  40. +               {
  41. +                   if (isMageClass())
  42. +                   {
  43. +                       addItem("Tattoo", Config.TATTOO_MAGE_ID, Config.MAGE_TATTOO_COUNT, this, true);
  44. +                       sendMessage("Congratulations! " + Config.PVP_COUNT + "  PvP Kills! You won Mage Tattoo.");
  45. +                   }
  46. +                   else
  47. +                   {
  48. +                       addItem("Tattoo", Config.TATTOO_FIGHTER_ID, Config.FIGHTER_TATTOO_COUNT, this, true);
  49. +                       sendMessage("Congratulations! " + Config.PVP_COUNT + "  PvP Kills! You won Fighter Tattoo.");
  50. +                   }
  51. +               }
  52. +              
  53.                 // Send UserInfo packet to attacker with its Karma and PK Counter
  54.                 sendPacket(new UserInfo(this));
  55.             }
  56. Index: java/net/sf/l2j/Config.java
  57. ===================================================================
  58. --- java/net/sf/l2j/Config.java (revision 1)
  59. +++ java/net/sf/l2j/Config.java (working copy)
  60. @@ -492,6 +492,14 @@
  61.     public static boolean STORE_SKILL_COOLTIME;
  62.     public static int BUFFS_MAX_AMOUNT;
  63.    
  64. +   /** Custom Tattoos */
  65. +   public static boolean REWARD_TATTOOS_ENABLE;
  66. +   public static int PVP_COUNT;
  67. +   public static int FIGHTER_TATTOO_COUNT;
  68. +   public static int TATTOO_FIGHTER_ID;
  69. +   public static int MAGE_TATTOO_COUNT;
  70. +   public static int TATTOO_MAGE_ID;
  71. +  
  72.     // --------------------------------------------------
  73.     // Server
  74.     // --------------------------------------------------
  75. @@ -1109,8 +1117,20 @@
  76.             ALT_GAME_SUBCLASS_WITHOUT_QUESTS = players.getProperty("AltSubClassWithoutQuests", false);
  77.            
  78.             BUFFS_MAX_AMOUNT = players.getProperty("MaxBuffsAmount", 20);
  79. +
  80.             STORE_SKILL_COOLTIME = players.getProperty("StoreSkillCooltime", true);
  81.            
  82. +           // Custom Tattoo's
  83. +           REWARD_TATTOOS_ENABLE = players.getProperty("RewardTattooEnable", false);
  84. +
  85. +           TATTOO_FIGHTER_ID = players.getProperty("FighterTattooID", 492);
  86. +           FIGHTER_TATTOO_COUNT = players.getProperty("FighterTattooCount", 1);
  87. +
  88. +           TATTOO_MAGE_ID = players.getProperty("MageTattooID", 493);
  89. +           MAGE_TATTOO_COUNT = players.getProperty("MageTattooCount", 1);
  90. +
  91. +           PVP_COUNT = players.getProperty("PvpKillsCount", 100);
  92. +
  93.             // server
  94.             ExProperties server = load(SERVER_FILE);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement