Jump to content

Recommended Posts

Posted (edited)

well all u know the special effects that gm's have.

the effect to dance when u are stunning and the effect of stun with a fire in the ground

so i was thinking about some new skills on bd and i remembered that effect of the stunning dance so i thought that it will be cool a skill like dat ;D

anyway lets start ;D

 

create in gameserver/skills/effects this

/*
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2, or (at your option)
 * any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 * 02111-1307, USA.
 *
 * http://www.gnu.org/copyleft/gpl.html
 */
package com.l2jfrozen.gameserver.skills.effects;

import com.l2jfrozen.gameserver.model.L2Character;
import com.l2jfrozen.gameserver.model.L2Effect;
import com.l2jfrozen.gameserver.skills.Env;

final class EffectStunDance extends L2Effect
{

	public EffectStunDance(Env env, EffectTemplate template)
	{
		super(env, template);
	}

	@Override
	public EffectType getEffectType()
	{
		return EffectType.STUNDANCE;
	}

	@Override
	public void onStart()
	{
		getEffected().stopMove(null);
		getEffected().startAbnormalEffect(L2Character.ABNORMAL_EFFECT_DANCE_STUNNED);
		getEffected().setIsParalyzed(true);
	}

	@Override
	public void onExit()
	{
		getEffected().stopAbnormalEffect(L2Character.ABNORMAL_EFFECT_DANCE_STUNNED);
		getEffected().setIsParalyzed(false);
	}

	@Override
	public boolean onActionTime()
	{
		return false;
	}
}

and this 

/*
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2, or (at your option)
 * any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 * 02111-1307, USA.
 *
 * http://www.gnu.org/copyleft/gpl.html
 */
package com.l2jfrozen.gameserver.skills.effects;

import com.l2jfrozen.gameserver.model.L2Character;
import com.l2jfrozen.gameserver.model.L2Effect;
import com.l2jfrozen.gameserver.skills.Env;

final class EffectStunFireRoot extends L2Effect
{

	public EffectStunFireRoot(Env env, EffectTemplate template)
	{
		super(env, template);
	}

	@Override
	public EffectType getEffectType()
	{
		return EffectType.FIREROOT;
	}

	@Override
	public void onStart()
	{
		getEffected().stopMove(null);
		getEffected().startAbnormalEffect(L2Character.ABNORMAL_EFFECT_FIREROOT_STUN);
		getEffected().setIsParalyzed(true);
	}

	@Override
	public void onExit()
	{
		getEffected().stopAbnormalEffect(L2Character.ABNORMAL_EFFECT_FIREROOT_STUN);
		getEffected().setIsParalyzed(false);
	}

	@Override
	public boolean onActionTime()
	{
		return false;
	}
}

now in model/L2Effect.java

find this

NEGATE,

and below add these

		STUNDANCE,
		FIREROOT, 

now in model/L2Character.java

find this

public static final int ABNORMAL_EFFECT_GROW = 0x010000;

and add below these

 

/** The Constant ABNORMAL_EFFECT_DANCE_STUNNED. */
public static final int ABNORMAL_EFFECT_DANCE_STUNNED = 0x040000;


/** The Constant ABNORMAL_EFFECT_FIREROOT_STUN. */
public static final int ABNORMAL_EFFECT_FIREROOT_STUN = 0x080000;

and last in gameserver/skills/DocumentBase.java

find this

			else if(abn.equals("stealth"))
			{
				abnormal = L2Character.ABNORMAL_EFFECT_STEALTH;
			}

and below add these

			else if(abn.equals("dance"))
			{
				abnormal = L2Character.ABNORMAL_EFFECT_DANCE_STUNNED;
			}
			else if(abn.equals("fireroot"))
			{
				abnormal = L2Character.ABNORMAL_EFFECT_FIREROOT_STUN;
			}

now u can add new skills with these effects ;D

example:

 

