Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ### Eclipse Workspace Patch 1.0
- #P L2jFrozen_GameServer
- Index: head-src/com/l2jfrozen/Config.java
- ===================================================================
- --- head-src/com/l2jfrozen/Config.java (revision 1004)
- +++ head-src/com/l2jfrozen/Config.java (working copy)
- @@ -594,6 +594,9 @@
- public static int RESPAWN_RANDOM_MAX_OFFSET;
- public static int MAX_PVTSTORE_SLOTS_DWARF;
- public static int MAX_PVTSTORE_SLOTS_OTHER;
- + public static int MIN_PVP_TO_USE_STORE;
- + public static int MIN_PK_TO_USE_STORE;
- +
- public static boolean PETITIONING_ALLOWED;
- public static int MAX_PETITIONS_PER_PLAYER;
- public static int MAX_PETITIONS_PENDING;
- @@ -785,6 +788,10 @@
- MAX_PVTSTORE_SLOTS_DWARF = Integer.parseInt(otherSettings.getProperty("MaxPvtStoreSlotsDwarf", "5"));
- MAX_PVTSTORE_SLOTS_OTHER = Integer.parseInt(otherSettings.getProperty("MaxPvtStoreSlotsOther", "4"));
- + /* Minimum PvPs and PKs needed to open a private store */
- + MIN_PVP_TO_USE_STORE = Integer.parseInt(otherSettings.getProperty("PvPToUseStore", "0"));
- + MIN_PK_TO_USE_STORE = Integer.parseInt(otherSettings.getProperty("PkToUseStore", "0"));
- +
- STORE_SKILL_COOLTIME = Boolean.parseBoolean(otherSettings.getProperty("StoreSkillCooltime", "true"));
- PET_RENT_NPC = otherSettings.getProperty("ListPetRentNpc", "30827");
- Index: config/head/other.properties
- ===================================================================
- --- config/head/other.properties (revision 1004)
- +++ config/head/other.properties (working copy)
- @@ -118,6 +118,11 @@
- MaxPvtStoreSlotsDwarf = 5
- MaxPvtStoreSlotsOther = 4
- +# Minimum PvPs and PKs needed to open a private store
- +# Default: 0
- +PvPToUseStore = 0
- +PkToUseStore = 0
- +
- # Keep the effects buffs and debuff when you exit the game
- StoreSkillCooltime = True
- Index: head-src/com/l2jfrozen/gameserver/network/clientpackets/SetPrivateStoreListSell.java
- ===================================================================
- --- head-src/com/l2jfrozen/gameserver/network/clientpackets/SetPrivateStoreListSell.java (revision 1004)
- +++ head-src/com/l2jfrozen/gameserver/network/clientpackets/SetPrivateStoreListSell.java (working copy)
- @@ -75,6 +75,24 @@
- L2PcInstance player = getClient().getActiveChar();
- if (player == null)
- return;
- +
- + if(Config.MIN_PVP_TO_USE_STORE != 0 || Config.MIN_PK_TO_USE_STORE != 0)
- + {
- + if(player.getPvpKills() <= Config.MIN_PVP_TO_USE_STORE)
- + {
- + player.sendMessage("You must have at least " + Config.MIN_PVP_TO_USE_STORE + " pvp kills in order to open private store.");
- + player.setPrivateStoreType(L2PcInstance.STORE_PRIVATE_NONE);
- + player.broadcastUserInfo();
- + return;
- + }
- + else if(player.getPkKills() <= Config.MIN_PK_TO_USE_STORE)
- + {
- + player.sendMessage("You must have at least " + Config.MIN_PK_TO_USE_STORE + " pk kills in order to open private store.");
- + player.setPrivateStoreType(L2PcInstance.STORE_PRIVATE_NONE);
- + player.broadcastUserInfo();
- + return;
- + }
- + }
- if (!player.getAccessLevel().allowTransaction())
- {
- Index: head-src/com/l2jfrozen/gameserver/network/clientpackets/SetPrivateStoreListBuy.java
- ===================================================================
- --- head-src/com/l2jfrozen/gameserver/network/clientpackets/SetPrivateStoreListBuy.java (revision 1004)
- +++ head-src/com/l2jfrozen/gameserver/network/clientpackets/SetPrivateStoreListBuy.java (working copy)
- @@ -76,6 +76,24 @@
- if (player == null)
- return;
- + if(Config.MIN_PVP_TO_USE_STORE != 0 || Config.MIN_PK_TO_USE_STORE != 0)
- + {
- + if(player.getPvpKills() <= Config.MIN_PVP_TO_USE_STORE)
- + {
- + player.sendMessage("You must have at least " + Config.MIN_PVP_TO_USE_STORE + " pvp kills in order to open private store.");
- + player.setPrivateStoreType(L2PcInstance.STORE_PRIVATE_NONE);
- + player.broadcastUserInfo();
- + return;
- + }
- + else if(player.getPkKills() <= Config.MIN_PK_TO_USE_STORE)
- + {
- + player.sendMessage("You must have at least " + Config.MIN_PK_TO_USE_STORE + " pk kills in order to open private store.");
- + player.setPrivateStoreType(L2PcInstance.STORE_PRIVATE_NONE);
- + player.broadcastUserInfo();
- + return;
- + }
- + }
- +
- if (!player.getAccessLevel().allowTransaction())
- {
- player.sendMessage("Transactions are disable for your Access Level");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement