Jump to content
  • 0

question about enchant scrolls quantity in acis 382


thepsolartek

Question

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?

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

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
Link to comment
Share on other sites

  • 0

isStackable() is used on multiple packets, for exemple MultiSellList.

 

Simply do a search over net.sf.l2j.gameserver.network.* with isStackable().

Link to comment
Share on other sites

  • 0

 

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

Link to comment
Share on other sites

  • 0

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
Link to comment
Share on other sites

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...