Jump to content

Question

Posted

Hi everyone, its been along time since i open eclipse.

However i want to add to my server to return buffs after "x" seconds.

I saw An4arcy post but i cant adapt it cuz im dumb for sure.

Please if anyone have code for freya directly or some link (Cuz all are dead) .

Share. Thanks in advance.

14 answers to this question

Recommended Posts

  • 0
Posted
6 hours ago, ๖ۣۜG๖ۣۜL๖ۣۜO๖ۣۜR๖ۣۜY said:

Hi everyone, its been along time since i open eclipse.

However i want to add to my server to return buffs after "x" seconds.

I saw An4arcy post but i cant adapt it cuz im dumb for sure.

Please if anyone have code for freya directly or some link (Cuz all are dead) .

Share. Thanks in advance.

 

Anarchy is noobish developer like Tryskell. So avoid their code (*Insert Anarchy hate here*)

 

The code is very simple. If you're for example on aCis or L2J then you simply move to datapack find DispellBySlot or Cancel base on your pack and then you create a new List where you store the effects that are canceled. 

 

Then you simple do a check if the list is empty.  If its not then you create a ThreadPool to execute a new runnable after x seconds and in that class you stored the character and the list you stored buffs.

 

After execution is done you forEach in list and re-add the effects on player.

  • 0
Posted
19 minutes ago, Kara said:

 

Anarchy is noobish developer like Tryskell. So avoid their code (*Insert Anarchy hate here*)

 

The code is very simple. If you're for example on aCis or L2J then you simply move to datapack find DispellBySlot or Cancel base on your pack and then you create a new List where you store the effects that are canceled. 

 

Then you simple do a check if the list is empty.  If its not then you create a ThreadPool to execute a new runnable after x seconds and in that class you stored the character and the list you stored buffs.

 

After execution is done you forEach in list and re-add the effects on player.

Man you have to realize im an idiot monkey if i could do it  myself i would not ask at all

I can apply patch 

Im using l2j freya source 

I was kinda ok but it was years ago now im like an elephant in glass store

  • 0
Posted
3 hours ago, ๖ۣۜG๖ۣۜL๖ۣۜO๖ۣۜR๖ۣۜY said:

Man you have to realize im an idiot monkey if i could do it  myself i would not ask at all

I can apply patch 

Im using l2j freya source 

I was kinda ok but it was years ago now im like an elephant in glass store

Time to learn. How you knew to put your little d*** inside your girlfriend's hole? Someone is teaching you? Nop. Life does. Same here. 

 

Find which file work for you DispellBySlot or Cancel e.t.c in your datapack and on top of the 

public void onStart()

 

add a simple list ex. final List<BuffInfo> canceled = new ArrayList<>();

 

Now read the code and see where it stop the effects. Example

effectList.stopSkillEffects(true, entry.getKey());

 

and bellow that add your spell into your list.

 

Now make a new threadpool like:

ThreadPoolManager.getInstance().scheduleGeneral(new ReturnBuffTask((L2Playable) info.getEffected(), canceled), 10 * 1000);

 

Now create a new class named ReturnBuffTask.java and in constructor declare the L2Playable and the List as parameters. 

 

in:

@Override 

public void run()

 

it will be called once the time pass of your threadpool and runnable is executed.

In there do a for to your list and add the skill back to the playable. Simple as that.

  • 0
Posted
4 hours ago, ๖ۣۜG๖ۣۜL๖ۣۜO๖ۣۜR๖ۣۜY said:

 

No sh1t sherlock!

 

Someone just share it i cant understand chinese!

Sorry @Kara not my time to do this ill stay code virgin for now.

Gimme 5e in paypal and i send you full code 😂

  • 0
Posted (edited)
2 hours ago, Kara said:

Gimme 5e in paypal and i send you full code 😂

I can give you 20 if you install it for me via teamviewer and keep in mind its freya server so steal buffs and others should also return somehow..  But i give after jobs done and tested... 🤣 Not that 20 euro is that much

Edited by ๖ۣۜG๖ۣۜL๖ۣۜO๖ۣۜR๖ۣۜY
  • 0
Posted (edited)
1 hour ago, ๖ۣۜG๖ۣۜL๖ۣۜO๖ۣۜR๖ۣۜY said:

I can give you 20 if you install it for me via teamviewer and keep in mind its freya server so steal buffs and others should also return somehow..  But i give after jobs done and tested... 🤣 Not that 20 euro is that much

 

Pay kara 20 euro, very good idea. This guy compare java to sex. Pay 19 me I make cancellation return back not only your buffs, but Heroic Valor 20 hour duration, ez (not for Kara).

 

-

 

On a serious note, as I explained in personal messages, avoid trying to open a server if you can't even apply a simple code in your core. This section is called 'Request Server Development Help', not 'Find Slaves To Build Your Server':

  

8 hours ago, ๖ۣۜG๖ۣۜL๖ۣۜO๖ۣۜR๖ۣۜY said:

Someone just share it

 

Kara explained to you how it should work, do not expect people to just give you free stuff. Not only because there's no win for them, but also because you learn 0 if you get everything ready. Read what he said, read other examples in your core and fix it yourself. That's the correct way to do it. This way, when something happens with cancel when you're live, you'll know where to look and what to look for.

Edited by An4rchy
  • 0
