Skip to content

question about enchant scrolls quantity in acis 382

Featured Replies

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?

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

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

 

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

 

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

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

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.