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.

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

    • hello everyone! I am wanting to save the files (Ini. - Data - ) of the EP5 Client: Salvation... But they generate the error "corrupt files"... I tried several versions of L2FileEditor without good results. I need help! Thank you!
    • Opening December 6th at 19:00 (GMT +3)! Open Beta Test from November 30th!   https://l2soe.com/   🌟 Introducing L2 Saga of Eternia: A Revolution in Lineage 2 High Five! 🌟   Dear Lineage 2 enthusiasts, Prepare to witness the future of private servers! L2 Saga of Eternia is not just another High Five project—it’s a game-changing experience designed to compete with the giants of the Lineage 2 private server scene. Built for the community, by the community, we’re here to raise the bar in quality, innovation, and longevity. What Sets Us Apart? 💎 No Wipes, Ever Say goodbye to the fear of losing your progress. Our server is built to last and will never close. Stability and consistency are our promises to you. ⚔️ Weekly New Content Our dedicated development team ensures fresh challenges, events, and updates every week. From custom quests to exclusive features, there will always be something exciting to explore. 💰 No Pay-to-Win Skill and strategy matter most here. Enjoy a balanced gameplay environment where your achievements come from effort, not your wallet. 🌍 A Massive Community With 2000+ players expected, join a vibrant and active community of like-minded adventurers ready to conquer the world of Aden. 🏆 Fair and Competitive Gameplay Our systems are designed to promote healthy competition while avoiding abusive mechanics and exploits. 🔧 Professional Development From advanced bug fixes to carefully curated content, we pride ourselves on smooth performance, no lag, and unparalleled server quality. Key Features Chronicle: High Five with unique interface Rate: Dynamic x10 rates Class Balance: Carefully fine-tuned for a fair experience PvP Focused: PvP Ranking & aura display effect for 3 Top PvPers every week Custom Events: Seasonal and permanent events to keep you engaged Additional Features:   Custom Endgame Content: Introduce unique dungeons, raids, or zones unavailable in other servers. Player-Driven Economy: Implement a strong market system and avoid overinflated drops or rewards. Epic Siege Battles: Announce special large-scale sieges and PvP events. Incentives for Streamers and Clans: Attract influencers and big clans to boost server publicity. Roadmap Transparency: Share a public roadmap of planned updates to build trust and excitemen   Here you can read all the features: https://l2soe.com/features   Video preview: Join the Revolution! This is your chance to be part of something legendary. L2 Saga of Eternia is not just a server; it’s a movement to redefine what Lineage 2 can be. Whether you’re a seasoned veteran or a newcomer to the world of Aden, we invite you to experience Lineage 2 at its finest.   Official Launch Date: December 6th 2024 Website: https://l2soe.com/ Facebook: https://www.facebook.com/l2soe Discord: https://discord.com/invite/l2eternia   Let’s build the ultimate Lineage 2 experience together. See you in-game! 🎮
    • That's like a tutorial on how to run l2 on MacOS Xd but good job for the investigation. 
    • small update: dc robe set sold   wts adena 1kk = 1.5$ 
    • DISCORD : utchiha_market telegram : https://t.me/utchiha_market SELLIX STORE : https://utchihamkt.mysellix.io/ Join our server for more products : https://discord.gg/hood-services https://campsite.bio/utchihaamkt
  • Topics

×
×
  • Create New...