Jump to content
  • 0

Aio Buff Time


Question

Posted

Hello community,

I want to know if there is any way to make the buffs used by AIO has a different time from normal buffs with changes in Java.

I managed to get them to be in party (L2Skill.java -.> TARGET_ONE case), provided they are used by AIO, but could not change the time.

11 answers to this question

Recommended Posts

  • 0
Posted

You can do this in two ways. Either on the fly by checking where the buff comes from while it is cast or adding another set of the same buffs in the database and client and edit more stats than just the time.

  • 0
Posted

L2Effect

 

 

        if (_effector.isAio())
            _period = time_in_sec;
        else
            _period = temp;

 

But, you have to store the time on logout. Otherwise it's gonna be replaced with default on relog.

  • 0
Posted (edited)

L2Effect

        if (_effector.isAio())
            _period = time_in_sec;
        else
            _period = temp;

But, you have to store the time on logout. Otherwise it's gonna be replaced with default on relog.

 

His method really works, but how do you keep it long after the relog?

Edited by OlidnaD
  • 0
Posted

You can do this in two ways. Either on the fly by checking where the buff comes from while it is cast or adding another set of the same buffs in the database and client and edit more stats than just the time.

 

 

Sweets, plaese help me, how i can fix it?

  • 0
Posted

You don't need to fix it. 

You can do it two ways as it been said. Either you edit skills xml for time you want. Or you create new skills whitch ones AIO uses and set the time you want in there.

And if you want to use Sweets code, then you need to look around and find code part and then to make it work.

You need to be trying and show some kind a progress, dont just ask for custom fixes.

  • 0
Posted

You don't need to fix it. 

You can do it two ways as it been said. Either you edit skills xml for time you want. Or you create new skills whitch ones AIO uses and set the time you want in there.

And if you want to use Sweets code, then you need to look around and find code part and then to make it work.

You need to be trying and show some kind a progress, dont just ask for custom fixes.

 

 

I've tried every way but I am not aware enough to get, I tried and failed.

  • 0
Posted
Have situation where buffs double the time and the relog problem don't happen. even making the same, does not work.
        if (env.isSkillMastery())
            temp *= 2;

I tried to do as follows.

        if (_skill.isAioSkill() && (AioManager.getInstance().hasAioPrivileges(_effector.getObjectId())))
            temp = 7620;


 

  • 0
Posted

Is it the _period property that handles the buff duration?

Ya.

 

 

		int temp = template.period;
		
		if (_skill.getId() > 2277 && _skill.getId() < 2286)
		{
			if (_effected instanceof L2SummonInstance || (_effected instanceof L2PcInstance && ((L2PcInstance) _effected).getPet() != null))
				temp /= 2;
		}
		
		if (env.isSkillMastery())
			temp *= 2;

		_period = temp;

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

    • Rosyk or rusik or whatever u blaim me that my mouth stinks but I assume you the one who stinks and your perfect pack will be now shared and you can suck a DICK )  https://eu2.contabostorage.com/d4b39866f6bb4084b6c969ec8fe20063:kita/Lucera_Classic_Remaster/Lucera Classic Remaster Server and Datapack files.rar  https://eu2.contabostorage.com/d4b39866f6bb4084b6c969ec8fe20063:kita/Lucera_Classic_Remaster/Lucera Classic Remaster Eng Client.rar Drama link    For this crap u need Lucera 2 classic license ) people paying 300 euros for this shit  lol Some Shit will come out soon mxc website need shake it a bit coz getting boring here )   
    • @Huggo Thank you for asking! When you join our Discord, on the Nexus Marketing section there is a #work-showcase channel. There you can see a little bit of what we are able to produce as a final ready-to-post product.  There is also this link in my new personal montage YouTube channel, in which I will be uploading every recent work: https://youtube.com/playlist?list=PLkzBKexKw8Wj8dC2diYndd5yOWOXUQCJW&si=-HGxlovqzvD4qqy2 Two more videos are coming up this week, and a #reviews channel has opened for our clients to let other people know about their experience working with us. Feel free to join our Hub in Discord, and for any inquries you might have don't hesitate to contact me or post your suggestion at #suggestions channel.  
    • Следи за своим вонючим языком, мудак.   Your mouth stinks, go wash your mouth, it's a dump) I don't know who you are or what you are, and I don't recommend buying anything from people outside of my network, as they may sell garbage under the guise of my work. There have been cases where my sales have been compromised. Additionally, reselling below the purchase price has been prohibited. I wish you all the best and peace. I kindly request that the moderators close this topic, as it is no longer relevant and the contact information is outdated.    
  • Topics

×
×
  • Create New...

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