Jump to content
  • 0

This methods...


Question

Posted

Hello cheaters. I want to know where i find methods to make functions available from photo available?
https://ibb.co/svkj2vp
If i should create them, i want to know how i can do this. I don;t have any ideea how i can create those methods.

Thank you !

Recommended Posts

  • 0
Posted

I do something, but with this method, i still can get party.


	private boolean _partyRefuse = false; // party refusal

public boolean getPartyRefuse()
	{
		return _partyRefuse;
	}
	
	public void setPartyRefuse(boolean value)
	{
		_partyRefuse = value;
	}


 

  • 0
Posted
37 minutes ago, 0flee said:

I do something, but with this method, i still can get party.



	private boolean _partyRefuse = false; // party refusal

public boolean getPartyRefuse()
	{
		return _partyRefuse;
	}
	
	public void setPartyRefuse(boolean value)
	{
		_partyRefuse = value;
	}


 

 

This is like trying to get a female pregnant but from distance. It won't work until you come in touch. Basic biology and code extends real life so you have to do the same.

 

You can't just create 2 methods (setter, getter) and expect any result. You need to link those to the file that handle the party request which is RequestJoinParty.java

  • Haha 2
  • Sad 1
  • 0
Posted

No no, i try to find now on Mobius, class Continuous. Because i want to make buff protect and i do not know how to fix this.
This is Topic from where i take it
https://www.l2jbrasil.com/forums/topic/110508-code-menu-configure-settings/
I make all, but that i do not find and i don;t know where to put. On Player Instance it;s ok?

And it it's ok, how i can do on PlayerInstance.

  • 0
Posted

I understand that. But where i have to put this?
 

                    // Anti-Buff Protection prevents you from getting buffs by other players
                    if (activeChar instanceof L2PcInstance && target != activeChar && target.isBuffProtected() && !skill.isHeroSkill()
                       && (skill.getSkillType() == L2SkillType.BUFF                        
                       || skill.getSkillType() == L2SkillType.HEAL_PERCENT
                       || skill.getSkillType() == L2SkillType.MANAHEAL_PERCENT
                       || skill.getSkillType() == L2SkillType.COMBATPOINTHEAL
                       || skill.getSkillType() == L2SkillType.REFLECT))
                    continue;

                 

I take code from aCis i think

  • 0
Posted
1 minute ago, 0flee said:

I understand that. But where i have to put this?
 


                    // Anti-Buff Protection prevents you from getting buffs by other players
                    if (activeChar instanceof L2PcInstance && target != activeChar && target.isBuffProtected() && !skill.isHeroSkill()
                       && (skill.getSkillType() == L2SkillType.BUFF                        
                       || skill.getSkillType() == L2SkillType.HEAL_PERCENT
                       || skill.getSkillType() == L2SkillType.MANAHEAL_PERCENT
                       || skill.getSkillType() == L2SkillType.COMBATPOINTHEAL
                       || skill.getSkillType() == L2SkillType.REFLECT))
                    continue;

                 

I take code from aCis i think

 

If you can find Continuous.java you can add your check there. Pretty much you can add this check in multiple place even in L2Character but i would advice you to either search in Target handlers or in the file i mentioned. 

  • 0
Posted
7 minutes ago, 0flee said:

Well, i don't know how to fix..

 

I told you exactly what to do and you didn't even bother search.

 

kOeHMnL.gif

 

https://bitbucket.org/MobiusDev/l2j_mobius/src/master/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/handler/skillhandlers/Continuous.java

 

There you need do your own check.

Beside he already have something

 

if ((creature instanceof Playable) && (target != creature) && target.isBuffProtected() && !skill.isHeroSkill() && ((skill.getSkillType() == SkillType.BUFF) || (skill.getSkillType() == SkillType.HEAL_PERCENT) || (skill.getSkillType() == SkillType.FORCE_BUFF) || (skill.getSkillType() == SkillType.MANAHEAL_PERCENT) || (skill.getSkillType() == SkillType.COMBATPOINTHEAL) || (skill.getSkillType() == SkillType.REFLECT)))
{
	continue;
}

 

  • 0
Posted (edited)
23 minutes ago, iTopZ said:

new quest: find redudant null checks

 

The whole code is like you're 18 and having s*x at the school's bathroom with your crush while classes, knowing that bell rings in 1 minute, so before everyone get down to the the yard you do a very fast and sloppy job. 

 

In short, null checks for no reason while instanceof occurs (and i hope people know that instanceof does a null check), useless else if while continue, this ... thing "Formulas.getInstance()", duplicated checks and structures that can be written in 1 line

 

final Skill skill = SkillTable.getInstance().getSkill(skillEffectId, Math.max(1, skillLevel);

 

instead of 9 such as:

 

Skill skill;

if (skillLevel == 0)
{
	skill = SkillTable.getInstance().getSkill(skillEffectId, 1);
}
else
{
	skill = SkillTable.getInstance().getSkill(skillEffectId, skillLevel);
}

 

But the whole structure is a mess, so pointless to bother with such small tasks. 

Edited by Kara
  • 0
Posted

Well, i need it for hi5, not interlude...

And if i dont have this on hi5, in what method of Character.java i have to put this? 

if ((creature instanceof Playable) && (target != creature) && target.isBuffProtected() && !skill.isHeroSkill() && ((skill.getSkillType() == SkillType.BUFF) || (skill.getSkillType() == SkillType.HEAL_PERCENT) || (skill.getSkillType() == SkillType.FORCE_BUFF) || (skill.getSkillType() == SkillType.MANAHEAL_PERCENT) || (skill.getSkillType() == SkillType.COMBATPOINTHEAL) || (skill.getSkillType() == SkillType.REFLECT)))
{
	continue;
}
Guest
This topic is now closed to further replies.


  • Posts

    • wtf is your website lol ai slop
    • who have this files? or info about cached packets?
    • Hi maxcheaters, i am trying to bring back an old server ( L2Revenge) but with my own ideas, i only liked how it was and made the gameplay based on that just putting my own ideas.   So practicly is a PTS C6 with an extender that i work lately    Exp / SP is x45 adena is x200 and drops x5  so safe is +3 , max is unlimited and rate is 65% for both mage and fighter weapons I created a system that you can get on the levels the gear you need based on farm but for S grade theres a little farm to get some armor Tokens to unseal them. As you remember L2Revenge had olympiad / Tournament gear. So people abused them and had S grades that way just couldnt enchant them. So i made to be wearable only if u are nobless. That way i cancel this "exploit".  The server gives opportunity to solo and clans , epic gear ( epic weapons) or armors can be bought with raid tokens and you can craft them or get them with various ways Regarding Buffs: 24 buff slots no changes asked. Cov/Pony/Cat , siren - renewal - champion out of buffer , if u make the char as main roll u can use them or use the offline buffer system to sell them and get adenas. their time is 20 mins so that way we see again the " 1kk for rene/siren" or rec = song  Regarding armors: they are dropped ( parts ) from 3 only raids , rest lvl 76+ raids drop recipes , so crafting takes place (so if u are solo u can craft them )  there are 3 armors each armor have its purpose: Revenge Armors - Example for light ( its a glass cannon , high damage , less atk speed and less pdef ) - they mostly modify your base stats, so useable on sieges or off tank chars Titanium Armors - A little bit of balanced of all  Epic Armor - Daggers/Enchanters/Healers mostly but u can always combine your build    Regarding weapons: can be dropped from Monastery of Silence monsters or get them from NPC with Raid Tokens its like a 5% better than S grades and the S/A Activates at +4  Regarding retail gear: you need to unseal only S grades for a great amount of armor tokens all weapons on any grade need Soul crystals that are sold for adenas  stage 13 crystals are expensive or dropped from raids Regarding fun: There is a squash event a Fortress vs Fortress pvp event an RB Event at weekends and from Monday - Wednesday Tournament ( Olympiad is closed monday/tuesday/wednesday)  at tournament you can practice 1vs1 like olympiad but pots/ss allowed , gear allowed is only olympiad or tournament , each win of match gives u 5 glits at 100 glits u can be hero till restart Olympiad works the same way regarding gear allowance but works only thursday to friday and you win monthly hero Auction with Raid Tokens is activated Event medals from events can be exchanged for various items i try to make the oldschool with a little bit of new school systems Not planing to open it anytime soon as i still develop and make corrections to extender , looking forward to meet people that actually played this and are hyped to help on testing / development   P.S is c5 into interlude ( theres no akamanah / nor PI aswell , no lifestones) forgot to mention
  • 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