Jump to content

[Share]Mirage and Angelic Icon Restriction


Recommended Posts

Hello Ladies.i was at sea and come today to home. so i will continue my shares :P . so this is Mirage And Angelic Icon Skills Restriction for Paladin and TH.

If Character is Paladin or TH and equiped with bow these skills will dissapear.and effects will reload.Similarly you can restrict on tyrants and etc.

So Let's Start.

First Go here and Open

 

net.sf.l2j.gameserver.clientpackets.UseItem.java

 

Add to imports

 

import net.sf.l2j.gameserver.templates.L2WeaponType;

 

Find:

                {
                    if (activeChar._inEventCTF && activeChar._haveFlagCTF)
                    	activeChar.sendMessage("This item can not be equipped when you have the flag.");
                	return;
                }

 

Add after

 

				if (item.isEquipable() && item.getItemType() == L2WeaponType.BOW && activeChar.getClassId().getId() == 90)
			{
			int skill_id = 406;
				activeChar.stopSkillEffects(skill_id);
				activeChar.updateAbnormalEffect();
				activeChar.updateEffectIcons();
			}

			if (item.isEquipable() && item.getItemType() == L2WeaponType.BOW && activeChar.getClassId().getId() == 93)
			{
			int skill_id = 445;
				activeChar.stopSkillEffects(skill_id);
				activeChar.updateAbnormalEffect();
				activeChar.updateEffectIcons();
			}

 

Finish :) hope i help to someone

Link to comment
Share on other sites

why do you want to stop it? it will not work anyway with bow

	<for>
		<effect name="Buff" time="60" val="0" stackOrder="#stackOrder" stackType="icon_buff">
			<mul order="0x30" stat="debuffVuln" val="0.6" />
			<mul order="0x30" stat="pDef" val="1.5" />
			<mul order="0x30" stat="mDef" val="1.5" />
			<add order="0x40" stat="accCombat" val="6">
				<using kind="Sword,Big Sword,Blunt,Big Blunt" />
			</add>
			<add order="0x40" stat="runSpd" val="#runSpd" />
			<mul order="0x30" stat="pAtkSpd" val="#pAtkSpd">
				<using kind="Sword,Big Sword,Blunt,Big Blunt" />
			</mul>
			<add order="0x40" stat="rCrit" val="#rCrit">
				<using kind="Sword,Big Sword" />
			</add>
			<mul order="0x30" stat="cAtk" val="#cAtk">
				<using kind="Blunt,Big Blunt" />
			</mul>
			<mul order="0x30" stat="cancelVuln" val="0.6" />
			<mul order="0x30" stat="gainHp" val="0.2" />
		</effect>
	</for>

Link to comment
Share on other sites

why do you want to stop it? it will not work anyway with bow

	<for>
		<effect name="Buff" time="60" val="0" stackOrder="#stackOrder" stackType="icon_buff">
			<mul order="0x30" stat="debuffVuln" val="0.6" />
			<mul order="0x30" stat="pDef" val="1.5" />
			<mul order="0x30" stat="mDef" val="1.5" />
			<add order="0x40" stat="accCombat" val="6">
				<using kind="Sword,Big Sword,Blunt,Big Blunt" />
			</add>
			<add order="0x40" stat="runSpd" val="#runSpd" />
			<mul order="0x30" stat="pAtkSpd" val="#pAtkSpd">
				<using kind="Sword,Big Sword,Blunt,Big Blunt" />
			</mul>
			<add order="0x40" stat="rCrit" val="#rCrit">
				<using kind="Sword,Big Sword" />
			</add>
			<mul order="0x30" stat="cAtk" val="#cAtk">
				<using kind="Blunt,Big Blunt" />
			</mul>
			<mul order="0x30" stat="cancelVuln" val="0.6" />
			<mul order="0x30" stat="gainHp" val="0.2" />
		</effect>
	</for>

imagine he got karma for this..
Link to comment
Share on other sites

  • 2 weeks later...
  • 4 weeks later...

GeoSky - double post... to this restriction i can say this: "its usefull and why? when you set this to dp side bonus as p.def, m.def stay with bow ;)"...

LOOL Look Post Date Man. And I test it And Work On Interlude Server.  I make Is On My Server Und ALL It's OK ;)
Link to comment
Share on other sites

Sky" post="1389199" timestamp="1285144379"]

LOOL Look Post Date Man. And I test it And Work On Interlude Server.  I make Is On My Server Und ALL It's OK ;)

 

See forum rules, why you dont edit your old post?? :D

Link to comment
Share on other sites

  • 3 weeks later...
  • 4 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...