Jump to content
  • 0

question about enchant scrolls quantity in acis 382


Question

Posted

hi members i have a silly question but as i try one server i saw that you can not buy more than 1 enchant scroll from the shop. what i mean is that you cannot type anything in quantity and that happens only for the enchant scroll cases. how can someone fix this?

4 answers to this question

Recommended Posts

  • 0
Posted (edited)

maybe it's a silly reply, but maybe it's due to by retail scrolls are not stuckable. 

if you add custom code to your source and client and have stuckable scrolls I guess you wont have that problem

Edited by Psyancy
  • 0
Posted

 

On 11/20/2021 at 8:15 AM, thepsolartek said:

hi members i have a silly question but as i try one server i saw that you can not buy more than 1 enchant scroll from the shop. what i mean is that you cannot type anything in quantity and that happens only for the enchant scroll cases. how can someone fix this?

 

I did this to remove Stackable from multisell and hypothetically solve this, but I don't recommend removing isStackable from multisell.

. - Pastebin.com

  • 0
Posted (edited)

check MultiSellChoose i think there is an int called ammount so lets assume you have this variable already 

you can make a for loop which takes 2 parameters ill let you think what you have to add as parameters and inside the loop you have to do smth like

if (sellerItem.getItemId() == scrollId) 
{
    if (sellerItem.getItemCount() > ammount)
    {
        player.sendMessage("rip br0");
        return;
    }
}

 

Edited by Sidereal Day

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock