forked from 2009Scape/Server
Allow trading any item
Attempting to trade an untradeable item will give a warning message, but the trade will still be allowed to go through.
This commit is contained in:
parent
440f8ce3ac
commit
6cca2d1bed
1 changed files with 3 additions and 2 deletions
|
|
@ -49,8 +49,9 @@ public final class TradeContainer extends Container {
|
|||
return;
|
||||
}
|
||||
if (!tradeable(item) && !GameWorld.getSettings().isDevMode()) {
|
||||
player.getPacketDispatch().sendMessage("You can't trade this item.");
|
||||
return;
|
||||
player.getPacketDispatch().sendMessage("<col=ff4500>This item is not normally tradeable. Be careful not to break any quests!</col>");
|
||||
//player.getPacketDispatch().sendMessage("You can't trade this item.");
|
||||
//return;
|
||||
}
|
||||
Item remove = new Item(item.getId(), amount);
|
||||
remove.setAmount(stabalizeAmount(remove, amount, player.getInventory()));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue