Jump to content
  • 0

l2jfrozen


dramaa93

Question

11 answers to this question

Recommended Posts

  • 0
4 hours ago, dramaa93 said:

yes and not only aegis.

 

In L2J at least there a method in Inventory.java called notifyUnequiped

which basically remove skills given by item once its equipped.

 

final SkillHolder[] skills = it.getSkills();

if (skills != null)
{
	for (final SkillHolder skillInfo : skills)
	{
		if (skillInfo == null)
		{
			continue;
		}

		itemSkill = skillInfo.getSkill();

		if (itemSkill != null)
		{
			player.removeSkill(itemSkill, false, itemSkill.isPassive());
        	}
        }
}

 

So you can either make a simple check here or make a var BOOLEAN type in XML of weapon and control each item if you want to keep or no keep skills.

 

It's pretty simple.

Link to comment
Share on other sites

  • 0
4 hours ago, dramaa93 said:

yes and not only aegis.

why would u want to stop shield toggle skills ? they dont usually work when there is no shield equipped.

Edited by BruT
Link to comment
Share on other sites

  • 0
6 hours ago, dramaa93 said:

But reflect or titans frenzy zealot don't works when changing weapons?

Zealot

<for>
			<effect name="Buff" time="60" val="0" stackOrder="#stackOrder" stackType="pd_up_special">
				<add order="0x40" stat="accCombat" val="6"/>
				<add order="0x40" stat="runSpd" val="#runSpd"/>
				<mul order="0x30" stat="pAtkSpd" val="#pAtkSpd"/>
				<mul order="0x30" stat="gainHp" val="0.5"/>
				<add order="0x40" stat="rCrit" val="#rCrit">
					<and>
						<using kind="SWORD,BIGSWORD,POLE"/>
					</and>
				</add>
				<mul order="0x30" stat="cAtk" val="#cAtk">
					<and>
						<using kind="BLUNT,BIGBLUNT,FIST,DUALFIST"/>
					</and>
				</mul>
			</effect>
		</for>

 

Frenzy

 <for>
            <effect name="Buff" time="90" count="1" val="0" stackOrder="1" stackType="OrcBuff">
                <add order="0x40" stat="accCombat" val="#accCombat">
                    <and>
                        <using kind="Big Sword,Big Blunt"/>
                    </and>
                </add>
                <mul order="0x30" stat="pAtk" val="#swordbluntpole">
                    <and>
                        <using kind="Sword,Blunt,Pole"/>
                    </and>
                </mul>
                <mul order="0x30" stat="pAtk" val="#twohands">
                    <and>
                        <using kind="Big Sword,Big Blunt"/>
                    </and>
                </mul>
                <mul order="0x30" stat="pAtk" val="#other">
                    <and>
                        <using kind="Dual Fist,Dual Sword,Fist,Etc,Bow,Dagger"/>
                    </and>
                </mul>
            </effect>
        </for>

 

Link to comment
Share on other sites

  • 0

#zake

If I am not wrong this what you wrote means that I can use those skills on those weapons, but what I meant is that, when I use zealot or frenzy it's have to stop working when I change weapon, except if you change  weapons at 30% hp.

Link to comment
Share on other sites

  • 0
48 minutes ago, dramaa93 said:

#zake

If I am not wrong this what you wrote means that I can use those skills on those weapons, but what I meant is that, when I use zealot or frenzy it's have to stop working when I change weapon, except if you change  weapons at 30% hp.

zealot and frenzy requieres 30% to load(as effect players inside oly starts run when titan load fr,zealot.titan MUST equip bow,last hit matters). This mode you want to add will upset most of players.. @Zake gives you the best solution!

Edited by Irrelevant
Link to comment
Share on other sites

  • 0
1 hour ago, dramaa93 said:

#zake

If I am not wrong this what you wrote means that I can use those skills on those weapons, but what I meant is that, when I use zealot or frenzy it's have to stop working when I change weapon, except if you change  weapons at 30% hp.

This means that stats may vary according to your equipped weapon unless frozen comes up with new surprises. Normally frenzy should be casted even without a weapon

Link to comment
Share on other sites

  • 0

Okey but what about paladins reflect? Can I make it so to when he unequip shield effect worns off? I have not checked those skills also I am at work so can't check , but can I add this what you wrote me zake to stop effect if shield will be disarmed?

Link to comment
Share on other sites

  • 0
2 hours ago, dramaa93 said:

Okey but what about paladins reflect? Can I make it so to when he unequip shield effect worns off? I have not checked those skills also I am at work so can't check , but can I add this what you wrote me zake to stop effect if shield will be disarmed?

You can add any condition just like in the following stat, that makes the stat work only with specific item types

 

<mul order="0x30" stat="pAtk" val="#other">
                    <and>
                        <using kind="Dual Fist,Dual Sword,Fist,Etc,Bow,Dagger"/>
                    </and>
                </mul>
            

 

 

">

  <and>

    <using...

  </and>

</mul>

 

there are usually 2 type of conditions, onCast and Stat

 

don't ever bother moding core for such things like removing effect on unequip because ull face other issues

 

Edited by BruT
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


×
×
  • 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