|
Client sideded: Change
ToCode:rsInterface.itemActions[4] = "Buy 50";
Server sided: In BankX1.java, replace:Code:rsInterface.itemActions[4] = "Buy X";
BankX2.java, add:Code:if (c.xInterfaceId == 3900) { c.buyingX = true; c.outStream.createFrame(27); return; }
You can change the 1000 to whatever.Code:if (c.buyingX) { if (Xamount <= 1000) { c.getShops().buyItem(c.xRemoveId, c.xRemoveSlot, Xamount); } else { c.sendMessage("You cannot buy more than 1000 at a time."); } c.xRemoveSlot = 0; c.xInterfaceId = 0; c.xRemoveId = 0; c.buyingX = false; }
Declare this in Player.java:
If you have any problems, post below.Code:public boolean buyingX;
thanks was released before but looks easier in this so I used will test ty
doesn't even work
You would have to modify the buyItem method and make it so if you're buying a large number of items, it won't loop through a single item, or else it'll take some time to buy the amount of items ,
Hey, i need a little help...
Spoiler for My BankX2:
I dont know where to add
Could someone help me please?Code:if (c.buyingX) { if (Xamount <= 1000) { c.getShops().buyItem(c.xRemoveId, c.xRemoveSlot, Xamount); } else { c.sendMessage("You cannot buy more than 1000 at a time."); } c.xRemoveSlot = 0; c.xInterfaceId = 0; c.xRemoveId = 0; c.buyingX = false; }
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |