Jump to content

Adrenaline Dynamic Bypass(REGEX) ALT+B Buffer help

Recommended Posts

As the title says, I m begging any of you to help me with this issue, the server had dynamic bypass meaning every time you go to alt b and back the bypass is changing..... 

However I found this resource: https://adrenalinebot.com/en/api/example/work-with-dynamic-bypasses-parsing-regular-expressions


They suggest using this:


uses SysUtils, Classes, RegExpr;  // plug in module RegExpr

function Bypass(dlg: string): boolean;
  RegExp: TRegExpr;
  SL: TStringList;
  i: integer;
  bps: string;
  Result:= true;                                            // set the default result
  RegExp:= TRegExpr.Create;                                 // initialize objects for further work
  SL:= TStringList.Create;
  RegExp.Expression:= '(<a *(.+?)</a>)|(<button *(.+?)>)';  // set regexp to search for all possible bypasses
  if RegExp.Exec(Engine.DlgText) then                       // if you found the desired pattern, then
    repeat SL.Add(RegExp.Match[0]);                         // fill our list with such matches
    until (not RegExp.ExecNext);                            // until the patterns run out

  for i:= 0 to SL.Count-1 do begin                          // now go over our list
    if (Pos(dlg, SL[ i ]) > 0) then begin                   // if the i-th line contains the required text, then
      RegExp.Expression:= '"bypass -h *(.+?)"';             // look for a text template with bypass
      if RegExp.Exec(SL[ i ]) then                          // and if found, then copy from it a piece of interest to us
        bps:= TrimLeft(Copy(RegExp.Match[0], 12, Length(RegExp.Match[0])-12));
  Print(bps);                                               // print out the final bypass
  if (Length(bps) > 0) then Engine.BypassToServer(bps);     // if its length is > 0, then send to server
  RegExp.Free;                                              // do not forget to free up memory

  Bypass('Fighter Scheme');   // directly the function call, it will find the corresponding bypass and send it




However nothing happends...also the base script is this:


uses SysUtils, Classes, RegExpr;  // plug in module RegExpr

procedure PrintAllTags();   // print all designs with bypasses
var RegExp: TRegExpr; 
  RegExp:= TRegExpr.Create;
  RegExp.Expression:= '(<a *(.+?)</a>)|(<button *(.+?)>)';   
  if RegExp.Exec(Engine.DlgText) then 
    repeat Print(RegExp.Match[0]);
    until (not RegExp.ExecNext);  




It should return bypasses right? But it doesnt for me.... ( everything works fine with other scripts btw)


Thank you for your time!

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.

Reply to this topic...

×   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

    • Te esperamos este viernes en  L2 Seal Proyecto Hunter . Open : 1/12/23 a las 21:00hs GMT-3 Para cerrar el año,de la mejor manera te esperamos en el servidor mid más grande de habla hispana.   !!!Te lo vas a perder!!! Estamos de regreso, con mucho contenido nuevo. Cliente : H5. Rates: EXP/SP: x20 Adena: x10 Seal Stones: x4 Raid Boss EXP/SP: x5 Spoil: x10 Keymats Drop/Spoil: x5 Raid Boss Drop: x5 Drop: x8 Manor: x2 Eppaulletes: x5  Features : NPC Buffer com buffs de 2 hora GM-Shop up to Dynasty Mana Potions (1000 MP, 10 seg. Cooldown) Skills autolearn inclusive los 81/83 Buff Slots: 24 (+4 com Divine Inspiration LVL 4) Auto pickup configurable Offline Shop (Colocar el char en modo store y cerrar el cliente.) Cambio de 1ª classe (10.000 adena) Cambio de 2ª classe (500.000 adena) Cambio de 3ª classe (2.000.000 adena) Sub class No requiere quest items ni quest. Nobless Via quest (H5 Quest) Community con status de Raid Boss Shift + Click para ver a lista de drops (Rate Server) Global Shout / Delay 20 segundos. Max. Clientes/PC: 4 Max. Ventanas de Autofarm 1 por HWID Max. Miembros de clan en Zonas Épicas: Sin Restriccion Allys permitidas (Max. 2 Clanes) Cancellation: 2-4 buff con chance y random. Puedes contactarnos en : Discord: https://discord.com/invite/hmVaZFrFEy 🦸 Website:  www.l2seal.com
    • Good day everybody.   A credible team that SGuard represents is looking for java developers.    These positions is full time only i.e. your time is mostly dedicated within the team and team tasks.  All necessary tools are provided.  The team is consistent with > 6 team members and the team is looking to expand to meet various goals. A decent Lineage 2 Essense OR Main (GOD) knowledge is needed.  Experience with l2r/l2p/l2s (not l2j or mobius) type of servers. The team is friendly and goal oriented, very active and resourceful.   Requirements are standard however strong java codding skill is necessary for the position.  Multi language is a plus but not necessary (English/Russian), any is accepted.   Terms and conditions including compensation are reasonable and considered to be up for the industry standards. Details are negotiable with suitable candidates.   You have to have either a public name that can be checked out or a strong reference from credible sources. You will need to have a headset and a mic just for the initial processing, there're no team meetings or conferences after that.   The team has decided it is in their best interest to not publish their information at this time. Details will be available only for suitable candidates.   If you think you're a good fit. Please contact me at:   skype: live:sguard.soft telegram: https://t.me/tech_support_s2    
    • SCAMMER Please do not get scammed! His Sellix Feedback is fake, his store opening date is manipulated by scripts. Daniele, the developer of Sellix confirmed this before suspending his account. You will receive a rar file with a doc that contains some random email and password and it won’t work. He won’t respond to your tickets either. I lost $120
    • Lineage II Interlude: Ember x3 The server offers a retail atmosphere with NPC buffs, low rates, and a bug-free environment. The auto-hunt feature transforms your game adventure by allowing you to easily accomplish challenges while managing the demands of a busy life.   Server Status: Online [Closed Beta Test] Official Opening: TBD Website: l2ember.online Community: Discord Channel   Key Features Our network infrastructure can support up to 5,000 simultaneous connections without compromising the quality of gameplay. The augmentation system follows the guidelines of the official server. Geodata operates smoothly and without issues. The game's data, which includes monster spawns, loot availability, and player skills, is working correctly. We are actively working on official-like quests and refining the game. Our AI is adequate and corresponds to the PTS server. Sieges are similar to the official server, without any lag or glitches. The Olympiad is fully functional and may be customized to the preferences of the players.   Rates EXP/SP (Regular Monsters): x3 EXP/SP (Raid Bosses): x2 EXP/SP (Quest): x1 Items Drop Rate: x2 Items Drop Rate (Raid Bosses): x2 Items Drop Rate (Quest): x2 Quest Items Reward Rate: x1 Quest Adena Reward Rate: x1 Adena Drop Rate: x2 Seal Stones Drop Rate: x2 Spoil Drop Rate: x2
    • I come here to show some of my work for any L2j version.   Base project for the work: L2jAcis 401   I will constantly update when I create more demonstration videos.   SellBuff System ( Online And Offline Mode ) : 50€  Payments: PayPal / Binance Videos:      NOTE: If I have broken any rules, please send me a PM.  
  • Topics

  • Create New...