Jump to content
  • 0

Scheme Buff Limits


Question

Posted (edited)

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

5 answers to this question

Recommended Posts

  • 0
Posted

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

 

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

  • 0
Posted (edited)

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
  • 0
Posted

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.

  • 0
Posted

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 ?

  • 0
Posted

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?

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