Jump to content

Recommended Posts

Posted

Hello

 

From time to time I like to pick one of the things that are being sold but are really easy to code and I like to code them real quick and share them.

Today's share is L2Warland's server-side Autofarm feature.

 

How it works

 

You set a few skills on the 10th shortcut skill bar

Each section represents a skill type

DanYtk4.png

 

  • Skill usage is prioritised (Feel free to change the order to whatever works for you)
    • Chance
    • Low life
    • Self skills
    • Attacks
  • You can toggle it or turn it on and of with voice commands .farm, .farmon, .farmoff
  • If HP or MP pots are present they will be used after the configurable thresholds are met
  • They will only target monsters that they can move to in order to attack
  • Players will automatically auto attack if the "Attack" action is on any bar. If not they will only use skills
  • Spoiler classes will spoil and sweeper
  • Self spells will be used if the effect is not present and the cooldown is not reached
  • Self spells will trigger toggle skills

 

I tested just the basics and it looks like it's working fine. If you find any issues please report them.

 

Video preview:

 

Coded for aCis 382

Source code: https://gist.github.com/Elfocrash/2afaa14089dfba2d2199c9d22f06d0d5

 

Disclaimer: This shares absolutely no code with the Autobots engine

 

Thanks, Elfo

  • Like 8
  • Thanks 2
  • Upvote 6
  • Downvote 1
Posted

I have the impression that you are not uploading this code to do us the favor of getting to know us, you just want to improve your password in the audience... I don't have you for such a good person Because what you have donated here is all in your interest

  • Like 1
Posted
5 hours ago, ShinichiYao said:

Nice share! Anyway to disable user action while autofarm is on such as mouse click move action use etc?

You could add the isAutoFarming check in the actions related packets and return. However, in case the autofarming gets stuck because of getodata or targeting I think it is a good idea to not block user actions while farming.

Posted

stop at teleport is missing, also l2off auto combat changes target if it hits "cannot see target" few times in row (due to idle monsters movements mid-casting, non LOS mobs are skipped there too) which is nice addition, simple ignoring of target if hp didnt change for set timeout would be good enough.

 

But yeah, another feature taken from classic client, instead of using classic client in the first place xD

Posted

l2off does LOS check only on target, then keeps using skils until target is dead.

I meant using classic client for beloved F1 interlude gameplay, not necessarily using anything else of classic

  • 2 months later...
Posted (edited)

Excellent mod, thanks for sharing !!
I should emphasize that I am a newbie to java development.
I have the following errors:

https://subefotos.com/ver/?fe6483091f3fb07495243e420548e312o.jpg

https://subefotos.com/ver/?b22846297d4afa6f2cd4b8282fb36280o.jpg

I would appreciate your help .. And sorry for my bad English. rev acis 382.

Edited by massedev
Posted (edited)

Dear Elfocrash, you are the MVP of MXC L2j development, if not on whole L2j

I remember seeing your work waaaay back like 10 years ago when I got into L2j myself

Huge thumbs up and thanks!

Edited by Griunvaldas
  • Upvote 1
Guest
This topic is now closed to further replies.

  • Posts

    • Hi. Can you describe the task in more detail? I think many people here work with IntelliJ IDEA.
    • https://jmp.sh/MaCC5Gqa Combat animation synchronization: Bow/Sword. Added arrow flight and sword-to-monster effects.
    • The holidays are over and we’re back to work (well… we never really stopped 🙂 ). The server has been online without a single restart since December 26, running smoothly and without issues. That’s because we care, and we’ll keep caring. Many of us remember the old days: helping new players, building clans from zero, catching up together, and having fun without rushing. With that spirit in mind, Newbie Bonuses are now live and we strongly encourage everyone to help newcomers catch up and enjoy the journey. L2Elixir was never about short-term hype. It’s about community, stability, and bringing back what made Lineage II special.   🎁 Newbie Bonuses Characters created since December 25 & all new players receive a Newbie Box (Return Hero) (Rune EXP/SP +50% for 5 days, Random 48-hour Costume) 2nd Class Transfer cost reduced from 3kk to 1kk — join Academies! 3rd Class Transfer enabled, available only for classes already in the Hall of Fame. 🛡️ Anti-Bot Implemented BOT-CHECKER v2, more checks, and general improvements. Added extra checks during PvP. New Auto-Check system for suspicious behavior (penalties apply if third-party software is detected). Fixed Bot Report Button not refreshing. ⚙️ General After critical errors or force disconnects, characters will remain No Carrier for a few minutes. Added Cursed Bone to Helvetia (QoL). Enabled on-screen Clan War kill notifications. Fixed buff store issues when entering characters. Fixed party drop owner calculation (please report any issues). 🧙 NPCs Harit Lizardman, Grunt, and Archer now level up SC up to stage 5. 🎉 Events Fixed trigger skills not working during Events. Fixed Health / Shield packs not disappearing in some cases. Fixed summon remaining time not refreshing after Events. Added a second Team vs Team map to reduce routine. Added another Save the King map. Christmas Event cleanup completed. Players in Observe Mode can no longer register for Events. 📜 Quests Fate’s Whisper Fixed and corrected messages. Enchanted B-grade weapons can now be exchanged as per retail. Added missing Social Victory animation on quest completion. 🗺️ Geodata Fixed falling issues in Castle zones.   Website: https://l2elixir.org/ Discord: https://discord.gg/5ydPHvhbxs
    • NEW SEASON START 23.01.2026 Get ready for the ultimate High Five adventure on L2Exoplanet.net!   • The last two previous Seasons are now merged into the Core Server. • The Core Server remains our main long-term world. • All future Seasonal Servers will be merged into Core after they end. • No characters or items will be lost – everything stays safe!     GRAND OPENING:  23.01.2026 at 20:00 GMT+1 BETA TEST:    16.01.2026    Client: High Five Rates: x10   Website: https://l2exoplanet.net Facebook: https://www.facebook.com/L2-Exoplanet-106811564103836 Discord: https://discord.gg/4fzhW7ZSPc         Game Rates    Experience: x10  Skill Points: x10  Adena: x5  Drop: x8  Spoil: x8  Quest: x5  Raid Boss Drop: x5  Fame: x2  Epaulette: x8  Manor: x8      Safe Enchant: +3  Maximum Enchant: +16  Normal Scroll Chance: 60%  Blessed Scroll Chance: 63%  Attribute Stone Chance: 50%  Attribute Crystal Chance: 30%      Game Settings    Multibox - 3 game clients per HWID  Autoloot  Autolearn Skills Auto Farm  NPC Buffer   Buff Slots (24+4/12)  Buff Duration (2h)  Olympiad Period 7days (new heroes appear every monday)  Seven Signs Period  Class Transfer for Adena  Max Sub-Class 3  Sub-Class Max Level 85  Essence Interface  Champions System  Vote Reward System  Dayli Reward System  PC Points Reward (500PC = 1 Donate Coin)      Epic Bosses Respawn Times     Queen Ant:  24 Hours +/- 4 Hours   Beleth: 3 Days +/- 8 Hours   Baium: 3 Days +/- 8 Hours   Antharas: 4 Days +/- 8 Hours   Valakas:  5 Days +/- 8 Hours     Instance Info     Normal Freya = 6 Players   Hard Freya = 12 Players   Frintezza = 6 Players   Zaken 83 Day = 6 Players   Zaken 60 Day = 6 Players   Zaken Nightly = 9 Players   Tiat = 6 Players   Beleth = 12 Players
  • 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..

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock