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)
  On 4/6/2015 at 9:21 PM, vampir said:

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
  On 4/6/2015 at 11:17 PM, vampir said:

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.



  • Posts

    • Bro the game is so old it doesn't have a native option to scale the UI like in modern MMOs
    • Dear players, From April 19 to April 27 inc., the Bonus Start event will be active. It’s designed to help new and low-level characters get started more easily.   All characters that meet one of the following conditions: — created less than 3 days ago (regardless of level), — currently level 20 or below, — created during the event period, will receive upon login: — 10 sets of buff scrolls (phys or mage, depending on class), — 10 packs of +50% Drop/Spoil runes (2 hours each), — 10 packs of +50% Exp runes (2 hours each). Characters between level 21 and 30 will receive upon login: — 6 sets of buff scrolls, — 6 packs of +50% Drop/Spoil runes (2h each), — 6 packs of +50% Exp runes (2h each).   Event items will be removed approx. 09.05.2025 Server rates will be increased to x2.25. Take this chance to start your journey with ease or bring an old hero back into the fight — it’s the perfect time to test your strength! Open Beta Test is started!  Helper cats are waiting in towns — talk to them to receive the necessary equipment and level up your character. Siege Schedule:  - April 13 at 16:00 (GMT+2) – Innadrile Castle - April 14 at 20:00 (GMT+2) – Bandit Stronghold - April 15 at 20:00 (GMT+2) – Devastated Castle 📌 During the OBT, players who report bugs will receive CoL:   - 1 CoL for each reported staticmeshes bug (e.g., walking through textures, stairs, etc.) - 2 CoL or more for server-related issues (depending on severity) You can report bugs on the forum. The Open Beta Test will run approximately until April 15 at 23:00 (GMT+2). Your activity and feedback will help us improve the game.   Download links: Download client | Download updater 
    • begin if (user.dead) then begin delay(555); Engine.GoHome(rtCastle); print('User dead, going to castle..') end; end.  
    • Hello everyone. Long time no see. I've been trying to play L2 on my 4k monitor, however the UI is extremely small.  I checked around the internet and couldn't find a guide on how to keep the resolution high and the UI size a bit bigger. I either get small UI + full resolution (correct resolution of monitor), or normal sized UI but resolution set to full HD (which doesn't really look good on a 4k screen). Adjusting scaling on display settings doesn't change the UI just the text on L2. Does anyone know a way to increase the UI size only and keeping the screens resolution same (4k) ? I'll share a screenshot as an example, and it 's not even full screen mode. https://freeimage.host/i/3cvPVnI  
    • Hello guys. I want to know if there is a way(script or something) to make character go to castle after death in adrenaline bot
  • Topics

×
×
  • Create New...