Posted (edited)
12 minutes ago, An4rchy said:

 

Pay kara 20 euro, very good idea. This guy compare java to sex. Pay 19 me I make cancellation return back not only your buffs, but Heroic Valor 20 hour duration, ez (not for Kara).

 

-

 

On a serious note, as I explained in personal messages, avoid trying to open a server if you can't even apply a simple code in your core. This section is called 'Request Server Development Help', not 'Find Slaves To Build Your Server':

  

 

Kara explained to you how it should work, do not expect people to just give you free stuff. Not only because there's no win for them, but also because you learn 0 if you get everything ready. Read what he said, read other examples in your core and fix it yourself. That's the correct way to do it. This way, when something happens with cancel when you're live, you'll know where to look and what to look for.

 

man im live... 

L2GloryFights.com

We have low players anyway...

I just need that everything else i can do myself....

 

i can pay you... if u want message me...

Edited by ๖ۣۜG๖ۣۜL๖ۣۜO๖ۣۜR๖ۣۜY
  • 0
Posted
14 hours ago, Kara said:

Time to learn. How you knew to put your little d*** inside your girlfriend's hole? Someone is teaching you? Nop. Life does. Same here. 

 

Find which file work for you DispellBySlot or Cancel e.t.c in your datapack and on top of the 

public void onStart()

 

add a simple list ex. final List<BuffInfo> canceled = new ArrayList<>();

 

Now read the code and see where it stop the effects. Example

effectList.stopSkillEffects(true, entry.getKey());

 

and bellow that add your spell into your list.

 

Now make a new threadpool like:

ThreadPoolManager.getInstance().scheduleGeneral(new ReturnBuffTask((L2Playable) info.getEffected(), canceled), 10 * 1000);

 

Now create a new class named ReturnBuffTask.java and in constructor declare the L2Playable and the List as parameters. 

 

in:

@Override 

public void run()

 

it will be called once the time pass of your threadpool and runnable is executed.

In there do a for to your list and add the skill back to the playable. Simple as that.


if your ReturnBuffTask uses EffectList#add/addActive, add a boolean false only for it so players won’t get mad if they die/res.

  • 0
Posted
15 hours ago, An4rchy said:

On a serious note, as I explained in personal messages, avoid trying to open a server if you can't even apply a simple code in your core. This section is called 'Request Server Development Help', not 'Find Slaves To Build Your Server':

 

Holy fk im asking for somthing that's already shared... 

It was shared for Freya... i was asking if someone still has it in their files.

Because that's what normal people do.

Now if you feel like slave... don't worrie you're not alone.

  • 0
Posted
3 hours ago, ๖ۣۜG๖ۣۜL๖ۣۜO๖ۣۜR๖ۣۜY said:

 

Holy fk im asking for somthing that's already shared... 

It was shared for Freya... i was asking if someone still has it in their files.

Because that's what normal people do.

Now if you feel like slave... don't worrie you're not alone.

 

I don't feel like a slave, but I'm honestly tired of seeing people spam-open servers when they got 0 clue on how to fix the simplest things. There is no point, these servers ruin the community and make l2 players drift even further from l2.

 

It's not a matter of the code itself, I can make this code in 5 minutes. Chronicle does NOT matter (so idc if it's freya, h5 or prelude), but you didn't even pay attention to Kara's reply for the way to implement this. Try to understand how it works rather than copy/paste and if you got a legit question about YOUR code, I will be happy to help you (because the help would actually mean something then). Study skills and effects in l2 for a bit, then watch examples of List in the code or google (there's countless examples only in your source) and give the code a try. If it fails, post here asking what you did wrong and we can explain 🙂

  • 0
Posted
7 hours ago, An4rchy said:

 

I don't feel like a slave, but I'm honestly tired of seeing people spam-open servers when they got 0 clue on how to fix the simplest things. There is no point, these servers ruin the community and make l2 players drift even further from l2.

 

It's not a matter of the code itself, I can make this code in 5 minutes. Chronicle does NOT matter (so idc if it's freya, h5 or prelude), but you didn't even pay attention to Kara's reply for the way to implement this. Try to understand how it works rather than copy/paste and if you got a legit question about YOUR code, I will be happy to help you (because the help would actually mean something then). Study skills and effects in l2 for a bit, then watch examples of List in the code or google (there's countless examples only in your source) and give the code a try. If it fails, post here asking what you did wrong and we can explain 🙂

 

I understand that there must be function returnbuffs.java

And a case when and how is used in skill handlers cencel.java i understand but i dont know where to put returnbuffs.java and does this even matter

  • 0
Posted
1 hour ago, ๖ۣۜG๖ۣۜL๖ۣۜO๖ۣۜR๖ۣۜY said:

 

I understand that there must be function returnbuffs.java

And a case when and how is used in skill handlers cencel.java i understand but i dont know where to put returnbuffs.java and does this even matter

Where you put .java files it doesn't really matter (unless you're using reflection to instantiate or retrieve information about classes, which L2 I think only uses for npc instances and zone types, so you'll be ok). Put it skillhandlers it's w/e.

 

Check my code or kara's reply for guidance on what to write in returnbuffs.java and how to use it.

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

    • 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
    • when did i say something about mobius files besides what i've said on this post? or you're "calling me out" for saying this when someone says mobius is a better interlude alternative than acis? lol  
  • 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