| Adding selling back to the store | |
|
|
Author | Message |
---|
Quit New Member
Posts : 18 Reputation : 1 Join date : 2011-08-26
| Subject: Adding selling back to the store Fri Aug 26, 2011 8:48 pm | |
| This may be a way to make skillers more common as this provides a method of profit for them. Go to com.rs2hd.content.ShopHandler and search for: - Code:
-
case 621: Replace the entire case with this: - Code:
-
case 621: if (buttonId == 0) { Item def = p.getInventory().getContainer().get(buttonId2); int itemid = def.getId(); switch (packetId) { case 216: /* Value. */ p.sm("That costs " + GameEngine.prices.getMaximumPrice(itemid)); break; case 19: /* * Buy 1. */ if (p.getInventory().contains(itemid, 1)) { p.getInventory().deleteItem(itemid, 1);
p.getInventory() .addItem( (1 * GameEngine.prices .getMaximumPrice(itemid)), 1); }
break; case 193: /* * Buy 5. */ if (p.getInventory().contains(itemid, 5)) { p.getInventory().deleteItem(itemid, 5);
p.getInventory() .addItem( (5 * GameEngine.prices .getMaximumPrice(itemid)), 5); } break; case 76: /* * Buy 10. */ if (p.getInventory().contains(itemid, 10)) { p.getInventory().deleteItem(itemid, 10);
p.getInventory() .addItem( (10 * GameEngine.prices .getMaximumPrice(itemid)), 10); } break; case 173: if (p.getInventory().contains(itemid, 500)) { p.getInventory().deleteItem(itemid, 500);
p.getInventory() .addItem( (500 * GameEngine.prices .getMaximumPrice(itemid)), 500); } break; case 3: /* * Examine. */ p.sm("" + def.getDefinition().getExamine()); break; } } break;
Last edited by Hax on Fri Aug 26, 2011 9:41 pm; edited 1 time in total | |
|
| |
omfgpku New Member
Posts : 38 Reputation : 4 Join date : 2011-08-26
| Subject: Re: Adding selling back to the store Fri Aug 26, 2011 9:11 pm | |
| Are you a coder or something because you seem to know a lot. Another great suggestion as not being able to sell cause your bank to fill up with useless junk like potions. | |
|
| |
Quit New Member
Posts : 18 Reputation : 1 Join date : 2011-08-26
| Subject: Re: Adding selling back to the store Fri Aug 26, 2011 9:13 pm | |
| Yes, I've actually been programming in various languages (including one I made myself) since I was 11. I have been programming RSPS for about a week now. | |
|
| |
omfgpku New Member
Posts : 38 Reputation : 4 Join date : 2011-08-26
| Subject: Re: Adding selling back to the store Fri Aug 26, 2011 9:26 pm | |
| Apply to be the coder. I think you would get accepted. | |
|
| |
Quit New Member
Posts : 18 Reputation : 1 Join date : 2011-08-26
| Subject: Re: Adding selling back to the store Fri Aug 26, 2011 9:29 pm | |
| I had that in mind, but unfortunately, begging for staff is not acceptable | |
|
| |
omfgpku New Member
Posts : 38 Reputation : 4 Join date : 2011-08-26
| Subject: Re: Adding selling back to the store Fri Aug 26, 2011 9:30 pm | |
| That is why you apply in the application section silly | |
|
| |
Jason Graphic Designer
Posts : 30 Reputation : 0 Join date : 2011-08-26
| |
| |
Quit New Member
Posts : 18 Reputation : 1 Join date : 2011-08-26
| Subject: Re: Adding selling back to the store Sat Aug 27, 2011 12:43 am | |
| Was it? I did not know that. | |
|
| |
omfgpku New Member
Posts : 38 Reputation : 4 Join date : 2011-08-26
| Subject: Re: Adding selling back to the store Sat Aug 27, 2011 10:04 am | |
| No mater where it was posted it is still helpful to this server. | |
|
| |
pk ancients New Member
Posts : 23 Reputation : 10 Join date : 2011-08-27 Age : 28 Location : Netherland
| Subject: store Sun Aug 28, 2011 3:10 am | |
| | |
|
| |
Sponsored content
| Subject: Re: Adding selling back to the store | |
| |
|
| |
| Adding selling back to the store | |
|