Jump to content

Recommended Posts

Posted

Hello, i wrote a script for my bot to make soe when need's rebuff and turn back to the farm zone.

The problem is when character turns to the farm zone, it targets again the (custom) gatekeeper and the mobs, and the character is going down and up all the time

Is any solution to stop targeting the gatekeeper when teleports on the farm zone?

 

Here is the code

repeat
if (GetMe():GotBuff(4356) == false) 

then

SetPause(true);
ShowToClient("System", "Need Rebuff!");
Sleep(1000);
UseItem(7126);
Sleep(500);
ShowToClient("System", "Teleporting!");
Sleep(10);

moveDistance = 30;

MoveTo(83401, 148161, -3405, moveDistance);
MoveTo(83420, 148239, -3405, moveDistance);
MoveTo(83360, 148303, -3405, moveDistance);TargetNpc("Jimmy", 30515);
Talk();
ClickAndWait("npc_268474098_Chat 77", "Macros Mage");
ClickAndWait("npc_268474098_mbuff", "UNKNOWN BUTTON 0");
ClickAndWait("npc_268474098_heal", "Restore");
MoveTo(83235, 148352, -3405, moveDistance);
MoveTo(83339, 148304, -3405, moveDistance);
MoveTo(83449, 148306, -3405, moveDistance);
MoveTo(83530, 148183, -3405, moveDistance);
MoveTo(83518, 148088, -3405, moveDistance);
TargetNpc("Margaret", 30576);
Talk();
ClickAndWait("npc_268474147_Chat 27", "Drop PvP");
ClickAndWait("npc_268474147_goto 10170", "Field of Whispers 2");
MoveTo(83470, 147913, -3405, moveDistance);
WaitForTeleport();
MoveTo(75025, 207770, -3072, moveDistance);
SetPause(false);
end;
until false;

 

Posted

its for tower,

after SetPause(false); add while loop waiting for your death (you will need check tower docs for that)

repeat
    Sleep(1000);
until GetMe():<is user dead method here>

 

Posted
42 minutes ago, Mantosh said:

If it's for adrenaline, aren't you missing a `begin` after `if() then`?

Its for tower

26 minutes ago, AlmostGood said:

its for tower,

after SetPause(false); add while loop waiting for your death (you will need check tower docs for that)

repeat
    Sleep(1000);
until GetMe():<is user dead method here>

 

Thnx seems working for now

Posted

Hello i try to write this code for l2adrenaline the cracked version

but is keep giving me an error on 4th line saying Undeclared identifier "buff"

 

var
 buff: TL2Buff;
begin
  if not user.buff.ByID(4356) then begin
  Print ('Buffing...');
  Engine.SetTarget (30515); // NPC ID
  Engine.MoveToTarget;
  Engine.DlgOpen;
  Delay (500);
  Engine.DlgSel (7);   //Open buffs
  Delay (500);
  Engine.DlgSel(1);
  Delay (500);
  Engine.DlgOpen;
  Delay (500);
  Engine.DlgSel (6);
  Delay (5000);
  Print ('Buffed.');
  end;
end.

