Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ### Eclipse Workspace Patch 1.0
- #P aCis_gameserver
- Index: config/players.properties
- ===================================================================
- --- config/players.properties (revision 1)
- +++ config/players.properties (working copy)
- @@ -288,4 +288,17 @@
- MaxBuffsAmount = 20
- # Store buffs/debuffs on user logout?
- -StoreSkillCooltime = True
- \ No newline at end of file
- +StoreSkillCooltime = True
- +
- +# Custom Tattoo Fighter/Mage.
- +# Default: False & 100 Pvp kills.
- +
- +RewardTattooEnable = false
- +# Fighter Tattoo
- +FighterTattooCount = 1
- +FighterTattooID = 492
- +# Mage Tattoo.
- +MageTattooCount = 1
- +MageTattooID = 493
- +# Pvp Kills Count.
- +PvpKillsCount = 100
- \ No newline at end of file
- Index: java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java
- ===================================================================
- --- java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java (revision 1)
- +++ java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java (working copy)
- @@ -4230,6 +4230,23 @@
- // Add PvP point to attacker.
- setPvpKills(getPvpKills() + 1);
- + // Add Fighter or Mage Tattoos
- + int kills = getPvpKills();
- +
- + if (Config.REWARD_TATTOOS_ENABLE && kills == Config.PVP_COUNT)
- + {
- + if (isMageClass())
- + {
- + addItem("Tattoo", Config.TATTOO_MAGE_ID, Config.MAGE_TATTOO_COUNT, this, true);
- + sendMessage("Congratulations! " + Config.PVP_COUNT + " PvP Kills! You won Mage Tattoo.");
- + }
- + else
- + {
- + addItem("Tattoo", Config.TATTOO_FIGHTER_ID, Config.FIGHTER_TATTOO_COUNT, this, true);
- + sendMessage("Congratulations! " + Config.PVP_COUNT + " PvP Kills! You won Fighter Tattoo.");
- + }
- + }
- +
- // Send UserInfo packet to attacker with its Karma and PK Counter
- sendPacket(new UserInfo(this));
- }
- Index: java/net/sf/l2j/Config.java
- ===================================================================
- --- java/net/sf/l2j/Config.java (revision 1)
- +++ java/net/sf/l2j/Config.java (working copy)
- @@ -492,6 +492,14 @@
- public static boolean STORE_SKILL_COOLTIME;
- public static int BUFFS_MAX_AMOUNT;
- + /** Custom Tattoos */
- + public static boolean REWARD_TATTOOS_ENABLE;
- + public static int PVP_COUNT;
- + public static int FIGHTER_TATTOO_COUNT;
- + public static int TATTOO_FIGHTER_ID;
- + public static int MAGE_TATTOO_COUNT;
- + public static int TATTOO_MAGE_ID;
- +
- // --------------------------------------------------
- // Server
- // --------------------------------------------------
- @@ -1109,8 +1117,20 @@
- ALT_GAME_SUBCLASS_WITHOUT_QUESTS = players.getProperty("AltSubClassWithoutQuests", false);
- BUFFS_MAX_AMOUNT = players.getProperty("MaxBuffsAmount", 20);
- +
- STORE_SKILL_COOLTIME = players.getProperty("StoreSkillCooltime", true);
- + // Custom Tattoo's
- + REWARD_TATTOOS_ENABLE = players.getProperty("RewardTattooEnable", false);
- +
- + TATTOO_FIGHTER_ID = players.getProperty("FighterTattooID", 492);
- + FIGHTER_TATTOO_COUNT = players.getProperty("FighterTattooCount", 1);
- +
- + TATTOO_MAGE_ID = players.getProperty("MageTattooID", 493);
- + MAGE_TATTOO_COUNT = players.getProperty("MageTattooCount", 1);
- +
- + PVP_COUNT = players.getProperty("PvpKillsCount", 100);
- +
- // server
- ExProperties server = load(SERVER_FILE);
Add Comment
Please, Sign In to add comment