Jump to content
  • 0

[Help]Augments


Question

Posted

any ideas where can be the problem chance augment to do not work i mean they never active

i check in other project to synhronizate DP settings but still same they are never active

13 answers to this question

Recommended Posts

  • 0
Posted

any ideas where can be the problem chance augment to do not work i mean they never active

i check in other project to synhronizate DP settings but still same they are never active

explain this clearer please
  • 0
Posted

It's clearly not DP.

 

The different codes are in many places, such as being hitted, hitting, avoiding an hit.

 

Im lazy to open Eclipse, if no one gave you exact name I will give you tomorrow.

  • 0
Posted

explain this clearer please

i mean for example augment skill id: 3086 its have chance to hold enemy but this chance never started i do same DP settings like other project where the same augment work , i dont have any errors in GS console when load or something else

  • 0
Posted

It's clearly not DP.

 

The different codes are in many places, such as being hitted, hitting, avoiding an hit.

 

Im lazy to open Eclipse, if no one gave you exact name I will give you tomorrow.

tnx dude i will wait you tomorrow :P if on one cant help me

  • 0
Posted

There is so many things that are in the equation.. Resist debuff, level of the skill ls, mdef(not sure?)

 

Anyway, all skills chance are coded like on official. So they are coded for not overbuffs players i guess..

  • 0
Posted

There is so many things that are in the equation.. Resist debuff, level of the skill ls, mdef(not sure?)

 

Anyway, all skills chance are coded like on official. So they are coded for not overbuffs players i guess..

yes i know because i was test it on char without items,buff....... but they are never started , same test in other project is successful

 

Because i thin the problem is in Java because my DP settings are same like second project

but im not good on java and because i ask for help here

  • 0
Posted

Correct your pack about ChanceCondition, ChanceSkillList to fit with current L2J.

 

Can be either methods uses (missing method use during an "event") or methods themselves (bad coded so event never occurs even if method is correctly launched).

  • 0
Posted

Correct your pack about ChanceCondition, ChanceSkillList to fit with current L2J.

 

Can be either methods uses (missing method use during an "event") or methods themselves (bad coded so event never occurs even if method is correctly launched).

can you help me little more?