can anyone help with this?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Posts

    • ============================================================               CLExt Classic Interlude: v7.80 ============================================================   01. Fixed ValidateLocation handling and player/client position synchronization. 02. Added protection against invalid coordinates and characters falling under the map. 03. Improved XY/Z position and heading validation. 04. Fixed MoveToLocation and MoveToPawn packet conversion and target validation. 05. Fixed TargetSelected, TargetUnselected and MyTargetSelected packet handling. 06. Improved GeoData Z-location handling and disabled unsafe PathNode modifications. 07. Added ExUserInfoInventoryWeight support. 08. Fixed inventory weight and maximum load synchronization. 09. Fixed incorrect 0% inventory weight after character login. 10. Added automatic inventory weight updates after EnterWorld and inventory changes. 11. Added inventory weight packet spam protection and safe weight caching. 12. Fixed BuyList and SellList inventory, slot and weight synchronization. 13. Improved NPC target and Buy/Sell packet validation. 14. Reworked mail attachment inventory and weight validation. 15. Added all-or-nothing mail attachment receiving and safe retry handling. 16. Fixed stackable mail attachment validation and INT_MAX overflow protection. 17. Improved COD Adena validation and post-mail inventory weight refresh. 18. Improved Warehouse Deposit and Withdraw validation. 19. Added protection against malformed warehouse item counts, DBIDs and amounts. 20. Added warehouse INT_MAX, CItem and pSID validation. 21. Improved warehouse anti-dupe protection. 22. Reworked the HTML Cache system for improved stability and memory usage. 23. Added lazy HTML loading instead of loading ~20,000 files during startup. 24. Fixed HTML Cache startup crashes with large HTML collections. 25. Added thread-safe HTML Cache access and Clear/Reload support. 26. Added bad allocation, invalid HTML and oversized HTML protection. 27. Reduced HTML Cache RAM usage, startup allocations and disk I/O. 28. Added HTML Caching ON/OFF with live HTM loading support. 29. Fixed ToggleCachingHook and added VS2005-compatible live HTML handling. 30. Fixed ShortcutInit processing and skill synchronization order. 31. Improved shortcut item validation, augmentation handling and va_list safety. 32. Added LiveMode Ability Point system. 33. Added inventory-item-based Ability Points with configurable pointItemId. 34. Preserved the original level-based Ability Point system as fallback. 35. Fixed incorrect Ability Point display and inventory synchronization. 36. Improved Ability skill learning and point validation. 37. Improved OfflineShopRestore loading and FakePC/DBID handling. 38. Added safer OfflineShopRestore socket limits and batch processing. 39. Prevented thousands of restore sockets from loading simultaneously. 40. Added delayed, non-blocking OfflineShopRestore after server startup. 41. Improved OnEnterWorld initialization order and stability. 42. Improved inventory weight, SkillList and acquired-skill initialization after login. 43. Added VIP integration to the EnterWorld process. 44. Added safe UserExtData initialization without modifying the native User structure. 45. Improved duplicate Bronch Jewel and equipped-slot protection. 46. Improved Bracelet, Belt, Bronch and general UseItem validation. 47. Improved general packet, UserSocket, User, pSD and Creature validation. 48. Added safer INT32/INT64 packet handling and malformed-packet protection. 49. Improved L2Server startup memory usage and lazy resource loading. 50. Reduced unnecessary startup allocations. 51. Improved account-only KeyEngine authentication and remote account validation. 52. Removed account expiration-time requirements. 53. Added updater/restart design without requiring CLExtUpdate.exe. 54. Improved CLIEXT HWID, shared-memory and client/server version validation. 55. Improved ReadFile/WriteFile hooks and MemoryProtector handling. 56. Added UoPilot and Extreme Injector detection handling. 57. Reworked VIP point loading, saving and database synchronization. 58. Fixed VIP Level 0 initialization and first VIP activation. 59. Fixed vip.htm activation after login and from party-shared points. 60. Fixed VIP points being incorrectly reset before successful activation. 61. Improved VIP progression from Level 1 through Level 7. 62. Added proper VIP Level 7 MAX/DONE behavior with no Level 8 requirement. 63. Disabled further VIP point collection after reaching maximum level. 64. Reworked VIP BonusInfo/ReceiveVipInfo packet synchronization. 65. Fixed VIP tier, points, duration and level requirement packet fields. 66. Added VIP duration, tier, point and User validation protections. 67. Added safer 64-bit VIP EXP and party EXP calculations. 68. Preserved subclass maximum EXP protection. 69. Improved ItemDataEx validation during character loading. 70. Fixed augmentation loss during login, relog and server restart. 71. Added safe restoration of augmentation IDs directly from the database. 72. Added CItem, pSID, pExItem and User validation during ItemDataEx loading. 73. Improved Shadow Item mana and item lifetime loading. 74. Preserved item protection timeout data during character loading. 75. Added augmentation loading diagnostics and protected valid augmentation data. 76. Preserved database value 0 for genuinely non-augmented items. 77. Added RaidBoss Status synchronization with the World Map. 78. Fixed alive/dead RaidBoss status updates after spawn and death. 79. Added RaidBossStatus as the source of truth for RaidBoss map packets. 80. Fixed RaidBoss map status synchronization after server/database loading.
    • 🚀 L2AQUILA — GRAND OPENING TOMORROW! Lineage 2 Gracia Final — Like L2 Pride, but fresh. The server you've been waiting for opens tomorrow, Saturday 19/09, 16:00 (Greek time) — No Wipe · 24/7 · Anti-DDoS. ⚔️ What's inside: • EXP 9300x · SP 3000x · Adena 5500x · High drop • Max enchant +20 · Safe +3 · 24 buffs / 3 debuffs • 20 free Custom Coins for every new player on day one! • Custom farming zones (Cave of Trials, Cemetery, Ruins of Despair + more) • PvP Events · Olympiads · Offline Trading · Weddings · Balanced classes • Starter + Dynasty shops in every town — playable from minute one 📥 Download: Client + Patch at https://l2aquila.com/index.html 💬 Discord: discord.gg/5ZyBRvG4k · Facebook: facebook.com/l2aquila Be there at opening hour — bring your squad. See you at the Grand Opening! 🔥
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..