<skill id="367" levels="1" name="Dance of Medusa">
<set name="magicLvl" val="77"/>
<set name="mpConsume" val="53"/>
<set name="weaponsAllowed" val="512"/>
<set name="power" val="80"/>
<set name="saveVs" val="MEN"/>
<set name="skillRadius" val="150"/>
<set name="target" val="TARGET_AURA"/>
<set name="skillType" val="PARALYZE"/>
<set name="operateType" val="OP_ACTIVE"/>
<set name="hitTime" val="2000"/>
<set name="reuseDelay" val="120000"/>
<set name="isDebuff" val="true"/>
<set name="element" val="4"/>
<!-- Earth -->
<set name="lvlDepend" val="1"/>
<for>
<!-- <effect count="1" name="Petrification" time="30" val="0"/> -->
<!-- The player that will "eat" the debuff will get stunned and start dancing for 30sec. the dancing effect doesnt work in monster -->
<effect count="1" name="StunDance" time="30" val="0"/>
</for>
</skill>
<skill id="402" levels="10" name="Arrest" enchantLevels1="30" enchantLevels2="30">
  <table name="#enchantMagicLvl">76 76 76 77 77 77 78 78 78 79 79 79 80 80 80 81 81 81 82 82 82 82 83 83 83 84 84 85 85 85</table>
  <enchant1 name="magicLvl" val="#enchantMagicLvl"/>
  <enchant2 name="magicLvl" val="#enchantMagicLvl"/>
  <table name="#power">80 81 82 82 83 84 84 85 86 86 87 88 88 89 90 90 91 92 92 93 94 94 95 96 96 97 98 98 99 100</table>
  <table name="#chance">80 81 82 82 83 84 84 85 86 86 87 88 88 89 90 90 91 92 92 93 94 94 95 96 96 97 98 98 99 100</table>
  <table name="#mpConsume">25 27 28 29 30 31 32 33 34 34</table>
  <set name="mpConsume" val="#mpConsume"/>
  <set name="power" val="125"/>
  <set name="saveVs" val="MEN"/>
  <set name="lvlDepend" val="2"/>
  <set name="target" val="TARGET_ONE"/>
  <set name="reuseDelay" val="16000"/>
  <set name="hitTime" val="2000"/>
  <set name="skillType" val="ROOT"/>
  <set name="operateType" val="OP_ACTIVE"/>
  <set name="castRange" val="150"/>
  <set name="effectRange" val="650"/>
  <set name="isDebuff" val="true" />
  <enchant1 name="power" val="#power"/>
  <enchant2 name="power" val="#chance"/>
  <for>
  <!--  <effect count="1" name="Root" time="7" val="0" stackOrder="1" stackType="Root"/> -->
<!-- The player that will "eat" the debuff will get stunned and shows a fire arrest him for 7sec. the fire effect doesnt work in monster -->
         <effect count="1" name="StunFireRoot" time="7" val="0" stackOrder="1" stackType="Root"/>
  </for>
</skill>

thats for the effects ;p

 

now the conditions.

the conditions are taken from client gracia++ i dont even know ;D

it works like the restorations skills of kamael.

u need to have a effect on u so u can use another skill

 

gameserver/skills/conditions.java

create new files

/*
 * This program is free software: you can redistribute it and/or modify it under
 * the terms of the GNU General Public License as published by the Free Software
 * Foundation, either version 3 of the License, or (at your option) any later
 * version.
 * 
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
 * details.
 * 
 * You should have received a copy of the GNU General Public License along with
 * this program. If not, see <http://www.gnu.org/licenses/>.
 */
package com.l2jfrozen.gameserver.skills.conditions;

import com.l2jfrozen.gameserver.model.L2Effect;
import com.l2jfrozen.gameserver.skills.Env;

public class ConditionTargetActiveEffectId extends Condition
{
    
    private final int _effectId;
    
    public ConditionTargetActiveEffectId(int effectId)
    {
        _effectId = effectId;
    }
    
    @Override
    public boolean testImpl(Env env)
    {
        for (L2Effect e : env.target.getAllEffects())
        {
            if (e != null)
            {
                if (e.getSkill().getId() == _effectId)
                    return true;
            }
        }
        return false;
    }
}

/*
 * This program is free software: you can redistribute it and/or modify it under
 * the terms of the GNU General Public License as published by the Free Software
 * Foundation, either version 3 of the License, or (at your option) any later
 * version.
 * 
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
 * details.
 * 
 * You should have received a copy of the GNU General Public License along with
 * this program. If not, see <http://www.gnu.org/licenses/>.
 */
package com.l2jfrozen.gameserver.skills.conditions;

import com.l2jfrozen.gameserver.model.L2Skill;
import com.l2jfrozen.gameserver.skills.Env;

public class ConditionTargetActiveSkillId extends Condition
{
    
    private final int _skillId;
    
    public ConditionTargetActiveSkillId(int skillId)
    {
        _skillId = skillId;
    }
    
    @Override
    public boolean testImpl(Env env)
    {
        for (L2Skill sk : env.target.getAllSkills())
        {
            if (sk != null)
            {
                if (sk.getId() == _skillId)
                    return true;
            }
        }
        return false;
    }
}

