Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #P aCis_gameserver
- Index: java/net/sf/l2j/Config.java
- ===================================================================
- --- java/net/sf/l2j/Config.java (revision 1)
- +++ java/net/sf/l2j/Config.java (working copy)
- @@ -132,6 +134,8 @@
- public static int CH_FRONT1_FEE;
- public static int CH_FRONT2_FEE;
- + public static int ITEM_ID_BUY_CLAN_HALL;
- +
- // --------------------------------------------------
- // Events settings
- // --------------------------------------------------
- @@ -786,6 +792,8 @@
- CH_FRONT1_FEE = clans.getProperty("ClanHallFrontPlatformFunctionFeeLvl1", 3031);
- CH_FRONT2_FEE = clans.getProperty("ClanHallFrontPlatformFunctionFeeLvl2", 9331);
- + ITEM_ID_BUY_CLAN_HALL = clans.getProperty("ItemIDBuyClanHall", 57);
- +
- // Events config
- ExProperties events = load(EVENTS_FILE);
- ALT_OLY_START_TIME = events.getProperty("AltOlyStartTime", 18);
- Index: java/net/sf/l2j/gameserver/model/itemcontainer/ItemContainer.java
- ===================================================================
- --- java/net/sf/l2j/gameserver/model/itemcontainer/ItemContainer.java (revision 1)
- +++ java/net/sf/l2j/gameserver/model/itemcontainer/ItemContainer.java (working copy)
- @@ -502,7 +502,7 @@
- for (L2ItemInstance item : _items)
- {
- - if (item != null && item.getItemId() == 57)
- + if (item != null && item.getItemId() == Config.ITEM_ID_BUY_CLAN_HALL)
- {
- count = item.getCount();
- return count;
- Index: java/net/sf/l2j/gameserver/model/entity/Auction.java
- ===================================================================
- --- java/net/sf/l2j/gameserver/model/entity/Auction.java (revision 1)
- +++ java/net/sf/l2j/gameserver/model/entity/Auction.java (working copy)
- @@ -23,6 +23,7 @@
- import java.util.logging.Level;
- import java.util.logging.Logger;
- +import net.sf.l2j.Config;
- import net.sf.l2j.L2DatabaseFactory;
- import net.sf.l2j.gameserver.ThreadPoolManager;
- import net.sf.l2j.gameserver.datatables.ClanTable;
- @@ -280,7 +281,7 @@
- final int limit = Integer.MAX_VALUE - ClanTable.getInstance().getClanByName(Clan).getWarehouse().getAdena();
- quantity = Math.min(quantity, limit);
- - ClanTable.getInstance().getClanByName(Clan).getWarehouse().addItem("Outbidded", 57, quantity, null, null);
- + ClanTable.getInstance().getClanByName(Clan).getWarehouse().addItem("Outbidded", Config.ITEM_ID_BUY_CLAN_HALL, quantity, null, null);
- }
- /**
- @@ -293,11 +294,13 @@
- {
- if (bidder.getClan() != null && bidder.getClan().getWarehouse().getAdena() >= quantity)
- {
- - bidder.getClan().getWarehouse().destroyItemByItemId("Buy", 57, quantity, bidder, bidder);
- + bidder.getClan().getWarehouse().destroyItemByItemId("Buy", Config.ITEM_ID_BUY_CLAN_HALL, quantity, bidder, bidder);
- return true;
- }
- - bidder.sendPacket(SystemMessageId.NOT_ENOUGH_ADENA_IN_CWH);
- + SystemMessageId msgId = Config.ITEM_ID_BUY_CLAN_HALL == 57 ? SystemMessageId.NOT_ENOUGH_ADENA_IN_CWH : SystemMessageId.NOT_ENOUGH_ITEMS;
- + bidder.sendPacket(msgId);
- +
- return false;
- }
- Index: config/clans.properties
- ===================================================================
- --- config/clans.properties (revision 1)
- +++ config/clans.properties (working copy)
- @@ -180,3 +185,9 @@
- ClanHallCurtainFunctionFeeLvl2 = 2625
- ClanHallFrontPlatformFunctionFeeLvl1 = 3031
- ClanHallFrontPlatformFunctionFeeLvl2 = 9331
- +
- +#-------------------------------------------------------------
- +# Configure item id to buy clan halls - By Bluur
- +#-------------------------------------------------------------
- +# Default: 57
- +ItemIDBuyClanHall = 57
- \ No newline at end of file
Add Comment
Please, Sign In to add comment