this is my file ChanceSkillList , can you tell me what is wrong and how to fix because im not good on java :(

 

public class ChanceSkillList extends FastMap<L2Skill, ChanceCondition>
{
private static final long	serialVersionUID	= -2542073222059976854L;
private L2Character			_owner;

public ChanceSkillList(L2Character owner)
{
	super();
	setShared(true);
	_owner = owner;
}

public L2Character getOwner()
{
	return _owner;
}

public void setOwner(L2Character owner)
{
	_owner = owner;
}

public void onHit(L2Character target, boolean ownerWasHit, boolean wasCrit)
{
	int event;
	if (ownerWasHit)
	{
		event = ChanceCondition.EVT_ATTACKED | ChanceCondition.EVT_ATTACKED_HIT;
		if (wasCrit)
			event |= ChanceCondition.EVT_ATTACKED_CRIT;
	}
	else
	{
		event = ChanceCondition.EVT_HIT;
		if (wasCrit)
			event |= ChanceCondition.EVT_CRIT;
	}

	onEvent(event, target);
}

public void onSkillHit(L2Character target, boolean ownerWasHit, boolean wasMagic, boolean wasOffensive)
{
	int event;
	if (ownerWasHit)
	{
		event = ChanceCondition.EVT_HIT_BY_SKILL;
		if (wasOffensive)
		{
			event |= ChanceCondition.EVT_HIT_BY_OFFENSIVE_SKILL;
			event |= ChanceCondition.EVT_ATTACKED;
		}
		else
		{
			event |= ChanceCondition.EVT_HIT_BY_GOOD_MAGIC;
		}
	}
	else
	{
		event = ChanceCondition.EVT_CAST;
		event |= wasMagic ? ChanceCondition.EVT_MAGIC : ChanceCondition.EVT_PHYSICAL;
		event |= wasOffensive ? ChanceCondition.EVT_MAGIC_OFFENSIVE : ChanceCondition.EVT_MAGIC_GOOD;
	}

	onEvent(event, target);
}

public void onEvent(int event, L2Character target)
{
	for (FastMap.Entry<L2Skill, ChanceCondition> e = head(), end = tail(); (e = e.getNext()) != end;)
	{
		if (e.getValue() != null && e.getValue().trigger(event))
		{
			makeCast(e.getKey(), target);
		}
	}
}

private void makeCast(L2Skill skill, L2Character target)
{
	try
	{
		L2Object[] targets = skill.getTargetList(_owner, false);
		if (targets != null && targets.length > 0)
		{
			_owner.broadcastPacket(new MagicSkillLaunched(_owner, skill.getDisplayId(), skill.getLevel(), targets));
			_owner.broadcastPacket(new MagicSkillUser(_owner, (L2Character)targets[0], skill.getDisplayId(), skill.getLevel(), 0, 0));

			// Launch the magic skill and calculate its effects
			ISkillHandler handler = SkillHandler.getInstance().getSkillHandler(skill.getSkillType());
			// Launch the magic skill and calculate its effects
			if (handler != null)
				handler.useSkill(_owner, skill, targets);
			else
				skill.useSkill(_owner, targets);
		}
	}
	catch (Exception e)
	{
		e.printStackTrace();
	}
}
}

  • 0
Posted

Nope. I don't have to make your job.

i dont want to make my job i try to make my files like l2j current but i get few errors

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

    • Website: https://l2aurum.com/ Discord: https://discord.gg/ngaD9DJRjE   Dear Players, We are excited to announce that the x300 Summer Season Beta server will open on 19‑06‑2026 at 20:00 GMT+2. As previously mentioned, there will be no wipe and no account deletion. All accounts, characters, items, and progress from Season 1 will remain completely safe. To ensure a fair and competitive start for new players, all Season 1 accounts will be temporarily locked. The official Summer Season launch will take place on 26‑06‑2026 at 20:00 GMT+2. A few weeks after the official launch, Season 1 accounts will be unlocked so previous players can access their characters and continue their journey. This approach allows new players to enjoy a fresh start while preserving the progress and achievements of our long-term community. Thank you for your continued support, and we look forward to welcoming everyone to the new Summer Season. L2Aurum Team   Explore L2 Aurum Features Discover the Enhancements that set us apart!   Information Server Version: Interlude - PvP Server Client Interface: Unique Interface   Rates     Additional Features and changes When you create a new character, you will start in Giran Harbor at Level 1, equipped with full No-Grade items. Auto Farm is available for free for 2 hour daily without VIP. VIP players receive 4 hours of Auto Farm per day. The Auto Farm time resets with the server restart at 5:30 AM. Status Noblesse: Last hit Barakiel. Player Spawn Protection: 7 seconds. Geodata + Pathnodes: Enabled. All commands are available in the Community Board. Maximum 3 Bishops Per Party: Enabled. Boss Protect - Anti-Zerg: Enabled. Shift + click on monsters to see the droplist. Offline shop. Mana Potion Restores 1000 MP with a cooldown of 8 seconds. Inventory Slots: 250.   Weapon Information Lv1 Black Chaotic Weapons. Lv2 Aurum Weapons.   Armor Information Lv1 Blue Apella Armor. Lv2 Aurum Apella Armor. Misc additions Accessories +50 and +150 pdef|mdef. Tattoos: Resolve | Soul | Avadon. Agathions: Cosmetic only (no stats).   Buffs / Dances / Songs / Prophecies Duration: 2 hours. Total Buff Slots: 32 + 4 (Divine Inspiration). Vote Buff: You must vote on 3 of 6 vote sites to get the vote buff blessing. Castle Reward Every clan that captures a castle receives the castle owner clan blessing buff. To receive it, the clan leader must be online.   Events   Raid Bosses Epic Bosses Final Bosses     For full server information please visit website PvP: Server Features   Website: https://l2aurum.com/ Discord: https://discord.gg/ngaD9DJRjE      
  • 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..