Quit New Member
Posts : 18 Reputation : 1 Join date : 2011-08-26
| Subject: Fixing "Buy 500" Fri Aug 26, 2011 9:03 pm | |
| This will make skilling much easier. With the current source, if you click "buy 500" from any shop and the item isn't stackable you will get an error message. This fix will make it so that if you click "buy 500" it will add the item you want to buy to your inventory * by however many spaces you have in your inventory. In com.rs2hd.model.Inventory, search for: - Code:
-
boolean b = inventory.add(new Item(item, amount)); if (!b) { player.getActionSender().sendMessage( "Not enough space in your inventory."); return false; } Replace it with: - Code:
-
boolean b = inventory.add(new Item(item, amount)); if (!b) { player.getInventory().addItem(item, player.getInventory().getFreeSlots()) return false; }
Last edited by Hax on Fri Aug 26, 2011 9:12 pm; edited 1 time in total | |
|
omfgpku New Member
Posts : 38 Reputation : 4 Join date : 2011-08-26
| Subject: Re: Fixing "Buy 500" Fri Aug 26, 2011 9:09 pm | |
| good suggestion that would have helped | |
|
pk ancients New Member
Posts : 23 Reputation : 10 Join date : 2011-08-27 Age : 28 Location : Netherland
| Subject: buy 500 Sun Aug 28, 2011 3:11 am | |
| I hope it won't take the price x500 then? :O | |
|
omfgpku New Member
Posts : 38 Reputation : 4 Join date : 2011-08-26
| Subject: Re: Fixing "Buy 500" Sun Aug 28, 2011 9:42 am | |
| I got the cash so I have no need to worry | |
|
Sponsored content
| Subject: Re: Fixing "Buy 500" | |
| |
|