/*
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2, or (at your option)
 * any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 * 02111-1307, USA.
 *
 * http://www.gnu.org/copyleft/gpl.html
 */
package com.l2jfrozen.gameserver.skills.conditions;

import com.l2jfrozen.gameserver.skills.Env;

/**
 * @author mkizub
 */
public class ConditionTargetSkill extends Condition
{

	private final int _skill;

	public ConditionTargetSkill(int skillId)
	{
		_skill = skillId;
	}

	@Override
	public boolean testImpl(Env env)
	{
		if(env.target == null)
			return false;
		return env.target.getAbnormalEffect() == _skill;
	}
}

thats it now in gameserver/skills/DocumentBase.java

find this

import com.l2jfrozen.gameserver.skills.conditions.ConditionPlayerState;

and add these below

import com.l2jfrozen.gameserver.skills.conditions.ConditionTargetActiveEffectId;
import com.l2jfrozen.gameserver.skills.conditions.ConditionTargetActiveSkillId;

now find this

			else if("class_id_restriction".equalsIgnoreCase(a.getNodeName()))
			{
				FastList<Integer> array = new FastList<Integer>();
				StringTokenizer st = new StringTokenizer(a.getNodeValue(), ",");
				while(st.hasMoreTokens())
				{
					String item = st.nextToken().trim();
					array.add(Integer.decode(getValue(item, null)));
				}
				cond = joinAnd(cond, new ConditionTargetClassIdRestriction(array));
			}

and below add these

            else if ("active_effect_id".equalsIgnoreCase(a.getNodeName()))
            {
                int effect_id = Integer.decode(getValue(a.getNodeValue(), template));
            	cond = joinAnd(cond, new ConditionTargetActiveEffectId(effect_id));
            }
            else if ("active_skill_id".equalsIgnoreCase(a.getNodeName()))
            {
                int skill_id = Integer.decode(getValue(a.getNodeValue(), template));
                cond = joinAnd(cond, new ConditionTargetActiveSkillId(skill_id));
            }

thats it ;D finished.

example

 

create this (its spoil skill transformed into restoration)

	<skill id="254" levels="8" name="Restoration">
		<table name="#mpConsume_Init"> 21 25 14 16 17 19 20 20 </table>
		<table name="#mpConsume"> 49 57 34 38 41 43 45 48 </table>
		<table name="#hot"> 45 54 66 75 81 87 90 96 </table>
		<table name="#ench1Heal"> 96 99 99 102 105 108 111 114 114 117 120 123 126 126 129 132 135 138 141 141 144 147 150 153 153 156 159 162 165 168 </table>
		<table name="#ench2Count"> 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 40 41 42 43 44 45 </table>
		<table name="#ench2mpInitialConsume"> 13 13 13 12 12 12 12 12 11 11 11 11 10 10 10 10 9 9 9 9 9 8 8 8 8 7 7 7 7 7 </table>
		<table name="#ench2mpConsume"> 53 52 50 50 49 48 48 46 46 45 44 42 42 41 40 38 38 38 37 36 34 34 33 32 30 30 29 29 28 26 </table>
		<set name="mpInitialConsume" val="#mpConsume_Init" />
		<set name="mpConsume" val="#mpConsume" />
		<set name="hitTime" val="2500" />
		<set name="operateType" val="OP_ACTIVE" />
		<set name="isMagic" val="true" />
		<set name="target" val="TARGET_ONE" />
		<set name="skillType" val="HOT" />
		<set name="castRange" val="600" />
		<set name="effectRange" val="1100" />
		<set name="reuseDelay" val="3000" />
		<enchant2 name="mpInitialConsume" val="#ench2mpInitialConsume" />
		<enchant2 name="mpConsume" val="#ench2mpConsume" />
		<for>
			<effect count="5" name="HealOverTime" time="3" val="#hot" stackOrder="1" stackType="touch_of_life">
			</effect>
		</for>
	</skill>
	<skill id="302" levels="3" name="Restoration Impact" enchantGroup1="1">
		<table name="#mpConsume_Init"> 7 8 10 </table>
		<table name="#mpConsume"> 16 20 23 </table>
		<table name="#power"> 10 15 20 </table>
		<table name="#ench1Power"> 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 </table>
		<set name="aggroPoints" val="#power" />
		<set name="mpInitialConsume" val="#mpConsume_Init" />
		<set name="mpConsume" val="#mpConsume" />
		<set name="power" val="#power" />
		<set name="hitTime" val="1000" />
		<set name="operateType" val="OP_ACTIVE" />
		<set name="isMagic" val="true" />
		<set name="target" val="TARGET_ONE" />
		<set name="skillType" val="HEAL_PERCENT" />
		<set name="castRange" val="600" />
		<set name="effectRange" val="1100" />
		<set name="reuseDelay" val="15000" />
		<set name="negateId" val="254" />
		<enchant1 name="power" val="#ench1Power" />
		<cond msg="You must use Restoration first">
			<target active_effect_id="254" />
		</cond>
		<for>
			<effect name="Negate" val="0" noicon="1" effectType="NEGATE" />
		</for>
	</skill>

