SHOW:
|
|
- or go back to the newest paste.
| 1 | #P aCis_gameserver | |
| 2 | Index: java/net/sf/l2j/Config.java | |
| 3 | =================================================================== | |
| 4 | --- java/net/sf/l2j/Config.java (revision 1) | |
| 5 | +++ java/net/sf/l2j/Config.java (working copy) | |
| 6 | @@ -132,6 +134,8 @@ | |
| 7 | public static int CH_FRONT1_FEE; | |
| 8 | public static int CH_FRONT2_FEE; | |
| 9 | ||
| 10 | + public static int ITEM_ID_BUY_CLAN_HALL; | |
| 11 | + | |
| 12 | // -------------------------------------------------- | |
| 13 | // Events settings | |
| 14 | // -------------------------------------------------- | |
| 15 | @@ -786,6 +792,8 @@ | |
| 16 | CH_FRONT1_FEE = clans.getProperty("ClanHallFrontPlatformFunctionFeeLvl1", 3031);
| |
| 17 | CH_FRONT2_FEE = clans.getProperty("ClanHallFrontPlatformFunctionFeeLvl2", 9331);
| |
| 18 | ||
| 19 | + ITEM_ID_BUY_CLAN_HALL = clans.getProperty("ItemIDBuyClanHall", 57);
| |
| 20 | + | |
| 21 | // Events config | |
| 22 | ExProperties events = load(EVENTS_FILE); | |
| 23 | ALT_OLY_START_TIME = events.getProperty("AltOlyStartTime", 18);
| |
| 24 | Index: java/net/sf/l2j/gameserver/model/itemcontainer/ItemContainer.java | |
| 25 | =================================================================== | |
| 26 | --- java/net/sf/l2j/gameserver/model/itemcontainer/ItemContainer.java (revision 1) | |
| 27 | +++ java/net/sf/l2j/gameserver/model/itemcontainer/ItemContainer.java (working copy) | |
| 28 | @@ -502,7 +502,7 @@ | |
| 29 | ||
| 30 | for (L2ItemInstance item : _items) | |
| 31 | {
| |
| 32 | - if (item != null && item.getItemId() == 57) | |
| 33 | + if (item != null && item.getItemId() == Config.ITEM_ID_BUY_CLAN_HALL) | |
| 34 | {
| |
| 35 | count = item.getCount(); | |
| 36 | return count; | |
| 37 | Index: java/net/sf/l2j/gameserver/model/entity/Auction.java | |
| 38 | =================================================================== | |
| 39 | --- java/net/sf/l2j/gameserver/model/entity/Auction.java (revision 1) | |
| 40 | +++ java/net/sf/l2j/gameserver/model/entity/Auction.java (working copy) | |
| 41 | @@ -23,6 +23,7 @@ | |
| 42 | import java.util.logging.Level; | |
| 43 | import java.util.logging.Logger; | |
| 44 | ||
| 45 | +import net.sf.l2j.Config; | |
| 46 | import net.sf.l2j.L2DatabaseFactory; | |
| 47 | import net.sf.l2j.gameserver.ThreadPoolManager; | |
| 48 | import net.sf.l2j.gameserver.datatables.ClanTable; | |
| 49 | @@ -280,7 +281,7 @@ | |
| 50 | final int limit = Integer.MAX_VALUE - ClanTable.getInstance().getClanByName(Clan).getWarehouse().getAdena(); | |
| 51 | quantity = Math.min(quantity, limit); | |
| 52 | ||
| 53 | - ClanTable.getInstance().getClanByName(Clan).getWarehouse().addItem("Outbidded", 57, quantity, null, null);
| |
| 54 | + ClanTable.getInstance().getClanByName(Clan).getWarehouse().addItem("Outbidded", Config.ITEM_ID_BUY_CLAN_HALL, quantity, null, null);
| |
| 55 | } | |
| 56 | ||
| 57 | /** | |
| 58 | @@ -293,11 +294,13 @@ | |
| 59 | {
| |
| 60 | if (bidder.getClan() != null && bidder.getClan().getWarehouse().getAdena() >= quantity) | |
| 61 | {
| |
| 62 | - bidder.getClan().getWarehouse().destroyItemByItemId("Buy", 57, quantity, bidder, bidder);
| |
| 63 | + bidder.getClan().getWarehouse().destroyItemByItemId("Buy", Config.ITEM_ID_BUY_CLAN_HALL, quantity, bidder, bidder);
| |
| 64 | return true; | |
| 65 | } | |
| 66 | ||
| 67 | - bidder.sendPacket(SystemMessageId.NOT_ENOUGH_ADENA_IN_CWH); | |
| 68 | + SystemMessageId msgId = Config.ITEM_ID_BUY_CLAN_HALL == 57 ? SystemMessageId.NOT_ENOUGH_ADENA_IN_CWH : SystemMessageId.NOT_ENOUGH_ITEMS; | |
| 69 | + bidder.sendPacket(msgId); | |
| 70 | + | |
| 71 | return false; | |
| 72 | } | |
| 73 | ||
| 74 | Index: config/clans.properties | |
| 75 | =================================================================== | |
| 76 | --- config/clans.properties (revision 1) | |
| 77 | +++ config/clans.properties (working copy) | |
| 78 | @@ -180,3 +185,9 @@ | |
| 79 | ClanHallCurtainFunctionFeeLvl2 = 2625 | |
| 80 | ClanHallFrontPlatformFunctionFeeLvl1 = 3031 | |
| 81 | ClanHallFrontPlatformFunctionFeeLvl2 = 9331 | |
| 82 | + | |
| 83 | +#------------------------------------------------------------- | |
| 84 | +# Configure item id to buy clan halls - By Bluur | |
| 85 | +#------------------------------------------------------------- | |
| 86 | +# Default: 57 | |
| 87 | +ItemIDBuyClanHall = 57 | |
| 88 | \ No newline at end of file |