Skip to content

Scheme Buff Limits

Featured Replies

i cant make config on my scheme buffer to  limit buffs number add in each scheme
im using acis pack and i check heir retail scheme buffer how the limit is make
so is look like this

 {
                if (skills.size() < Config.BUFFER_MAX_SKILLS)
                {
                    skills.add(skillId);
                }
                else
                {
                    player.sendMessage("This scheme has reached the maximum amount of buffs.");
                }
            }

i try something similar to add in my second buffer but without luck

that is my second buffer http://pastebin.com/KzLwLkm9

thx in advance if someone can help


 

Edited by Bobi

This is maximum number of schemes, not buffs in schemes.

 

Your second buffer looks bad :/ Maybe you will consider to use different buffer?

  • Author

This is maximum number of schemes, not buffs in schemes.

 

Your second buffer looks bad :/ Maybe you will consider to use different buffer?

sorry i post wrong code :) so main topic update with right code

is so hard to do it for this buffer ? or .. ?

Edited by Bobi

It's not a good buffer. Code you want to add will not be as easy as in the first example, you will need to create connection to database(around line 1550) which will check how many buffs have got scheme of the player.

  • Author

It's not a good buffer. Code you want to add will not be as easy as in the first example, you will need to create connection to database(around line 1550) which will check how many buffs have got scheme of the player.

whats wrong with this buffer ? why is not good ? can u recommend better one ?

There are number of reasons why to use other buffer, but most important of all in my opinion, is that it manages schemes of the player only by database(not saves schemes of the player to L2PcInstance).

Why don't you want to use Acis Buffer?

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.