Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: net.sf.l2j;Config.java
- ===================================================================
- --- net.sf.l2j;Config.java (revision 84)
- +++ net.sf.l2j;Config.java (working copy)
- + public static boolean AUG_ITEM_TRADE;
- + public static boolean AUG_ITEM_DROP;
- + public static boolean AUG_ITEM_SELL;
- + AUG_ITEM_TRADE = player.getBoolean("AugItemTrade", false);
- + AUG_ITEM_DROP = player.getBoolean("AugItemDrop", false);
- + AUG_ITEM_SELL = player.getBoolean("AugItemSell", false);
- Index: net.sf.l2j.gameserver.model.item.instance;ItemInstance.java
- ===================================================================
- --- net.sf.l2j.gameserver.model.item.instance;ItemInstance.java (revision 84)
- +++ net.sf.l2j.gameserver.model.item.instance;ItemInstance.java (working copy)
- - /**
- - * @return if item is dropable.
- - */
- - public boolean isDropable()
- - {
- - return isAugmented() ? false : _item.isDropable();
- - }
- + /**
- + * @return if item is dropable.
- + */
- + public boolean isDropable()
- + {
- + return isAugmented() ? Config.AUG_ITEM_DROP : _item.isDropable();
- + }
- - /**
- - * @return if item is tradable
- - */
- - public boolean isTradable()
- - {
- - return isAugmented() ? false : _item.isTradable();
- - }
- + /**
- + * @return if item is tradable
- + */
- + public boolean isTradable()
- + {
- + return isAugmented() ? Config.AUG_ITEM_TRADE : _item.isTradable();
- + }
- - /**
- - * @return if item is sellable.
- - */
- - public boolean isSellable()
- - {
- - return isAugmented() ? false : _item.isSellable();
- - }
- + /**
- + * @return if item is sellable.
- + */
- + public boolean isSellable()
- + {
- + return isAugmented() ? Config.AUG_ITEM_SELL : _item.isSellable();
- + }
- Index: config/player.properties
- ===================================================================
- --- config/player.properties (revision 84)
- +++ config/player.properties (working copy)
- + # trade
- + AugItemTrade = True
- +
- + # drop
- + AugItemDrop = True
- +
- + # sell
- + AugItemSell = True
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement