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

    • what do u mean i want to change the normal weapons some weapons are working perftect some not getting th effect and the arcana has the effect above the weapons as u see ... i dont what is the probkenm
    • Stop paying for files that are already public and free. Here you can download a fully working Interlude server with C4-like gameplay, including source code so you can compile it yourself and verify everything. People will try to convince you that free releases are “broken”, “full of backdoors”, etc. That’s exactly why I’m also providing the SVN with the full source – so you can: Review the code yourself Remove / modify whatever you don’t like Compile your own binaries What’s included GX-EXT Interlude server (C4-style gameplay) – L2Off Client Interlude tweaked for C4 gameplay Public SVN with source code Downloads: Server GX-EXT: https://www.mediafire.com/file/q5ipkjd36tnhfxv/L2OFF_C4_C4_ACU_GXEXT.rar/file Client Interlude C4 Gameplay: https://www.mediafire.com/file/rdkfc8wwau042oh/Cliente_Interlude_Jugabilidad_C4.rar/file SVN (source code, delayed a couple of months to avoid reselling fresh work): https://svn.l2servers.com.ar/!/#GX-EXT_INTERLUDE User: gx Pass: gx How to compile To compile the source you will need: Visual Studio 2005 (x64 toolset) (Classic L2Off toolchain – yes, it’s old, but that’s what the original server uses.) Use this as you want: learn, test, open your own server, or just audit the code. But please, stop buying the same leaked/resold files over and over when you can get them here for free, with source, and actually know what you’re running.  
    • @GX-Ext Please reupload the pack+web+client because all the links inside that post or in the https://l2servers.com.ar/ are dead
    • Weapon dat is not the same for all, since you have custom things for sure no. You can contact @NevesOma
    • hello guys im facing a problem with the weapons .. i want to add hero glow on s weapons arcana ,dragonic bow etc.. some weapons are work peftect .. some not for example i add the line  LineageEffect.e_u092_h for fists and didnt work didnt even get the hero glow.. and the arcana the glow is on the top of weapon not down side like hero zeus mace any ideas?.. or does anybody has the weapongrp.dat file ready ?
  • 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