SHOW:
|
|
- or go back to the newest paste.
1 | Index: net.sf.l2j;Config.java | |
2 | =================================================================== | |
3 | --- net.sf.l2j;Config.java (revision 84) | |
4 | +++ net.sf.l2j;Config.java (working copy) | |
5 | ||
6 | + public static boolean AUG_ITEM_TRADE; | |
7 | + public static boolean AUG_ITEM_DROP; | |
8 | + public static boolean AUG_ITEM_SELL; | |
9 | ||
10 | + AUG_ITEM_TRADE = player.getBoolean("AugItemTrade", false); | |
11 | + AUG_ITEM_DROP = player.getBoolean("AugItemDrop", false); | |
12 | + AUG_ITEM_SELL = player.getBoolean("AugItemSell", false); | |
13 | ||
14 | ||
15 | ||
16 | Index: net.sf.l2j.gameserver.model.item.instance;ItemInstance.java | |
17 | =================================================================== | |
18 | --- net.sf.l2j.gameserver.model.item.instance;ItemInstance.java (revision 84) | |
19 | +++ net.sf.l2j.gameserver.model.item.instance;ItemInstance.java (working copy) | |
20 | ||
21 | - /** | |
22 | - * @return if item is dropable. | |
23 | - */ | |
24 | - public boolean isDropable() | |
25 | - { | |
26 | - return isAugmented() ? false : _item.isDropable(); | |
27 | - } | |
28 | ||
29 | ||
30 | + /** | |
31 | + * @return if item is dropable. | |
32 | + */ | |
33 | + public boolean isDropable() | |
34 | + { | |
35 | + return isAugmented() ? Config.AUG_ITEM_DROP : _item.isDropable(); | |
36 | + } | |
37 | ||
38 | ||
39 | - /** | |
40 | - * @return if item is tradable | |
41 | - */ | |
42 | - public boolean isTradable() | |
43 | - { | |
44 | - return isAugmented() ? false : _item.isTradable(); | |
45 | - } | |
46 | ||
47 | + /** | |
48 | + * @return if item is tradable | |
49 | + */ | |
50 | + public boolean isTradable() | |
51 | + { | |
52 | + return isAugmented() ? Config.AUG_ITEM_TRADE : _item.isTradable(); | |
53 | + } | |
54 | ||
55 | ||
56 | - /** | |
57 | - * @return if item is sellable. | |
58 | - */ | |
59 | - public boolean isSellable() | |
60 | - { | |
61 | - return isAugmented() ? false : _item.isSellable(); | |
62 | - } | |
63 | ||
64 | ||
65 | + /** | |
66 | + * @return if item is sellable. | |
67 | + */ | |
68 | + public boolean isSellable() | |
69 | + { | |
70 | + return isAugmented() ? Config.AUG_ITEM_SELL : _item.isSellable(); | |
71 | + } | |
72 | ||
73 | Index: config/player.properties | |
74 | =================================================================== | |
75 | --- config/player.properties (revision 84) | |
76 | +++ config/player.properties (working copy) | |
77 | ||
78 | + # trade | |
79 | + AugItemTrade = True | |
80 | + | |
81 | + # drop | |
82 | + AugItemDrop = True | |
83 | + | |
84 | + # sell | |
85 | + AugItemSell = True |