Arrows/Ammo purchase quantity

Discussion in 'Accepted' started by Kerners, May 24, 2014.

  1. Kerners
    Offline

    Kerners Donator

    Is it possible for the quantity of ammo to have its limit removed? (Currently 1000 arrows per purchase)

    I buy like 50-60k blue arrows each time I repot and having to do it 50-60 times is annoying since the game only allows 1000 arrows to be bought per purchase. If it is too difficult to change then it's no big deal, more of a convenience thing.
     
  2. Doritos
    Offline

    Doritos Donator

    It's 2000 for arrows and 1000 for bolts actually, which strikes me as strange.

    Edit: that's for the default arrows though, not sure about the blue ones.
     
  3. Matt
    Offline

    Matt Administrator

    As far as I know this is a limit set in the client for specific types of input box. So if it was possible to change a new client would be required.

    If any of the other staff know better, feel free to correct me.
     
  4. GOD
    Offline

    GOD Well-Known Member

    Bump! Sorry for the two week bump and I might not be a staff member. But it is actually not predetermined in the client. I used to think the same way until I started dealing with making GMS-like shops in recent versions and in that way, I was exposed to various implementations on shops. From what I've observed in recent version sources, it is predetermined by the maximum amount that can be stored in a stack (we store the min and max quantity possible in the shops sql. Check Moople for this). In other words, if the maximum amount that can be stored is 800, then it can only sell 800 to you.

    Example:
    Bullet: 800
    Subi Throwing Star: 500

    Therefore, you can only get that many in a stack. In order to change this, navigate to Item.wz. Find the item that you want.

    Example: For a Bullet, you will look into 233.img, since the ID is 2330000. Drop the tree view and find 2330000, and drop down that tree view, and click info. Drop down that treeview. slotMax is what controls this. In case you don't believe me, I've demonstrated this on my test server. Here is proof that it actually works:

    [​IMG]
     
    Doritos likes this.

Share This Page