so in order to use Restoration Impact u need the effect of "<target active_effect_id="254" />" 254 = Restoration

and u're done ;D u will be able to use Restoration Impact only if u have the effect of Restoration on you :)

Edited by te0x

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.



  • Posts

    • Hi everyone,   I'm looking for someone to create a website for me with a pale, whitish design, inspired by Talking Island. I also need an auto-updater and a Discord logo included.   I already have the domain and hosting set up on OVH, with PHP ready to go. However, I'm new to website development, so you may need to guide me through the installation process.   Please do not contact me if you're charging unreasonable prices like $800 for "VIP" packages — I'm looking for fair and realistic offers. Payment will be made once the job is completed.   If you have previous work to show, that's definitely a plus. The website, auto-updater, and Discord elements should all be in English.   Thanks!
    • Make your own topic. Don’t be so rude and post in mine just to sell your stuff 😉   @Celestine
    • Server Client: Server is running on custom Classic Interlude Client. Enjoy the innovations that classic offers to players while maintaining the stability of Interlude features that we all loved.   Birth of a new character A new character spawns in the basement of Ivory Tower. There, you can buff yourself  via AIO buffer and then teleport to a low level zone for xp. A new character starts  with full no grade gear and a newbie supply box. AIO npc Buffer There are AIO npc Buffers spawned in every town. The buffs’ duration is 1hour and  are free of charge. The only buffs that are not included in the list are summoner’s  buffs, third class dances, third class songs, and resists.    Class transfer When you hit level  20, 40 and 76, you can seek for the Class Changer Carola in Aden  or Castle Town  in order to perform your 1st , 2nd  and 3rd class change or simply use the .menu feature located in your character skills list. There are no further quests required. Boosted Buffers and Summoners In order to boost Prophets, Bladedancers and Swordsingers for PvP action and  Olympiad games, they have been given special self-buffs. All of these classes are  gifted with higher level buffs which they can be casted on themselves only. Also,  summoner classes are boosted since they can buff their pets with more than usual  servitor’s buffs  There are 4 main custom shops in the server where you can buy the following items: 1) Harvana (Misc Shop): Consumables 2) Albert (Weapon Shop): D, C, B and A grade weapons 3) Meredion (Armor Shop): D, C and B grade armor and jewels 4) Wilbrand (Mantra Manager): A/S armor, S grade weapons and more  Event Shop Event Shop Dianne can either be found in Aden Castle Town or Giran. You  can buy several useful items in exchange for Vote Coins or Event Medals.  Via  Event Shop Dianne you can have access to the following items: 1) Blessed Enchants 2) Books of Giants 3) Common and Custom Accessories 4)Raidbombs  and many more  Weapons’ Special Abilities The Special Abilities (SA) for every C, B and A grade weapons can be bestowed by  Mantra Manager Wilbrand in exchange for some animal bones, water mantras or wind  mantras respectively.    Rebirth System When you reach level 76, you can perform your first rebirth via Rebirth Manager.  Once you perform a rebirth, your character will be deleveled to level 40 and you will  obtain a book of rebirth. You can exchange the book of rebirth for a unique accesories  via Rebirth Manager. A character can have 3 rebirths maximum. Remember once  you have chosen your  rebirth skills, you can anytime change your mind and choose  your rebirths once again.  Noblesse system Once you have performed 3 rebirths, you need to collect a set of four crowns from the  following Raid Bosses: 1) Death Lord Hallate (Black Crown) 2) Kernon (Gold Crown) 3) Longhorn Golkonda (Red Crown) 4) Shilen’s Messenger Cabrio (Silver Crown)  Once you’ve collected all the crowns and your character is at level 76, you can talk to  the Noblesse Manager Eddy Wally, located in Aden Castle Town and become a Noblesse. Crown Raids Bosses’ respawn time is every 12 (±2) hours and have 1 spot Spawn spot: Giants Cave Unique L2Halcyon weapons and shields L2Halcyon weapons are S grade weapons with a unique SA. There are also three unique  L2Halcyon shields. Both of them can be dropped only by Raid Bosses. Remember you  can check the possible drops of any Raid Boss by pressing Shift+left click. Find  bellow more details regarding L2Halcyon items. Duals Crokian blade*Crokian blade: Increases Critical Attack by 95 and Accuracy by 6 Doll knife*Doll knife <-Daggers: Increases Atk. speed by 7% and Accuracy by 6 Swords Crokian Blade: Increases Atk. speed by 7% and Accuracy by 6 Sword of Apostle: Increases Accuracy by 6 and maximum HP by 25% Mage weapons Lady’s Fan: Increases Casting Spd. by 17.5% Dusk Staff: Increases Casting Spd. by 17.5% Dusk Sword: Increases M. Atk. by 15% Polearms Dreadbane: 360° hit rate, increases hit number from 4 to 8 and Accuracy by 6 Axe of Ketra: Increases Accuracy by 6 and P. Atk. by 265 during a critical attack Daggers Doll Knife: Increases Critical Attack by 95 and P. Atk. by 265 during a critical attack Giant Trident: Increases Evasion by 3 and P. Atk. by 265 during a critical attack 2-Handed Sword Sword of Vampire: Increases Critical Attack by 95 and maximum HP by 25% Blunt Cudgel: Increases Critical Attack by 95 and Atk. speed by 7% Bow Bow of Halisha: Increases Critical Attack by 95 and Accuracy by 6 Shields Shield of Reflect: Reflect magic debuffs and shield damage reflect Shield of Evasion: No evasion penalty and Speed +7 Dusk Shield: Bow resistance  Ancient L2Halcyon weapons Ancient L2Halcyon weapons can be obtained through refining the normal ones.  Unique L2Halcyon Jewels L2Halcyon Jewels are S grade Jewels which provide unique bonuses. They can be  dropped by specific Raid Bosses. Remember you can check the possible drops of any  Raid Boss by pressing Shift+left click. Find bellow the bonuses of L2Halcyon Jewels: -Earring of Garacsia: MP +31, +10% bow resistance and +7 speed -Earring of Ipos: MP +31, +10% dagger resistance and +7 speed -Earring of Kandra: MP +31, +20% wind resistance and +7 speed -Earring of Von Helman: MP +31, +20% dark resistance and +7 speed -Earring of Vermilion: MP +31, +20% fire resistance and +7 speed -Earring of Falston: MP +31, +20% water resistance and +7 speed -Ring of Horuth: MP +21 and +10% P.Def. -Ring of Mos: MP +21 and +10% M.Def. -Ring of Shadith: MP +21 and 500% HP regen -Ring of Tayr: MP +21 and +100 Bow Range -Necklace of Hekaton: MP +42 and +15% max CP -Necklace of Brakki: MP +42 and +60% resistance to most of the debuffs -Necklace of Naga: MP +42 and +15% max HP   Refining S grade armors/jewels Any S grade armor can be refined via Mantra Manager Wilbrand. S grade armors and  Tateossian jewels start at 55% and they can both be upgraded all the way up to 100%  in order to gain extra P.def or M.def. Once your armor reach 100%, you can transform  it into Apella and gain extra stats (Jewels cannot be further refined). In addition,  Apella armors start at 55% and can be upgraded up to 100% too. Then, you can  transform your Apella into Dynasty Armor or Ancient Apella depends on your preference (which can also be refined up to 100%).  Refining Epic Jewels (Core and Orfen) There is an option to refine Ring of Core and Earring of Orfen via Mantra Manager Wilbert. If you have two  Rings of Core, you can combine them and receive an  Enchanted Ring of Core. Then, you can combine two  Enchanted Rings of Core in order to create a Refined  Ring of Core (4 Rings of Core in total). The same  procedure can be applied to Earring of Orfen, in order  to create Enchanted Earring of Orfen or Refined  Earring of Orfen. In this case, the enchantment of the ring/earring will be reset, so do not enchant those epic jewels before refining.    Events: Korean TvT Squash Event Watermelon Event Raidboss Event Highrate    Features List is not the final and changes/additions can be made! Join us and say your ideas! WEBSITE: L2Halcyon Join our discord server for more information about the server development and also join access early to test features, and get a glimpse on what we are working on. Discord Server 
    • https://l2halcyon.com join discord server , you can actually get access to test. Classic Interlude.
  • 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