فهرست منبع

BETA: Moving effects to datapack, core side

BiggBoss 13 سال پیش
والد
کامیت
caf61532f5
75فایلهای تغییر یافته به همراه113 افزوده شده و 6062 حذف شده
  1. 2 0
      L2J_Server_BETA/java/com/l2jserver/gameserver/GameServer.java
  2. 78 0
      L2J_Server_BETA/java/com/l2jserver/gameserver/handler/EffectHandler.java
  3. 3 4
      L2J_Server_BETA/java/com/l2jserver/gameserver/model/ChanceSkillList.java
  4. 2 3
      L2J_Server_BETA/java/com/l2jserver/gameserver/model/FusionSkill.java
  5. 11 1
      L2J_Server_BETA/java/com/l2jserver/gameserver/model/L2Effect.java
  6. 1 2
      L2J_Server_BETA/java/com/l2jserver/gameserver/model/actor/L2Character.java
  7. 7 6
      L2J_Server_BETA/java/com/l2jserver/gameserver/model/actor/instance/L2NpcInstance.java
  8. 1 2
      L2J_Server_BETA/java/com/l2jserver/gameserver/skills/DocumentBase.java
  9. 2 3
      L2J_Server_BETA/java/com/l2jserver/gameserver/skills/conditions/ConditionForceBuff.java
  10. 0 65
      L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectAbortCast.java
  11. 0 92
      L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectBetray.java
  12. 0 74
      L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectBigHead.java
  13. 0 59
      L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectBlockResurrection.java
  14. 0 80
      L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectBluff.java
  15. 0 60
      L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectBuff.java
  16. 0 225
      L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectCancel.java
  17. 0 51
      L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectCancelAll.java
  18. 0 124
      L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectCancelDebuff.java
  19. 0 111
      L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectChameleonRest.java
  20. 0 109
      L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectChanceSkillTrigger.java
  21. 0 90
      L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectCharmOfCourage.java
  22. 0 85
      L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectCharmOfLuck.java
  23. 0 87
      L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectClanGate.java
  24. 0 70
      L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectCombatPointHeal.java
  25. 0 83
      L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectCombatPointHealOverTime.java
  26. 0 120
      L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectConfuseMob.java
  27. 0 120
      L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectConfusion.java
  28. 0 39
      L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectCpDamPercent.java
  29. 0 74
      L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectDamOverTime.java
  30. 0 49
      L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectDebuff.java
  31. 0 87
      L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectDisarm.java
  32. 0 109
      L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectEnemyCharge.java
  33. 0 90
      L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectFakeDeath.java
  34. 0 166
      L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectFear.java
  35. 0 81
      L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectFusion.java
  36. 0 72
      L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectGrow.java
  37. 0 99
      L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectHealOverTime.java
  38. 0 120
      L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectHide.java
  39. 0 80
      L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectImmobileBuff.java
  40. 0 70
      L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectImmobilePetBuff.java
  41. 0 74
      L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectIncreaseCharges.java
  42. 0 59
      L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectInvincible.java
  43. 0 65
      L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectManaDamOverTime.java
  44. 0 83
      L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectManaHealOverTime.java
  45. 0 64
      L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectMpConsumePerLevel.java
  46. 0 80
      L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectMute.java
  47. 0 77
      L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectNegate.java
  48. 0 98
      L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectNoblesseBless.java
  49. 0 99
      L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectParalyze.java
  50. 0 83
      L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectPetrification.java
  51. 0 84
      L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectPhoenixBless.java
  52. 0 84
      L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectPhysicalAttackMute.java
  53. 0 85
      L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectPhysicalMute.java
  54. 0 70
      L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectProtectionBlessing.java
  55. 0 102
      L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectRandomizeHate.java
  56. 0 77
      L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectRecovery.java
  57. 0 118
      L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectRelax.java
  58. 0 78
      L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectRemoveTarget.java
  59. 0 67
      L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectRoot.java
  60. 0 121
      L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectSignet.java
  61. 0 119
      L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectSignetAntiSummon.java
  62. 0 210
      L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectSignetMDam.java
  63. 0 102
      L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectSignetNoise.java
  64. 0 81
      L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectSilenceMagicPhysical.java
  65. 0 114
      L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectSilentMove.java
  66. 0 84
      L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectSleep.java
  67. 0 105
      L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectSpoil.java
  68. 0 83
      L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectStun.java
  69. 0 86
      L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectStunSelf.java
  70. 0 97
      L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectTargetMe.java
  71. 0 139
      L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectThrowUp.java
  72. 0 83
      L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectTransferDamage.java
  73. 0 96
      L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectTransformation.java
  74. 0 127
      L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectWarp.java
  75. 6 6
      L2J_Server_BETA/java/com/l2jserver/gameserver/templates/effects/EffectTemplate.java

+ 2 - 0
L2J_Server_BETA/java/com/l2jserver/gameserver/GameServer.java

@@ -76,6 +76,7 @@ import com.l2jserver.gameserver.datatables.UITable;
 import com.l2jserver.gameserver.geoeditorcon.GeoEditorListener;
 import com.l2jserver.gameserver.handler.AdminCommandHandler;
 import com.l2jserver.gameserver.handler.ChatHandler;
+import com.l2jserver.gameserver.handler.EffectHandler;
 import com.l2jserver.gameserver.handler.ItemHandler;
 import com.l2jserver.gameserver.handler.SkillHandler;
 import com.l2jserver.gameserver.handler.TargetHandler;
@@ -220,6 +221,7 @@ public class GameServer
 		
 		printSection("Skills");
 		TargetHandler.getInstance().executeScript();
+		EffectHandler.getInstance().executeScript();
 		EnchantGroupsTable.getInstance();
 		SkillTable.getInstance();
 		SkillTreesData.getInstance();

+ 78 - 0
L2J_Server_BETA/java/com/l2jserver/gameserver/handler/EffectHandler.java

@@ -0,0 +1,78 @@
+/*
+ * 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.l2jserver.gameserver.handler;
+
+import java.io.File;
+import java.util.logging.Logger;
+
+import javolution.util.FastMap;
+
+import com.l2jserver.gameserver.model.L2Effect;
+import com.l2jserver.gameserver.scripting.L2ScriptEngineManager;
+
+/**
+ * @author BiggBoss
+ *
+ */
+public final class EffectHandler
+{	
+	private static final class SingletonHolder
+	{
+		private static final EffectHandler _instance = new EffectHandler();
+	}
+
+	private static final Logger _log = Logger.getLogger(EffectHandler.class.getName());
+	private FastMap<String, Class<? extends L2Effect>> _handlers;
+	
+	private EffectHandler()
+	{
+		_handlers = new FastMap<String, Class<? extends L2Effect>>();
+	}
+	
+	public void registerHandler(String effect, Class<? extends L2Effect> func)
+	{
+		_handlers.put(effect, func);
+	}
+	
+	public final Class<? extends L2Effect> getHandler(String name)
+	{
+		return _handlers.get(name);
+	}
+	
+	public int size()
+	{
+		return _handlers.size();
+	}
+	
+	public void executeScript()
+	{
+		try
+		{
+			File file = new File(L2ScriptEngineManager.SCRIPT_FOLDER, "handlers/EffectMasterHandler.java");
+			L2ScriptEngineManager.getInstance().executeScript(file);
+		}
+		catch(Exception e)
+		{
+			_log.warning("Problems while running EffectMansterHandler");
+			e.printStackTrace();
+		}
+		_log.config("Loaded "+size()+" Effect handlers");
+	}
+	
+	public static EffectHandler getInstance()
+	{
+		return SingletonHolder._instance;
+	}
+}

+ 3 - 4
L2J_Server_BETA/java/com/l2jserver/gameserver/model/ChanceSkillList.java

@@ -26,7 +26,6 @@ import com.l2jserver.gameserver.model.actor.L2Character;
 import com.l2jserver.gameserver.model.actor.L2Playable;
 import com.l2jserver.gameserver.network.serverpackets.MagicSkillLaunched;
 import com.l2jserver.gameserver.network.serverpackets.MagicSkillUse;
-import com.l2jserver.gameserver.skills.effects.EffectChanceSkillTrigger;
 import com.l2jserver.gameserver.templates.skills.L2SkillType;
 
 /**
@@ -130,8 +129,8 @@ public class ChanceSkillList extends FastMap<IChanceSkillTrigger, ChanceConditio
 			{
 				if (e.getKey() instanceof L2Skill)
 					makeCast((L2Skill)e.getKey(), target);
-				else if (e.getKey() instanceof EffectChanceSkillTrigger)
-					makeCast((EffectChanceSkillTrigger)e.getKey(), target);
+				else
+					makeCast((L2Effect)e.getKey(), target);
 			}
 		}
 	}
@@ -181,7 +180,7 @@ public class ChanceSkillList extends FastMap<IChanceSkillTrigger, ChanceConditio
 		}
 	}
 	
-	private void makeCast(EffectChanceSkillTrigger effect, L2Character target)
+	private void makeCast(L2Effect effect, L2Character target)
 	{
 		try
 		{

+ 2 - 3
L2J_Server_BETA/java/com/l2jserver/gameserver/model/FusionSkill.java

@@ -22,7 +22,6 @@ import com.l2jserver.gameserver.GeoData;
 import com.l2jserver.gameserver.ThreadPoolManager;
 import com.l2jserver.gameserver.datatables.SkillTable;
 import com.l2jserver.gameserver.model.actor.L2Character;
-import com.l2jserver.gameserver.skills.effects.EffectFusion;
 import com.l2jserver.gameserver.util.Util;
 
 
@@ -60,7 +59,7 @@ public final class FusionSkill
 		
 		L2Effect effect = _target.getFirstEffect(_fusionId);
 		if (effect != null)
-			((EffectFusion)effect).increaseEffect();
+			effect.increaseEffect();
 		else
 		{
 			L2Skill force = SkillTable.getInstance().getInfo(_fusionId, _fusionLevel);
@@ -77,7 +76,7 @@ public final class FusionSkill
 		_caster.setFusionSkill(null);
 		L2Effect effect = _target.getFirstEffect(_fusionId);
 		if (effect != null)
-			((EffectFusion)effect).decreaseForce();
+			effect.decreaseForce();
 		
 		_geoCheckTask.cancel(true);
 	}

+ 11 - 1
L2J_Server_BETA/java/com/l2jserver/gameserver/model/L2Effect.java

@@ -47,7 +47,7 @@ import com.l2jserver.gameserver.templates.skills.L2SkillType;
  *
  * @version $Revision: 1.1.2.1.2.12 $ $Date: 2005/04/11 10:06:07 $
  */
-public abstract class L2Effect
+public abstract class L2Effect implements IChanceSkillTrigger
 {
 	protected static final Logger _log = Logger.getLogger(L2Effect.class.getName());
 	
@@ -684,4 +684,14 @@ public abstract class L2Effect
 	{
 		return false;
 	}
+	
+	public void decreaseForce() { }
+	public void increaseEffect() { }
+	public int getForceEffect() { return 0; }
+	public boolean isBuffEffect() { return false; }
+	public boolean isDebuffEffect() { return false; }
+	public boolean triggersChanceSkill() { return false; }	
+	public int getTriggeredChanceId() { return 0; }
+	public int getTriggeredChanceLevel() { return 0; }
+	public ChanceCondition getTriggeredChanceCondition() { return null; }
 }

+ 1 - 2
L2J_Server_BETA/java/com/l2jserver/gameserver/model/actor/L2Character.java

@@ -99,7 +99,6 @@ import com.l2jserver.gameserver.skills.AbnormalEffect;
 import com.l2jserver.gameserver.skills.Calculator;
 import com.l2jserver.gameserver.skills.Formulas;
 import com.l2jserver.gameserver.skills.Stats;
-import com.l2jserver.gameserver.skills.effects.EffectChanceSkillTrigger;
 import com.l2jserver.gameserver.skills.funcs.Func;
 import com.l2jserver.gameserver.skills.l2skills.L2SkillAgathion;
 import com.l2jserver.gameserver.skills.l2skills.L2SkillMount;
@@ -6041,7 +6040,7 @@ public abstract class L2Character extends L2Object
 		_chanceSkills.put(trigger, trigger.getTriggeredChanceCondition());
 	}
 	
-	public void removeChanceEffect(EffectChanceSkillTrigger effect)
+	public void removeChanceEffect(IChanceSkillTrigger effect)
 	{
 		if (_chanceSkills == null)
 			return;

+ 7 - 6
L2J_Server_BETA/java/com/l2jserver/gameserver/model/actor/instance/L2NpcInstance.java

@@ -31,8 +31,6 @@ import com.l2jserver.gameserver.network.serverpackets.AcquireSkillList;
 import com.l2jserver.gameserver.network.serverpackets.AcquireSkillList.SkillType;
 import com.l2jserver.gameserver.network.serverpackets.NpcHtmlMessage;
 import com.l2jserver.gameserver.network.serverpackets.SystemMessage;
-import com.l2jserver.gameserver.skills.effects.EffectBuff;
-import com.l2jserver.gameserver.skills.effects.EffectDebuff;
 import com.l2jserver.gameserver.templates.chars.L2NpcTemplate;
 import com.l2jserver.util.StringUtil;
 
@@ -63,10 +61,13 @@ public class L2NpcInstance extends L2Npc
 	@Override
 	public void addEffect(L2Effect newEffect)
 	{
-		if (newEffect instanceof EffectDebuff || newEffect instanceof EffectBuff)
-			super.addEffect(newEffect);
-		else if (newEffect != null)
-			newEffect.stopEffectTask();
+		if(newEffect != null)
+		{
+			if(newEffect.isBuffEffect() || newEffect.isDebuffEffect())
+				super.addEffect(newEffect);
+			else
+				newEffect.stopEffectTask();
+		}		
 	}
 	
 	public ClassId[] getClassesToTeach()

+ 1 - 2
L2J_Server_BETA/java/com/l2jserver/gameserver/skills/DocumentBase.java

@@ -104,7 +104,6 @@ import com.l2jserver.gameserver.skills.conditions.ConditionTargetUsesWeaponKind;
 import com.l2jserver.gameserver.skills.conditions.ConditionUsingItemType;
 import com.l2jserver.gameserver.skills.conditions.ConditionUsingSkill;
 import com.l2jserver.gameserver.skills.conditions.ConditionWithSkill;
-import com.l2jserver.gameserver.skills.effects.EffectChanceSkillTrigger;
 import com.l2jserver.gameserver.skills.funcs.FuncTemplate;
 import com.l2jserver.gameserver.skills.funcs.Lambda;
 import com.l2jserver.gameserver.skills.funcs.LambdaCalc;
@@ -353,7 +352,7 @@ abstract class DocumentBase
 		
 		EffectTemplate lt;
 		
-		final boolean isChanceSkillTrigger = (name == EffectChanceSkillTrigger.class.getName());
+		final boolean isChanceSkillTrigger = (name == "ChanceSkillTrigger");
 		int trigId = 0;
 		if (attrs.getNamedItem("triggeredId") != null)
 			trigId = Integer.parseInt(getValue(attrs.getNamedItem("triggeredId").getNodeValue(), template));

+ 2 - 3
L2J_Server_BETA/java/com/l2jserver/gameserver/skills/conditions/ConditionForceBuff.java

@@ -16,7 +16,6 @@ package com.l2jserver.gameserver.skills.conditions;
 
 import com.l2jserver.gameserver.model.L2Effect;
 import com.l2jserver.gameserver.skills.Env;
-import com.l2jserver.gameserver.skills.effects.EffectFusion;
 
 /**
  * The Class ConditionForceBuff.
@@ -54,14 +53,14 @@ public final class ConditionForceBuff extends Condition
 		if (_forces[0] > 0)
 		{
 			L2Effect force = env.player.getFirstEffect(BATTLE_FORCE);
-			if (force == null || ((EffectFusion) force)._effect < _forces[0])
+			if (force == null || force.getForceEffect() < _forces[0])
 				return false;
 		}
 		
 		if (_forces[1] > 0)
 		{
 			L2Effect force = env.player.getFirstEffect(SPELL_FORCE);
-			if (force == null || ((EffectFusion) force)._effect < _forces[1])
+			if (force == null || force.getForceEffect() < _forces[1])
 				return false;
 		}
 		

+ 0 - 65
L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectAbortCast.java

@@ -1,65 +0,0 @@
-/*
- * 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.l2jserver.gameserver.skills.effects;
-
-import com.l2jserver.gameserver.model.L2Effect;
-import com.l2jserver.gameserver.skills.Env;
-import com.l2jserver.gameserver.templates.effects.EffectTemplate;
-import com.l2jserver.gameserver.templates.skills.L2EffectType;
-
-public class EffectAbortCast extends L2Effect
-{
-	public EffectAbortCast(Env env, EffectTemplate template)
-	{
-		super(env, template);
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#getEffectType()
-	 */
-	@Override
-	public L2EffectType getEffectType()
-	{
-		return L2EffectType.ABORT_CAST;
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onStart()
-	 */
-	@Override
-	public boolean onStart()
-	{
-		if (getEffected() == null || getEffected() == getEffector())
-			return false;
-		
-		if (getEffected().isRaid())
-			return false;
-		
-		getEffected().breakCast();
-		return true;
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onActionTime()
-	 */
-	@Override
-	public boolean onActionTime()
-	{
-		return false;
-	}
-}

+ 0 - 92
L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectBetray.java

@@ -1,92 +0,0 @@
-/*
- * 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.l2jserver.gameserver.skills.effects;
-
-import com.l2jserver.gameserver.ai.CtrlIntention;
-import com.l2jserver.gameserver.model.CharEffectList;
-import com.l2jserver.gameserver.model.L2Effect;
-import com.l2jserver.gameserver.model.actor.L2Summon;
-import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
-import com.l2jserver.gameserver.skills.Env;
-import com.l2jserver.gameserver.templates.effects.EffectTemplate;
-import com.l2jserver.gameserver.templates.skills.L2EffectType;
-
-/**
- * @author decad
- * 
- */
-public class EffectBetray extends L2Effect
-{
-	public EffectBetray(Env env, EffectTemplate template)
-	{
-		super(env, template);
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#getEffectType()
-	 */
-	@Override
-	public L2EffectType getEffectType()
-	{
-		return L2EffectType.BETRAY;
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onStart()
-	 */
-	@Override
-	public boolean onStart()
-	{
-		if (getEffector() instanceof L2PcInstance &&
-				getEffected() instanceof L2Summon)
-		{
-			L2PcInstance targetOwner = getEffected().getActingPlayer();
-			getEffected().getAI().setIntention(CtrlIntention.AI_INTENTION_ATTACK, targetOwner);
-			return true;
-		}
-		return false;
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onExit()
-	 */
-	@Override
-	public void onExit()
-	{
-		getEffected().getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onActionTime()
-	 */
-	@Override
-	public boolean onActionTime()
-	{
-		return false;
-	}
-
-	/* (non-Javadoc)
-	 * @see com.l2jserver.gameserver.model.L2Effect#getEffectFlags()
-	 */
-	@Override
-	public int getEffectFlags()
-	{
-		return CharEffectList.EFFECT_FLAG_BETRAYED;
-	}
-}

+ 0 - 74
L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectBigHead.java

@@ -1,74 +0,0 @@
-/*
- * 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.l2jserver.gameserver.skills.effects;
-
-import com.l2jserver.gameserver.model.L2Effect;
-import com.l2jserver.gameserver.skills.AbnormalEffect;
-import com.l2jserver.gameserver.skills.Env;
-import com.l2jserver.gameserver.templates.effects.EffectTemplate;
-import com.l2jserver.gameserver.templates.skills.L2EffectType;
-
-/**
- * 
- * @author LBaldi
- */
-public class EffectBigHead extends L2Effect
-{
-	public EffectBigHead(Env env, EffectTemplate template)
-	{
-		super(env, template);
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#getEffectType()
-	 */
-	@Override
-	public L2EffectType getEffectType()
-	{
-		return L2EffectType.BUFF;
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onStart()
-	 */
-	@Override
-	public boolean onStart()
-	{
-		getEffected().startAbnormalEffect(AbnormalEffect.BIG_HEAD);
-		return true;
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onExit()
-	 */
-	@Override
-	public void onExit()
-	{
-		getEffected().stopAbnormalEffect(AbnormalEffect.BIG_HEAD);
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onActionTime()
-	 */
-	@Override
-	public boolean onActionTime()
-	{
-		return false;
-	}
-}

+ 0 - 59
L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectBlockResurrection.java

@@ -1,59 +0,0 @@
-/*
- * 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.l2jserver.gameserver.skills.effects;
-
-import com.l2jserver.gameserver.model.CharEffectList;
-import com.l2jserver.gameserver.model.L2Effect;
-import com.l2jserver.gameserver.skills.Env;
-import com.l2jserver.gameserver.templates.effects.EffectTemplate;
-import com.l2jserver.gameserver.templates.skills.L2EffectType;
-
-/**
- * @author UnAfraid
- *
- */
-public class EffectBlockResurrection extends L2Effect
-{
-	public EffectBlockResurrection(Env env, EffectTemplate template)
-	{
-		super(env, template);
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#getEffectType()
-	 */
-	@Override
-	public L2EffectType getEffectType()
-	{
-		return L2EffectType.BLOCK_RESURRECTION;
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onActionTime()
-	 */
-	@Override
-	public boolean onActionTime()
-	{
-		return false;
-	}
-	
-	@Override
-	public int getEffectFlags()
-	{
-		return CharEffectList.EFFECT_FLAG_BLOCK_RESURRECTION;
-	}
-}

+ 0 - 80
L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectBluff.java

@@ -1,80 +0,0 @@
-/*
- * 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.l2jserver.gameserver.skills.effects;
-
-import com.l2jserver.gameserver.model.L2Effect;
-import com.l2jserver.gameserver.model.actor.L2Npc;
-import com.l2jserver.gameserver.model.actor.instance.L2NpcInstance;
-import com.l2jserver.gameserver.model.actor.instance.L2SiegeSummonInstance;
-import com.l2jserver.gameserver.network.serverpackets.StartRotation;
-import com.l2jserver.gameserver.network.serverpackets.StopRotation;
-import com.l2jserver.gameserver.skills.Env;
-import com.l2jserver.gameserver.templates.effects.EffectTemplate;
-import com.l2jserver.gameserver.templates.skills.L2EffectType;
-
-/**
- * @author decad
- * 
- *         Implementation of the Bluff Effect
- */
-public class EffectBluff extends L2Effect
-{
-	public EffectBluff(Env env, EffectTemplate template)
-	{
-		super(env, template);
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#getEffectType()
-	 */
-	@Override
-	public L2EffectType getEffectType()
-	{
-		return L2EffectType.BLUFF; // test for bluff effect
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onStart()
-	 */
-	@Override
-	public boolean onStart()
-	{
-		if (getEffected() instanceof L2NpcInstance)
-			return false;
-		
-		if (getEffected() instanceof L2Npc && ((L2Npc) getEffected()).getNpcId() == 35062)
-			return false;
-		
-		if (getEffected() instanceof L2SiegeSummonInstance)
-			return false;
-		
-		getEffected().broadcastPacket(new StartRotation(getEffected().getObjectId(), getEffected().getHeading(), 1, 65535));
-		getEffected().broadcastPacket(new StopRotation(getEffected().getObjectId(), getEffector().getHeading(), 65535));
-		getEffected().setHeading(getEffector().getHeading());
-		return true;
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onActionTime()
-	 */
-	@Override
-	public boolean onActionTime()
-	{
-		return false;
-	}
-}

+ 0 - 60
L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectBuff.java

@@ -1,60 +0,0 @@
-/*
- * 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.l2jserver.gameserver.skills.effects;
-
-import com.l2jserver.gameserver.model.L2Effect;
-import com.l2jserver.gameserver.skills.Env;
-import com.l2jserver.gameserver.templates.effects.EffectTemplate;
-import com.l2jserver.gameserver.templates.skills.L2EffectType;
-
-/**
- * @author mkizub
- */
-public class EffectBuff extends L2Effect
-{
-	public EffectBuff(Env env, EffectTemplate template)
-	{
-		super(env, template);
-	}
-	
-	// Special constructor to steal this effect
-	public EffectBuff(Env env, L2Effect effect)
-	{
-		super(env, effect);
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#effectCanBeStolen()
-	 */
-	@Override
-	protected boolean effectCanBeStolen()
-	{
-		return true;
-	}
-
-	@Override
-	public L2EffectType getEffectType()
-	{
-		return L2EffectType.BUFF;
-	}
-	
-	@Override
-	public boolean onActionTime()
-	{
-		// just stop this effect
-		return false;
-	}
-}

+ 0 - 225
L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectCancel.java

@@ -1,225 +0,0 @@
-/*
- * 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.l2jserver.gameserver.skills.effects;
-
-import java.util.logging.Logger;
-
-import com.l2jserver.Config;
-import com.l2jserver.gameserver.model.L2Effect;
-import com.l2jserver.gameserver.model.actor.L2Character;
-import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
-import com.l2jserver.gameserver.skills.Env;
-import com.l2jserver.gameserver.skills.Stats;
-import com.l2jserver.gameserver.templates.effects.EffectTemplate;
-import com.l2jserver.gameserver.templates.skills.L2EffectType;
-import com.l2jserver.util.Rnd;
-import com.l2jserver.util.StringUtil;
-
-/**
- * 
- * @author DS
- *
- */
-public class EffectCancel extends L2Effect
-{
-	protected static final Logger _log = Logger.getLogger(EffectCancel.class.getName());
-	
-	public EffectCancel(Env env, EffectTemplate template)
-	{
-		super(env, template);
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#getEffectType()
-	 */
-	@Override
-	public L2EffectType getEffectType()
-	{
-		return L2EffectType.CANCEL;
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onStart()
-	 */
-	@Override
-	public boolean onStart()
-	{
-		return cancel(getEffector(), getEffected(), this);
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onActionTime()
-	 */
-	@Override
-	public boolean onActionTime()
-	{
-		return false;
-	}
-	
-	private static boolean cancel(L2Character caster, L2Character target, L2Effect effect)
-	{
-		if (!(target instanceof L2PcInstance)|| target.isDead())
-			return false;
-		
-		final int cancelLvl = effect.getSkill().getMagicLevel();
-		int count = effect.getSkill().getMaxNegatedEffects();
-
-		double rate = effect.getEffectPower();
-		final double vulnModifier = target.calcStat(Stats.CANCEL_VULN, 0, target, null);
-		final double profModifier = caster.calcStat(Stats.CANCEL_PROF, 0, target, null);
-		double res = vulnModifier + profModifier;
-		double resMod = 1;
-		if (res != 0)
-		{
-			if (res < 0)
-			{
-				resMod = 1 - 0.075 * res;
-				resMod = 1 / resMod;
-			}
-			else
-				resMod = 1 + 0.02 * res;
-			
-			rate *= resMod;
-		}
-
-		if (caster.isDebug())
-		{
-			final StringBuilder stat = new StringBuilder(100);
-			StringUtil.append(stat,
-					effect.getSkill().getName(),
-					" power:", String.valueOf((int)effect.getEffectPower()),
-					" lvl:", String.valueOf(cancelLvl),
-					" res:", String.format("%1.2f", resMod), "(",
-					String.format("%1.2f", profModifier), "/",
-					String.format("%1.2f", vulnModifier),
-					") total:", String.valueOf(rate)
-			);
-			final String result = stat.toString();
-			if (caster.isDebug())
-				caster.sendDebugMessage(result);
-			if (Config.DEVELOPER)
-				_log.info(result);
-		}
-
-		final L2Effect[] effects = target.getAllEffects();
-		
-		if (effect.getSkill().getNegateAbnormals() != null) // Cancel for abnormals
-		{
-			for (L2Effect eff : effects)
-			{
-				if (eff == null)
-					continue;
-				
-				for (String negateAbnormalType : effect.getSkill().getNegateAbnormals().keySet())
-				{
-					if (negateAbnormalType.equalsIgnoreCase(eff.getAbnormalType()) && effect.getSkill().getNegateAbnormals().get(negateAbnormalType) >= eff.getAbnormalLvl())
-					{
-						if (calcCancelSuccess(eff, cancelLvl, (int)rate))
-							eff.exit();
-					}
-				}
-			}
-		}
-		else
-		{
-			L2Effect eff;
-			int lastCanceledSkillId = 0;
-			
-			for (int i = effects.length; --i >= 0;)
-			{
-				eff = effects[i];
-				if (eff == null)
-					continue;
-				
-				if (!eff.canBeStolen())
-				{
-					effects[i] = null;
-					continue;
-				}
-				
-				// first pass - dances/songs only
-				if (!eff.getSkill().isDance())
-					continue;
-				
-				if (eff.getSkill().getId() == lastCanceledSkillId)
-				{
-					eff.exit(); // this skill already canceled
-					continue;
-				}
-				
-				if (!calcCancelSuccess(eff, cancelLvl, (int)rate))
-					continue;
-				
-				lastCanceledSkillId = eff.getSkill().getId();
-				
-				eff.exit();
-				count--;
-				
-				if (count == 0)
-					break;
-			}
-			
-			if (count != 0)
-			{
-				lastCanceledSkillId = 0;
-				for (int i = effects.length; --i >= 0;)
-				{
-					eff = effects[i];
-					if (eff == null)
-						continue;
-					
-					// second pass - all except dances/songs
-					if (eff.getSkill().isDance())
-						continue;
-					
-					if (eff.getSkill().getId() == lastCanceledSkillId)
-					{
-						eff.exit(); // this skill already canceled
-						continue;
-					}
-					
-					if (!calcCancelSuccess(eff, cancelLvl, (int)rate))
-						continue;
-					
-					lastCanceledSkillId = eff.getSkill().getId();
-					eff.exit();
-					count--;
-					
-					if (count == 0)
-						break;
-				}
-			}
-		}
-		
-		return true;
-	}
-	
-	private static boolean calcCancelSuccess(L2Effect effect, int cancelLvl, int baseRate)
-	{
-		int rate = 2 * (cancelLvl - effect.getSkill().getMagicLevel());
-		rate += effect.getAbnormalTime()/120;
-		rate += baseRate;
-		
-		if (rate < 25)
-			rate = 25;
-		else if (rate > 75)
-			rate = 75;
-		
-		return Rnd.get(100) < rate;
-	}
-}

+ 0 - 51
L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectCancelAll.java

@@ -1,51 +0,0 @@
-/*
- * 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.l2jserver.gameserver.skills.effects;
-
-import com.l2jserver.gameserver.model.L2Effect;
-import com.l2jserver.gameserver.skills.Env;
-import com.l2jserver.gameserver.templates.effects.EffectTemplate;
-import com.l2jserver.gameserver.templates.skills.L2EffectType;
-
-/**
- * @author UnAfraid
- * Removes all effects.
- */
-public class EffectCancelAll extends L2Effect
-{
-	public EffectCancelAll(Env env, EffectTemplate template)
-	{
-		super(env, template);
-	}
-
-	@Override
-	public L2EffectType getEffectType()
-	{
-		return L2EffectType.CANCEL_ALL;
-	}
-
-	@Override
-	public boolean onStart()
-	{
-		getEffected().stopAllEffects();
-		return false;
-	}
-	
-	@Override
-	public boolean onActionTime()
-	{
-		return false;
-	}
-}

+ 0 - 124
L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectCancelDebuff.java

@@ -1,124 +0,0 @@
-/*
- * 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.l2jserver.gameserver.skills.effects;
- 
-import com.l2jserver.gameserver.model.L2Effect;
-import com.l2jserver.gameserver.model.L2Skill;
-import com.l2jserver.gameserver.model.actor.L2Character;
-import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
-import com.l2jserver.gameserver.skills.Env;
-import com.l2jserver.gameserver.templates.effects.EffectTemplate;
-import com.l2jserver.gameserver.templates.skills.L2EffectType;
-import com.l2jserver.util.Rnd;
- 
-/**
- *
- * @author UnAfraid
- *
- */
-public class EffectCancelDebuff extends L2Effect
-{
-    public EffectCancelDebuff(Env env, EffectTemplate template)
-    {
-        super(env, template);
-    }
-   
-    /**
-     *
-     * @see com.l2jserver.gameserver.model.L2Effect#getEffectType()
-     */
-    @Override
-    public L2EffectType getEffectType()
-    {
-        return L2EffectType.CANCEL_DEBUFF;
-    }
-   
-    /**
-     *
-     * @see com.l2jserver.gameserver.model.L2Effect#onStart()
-     */
-    @Override
-    public boolean onStart()
-    {
-        return cancel(getEffector(), getEffected(), getSkill(), getEffectPower());
-    }
-   
-    /**
-     *
-     * @see com.l2jserver.gameserver.model.L2Effect#onActionTime()
-     */
-    @Override
-    public boolean onActionTime()
-    {
-        return false;
-    }
-   
-    private static boolean cancel(L2Character caster, L2Character target, L2Skill skill, double baseRate)
-    {
-        if (!(target instanceof L2PcInstance)|| target.isDead())
-            return false;
-       
-        final int cancelLvl = skill.getMagicLevel();
-        int count = skill.getMaxNegatedEffects();
-       
-        L2Effect effect;
-        int lastCanceledSkillId = 0;
-        final L2Effect[] effects = target.getAllEffects();
-        for (int i = effects.length; --i >= 0;)
-        {
-            effect = effects[i];
-            if (effect == null)
-                continue;
-           
-            if (!effect.getSkill().isDebuff() || !effect.getSkill().canBeDispeled())
-            {
-                effects[i] = null;
-                continue;
-            }
-           
-            if (effect.getSkill().getId() == lastCanceledSkillId)
-            {
-                effect.exit(); // this skill already canceled
-                continue;
-            }
-           
-            if (!calcCancelSuccess(effect, cancelLvl, (int)baseRate))
-                continue;
-           
-            lastCanceledSkillId = effect.getSkill().getId();
-            effect.exit();
-            count--;
-           
-            if (count == 0)
-                break;
-        }
-       
-        return true;
-    }
-   
-    private static boolean calcCancelSuccess(L2Effect effect, int cancelLvl, int baseRate)
-    {
-        int rate = 2 * (cancelLvl - effect.getSkill().getMagicLevel());
-        rate += (effect.getAbnormalTime() - effect.getTime()) / 1200;
-        rate += baseRate;
-       
-        if (rate < effect.getSkill().getMinChance())
-            rate = effect.getSkill().getMinChance();
-        else if (rate > effect.getSkill().getMaxChance())
-            rate = effect.getSkill().getMaxChance();
-       
-        return Rnd.get(100) < rate;
-    }
-}

+ 0 - 111
L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectChameleonRest.java

@@ -1,111 +0,0 @@
-/*
- * 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.l2jserver.gameserver.skills.effects;
-
-import com.l2jserver.gameserver.ai.CtrlIntention;
-import com.l2jserver.gameserver.model.CharEffectList;
-import com.l2jserver.gameserver.model.L2Effect;
-import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
-import com.l2jserver.gameserver.network.SystemMessageId;
-import com.l2jserver.gameserver.network.serverpackets.SystemMessage;
-import com.l2jserver.gameserver.skills.Env;
-import com.l2jserver.gameserver.templates.effects.EffectTemplate;
-import com.l2jserver.gameserver.templates.skills.L2EffectType;
-import com.l2jserver.gameserver.templates.skills.L2SkillType;
-
-public class EffectChameleonRest extends L2Effect
-{
-	public EffectChameleonRest(Env env, EffectTemplate template)
-	{
-		super(env, template);
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#getEffectType()
-	 */
-	@Override
-	public L2EffectType getEffectType()
-	{
-		return L2EffectType.RELAXING;
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onStart()
-	 */
-	@Override
-	public boolean onStart()
-	{
-		if (getEffected() instanceof L2PcInstance)
-		{
-			((L2PcInstance) getEffected()).sitDown(false);
-		}
-		else
-			getEffected().getAI().setIntention(CtrlIntention.AI_INTENTION_REST);
-		return super.onStart();
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onExit()
-	 */
-	@Override
-	public void onExit()
-	{
-		super.onExit();
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onActionTime()
-	 */
-	@Override
-	public boolean onActionTime()
-	{
-		if (getEffected().isDead())
-			return false;
-		
-		// Only cont skills shouldn't end
-		if (getSkill().getSkillType() != L2SkillType.CONT)
-			return false;
-		
-		if (getEffected() instanceof L2PcInstance)
-		{
-			if (!((L2PcInstance) getEffected()).isSitting())
-				return false;
-		}
-		
-		double manaDam = calc();
-		
-		if (manaDam > getEffected().getCurrentMp())
-		{
-			getEffected().sendPacket(SystemMessage.getSystemMessage(SystemMessageId.SKILL_REMOVED_DUE_LACK_MP));
-			return false;
-		}
-		
-		getEffected().reduceCurrentMp(manaDam);
-		return true;
-	}
-	
-	/* (non-Javadoc)
-	 * @see com.l2jserver.gameserver.model.L2Effect#getEffectFlags()
-	 */
-	@Override
-	public int getEffectFlags()
-	{
-		return (CharEffectList.EFFECT_FLAG_SILENT_MOVE | CharEffectList.EFFECT_FLAG_RELAXING);
-	}
-}

+ 0 - 109
L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectChanceSkillTrigger.java

@@ -1,109 +0,0 @@
-/*
- * 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.l2jserver.gameserver.skills.effects;
-
-import com.l2jserver.gameserver.model.ChanceCondition;
-import com.l2jserver.gameserver.model.IChanceSkillTrigger;
-import com.l2jserver.gameserver.model.L2Effect;
-import com.l2jserver.gameserver.skills.Env;
-import com.l2jserver.gameserver.templates.effects.EffectTemplate;
-import com.l2jserver.gameserver.templates.skills.L2EffectType;
-
-public class EffectChanceSkillTrigger extends L2Effect implements IChanceSkillTrigger
-{
-	private final int _triggeredId;
-	private final int _triggeredLevel;
-	private final ChanceCondition _chanceCondition;
-	
-	public EffectChanceSkillTrigger(Env env, EffectTemplate template)
-	{
-		super(env, template);
-		
-		_triggeredId = template.triggeredId;
-		_triggeredLevel = template.triggeredLevel;
-		_chanceCondition = template.chanceCondition;
-	}
-	
-	// Special constructor to steal this effect
-	public EffectChanceSkillTrigger(Env env, L2Effect effect)
-	{
-		super(env, effect);
-		
-		_triggeredId = effect.getEffectTemplate().triggeredId;
-		_triggeredLevel = effect.getEffectTemplate().triggeredLevel;
-		_chanceCondition = effect.getEffectTemplate().chanceCondition;
-	}
-	
-	@Override
-	protected boolean effectCanBeStolen()
-	{
-		return true;
-	}
-
-	@Override
-	public L2EffectType getEffectType()
-	{
-		return L2EffectType.CHANCE_SKILL_TRIGGER;
-	}
-	
-	@Override
-	public boolean onStart()
-	{
-		getEffected().addChanceTrigger(this);
-		getEffected().onStartChanceEffect(getSkill().getElement());
-		return super.onStart();
-	}
-	
-	@Override
-	public boolean onActionTime()
-	{
-		getEffected().onActionTimeChanceEffect(getSkill().getElement());
-		return false;
-	}
-	
-	@Override
-	public void onExit()
-	{
-		// trigger only if effect in use and successfully ticked to the end
-		if (getInUse() && getCount() == 0)
-			getEffected().onExitChanceEffect(getSkill().getElement());
-		getEffected().removeChanceEffect(this);
-		super.onExit();
-	}
-	
-	@Override
-	public int getTriggeredChanceId()
-	{
-		return _triggeredId;
-	}
-	
-	@Override
-	public int getTriggeredChanceLevel()
-	{
-		return _triggeredLevel;
-	}
-	
-	@Override
-	public boolean triggersChanceSkill()
-	{
-		return _triggeredId > 1;
-	}
-	
-	@Override
-	public ChanceCondition getTriggeredChanceCondition()
-	{
-		return _chanceCondition;
-	}
-}

+ 0 - 90
L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectCharmOfCourage.java

@@ -1,90 +0,0 @@
-/*
- * 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.l2jserver.gameserver.skills.effects;
-
-import com.l2jserver.gameserver.model.CharEffectList;
-import com.l2jserver.gameserver.model.L2Effect;
-import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
-import com.l2jserver.gameserver.network.serverpackets.EtcStatusUpdate;
-import com.l2jserver.gameserver.skills.Env;
-import com.l2jserver.gameserver.templates.effects.EffectTemplate;
-import com.l2jserver.gameserver.templates.skills.L2EffectType;
-
-/**
- * 
- * @author nBd
- */
-public class EffectCharmOfCourage extends L2Effect
-{
-	public EffectCharmOfCourage(Env env, EffectTemplate template)
-	{
-		super(env, template);
-	}
-	
-	/**
-	 * @see com.l2jserver.gameserver.model.L2Effect#getEffectType()
-	 */
-	@Override
-	public L2EffectType getEffectType()
-	{
-		return L2EffectType.CHARMOFCOURAGE;
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onStart()
-	 */
-	@Override
-	public boolean onStart()
-	{
-		if (getEffected() instanceof L2PcInstance)
-		{
-			getEffected().broadcastPacket(new EtcStatusUpdate((L2PcInstance) getEffected()));
-			return true;
-		}
-		return false;
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onExit()
-	 */
-	@Override
-	public void onExit()
-	{
-		if (getEffected() instanceof L2PcInstance)
-		{
-			getEffected().broadcastPacket(new EtcStatusUpdate((L2PcInstance) getEffected()));
-		}
-	}
-	
-	/**
-	 * @see com.l2jserver.gameserver.model.L2Effect#onActionTime()
-	 */
-	@Override
-	public boolean onActionTime()
-	{
-		return false;
-	}
-
-	/* (non-Javadoc)
-	 * @see com.l2jserver.gameserver.model.L2Effect#getEffectFlags()
-	 */
-	@Override
-	public int getEffectFlags()
-	{
-		return CharEffectList.EFFECT_FLAG_CHARM_OF_COURAGE;
-	}
-}

+ 0 - 85
L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectCharmOfLuck.java

@@ -1,85 +0,0 @@
-/*
- * 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.l2jserver.gameserver.skills.effects;
-
-import com.l2jserver.gameserver.model.CharEffectList;
-import com.l2jserver.gameserver.model.L2Effect;
-import com.l2jserver.gameserver.model.actor.L2Playable;
-import com.l2jserver.gameserver.skills.Env;
-import com.l2jserver.gameserver.templates.effects.EffectTemplate;
-import com.l2jserver.gameserver.templates.skills.L2EffectType;
-
-/**
- * @author kerberos_20
- * 
- */
-public class EffectCharmOfLuck extends L2Effect
-{
-	public EffectCharmOfLuck(Env env, EffectTemplate template)
-	{
-		super(env, template);
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#getEffectType()
-	 */
-	@Override
-	public L2EffectType getEffectType()
-	{
-		return L2EffectType.CHARM_OF_LUCK;
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onStart()
-	 */
-	@Override
-	public boolean onStart()
-	{
-		return true;
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onExit()
-	 */
-	@Override
-	public void onExit()
-	{
-		((L2Playable) getEffected()).stopCharmOfLuck(this);
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onActionTime()
-	 */
-	@Override
-	public boolean onActionTime()
-	{
-		// just stop this effect
-		return false;
-	}
-	
-	
-	/* (non-Javadoc)
-	 * @see com.l2jserver.gameserver.model.L2Effect#getEffectFlags()
-	 */
-	@Override
-	public int getEffectFlags()
-	{
-		return CharEffectList.EFFECT_FLAG_CHARM_OF_LUCK;
-	}
-}

+ 0 - 87
L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectClanGate.java

@@ -1,87 +0,0 @@
-/*
- * 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.l2jserver.gameserver.skills.effects;
-
-import com.l2jserver.gameserver.model.L2Clan;
-import com.l2jserver.gameserver.model.L2Effect;
-import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
-import com.l2jserver.gameserver.network.SystemMessageId;
-import com.l2jserver.gameserver.network.serverpackets.SystemMessage;
-import com.l2jserver.gameserver.skills.AbnormalEffect;
-import com.l2jserver.gameserver.skills.Env;
-import com.l2jserver.gameserver.templates.effects.EffectTemplate;
-import com.l2jserver.gameserver.templates.skills.L2EffectType;
-
-/**
- * @author ZaKaX (Ghost @ L2D)
- */
-public class EffectClanGate extends L2Effect
-{
-	public EffectClanGate(Env env, EffectTemplate template)
-	{
-		super(env, template);
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onStart()
-	 */
-	@Override
-	public boolean onStart()
-	{
-		getEffected().startAbnormalEffect(AbnormalEffect.MAGIC_CIRCLE);
-		if (getEffected() instanceof L2PcInstance)
-		{
-			L2Clan clan = ((L2PcInstance) getEffected()).getClan();
-			if (clan != null)
-			{
-				SystemMessage msg = SystemMessage.getSystemMessage(SystemMessageId.COURT_MAGICIAN_CREATED_PORTAL);
-				clan.broadcastToOtherOnlineMembers(msg, ((L2PcInstance) getEffected()));
-			}
-		}
-		
-		return true;
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onActionTime()
-	 */
-	@Override
-	public boolean onActionTime()
-	{
-		return false;
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onExit()
-	 */
-	@Override
-	public void onExit()
-	{
-		getEffected().stopAbnormalEffect(AbnormalEffect.MAGIC_CIRCLE);
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#getEffectType()
-	 */
-	@Override
-	public L2EffectType getEffectType()
-	{
-		return L2EffectType.CLAN_GATE;
-	}
-}

+ 0 - 70
L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectCombatPointHeal.java

@@ -1,70 +0,0 @@
-/*
- * 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.l2jserver.gameserver.skills.effects;
-
-import com.l2jserver.gameserver.model.L2Effect;
-import com.l2jserver.gameserver.model.actor.L2Character;
-import com.l2jserver.gameserver.network.SystemMessageId;
-import com.l2jserver.gameserver.network.serverpackets.SystemMessage;
-import com.l2jserver.gameserver.skills.Env;
-import com.l2jserver.gameserver.templates.effects.EffectTemplate;
-import com.l2jserver.gameserver.templates.skills.L2EffectType;
-
-public class EffectCombatPointHeal extends L2Effect
-{
-	public EffectCombatPointHeal(Env env, EffectTemplate template)
-	{
-		super(env, template);
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#getEffectType()
-	 */
-	@Override
-	public L2EffectType getEffectType()
-	{
-		return L2EffectType.COMBAT_POINT_HEAL;
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onActionTime()
-	 */
-	@Override
-	public boolean onActionTime()
-	{
-		return false;
-	}
-
-	@Override
-	public boolean onStart()
-	{
-		L2Character target = getEffected();
-		if (target.isInvul())
-			return false;
-		
-		double cp = calc();
-		
-		if ((target.getCurrentCp() + cp) > target.getMaxRecoverableCp())
-			cp = target.getMaxRecoverableCp() - target.getCurrentCp();
-		target.setCurrentCp(cp + target.getCurrentCp());
-		
-		SystemMessage sm = SystemMessage.getSystemMessage(SystemMessageId.S1_CP_WILL_BE_RESTORED);
-		sm.addNumber((int) cp);
-		target.sendPacket(sm);
-		return false;
-	}
-}

+ 0 - 83
L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectCombatPointHealOverTime.java

@@ -1,83 +0,0 @@
-/*
- * 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.l2jserver.gameserver.skills.effects;
-
-import com.l2jserver.gameserver.model.L2Effect;
-import com.l2jserver.gameserver.network.serverpackets.StatusUpdate;
-import com.l2jserver.gameserver.skills.Env;
-import com.l2jserver.gameserver.templates.effects.EffectTemplate;
-import com.l2jserver.gameserver.templates.skills.L2EffectType;
-
-public class EffectCombatPointHealOverTime extends L2Effect
-{
-	public EffectCombatPointHealOverTime(Env env, EffectTemplate template)
-	{
-		super(env, template);
-	}
-	
-	// Special constructor to steal this effect
-	public EffectCombatPointHealOverTime(Env env, L2Effect effect)
-	{
-		super(env, effect);
-	}
-
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#effectCanBeStolen()
-	 */
-	@Override
-	protected boolean effectCanBeStolen()
-	{
-		return true;
-	}
-
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#getEffectType()
-	 */
-	@Override
-	public L2EffectType getEffectType()
-	{
-		return L2EffectType.COMBAT_POINT_HEAL_OVER_TIME;
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onActionTime()
-	 */
-	@Override
-	public boolean onActionTime()
-	{
-		if (getEffected().isDead())
-			return false;
-		
-		double cp = getEffected().getCurrentCp();
-		double maxcp = getEffected().getMaxRecoverableCp();
-		
-		// Not needed to set the CP and send update packet if player is already at max CP
-		if (cp >= maxcp)
-			return true;
-		
-		cp += calc();
-		if (cp > maxcp)
-			cp = maxcp;
-		
-		getEffected().setCurrentCp(cp);
-		StatusUpdate sump = new StatusUpdate(getEffected());
-		sump.addAttribute(StatusUpdate.CUR_CP, (int) cp);
-		getEffected().sendPacket(sump);
-		return true;
-	}
-}

+ 0 - 120
L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectConfuseMob.java

@@ -1,120 +0,0 @@
-/*
- * 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.l2jserver.gameserver.skills.effects;
-
-import java.util.Collection;
-import java.util.List;
-
-import javolution.util.FastList;
-
-import com.l2jserver.gameserver.ai.CtrlIntention;
-import com.l2jserver.gameserver.model.CharEffectList;
-import com.l2jserver.gameserver.model.L2Effect;
-import com.l2jserver.gameserver.model.L2Object;
-import com.l2jserver.gameserver.model.actor.L2Attackable;
-import com.l2jserver.gameserver.model.actor.L2Character;
-import com.l2jserver.gameserver.skills.Env;
-import com.l2jserver.gameserver.templates.effects.EffectTemplate;
-import com.l2jserver.gameserver.templates.skills.L2EffectType;
-import com.l2jserver.util.Rnd;
-
-/**
- * @author littlecrow
- * 
- *         Implementation of the Confusion Effect
- */
-public class EffectConfuseMob extends L2Effect
-{
-	public EffectConfuseMob(Env env, EffectTemplate template)
-	{
-		super(env, template);
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#getEffectType()
-	 */
-	@Override
-	public L2EffectType getEffectType()
-	{
-		return L2EffectType.CONFUSE_MOB_ONLY;
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onStart()
-	 */
-	@Override
-	public boolean onStart()
-	{
-		getEffected().startConfused();
-		onActionTime();
-		return true;
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onExit()
-	 */
-	@Override
-	public void onExit()
-	{
-		getEffected().stopConfused(this);
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onActionTime()
-	 */
-	@Override
-	public boolean onActionTime()
-	{
-		List<L2Character> targetList = new FastList<L2Character>();
-		
-		// Getting the possible targets
-		
-		Collection<L2Object> objs = getEffected().getKnownList().getKnownObjects().values();
-		// synchronized (getEffected().getKnownList().getKnownObjects())
-		{
-			for (L2Object obj : objs)
-			{
-				if ((obj instanceof L2Attackable) && (obj != getEffected()))
-					targetList.add((L2Character) obj);
-			}
-		}
-		// if there is no target, exit function
-		if (targetList.isEmpty())
-			return true;
-		
-		// Choosing randomly a new target
-		int nextTargetIdx = Rnd.nextInt(targetList.size());
-		L2Object target = targetList.get(nextTargetIdx);
-		
-		// Attacking the target
-		getEffected().setTarget(target);
-		getEffected().getAI().setIntention(CtrlIntention.AI_INTENTION_ATTACK, target);
-		
-		return true;
-	}
-
-	/* (non-Javadoc)
-	 * @see com.l2jserver.gameserver.model.L2Effect#getEffectFlags()
-	 */
-	@Override
-	public int getEffectFlags()
-	{
-		return CharEffectList.EFFECT_FLAG_CONFUSED;
-	}
-}

+ 0 - 120
L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectConfusion.java

@@ -1,120 +0,0 @@
-/*
- * 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.l2jserver.gameserver.skills.effects;
-
-import java.util.Collection;
-import java.util.List;
-
-import javolution.util.FastList;
-
-import com.l2jserver.gameserver.ai.CtrlIntention;
-import com.l2jserver.gameserver.model.CharEffectList;
-import com.l2jserver.gameserver.model.L2Effect;
-import com.l2jserver.gameserver.model.L2Object;
-import com.l2jserver.gameserver.model.actor.L2Character;
-import com.l2jserver.gameserver.skills.Env;
-import com.l2jserver.gameserver.templates.effects.EffectTemplate;
-import com.l2jserver.gameserver.templates.skills.L2EffectType;
-import com.l2jserver.util.Rnd;
-
-/**
- * @author littlecrow
- * 
- *         Implementation of the Confusion Effect
- */
-public class EffectConfusion extends L2Effect
-{
-	
-	public EffectConfusion(Env env, EffectTemplate template)
-	{
-		super(env, template);
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#getEffectType()
-	 */
-	@Override
-	public L2EffectType getEffectType()
-	{
-		return L2EffectType.CONFUSION;
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onStart()
-	 */
-	@Override
-	public boolean onStart()
-	{
-		getEffected().startConfused();
-		onActionTime();
-		return true;
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onExit()
-	 */
-	@Override
-	public void onExit()
-	{
-		getEffected().stopConfused(this);
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onActionTime()
-	 */
-	@Override
-	public boolean onActionTime()
-	{
-		List<L2Character> targetList = new FastList<L2Character>();
-		
-		// Getting the possible targets
-		
-		Collection<L2Object> objs = getEffected().getKnownList().getKnownObjects().values();
-		// synchronized (getEffected().getKnownList().getKnownObjects())
-		{
-			for (L2Object obj : objs)
-			{
-				if ((obj instanceof L2Character) && (obj != getEffected()))
-					targetList.add((L2Character) obj);
-			}
-		}
-		// if there is no target, exit function
-		if (targetList.isEmpty())
-			return true;
-		
-		// Choosing randomly a new target
-		int nextTargetIdx = Rnd.nextInt(targetList.size());
-		L2Object target = targetList.get(nextTargetIdx);
-		
-		// Attacking the target
-		getEffected().setTarget(target);
-		getEffected().getAI().setIntention(CtrlIntention.AI_INTENTION_ATTACK, target);
-		
-		return true;
-	}
-	
-	/* (non-Javadoc)
-	 * @see com.l2jserver.gameserver.model.L2Effect#getEffectFlags()
-	 */
-	@Override
-	public int getEffectFlags()
-	{
-		return CharEffectList.EFFECT_FLAG_CONFUSED;
-	}
-}

+ 0 - 39
L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectCpDamPercent.java

@@ -1,39 +0,0 @@
-package com.l2jserver.gameserver.skills.effects;
-
-import com.l2jserver.gameserver.model.L2Effect;
-import com.l2jserver.gameserver.network.serverpackets.StatusUpdate;
-import com.l2jserver.gameserver.skills.Env;
-import com.l2jserver.gameserver.templates.effects.EffectTemplate;
-import com.l2jserver.gameserver.templates.skills.L2EffectType;
-
-/**
- * @author Zoey76
- */
-public class EffectCpDamPercent extends L2Effect
-{
-	public EffectCpDamPercent(Env env, EffectTemplate template)
-	{
-		super(env, template);
-	}
-	
-	@Override
-	public L2EffectType getEffectType()
-	{
-		return L2EffectType.CPDAMPERCENT;
-	}
-	
-	@Override
-	public boolean onActionTime()
-	{
-		if (getEffected().isDead())
-			return false;
-		
-		double cp = getEffected().getCurrentCp() * (100 - getEffectPower()) / 100;
-		getEffected().setCurrentCp(cp);
-		
-		StatusUpdate sucp = new StatusUpdate(getEffected());
-		sucp.addAttribute(StatusUpdate.CUR_CP, (int) cp);
-		getEffected().sendPacket(sucp);
-		return false;
-	}
-}

+ 0 - 74
L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectDamOverTime.java

@@ -1,74 +0,0 @@
-/*
- * 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.l2jserver.gameserver.skills.effects;
-
-import com.l2jserver.gameserver.model.L2Effect;
-import com.l2jserver.gameserver.network.SystemMessageId;
-import com.l2jserver.gameserver.network.serverpackets.SystemMessage;
-import com.l2jserver.gameserver.skills.Env;
-import com.l2jserver.gameserver.templates.effects.EffectTemplate;
-import com.l2jserver.gameserver.templates.skills.L2EffectType;
-
-public class EffectDamOverTime extends L2Effect
-{
-	public EffectDamOverTime(Env env, EffectTemplate template)
-	{
-		super(env, template);
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#getEffectType()
-	 */
-	@Override
-	public L2EffectType getEffectType()
-	{
-		return L2EffectType.DMG_OVER_TIME;
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onActionTime()
-	 */
-	@Override
-	public boolean onActionTime()
-	{
-		if (getEffected().isDead())
-			return false;
-		
-		double damage = calc();
-		if (damage >= getEffected().getCurrentHp() - 1)
-		{
-			if (getSkill().isToggle())
-			{
-				getEffected().sendPacket(SystemMessage.getSystemMessage(SystemMessageId.SKILL_REMOVED_DUE_LACK_HP));
-				return false;
-			}
-			
-			// For DOT skills that will not kill effected player.
-			if (!getSkill().killByDOT())
-			{
-				// Fix for players dying by DOTs if HP < 1 since reduceCurrentHP method will kill them
-				if (getEffected().getCurrentHp() <= 1)
-					return true;
-				
-				damage = getEffected().getCurrentHp() - 1;
-			}
-		}
-		getEffected().reduceCurrentHpByDOT(damage, getEffector(), getSkill());
-		
-		return true;
-	}
-}

+ 0 - 49
L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectDebuff.java

@@ -1,49 +0,0 @@
-/*
- * 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.l2jserver.gameserver.skills.effects;
-
-import com.l2jserver.gameserver.model.L2Effect;
-import com.l2jserver.gameserver.skills.Env;
-import com.l2jserver.gameserver.templates.effects.EffectTemplate;
-import com.l2jserver.gameserver.templates.skills.L2EffectType;
-
-public class EffectDebuff extends L2Effect
-{
-	public EffectDebuff(Env env, EffectTemplate template)
-	{
-		super(env, template);
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#getEffectType()
-	 */
-	@Override
-	public L2EffectType getEffectType()
-	{
-		return L2EffectType.DEBUFF;
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onActionTime()
-	 */
-	@Override
-	public boolean onActionTime()
-	{
-		// just stop this effect
-		return false;
-	}
-}

+ 0 - 87
L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectDisarm.java

@@ -1,87 +0,0 @@
-/*
- * 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.l2jserver.gameserver.skills.effects;
-
-import com.l2jserver.gameserver.model.CharEffectList;
-import com.l2jserver.gameserver.model.L2Effect;
-import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
-import com.l2jserver.gameserver.skills.Env;
-import com.l2jserver.gameserver.templates.effects.EffectTemplate;
-import com.l2jserver.gameserver.templates.skills.L2EffectType;
-
-/**
- * 
- * @author nBd
- */
-public class EffectDisarm extends L2Effect
-{
-	public EffectDisarm(Env env, EffectTemplate template)
-	{
-		super(env, template);
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#getEffectType()
-	 */
-	@Override
-	public L2EffectType getEffectType()
-	{
-		return L2EffectType.DISARM;
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onStart()
-	 */
-	@Override
-	public boolean onStart()
-	{
-		if (!(getEffected() instanceof L2PcInstance))
-			return false;
-		
-		((L2PcInstance) getEffected()).disarmWeapons();
-		return true;
-		
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onExit()
-	 */
-	@Override
-	public void onExit()
-	{
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onActionTime()
-	 */
-	@Override
-	public boolean onActionTime()
-	{
-		return false;
-	}
-
-	/* (non-Javadoc)
-	 * @see com.l2jserver.gameserver.model.L2Effect#getEffectFlags()
-	 */
-	@Override
-	public int getEffectFlags()
-	{
-		return CharEffectList.EFFECT_FLAG_DISARMED;
-	}
-}

+ 0 - 109
L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectEnemyCharge.java

@@ -1,109 +0,0 @@
-/*
- * 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.l2jserver.gameserver.skills.effects;
-
-import java.util.logging.Logger;
-
-import com.l2jserver.Config;
-import com.l2jserver.gameserver.GeoData;
-import com.l2jserver.gameserver.model.L2Effect;
-import com.l2jserver.gameserver.model.Location;
-import com.l2jserver.gameserver.network.serverpackets.FlyToLocation;
-import com.l2jserver.gameserver.network.serverpackets.FlyToLocation.FlyType;
-import com.l2jserver.gameserver.network.serverpackets.ValidateLocation;
-import com.l2jserver.gameserver.skills.Env;
-import com.l2jserver.gameserver.templates.effects.EffectTemplate;
-import com.l2jserver.gameserver.templates.skills.L2EffectType;
-
-public class EffectEnemyCharge extends L2Effect
-{
-	static final Logger _log = Logger.getLogger(EffectEnemyCharge.class.getName());
-	
-	private int _x, _y, _z;
-	
-	public EffectEnemyCharge(Env env, EffectTemplate template)
-	{
-		super(env, template);
-	}
-	
-	@Override
-	public L2EffectType getEffectType()
-	{
-		return L2EffectType.BUFF;
-	}
-	
-	@Override
-	public boolean onStart()
-	{
-		// Get current position of the L2Character
-		final int curX = getEffector().getX();
-		final int curY = getEffector().getY();
-		final int curZ = getEffector().getZ();
-		
-		// Calculate distance (dx,dy) between current position and destination
-		double dx = getEffected().getX() - curX;
-		double dy = getEffected().getY() - curY;
-		double dz = getEffected().getZ() - curZ;
-		double distance = Math.sqrt(dx * dx + dy * dy);
-		if (distance > 2000)
-		{
-			_log.info("EffectEnemyCharge was going to use invalid coordinates for characters, getEffector: "+curX+","+curY+" and getEffected: "+getEffected().getX()+","+getEffected().getY());
-			return false;
-		}
-		int offset = Math.max((int) distance - getSkill().getFlyRadius(), 30);
-		
-		double cos;
-		double sin;
-		
-		// approximation for moving closer when z coordinates are different
-		// TODO: handle Z axis movement better
-		offset -= Math.abs(dz);
-		if (offset < 5)
-			offset = 5;
-		
-		// If no distance
-		if (distance < 1 || distance - offset <= 0)
-			return false;
-		
-		// Calculate movement angles needed
-		sin = dy / distance;
-		cos = dx / distance;
-		
-		// Calculate the new destination with offset included
-		_x = curX + (int) ((distance - offset) * cos);
-		_y = curY + (int) ((distance - offset) * sin);
-		_z = getEffected().getZ();
-		
-		if (Config.GEODATA > 0)
-		{
-			Location destiny = GeoData.getInstance().moveCheck(getEffector().getX(), getEffector().getY(), getEffector().getZ(), _x, _y, _z, getEffector().getInstanceId());
-			_x = destiny.getX();
-			_y = destiny.getY();
-		}
-		getEffector().broadcastPacket(new FlyToLocation(getEffector(), _x, _y, _z, FlyType.CHARGE));
-		
-		// maybe is need force set X,Y,Z
-		getEffector().setXYZ(_x, _y, _z);
-		getEffector().broadcastPacket(new ValidateLocation(getEffector()));
-		
-		return true;
-	}
-	
-	@Override
-	public boolean onActionTime()
-	{
-		return false;
-	}
-}

+ 0 - 90
L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectFakeDeath.java

@@ -1,90 +0,0 @@
-/*
- * 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.l2jserver.gameserver.skills.effects;
-
-import com.l2jserver.gameserver.model.L2Effect;
-import com.l2jserver.gameserver.network.SystemMessageId;
-import com.l2jserver.gameserver.network.serverpackets.SystemMessage;
-import com.l2jserver.gameserver.skills.Env;
-import com.l2jserver.gameserver.templates.effects.EffectTemplate;
-import com.l2jserver.gameserver.templates.skills.L2EffectType;
-
-/**
- * @author mkizub
- * 
- */
-public class EffectFakeDeath extends L2Effect
-{
-	public EffectFakeDeath(Env env, EffectTemplate template)
-	{
-		super(env, template);
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#getEffectType()
-	 */
-	@Override
-	public L2EffectType getEffectType()
-	{
-		return L2EffectType.FAKE_DEATH;
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onStart()
-	 */
-	@Override
-	public boolean onStart()
-	{
-		getEffected().startFakeDeath();
-		return true;
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onExit()
-	 */
-	@Override
-	public void onExit()
-	{
-		getEffected().stopFakeDeath(false);
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onActionTime()
-	 */
-	@Override
-	public boolean onActionTime()
-	{
-		if (getEffected().isDead())
-			return false;
-		
-		double manaDam = calc();
-		
-		if (manaDam > getEffected().getCurrentMp())
-		{
-			if (getSkill().isToggle())
-			{
-				getEffected().sendPacket(SystemMessage.getSystemMessage(SystemMessageId.SKILL_REMOVED_DUE_LACK_MP));
-				return false;
-			}
-		}
-		
-		getEffected().reduceCurrentMp(manaDam);
-		return true;
-	}
-}

+ 0 - 166
L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectFear.java

@@ -1,166 +0,0 @@
-/*
- * 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.l2jserver.gameserver.skills.effects;
-
-import com.l2jserver.Config;
-import com.l2jserver.gameserver.GeoData;
-import com.l2jserver.gameserver.ai.CtrlIntention;
-import com.l2jserver.gameserver.model.CharEffectList;
-import com.l2jserver.gameserver.model.L2CharPosition;
-import com.l2jserver.gameserver.model.L2Effect;
-import com.l2jserver.gameserver.model.Location;
-import com.l2jserver.gameserver.model.actor.instance.L2DefenderInstance;
-import com.l2jserver.gameserver.model.actor.instance.L2FortCommanderInstance;
-import com.l2jserver.gameserver.model.actor.instance.L2NpcInstance;
-import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
-import com.l2jserver.gameserver.model.actor.instance.L2PetInstance;
-import com.l2jserver.gameserver.model.actor.instance.L2SiegeFlagInstance;
-import com.l2jserver.gameserver.model.actor.instance.L2SiegeSummonInstance;
-import com.l2jserver.gameserver.skills.Env;
-import com.l2jserver.gameserver.templates.effects.EffectTemplate;
-import com.l2jserver.gameserver.templates.skills.L2EffectType;
-
-/**
- * @author littlecrow
- * 
- *         Implementation of the Fear Effect
- */
-public class EffectFear extends L2Effect
-{
-	public static final int FEAR_RANGE = 500;
-	
-	private int _dX = -1;
-	private int _dY = -1;
-	
-	public EffectFear(Env env, EffectTemplate template)
-	{
-		super(env, template);
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#getEffectType()
-	 */
-	@Override
-	public L2EffectType getEffectType()
-	{
-		return L2EffectType.FEAR;
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onStart()
-	 */
-	@Override
-	public boolean onStart()
-	{
-		// Fear skills cannot be used l2pcinstance to l2pcinstance. Heroic
-		// Dread, Curse: Fear, Fear, Horror, Sword Symphony, Word of Fear, Hell Scream and
-		// Mass Curse Fear are the exceptions.
-		if (getEffected() instanceof L2PcInstance
-				&& getEffector() instanceof L2PcInstance)
-		{
-			switch (getSkill().getId())
-			{
-				case 1376:
-				case 1169:
-				case 65:
-				case 1092:
-				case 98:
-				case 1272:
-				case 1381:
-				case 763:
-					break;
-				default:
-					return false;
-			}
-		}
-		
-		if (getEffected() instanceof L2NpcInstance
-				|| getEffected() instanceof L2DefenderInstance
-				|| getEffected() instanceof L2FortCommanderInstance
-				|| getEffected() instanceof L2SiegeFlagInstance
-				|| getEffected() instanceof L2SiegeSummonInstance)
-			return false;
-		
-		if (!getEffected().isAfraid())
-		{
-			if(getEffected().isCastingNow() && getEffected().canAbortCast())
-				getEffected().abortCast();
-
-			if (getEffected().getX() > getEffector().getX())
-				_dX = 1;
-			if (getEffected().getY() > getEffector().getY())
-				_dY = 1;
-			
-			getEffected().startFear();
-			onActionTime();
-			return true;
-		}
-		return false;
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onExit()
-	 */
-	@Override
-	public void onExit()
-	{
-		getEffected().stopFear(false);
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onActionTime()
-	 */
-	@Override
-	public boolean onActionTime()
-	{
-		int posX = getEffected().getX();
-		int posY = getEffected().getY();
-		int posZ = getEffected().getZ();
-		
-		if (getEffected().getX() > getEffector().getX())
-			_dX = 1;
-		if (getEffected().getY() > getEffector().getY())
-			_dY = 1;
-		
-		posX += _dX * FEAR_RANGE;
-		posY += _dY * FEAR_RANGE;
-		
-		if (Config.GEODATA > 0)
-		{
-			Location destiny = GeoData.getInstance().moveCheck(getEffected().getX(), getEffected().getY(), getEffected().getZ(), posX, posY, posZ, getEffected().getInstanceId());
-			posX = destiny.getX();
-			posY = destiny.getY();
-		}
-		
-		if (!(getEffected() instanceof L2PetInstance))
-			getEffected().setRunning();
-		
-		getEffected().getAI().setIntention(CtrlIntention.AI_INTENTION_MOVE_TO, new L2CharPosition(posX, posY, posZ, 0));
-		return true;
-	}
-
-	/* (non-Javadoc)
-	 * @see com.l2jserver.gameserver.model.L2Effect#getEffectFlags()
-	 */
-	@Override
-	public int getEffectFlags()
-	{
-		return CharEffectList.EFFECT_FLAG_FEAR;
-	}
-}

+ 0 - 81
L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectFusion.java

@@ -1,81 +0,0 @@
-/*
- * 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.l2jserver.gameserver.skills.effects;
-
-import com.l2jserver.gameserver.datatables.SkillTable;
-import com.l2jserver.gameserver.model.L2Effect;
-import com.l2jserver.gameserver.skills.Env;
-import com.l2jserver.gameserver.templates.effects.EffectTemplate;
-import com.l2jserver.gameserver.templates.skills.L2EffectType;
-
-/**
- * @author Kerberos
- */
-public class EffectFusion extends L2Effect
-{
-	public int _effect;
-	public int _maxEffect;
-	
-	public EffectFusion(Env env, EffectTemplate template)
-	{
-		super(env, template);
-		_effect = getSkill().getLevel();
-		_maxEffect = SkillTable.getInstance().getMaxLevel(getSkill().getId());
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onActionTime()
-	 */
-	@Override
-	public boolean onActionTime()
-	{
-		return true;
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#getEffectType()
-	 */
-	@Override
-	public L2EffectType getEffectType()
-	{
-		return L2EffectType.FUSION;
-	}
-	
-	public void increaseEffect()
-	{
-		if (_effect < _maxEffect)
-		{
-			_effect++;
-			updateBuff();
-		}
-	}
-	
-	public void decreaseForce()
-	{
-		_effect--;
-		if (_effect < 1)
-			exit();
-		else
-			updateBuff();
-	}
-	
-	private void updateBuff()
-	{
-		exit();
-		SkillTable.getInstance().getInfo(getSkill().getId(), _effect).getEffects(getEffector(), getEffected());
-	}
-}

+ 0 - 72
L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectGrow.java

@@ -1,72 +0,0 @@
-/*
- * 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.l2jserver.gameserver.skills.effects;
-
-import com.l2jserver.gameserver.model.L2Effect;
-import com.l2jserver.gameserver.model.actor.L2Npc;
-import com.l2jserver.gameserver.skills.AbnormalEffect;
-import com.l2jserver.gameserver.skills.Env;
-import com.l2jserver.gameserver.templates.effects.EffectTemplate;
-import com.l2jserver.gameserver.templates.skills.L2EffectType;
-
-public class EffectGrow extends L2Effect
-{
-	public EffectGrow(Env env, EffectTemplate template)
-	{
-		super(env, template);
-	}
-	
-	@Override
-	public L2EffectType getEffectType()
-	{
-		return L2EffectType.BUFF;
-	}
-	
-	@Override
-	public boolean onStart()
-	{
-		if (getEffected() instanceof L2Npc)
-		{
-			L2Npc npc = (L2Npc) getEffected();
-			//TODO: Uncomment line when fix for mobs falling underground is found
-			//npc.setCollisionHeight((int) (npc.getCollisionHeight() * 1.24));
-			npc.setCollisionRadius((npc.getCollisionRadius() * 1.19));
-			
-			getEffected().startAbnormalEffect(AbnormalEffect.GROW);
-			return true;
-		}
-		return false;
-	}
-	
-	@Override
-	public boolean onActionTime()
-	{
-		return false;
-	}
-	
-	@Override
-	public void onExit()
-	{
-		if (getEffected() instanceof L2Npc)
-		{
-			L2Npc npc = (L2Npc) getEffected();
-			//TODO: Uncomment line when fix for mobs falling underground is found
-			//npc.setCollisionHeight(npc.getTemplate().collisionHeight);
-			npc.setCollisionRadius(npc.getTemplate().fCollisionRadius);
-			
-			getEffected().stopAbnormalEffect(AbnormalEffect.GROW);
-		}
-	}
-}

+ 0 - 99
L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectHealOverTime.java

@@ -1,99 +0,0 @@
-/*
- * 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.l2jserver.gameserver.skills.effects;
-
-import com.l2jserver.gameserver.model.L2Effect;
-import com.l2jserver.gameserver.model.actor.instance.L2DoorInstance;
-import com.l2jserver.gameserver.network.serverpackets.ExRegMax;
-import com.l2jserver.gameserver.network.serverpackets.StatusUpdate;
-import com.l2jserver.gameserver.skills.Env;
-import com.l2jserver.gameserver.templates.effects.EffectTemplate;
-import com.l2jserver.gameserver.templates.skills.L2EffectType;
-
-public class EffectHealOverTime extends L2Effect
-{
-	public EffectHealOverTime(Env env, EffectTemplate template)
-	{
-		super(env, template);
-	}
-	
-	// Special constructor to steal this effect
-	public EffectHealOverTime(Env env, L2Effect effect)
-	{
-		super(env, effect);
-	}
-
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#effectCanBeStolen()
-	 */
-	@Override
-	protected boolean effectCanBeStolen()
-	{
-		return true;
-	}
-
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#getEffectType()
-	 */
-	@Override
-	public L2EffectType getEffectType()
-	{
-		return L2EffectType.HEAL_OVER_TIME;
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onStart()
-	 */
-	@Override
-	public boolean onStart()
-	{
-		getEffected().sendPacket(new ExRegMax(calc(), getTotalCount() * getAbnormalTime(), getAbnormalTime()));
-		return true;
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onActionTime()
-	 */
-	@Override
-	public boolean onActionTime()
-	{
-		if (getEffected().isDead())
-			return false;
-		
-		if (getEffected() instanceof L2DoorInstance)
-			return false;
-		
-		double hp = getEffected().getCurrentHp();
-		double maxhp = getEffected().getMaxRecoverableHp();
-		
-		// Not needed to set the HP and send update packet if player is already at max HP
-		if (hp >= maxhp)
-			return true;
-		
-		hp += calc();
-		if (hp > maxhp)
-			hp = maxhp;
-		
-		getEffected().setCurrentHp(hp);
-		StatusUpdate suhp = new StatusUpdate(getEffected());
-		suhp.addAttribute(StatusUpdate.CUR_HP, (int) hp);
-		getEffected().sendPacket(suhp);
-		return true;
-	}
-}

+ 0 - 120
L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectHide.java

@@ -1,120 +0,0 @@
-/*
- * 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.l2jserver.gameserver.skills.effects;
-
-import com.l2jserver.gameserver.ai.CtrlIntention;
-import com.l2jserver.gameserver.model.L2Effect;
-import com.l2jserver.gameserver.model.actor.L2Character;
-import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
-import com.l2jserver.gameserver.network.serverpackets.DeleteObject;
-import com.l2jserver.gameserver.network.serverpackets.L2GameServerPacket;
-import com.l2jserver.gameserver.skills.AbnormalEffect;
-import com.l2jserver.gameserver.skills.Env;
-import com.l2jserver.gameserver.templates.effects.EffectTemplate;
-import com.l2jserver.gameserver.templates.skills.L2EffectType;
-
-/**
- *
- * @author ZaKaX - nBd
- */
-public class EffectHide extends L2Effect
-{
-	public EffectHide(Env env, EffectTemplate template)
-	{
-		super(env, template);
-	}
-	
-	public EffectHide(Env env, L2Effect effect)
-	{
-		super(env, effect);
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#getEffectType()
-	 */
-	@Override
-	public L2EffectType getEffectType()
-	{
-		return L2EffectType.HIDE;
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onStart()
-	 */
-	@Override
-	public boolean onStart()
-	{
-		if (getEffected() instanceof L2PcInstance)
-		{
-			L2PcInstance activeChar = ((L2PcInstance) getEffected());
-			activeChar.getAppearance().setInvisible();
-			activeChar.startAbnormalEffect(AbnormalEffect.STEALTH);
-			
-			if (activeChar.getAI().getNextIntention() != null
-					&& activeChar.getAI().getNextIntention().getCtrlIntention() == CtrlIntention.AI_INTENTION_ATTACK)
-				activeChar.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
-			
-			L2GameServerPacket del = new DeleteObject(activeChar);
-			for (L2Character target : activeChar.getKnownList().getKnownCharacters())
-			{
-				try
-				{
-					if (target.getTarget() == activeChar)
-					{
-						target.setTarget(null);
-						target.abortAttack();
-						target.abortCast();
-						target.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
-					}
-					
-					if (target instanceof L2PcInstance)
-						target.sendPacket(del);
-				}
-				catch (NullPointerException e)
-				{
-				}
-			}
-		}
-		return true;
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onExit()
-	 */
-	@Override
-	public void onExit()
-	{
-		if (getEffected() instanceof L2PcInstance)
-		{
-			L2PcInstance activeChar = ((L2PcInstance) getEffected());
-			if (!activeChar.inObserverMode())
-				activeChar.getAppearance().setVisible();
-			activeChar.stopAbnormalEffect(AbnormalEffect.STEALTH);
-		}
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onActionTime()
-	 */
-	@Override
-	public boolean onActionTime()
-	{
-		return false;
-	}
-}

+ 0 - 80
L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectImmobileBuff.java

@@ -1,80 +0,0 @@
-/*
- * 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.l2jserver.gameserver.skills.effects;
-
-import com.l2jserver.gameserver.model.L2Effect;
-import com.l2jserver.gameserver.skills.Env;
-import com.l2jserver.gameserver.templates.effects.EffectTemplate;
-import com.l2jserver.gameserver.templates.skills.L2EffectType;
-
-/**
- * @author mkizub
- */
-public class EffectImmobileBuff extends EffectBuff
-{
-	public EffectImmobileBuff(Env env, EffectTemplate template)
-	{
-		super(env, template);
-	}
-	
-	// Special constructor to steal this effect
-	public EffectImmobileBuff(Env env, L2Effect effect)
-	{
-		super(env, effect);
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#getEffectType()
-	 */
-	@Override
-	public L2EffectType getEffectType()
-	{
-		return L2EffectType.BUFF;
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onStart()
-	 */
-	@Override
-	public boolean onStart()
-	{
-		getEffected().setIsImmobilized(true);
-		return super.onStart();
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onExit()
-	 */
-	@Override
-	public void onExit()
-	{
-		getEffected().setIsImmobilized(false);
-		super.onExit();
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onActionTime()
-	 */
-	@Override
-	public boolean onActionTime()
-	{
-		// just stop this effect
-		return false;
-	}
-}

+ 0 - 70
L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectImmobilePetBuff.java

@@ -1,70 +0,0 @@
-/*
- * 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.l2jserver.gameserver.skills.effects;
-
-import com.l2jserver.gameserver.model.L2Effect;
-import com.l2jserver.gameserver.model.actor.L2Summon;
-import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
-import com.l2jserver.gameserver.skills.Env;
-import com.l2jserver.gameserver.templates.effects.EffectTemplate;
-import com.l2jserver.gameserver.templates.skills.L2EffectType;
-
-/**
- * @author demonia
- */
-public class EffectImmobilePetBuff extends L2Effect
-{
-	private L2Summon _pet;
-	
-	public EffectImmobilePetBuff(Env env, EffectTemplate template)
-	{
-		super(env, template);
-	}
-	
-	@Override
-	public L2EffectType getEffectType()
-	{
-		return L2EffectType.BUFF;
-	}
-	
-	@Override
-	public boolean onStart()
-	{
-		_pet = null;
-		
-		if (getEffected() instanceof L2Summon
-				&& getEffector() instanceof L2PcInstance
-				&& ((L2Summon) getEffected()).getOwner() == getEffector())
-		{
-			_pet = (L2Summon) getEffected();
-			_pet.setIsImmobilized(true);
-			return true;
-		}
-		return false;
-	}
-	
-	@Override
-	public void onExit()
-	{
-		_pet.setIsImmobilized(false);
-	}
-	
-	@Override
-	public boolean onActionTime()
-	{
-		// just stop this effect
-		return false;
-	}
-}

+ 0 - 74
L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectIncreaseCharges.java

@@ -1,74 +0,0 @@
-/*
- * 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.l2jserver.gameserver.skills.effects;
-
-import com.l2jserver.gameserver.model.L2Effect;
-import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
-import com.l2jserver.gameserver.skills.Env;
-import com.l2jserver.gameserver.templates.effects.EffectTemplate;
-import com.l2jserver.gameserver.templates.skills.L2EffectType;
-
-/**
- * 
- * @author DS
- * 
- * Effect will generate charges for L2PcInstance targets
- * Number of charges in "value", maximum number in "count" effect variables
- *
- */
-public class EffectIncreaseCharges extends L2Effect
-{
-	public EffectIncreaseCharges(Env env, EffectTemplate template)
-	{
-		super(env, template);
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#getEffectType()
-	 */
-	@Override
-	public L2EffectType getEffectType()
-	{
-		return L2EffectType.INCREASE_CHARGES;
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onStart()
-	 */
-	@Override
-	public boolean onStart()
-	{
-		if (getEffected() == null)
-			return false;
-		
-		if (!(getEffected() instanceof L2PcInstance))
-			return false;
-		
-		((L2PcInstance)getEffected()).increaseCharges((int)calc(), getCount());
-		return true;
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onActionTime()
-	 */
-	@Override
-	public boolean onActionTime()
-	{
-		return false; // abort effect even if count > 1
-	}
-}

+ 0 - 59
L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectInvincible.java

@@ -1,59 +0,0 @@
-/*
- * 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.l2jserver.gameserver.skills.effects;
-
-import com.l2jserver.gameserver.model.CharEffectList;
-import com.l2jserver.gameserver.model.L2Effect;
-import com.l2jserver.gameserver.skills.Env;
-import com.l2jserver.gameserver.templates.effects.EffectTemplate;
-import com.l2jserver.gameserver.templates.skills.L2EffectType;
-
-public class EffectInvincible extends L2Effect
-{
-	public EffectInvincible(Env env, EffectTemplate template)
-	{
-		super(env, template);
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#getEffectType()
-	 */
-	@Override
-	public L2EffectType getEffectType()
-	{
-		return L2EffectType.INVINCIBLE;
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onActionTime()
-	 */
-	@Override
-	public boolean onActionTime()
-	{
-		// Simply stop the effect
-		return false;
-	}
-	
-	/* (non-Javadoc)
-	 * @see com.l2jserver.gameserver.model.L2Effect#getEffectFlags()
-	 */
-	@Override
-	public int getEffectFlags()
-	{
-		return CharEffectList.EFFECT_FLAG_INVUL;
-	}
-}

+ 0 - 65
L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectManaDamOverTime.java

@@ -1,65 +0,0 @@
-/*
- * 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.l2jserver.gameserver.skills.effects;
-
-import com.l2jserver.gameserver.model.L2Effect;
-import com.l2jserver.gameserver.network.SystemMessageId;
-import com.l2jserver.gameserver.network.serverpackets.SystemMessage;
-import com.l2jserver.gameserver.skills.Env;
-import com.l2jserver.gameserver.templates.effects.EffectTemplate;
-import com.l2jserver.gameserver.templates.skills.L2EffectType;
-
-public class EffectManaDamOverTime extends L2Effect
-{
-	public EffectManaDamOverTime(Env env, EffectTemplate template)
-	{
-		super(env, template);
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#getEffectType()
-	 */
-	@Override
-	public L2EffectType getEffectType()
-	{
-		return L2EffectType.MANA_DMG_OVER_TIME;
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onActionTime()
-	 */
-	@Override
-	public boolean onActionTime()
-	{
-		if (getEffected().isDead())
-			return false;
-		
-		double manaDam = calc();
-		
-		if (manaDam > getEffected().getCurrentMp())
-		{
-			if (getSkill().isToggle())
-			{
-				getEffected().sendPacket(SystemMessage.getSystemMessage(SystemMessageId.SKILL_REMOVED_DUE_LACK_MP));
-				return false;
-			}
-		}
-		
-		getEffected().reduceCurrentMp(manaDam);
-		return true;
-	}
-}

+ 0 - 83
L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectManaHealOverTime.java

@@ -1,83 +0,0 @@
-/*
- * 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.l2jserver.gameserver.skills.effects;
-
-import com.l2jserver.gameserver.model.L2Effect;
-import com.l2jserver.gameserver.network.serverpackets.StatusUpdate;
-import com.l2jserver.gameserver.skills.Env;
-import com.l2jserver.gameserver.templates.effects.EffectTemplate;
-import com.l2jserver.gameserver.templates.skills.L2EffectType;
-
-public class EffectManaHealOverTime extends L2Effect
-{
-	public EffectManaHealOverTime(Env env, EffectTemplate template)
-	{
-		super(env, template);
-	}
-	
-	// Special constructor to steal this effect
-	public EffectManaHealOverTime(Env env, L2Effect effect)
-	{
-		super(env, effect);
-	}
-
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#effectCanBeStolen()
-	 */
-	@Override
-	protected boolean effectCanBeStolen()
-	{
-		return true;
-	}
-
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#getEffectType()
-	 */
-	@Override
-	public L2EffectType getEffectType()
-	{
-		return L2EffectType.MANA_HEAL_OVER_TIME;
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onActionTime()
-	 */
-	@Override
-	public boolean onActionTime()
-	{
-		if (getEffected().isDead())
-			return false;
-		
-		double mp = getEffected().getCurrentMp();
-		double maxmp = getEffected().getMaxRecoverableMp();
-		
-		// Not needed to set the MP and send update packet if player is already at max MP
-		if (mp >= maxmp)
-			return true;
-		
-		mp += calc();
-		if (mp > maxmp)
-			mp = maxmp;
-		
-		getEffected().setCurrentMp(mp);
-		StatusUpdate sump = new StatusUpdate(getEffected());
-		sump.addAttribute(StatusUpdate.CUR_MP, (int) mp);
-		getEffected().sendPacket(sump);
-		return true;
-	}
-}

+ 0 - 64
L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectMpConsumePerLevel.java

@@ -1,64 +0,0 @@
-/*
- * 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.l2jserver.gameserver.skills.effects;
-
-import com.l2jserver.gameserver.model.L2Effect;
-import com.l2jserver.gameserver.network.SystemMessageId;
-import com.l2jserver.gameserver.network.serverpackets.SystemMessage;
-import com.l2jserver.gameserver.skills.Env;
-import com.l2jserver.gameserver.templates.effects.EffectTemplate;
-import com.l2jserver.gameserver.templates.skills.L2EffectType;
-
-public class EffectMpConsumePerLevel extends L2Effect
-{
-	public EffectMpConsumePerLevel(Env env, EffectTemplate template)
-	{
-		super(env, template);
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#getEffectType()
-	 */
-	@Override
-	public L2EffectType getEffectType()
-	{
-		return L2EffectType.MP_CONSUME_PER_LEVEL;
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onActionTime()
-	 */
-	@Override
-	public boolean onActionTime()
-	{
-		if (getEffected().isDead())
-			return false;
-		
-		double base = calc();
-		double consume = (getEffected().getLevel() - 1) / 7.5 * base
-		* getAbnormalTime();
-		
-		if (consume > getEffected().getCurrentMp())
-		{
-			getEffected().sendPacket(SystemMessage.getSystemMessage(SystemMessageId.SKILL_REMOVED_DUE_LACK_MP));
-			return false;
-		}
-		
-		getEffected().reduceCurrentMp(consume);
-		return true;
-	}
-}

+ 0 - 80
L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectMute.java

@@ -1,80 +0,0 @@
-/*
- * 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.l2jserver.gameserver.skills.effects;
-
-import com.l2jserver.gameserver.model.CharEffectList;
-import com.l2jserver.gameserver.model.L2Effect;
-import com.l2jserver.gameserver.skills.Env;
-import com.l2jserver.gameserver.templates.effects.EffectTemplate;
-import com.l2jserver.gameserver.templates.skills.L2EffectType;
-
-public class EffectMute extends L2Effect
-{
-	public EffectMute(Env env, EffectTemplate template)
-	{
-		super(env, template);
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#getEffectType()
-	 */
-	@Override
-	public L2EffectType getEffectType()
-	{
-		return L2EffectType.MUTE;
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onStart()
-	 */
-	@Override
-	public boolean onStart()
-	{
-		getEffected().startMuted();
-		return true;
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onActionTime()
-	 */
-	@Override
-	public boolean onActionTime()
-	{
-		// Simply stop the effect
-		return false;
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onExit()
-	 */
-	@Override
-	public void onExit()
-	{
-		getEffected().stopMuted(false);
-	}
-	
-	/* (non-Javadoc)
-	 * @see com.l2jserver.gameserver.model.L2Effect#getEffectFlags()
-	 */
-	@Override
-	public int getEffectFlags()
-	{
-		return CharEffectList.EFFECT_FLAG_MUTED;
-	}
-}

+ 0 - 77
L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectNegate.java

@@ -1,77 +0,0 @@
-/*
- * 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.l2jserver.gameserver.skills.effects;
-
-import com.l2jserver.gameserver.model.L2Effect;
-import com.l2jserver.gameserver.model.L2Skill;
-import com.l2jserver.gameserver.skills.Env;
-import com.l2jserver.gameserver.templates.effects.EffectTemplate;
-import com.l2jserver.gameserver.templates.skills.L2EffectType;
-import com.l2jserver.gameserver.templates.skills.L2SkillType;
-
-/**
- * 
- * @author Gnat
- */
-public class EffectNegate extends L2Effect
-{
-	public EffectNegate(Env env, EffectTemplate template)
-	{
-		super(env, template);
-	}
-	
-	@Override
-	public L2EffectType getEffectType()
-	{
-		return L2EffectType.NEGATE;
-	}
-	
-	@Override
-	public boolean onStart()
-	{
-		L2Skill skill = getSkill();
-		
-		for (int negateSkillId : skill.getNegateId())
-		{
-			if (negateSkillId != 0)
-				getEffected().stopSkillEffects(negateSkillId);
-		}
-		for (L2SkillType negateSkillType : skill.getNegateStats())
-		{
-			getEffected().stopSkillEffects(negateSkillType, skill.getNegateLvl());
-		}
-		if (skill.getNegateAbnormals() != null)
-		{
-			for (L2Effect effect : getEffected().getAllEffects())
-			{
-				if (effect == null)
-					continue;
-				
-				for (String negateAbnormalType : skill.getNegateAbnormals().keySet())
-				{
-					if (negateAbnormalType.equalsIgnoreCase(effect.getAbnormalType()) && skill.getNegateAbnormals().get(negateAbnormalType) >= effect.getAbnormalLvl())
-						effect.exit();
-				}
-			}
-		}
-		return true;
-	}
-	
-	@Override
-	public boolean onActionTime()
-	{
-		return false;
-	}
-}

+ 0 - 98
L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectNoblesseBless.java

@@ -1,98 +0,0 @@
-/*
- * 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.l2jserver.gameserver.skills.effects;
-
-import com.l2jserver.gameserver.model.CharEffectList;
-import com.l2jserver.gameserver.model.L2Effect;
-import com.l2jserver.gameserver.skills.Env;
-import com.l2jserver.gameserver.templates.effects.EffectTemplate;
-import com.l2jserver.gameserver.templates.skills.L2EffectType;
-
-/**
- * @author earendil
- * 
- */
-public class EffectNoblesseBless extends L2Effect
-{
-	public EffectNoblesseBless(Env env, EffectTemplate template)
-	{
-		super(env, template);
-	}
-	
-	// Special constructor to steal this effect
-	public EffectNoblesseBless(Env env, L2Effect effect)
-	{
-		super(env, effect);
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#effectCanBeStolen()
-	 */
-	@Override
-	protected boolean effectCanBeStolen()
-	{
-		return true;
-	}
-
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#getEffectType()
-	 */
-	@Override
-	public L2EffectType getEffectType()
-	{
-		return L2EffectType.NOBLESSE_BLESSING;
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onStart()
-	 */
-	@Override
-	public boolean onStart()
-	{
-		return true;
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onExit()
-	 */
-	@Override
-	public void onExit()
-	{
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onActionTime()
-	 */
-	@Override
-	public boolean onActionTime()
-	{
-		// just stop this effect
-		return false;
-	}
-
-	/* (non-Javadoc)
-	 * @see com.l2jserver.gameserver.model.L2Effect#getEffectFlags()
-	 */
-	@Override
-	public int getEffectFlags()
-	{
-		return CharEffectList.EFFECT_FLAG_NOBLESS_BLESSING;
-	}
-}

+ 0 - 99
L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectParalyze.java

@@ -1,99 +0,0 @@
-/*
- * 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.l2jserver.gameserver.skills.effects;
-
-import com.l2jserver.gameserver.model.CharEffectList;
-import com.l2jserver.gameserver.model.L2Effect;
-import com.l2jserver.gameserver.skills.AbnormalEffect;
-import com.l2jserver.gameserver.skills.Env;
-import com.l2jserver.gameserver.templates.effects.EffectTemplate;
-import com.l2jserver.gameserver.templates.skills.L2EffectType;
-
-public class EffectParalyze extends L2Effect
-{
-	public EffectParalyze(Env env, EffectTemplate template)
-	{
-		super(env, template);
-	}
-	
-	// Special constructor to steal this effect
-	public EffectParalyze(Env env, L2Effect effect)
-	{
-		super(env, effect);
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#effectCanBeStolen()
-	 */
-	@Override
-	protected boolean effectCanBeStolen()
-	{
-		return true;
-	}
-
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#getEffectType()
-	 */
-	@Override
-	public L2EffectType getEffectType()
-	{
-		return L2EffectType.PARALYZE;
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onStart()
-	 */
-	@Override
-	public boolean onStart()
-	{
-		getEffected().startAbnormalEffect(AbnormalEffect.HOLD_1);
-		getEffected().startParalyze();
-		return super.onStart();
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onExit()
-	 */
-	@Override
-	public void onExit()
-	{
-		getEffected().stopAbnormalEffect(AbnormalEffect.HOLD_1);
-		getEffected().stopParalyze(false);
-		super.onExit();
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onActionTime()
-	 */
-	@Override
-	public boolean onActionTime()
-	{
-		return false;
-	}
-
-	/* (non-Javadoc)
-	 * @see com.l2jserver.gameserver.model.L2Effect#getEffectFlags()
-	 */
-	@Override
-	public int getEffectFlags()
-	{
-		return CharEffectList.EFFECT_FLAG_PARALYZED;
-	}
-}

+ 0 - 83
L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectPetrification.java

@@ -1,83 +0,0 @@
-/*
- * 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.l2jserver.gameserver.skills.effects;
-
-import com.l2jserver.gameserver.model.CharEffectList;
-import com.l2jserver.gameserver.model.L2Effect;
-import com.l2jserver.gameserver.skills.AbnormalEffect;
-import com.l2jserver.gameserver.skills.Env;
-import com.l2jserver.gameserver.templates.effects.EffectTemplate;
-import com.l2jserver.gameserver.templates.skills.L2EffectType;
-
-public class EffectPetrification extends L2Effect
-{
-	public EffectPetrification(Env env, EffectTemplate template)
-	{
-		super(env, template);
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#getEffectType()
-	 */
-	@Override
-	public L2EffectType getEffectType()
-	{
-		return L2EffectType.PETRIFICATION;
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onStart()
-	 */
-	@Override
-	public boolean onStart()
-	{
-		getEffected().startAbnormalEffect(AbnormalEffect.HOLD_2);
-		getEffected().startParalyze();
-		return super.onStart();
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onExit()
-	 */
-	@Override
-	public void onExit()
-	{
-		getEffected().stopAbnormalEffect(AbnormalEffect.HOLD_2);
-		getEffected().stopParalyze(false);
-		super.onExit();
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onActionTime()
-	 */
-	@Override
-	public boolean onActionTime()
-	{
-		return false;
-	}
-
-	/* (non-Javadoc)
-	 * @see com.l2jserver.gameserver.model.L2Effect#getEffectFlags()
-	 */
-	@Override
-	public int getEffectFlags()
-	{
-		return CharEffectList.EFFECT_FLAG_PARALYZED | CharEffectList.EFFECT_FLAG_INVUL;
-	}
-}

+ 0 - 84
L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectPhoenixBless.java

@@ -1,84 +0,0 @@
-/*
- * 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.l2jserver.gameserver.skills.effects;
-
-import com.l2jserver.gameserver.model.CharEffectList;
-import com.l2jserver.gameserver.model.L2Effect;
-import com.l2jserver.gameserver.model.actor.L2Playable;
-import com.l2jserver.gameserver.skills.Env;
-import com.l2jserver.gameserver.templates.effects.EffectTemplate;
-import com.l2jserver.gameserver.templates.skills.L2EffectType;
-
-/**
- * @author Faror
- */
-public class EffectPhoenixBless extends L2Effect
-{
-	public EffectPhoenixBless(Env env, EffectTemplate template)
-	{
-		super(env, template);
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#getEffectType()
-	 */
-	@Override
-	public L2EffectType getEffectType()
-	{
-		return L2EffectType.PHOENIX_BLESSING;
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onStart()
-	 */
-	@Override
-	public boolean onStart()
-	{
-		return true;
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onExit()
-	 */
-	@Override
-	public void onExit()
-	{
-		if (getEffected() instanceof L2Playable)
-			((L2Playable) getEffected()).stopPhoenixBlessing(this);
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onActionTime()
-	 */
-	@Override
-	public boolean onActionTime()
-	{
-		// just stop this effect
-		return false;
-	}
-
-	/* (non-Javadoc)
-	 * @see com.l2jserver.gameserver.model.L2Effect#getEffectFlags()
-	 */
-	@Override
-	public int getEffectFlags()
-	{
-		return CharEffectList.EFFECT_FLAG_PHOENIX_BLESSING;
-	}
-}

+ 0 - 84
L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectPhysicalAttackMute.java

@@ -1,84 +0,0 @@
-/*
- * 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.l2jserver.gameserver.skills.effects;
-
-import com.l2jserver.gameserver.model.CharEffectList;
-import com.l2jserver.gameserver.model.L2Effect;
-import com.l2jserver.gameserver.skills.Env;
-import com.l2jserver.gameserver.templates.effects.EffectTemplate;
-import com.l2jserver.gameserver.templates.skills.L2EffectType;
-
-/**
- * @author -Rnn-
- * 
- */
-public class EffectPhysicalAttackMute extends L2Effect
-{
-	public EffectPhysicalAttackMute(Env env, EffectTemplate template)
-	{
-		super(env, template);
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#getEffectType()
-	 */
-	@Override
-	public L2EffectType getEffectType()
-	{
-		return L2EffectType.PHYSICAL_ATTACK_MUTE;
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onStart()
-	 */
-	@Override
-	public boolean onStart()
-	{
-		getEffected().startPhysicalAttackMuted();
-		return true;
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onActionTime()
-	 */
-	@Override
-	public boolean onActionTime()
-	{
-		// Simply stop the effect
-		return false;
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onExit()
-	 */
-	@Override
-	public void onExit()
-	{
-		getEffected().stopPhysicalAttackMuted(this);
-	}
-
-	/* (non-Javadoc)
-	 * @see com.l2jserver.gameserver.model.L2Effect#getEffectFlags()
-	 */
-	@Override
-	public int getEffectFlags()
-	{
-		return CharEffectList.EFFECT_FLAG_PSYCHICAL_ATTACK_MUTED;
-	}
-}

+ 0 - 85
L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectPhysicalMute.java

@@ -1,85 +0,0 @@
-/*
- * 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.l2jserver.gameserver.skills.effects;
-
-import com.l2jserver.gameserver.model.CharEffectList;
-import com.l2jserver.gameserver.model.L2Effect;
-import com.l2jserver.gameserver.skills.Env;
-import com.l2jserver.gameserver.templates.effects.EffectTemplate;
-import com.l2jserver.gameserver.templates.skills.L2EffectType;
-
-/**
- * @author -Nemesiss-
- * 
- */
-public class EffectPhysicalMute extends L2Effect
-{
-	public EffectPhysicalMute(Env env, EffectTemplate template)
-	{
-		super(env, template);
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#getEffectType()
-	 */
-	@Override
-	public L2EffectType getEffectType()
-	{
-		return L2EffectType.PHYSICAL_MUTE;
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onStart()
-	 */
-	@Override
-	public boolean onStart()
-	{
-		getEffected().startPsychicalMuted();
-		return true;
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onActionTime()
-	 */
-	@Override
-	public boolean onActionTime()
-	{
-		// Simply stop the effect
-		return false;
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onExit()
-	 */
-	@Override
-	public void onExit()
-	{
-		getEffected().stopPsychicalMuted(false);
-	}
-	
-	
-	/* (non-Javadoc)
-	 * @see com.l2jserver.gameserver.model.L2Effect#getEffectFlags()
-	 */
-	@Override
-	public int getEffectFlags()
-	{
-		return CharEffectList.EFFECT_FLAG_PSYCHICAL_MUTED;
-	}
-}

+ 0 - 70
L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectProtectionBlessing.java

@@ -1,70 +0,0 @@
-/*
- * 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.l2jserver.gameserver.skills.effects;
-
-import com.l2jserver.gameserver.model.CharEffectList;
-import com.l2jserver.gameserver.model.L2Effect;
-import com.l2jserver.gameserver.model.actor.L2Playable;
-import com.l2jserver.gameserver.skills.Env;
-import com.l2jserver.gameserver.templates.effects.EffectTemplate;
-import com.l2jserver.gameserver.templates.skills.L2EffectType;
-
-/**
- * @author kerberos_20
- *
- */
-public class EffectProtectionBlessing extends L2Effect
-{
-	public EffectProtectionBlessing(Env env, EffectTemplate template)
-	{
-		super(env, template);
-	}
-	
-	@Override
-	public L2EffectType getEffectType()
-	{
-		return L2EffectType.PROTECTION_BLESSING;
-	}
-	
-	/** Notify started */
-	@Override
-	public boolean onStart()
-	{
-		return false;
-	}
-	
-	/** Notify exited */
-	@Override
-	public void onExit()
-	{
-		((L2Playable) getEffected()).stopProtectionBlessing(this);
-	}
-	
-	@Override
-	public boolean onActionTime()
-	{
-		// just stop this effect
-		return false;
-	}
-
-	/* (non-Javadoc)
-	 * @see com.l2jserver.gameserver.model.L2Effect#getEffectFlags()
-	 */
-	@Override
-	public int getEffectFlags()
-	{
-		return CharEffectList.EFFECT_FLAG_PROTECTION_BLESSING;
-	}
-}

+ 0 - 102
L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectRandomizeHate.java

@@ -1,102 +0,0 @@
-/*
- * 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.l2jserver.gameserver.skills.effects;
-
-import java.util.Collection;
-import java.util.List;
-
-import javolution.util.FastList;
-
-import com.l2jserver.gameserver.model.L2Effect;
-import com.l2jserver.gameserver.model.actor.L2Attackable;
-import com.l2jserver.gameserver.model.actor.L2Character;
-import com.l2jserver.gameserver.skills.Env;
-import com.l2jserver.gameserver.templates.effects.EffectTemplate;
-import com.l2jserver.gameserver.templates.skills.L2EffectType;
-import com.l2jserver.util.Rnd;
-
-public class EffectRandomizeHate extends L2Effect
-{
-	public EffectRandomizeHate(Env env, EffectTemplate template)
-	{
-		super(env, template);
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#getEffectType()
-	 */
-	@Override
-	public L2EffectType getEffectType()
-	{
-		return L2EffectType.RANDOMIZE_HATE;
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onStart()
-	 */
-	@Override
-	public boolean onStart()
-	{
-		if (getEffected() == null || getEffected() == getEffector())
-			return false;
-		
-		// Effect is for mobs only.
-		if (!(getEffected() instanceof L2Attackable))
-			return false;
-		
-		L2Attackable effectedMob = (L2Attackable) getEffected();
-		
-		List<L2Character> targetList = new FastList<L2Character>();
-		
-		// Getting the possible targets
-		
-		Collection<L2Character> chars = getEffected().getKnownList().getKnownCharacters();
-		for (L2Character cha : chars)
-		{
-			if (cha != null && (cha != effectedMob) && (cha != getEffector()))
-			{
-				// Aggro cannot be transfared to a mob of the same faction.
-				if (cha instanceof L2Attackable && ((L2Attackable) cha).getFactionId() != null && ((L2Attackable) cha).getFactionId().equals(effectedMob.getFactionId()))
-					continue;
-				
-				targetList.add(cha);
-			}
-		}
-		// if there is no target, exit function
-		if (targetList.isEmpty())
-			return true;
-		
-		// Choosing randomly a new target
-		final L2Character target = targetList.get(Rnd.get(targetList.size()));
-		
-		final int hate = effectedMob.getHating(getEffector());
-		effectedMob.stopHating(getEffector());
-		effectedMob.addDamageHate(target, 0, hate);
-		
-		return true;
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onActionTime()
-	 */
-	@Override
-	public boolean onActionTime()
-	{
-		return false;
-	}
-}

+ 0 - 77
L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectRecovery.java

@@ -1,77 +0,0 @@
-/*
- * 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.l2jserver.gameserver.skills.effects;
-
-import com.l2jserver.gameserver.model.L2Effect;
-import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
-import com.l2jserver.gameserver.skills.Env;
-import com.l2jserver.gameserver.templates.effects.EffectTemplate;
-import com.l2jserver.gameserver.templates.skills.L2EffectType;
-
-/**
- * @author Kerberos
- * 
- */
-public class EffectRecovery extends L2Effect
-{
-	public EffectRecovery(Env env, EffectTemplate template)
-	{
-		super(env, template);
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#getEffectType()
-	 */
-	@Override
-	public L2EffectType getEffectType()
-	{
-		return L2EffectType.BUFF;
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onStart()
-	 */
-	@Override
-	public boolean onStart()
-	{
-		if (getEffected() instanceof L2PcInstance)
-		{
-			((L2PcInstance) getEffected()).reduceDeathPenaltyBuffLevel();
-			return true;
-		}
-		return false;
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onExit()
-	 */
-	@Override
-	public void onExit()
-	{
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onActionTime()
-	 */
-	@Override
-	public boolean onActionTime()
-	{
-		return false;
-	}
-}

+ 0 - 118
L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectRelax.java

@@ -1,118 +0,0 @@
-/*
- * 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.l2jserver.gameserver.skills.effects;
-
-import com.l2jserver.gameserver.ai.CtrlIntention;
-import com.l2jserver.gameserver.model.CharEffectList;
-import com.l2jserver.gameserver.model.L2Effect;
-import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
-import com.l2jserver.gameserver.network.SystemMessageId;
-import com.l2jserver.gameserver.network.serverpackets.SystemMessage;
-import com.l2jserver.gameserver.skills.Env;
-import com.l2jserver.gameserver.templates.effects.EffectTemplate;
-import com.l2jserver.gameserver.templates.skills.L2EffectType;
-
-public class EffectRelax extends L2Effect
-{
-	public EffectRelax(Env env, EffectTemplate template)
-	{
-		super(env, template);
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#getEffectType()
-	 */
-	@Override
-	public L2EffectType getEffectType()
-	{
-		return L2EffectType.RELAXING;
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onStart()
-	 */
-	@Override
-	public boolean onStart()
-	{
-		if (getEffected() instanceof L2PcInstance)
-		{
-			((L2PcInstance) getEffected()).sitDown(false);
-		}
-		else
-			getEffected().getAI().setIntention(CtrlIntention.AI_INTENTION_REST);
-		return super.onStart();
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onExit()
-	 */
-	@Override
-	public void onExit()
-	{
-		super.onExit();
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onActionTime()
-	 */
-	@Override
-	public boolean onActionTime()
-	{
-		if (getEffected().isDead())
-			return false;
-		
-		if (getEffected() instanceof L2PcInstance)
-		{
-			if (!((L2PcInstance) getEffected()).isSitting())
-				return false;
-		}
-		
-		if (getEffected().getCurrentHp() + 1 > getEffected().getMaxRecoverableHp())
-		{
-			if (getSkill().isToggle())
-			{
-				getEffected().sendPacket(SystemMessage.getSystemMessage(SystemMessageId.SKILL_DEACTIVATED_HP_FULL));
-				return false;
-			}
-		}
-		
-		double manaDam = calc();
-		
-		if (manaDam > getEffected().getCurrentMp())
-		{
-			if (getSkill().isToggle())
-			{
-				getEffected().sendPacket(SystemMessage.getSystemMessage(SystemMessageId.SKILL_REMOVED_DUE_LACK_MP));
-				return false;
-			}
-		}
-		
-		getEffected().reduceCurrentMp(manaDam);
-		return true;
-	}
-
-	/* (non-Javadoc)
-	 * @see com.l2jserver.gameserver.model.L2Effect#getEffectFlags()
-	 */
-	@Override
-	public int getEffectFlags()
-	{
-		return CharEffectList.EFFECT_FLAG_RELAXING;
-	}
-}

+ 0 - 78
L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectRemoveTarget.java

@@ -1,78 +0,0 @@
-/*
- * 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.l2jserver.gameserver.skills.effects;
-
-import com.l2jserver.gameserver.ai.CtrlIntention;
-import com.l2jserver.gameserver.model.L2Effect;
-import com.l2jserver.gameserver.skills.Env;
-import com.l2jserver.gameserver.templates.effects.EffectTemplate;
-import com.l2jserver.gameserver.templates.skills.L2EffectType;
-
-/**
- * @author -Nemesiss-
- * 
- */
-public class EffectRemoveTarget extends L2Effect
-{
-	public EffectRemoveTarget(Env env, EffectTemplate template)
-	{
-		super(env, template);
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#getEffectType()
-	 */
-	@Override
-	public L2EffectType getEffectType()
-	{
-		return L2EffectType.REMOVE_TARGET;
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onStart()
-	 */
-	@Override
-	public boolean onStart()
-	{
-		getEffected().setTarget(null);
-		getEffected().abortAttack();
-		getEffected().abortCast();
-		getEffected().getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE, getEffector());
-		return true;
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onExit()
-	 */
-	@Override
-	public void onExit()
-	{
-		// nothing
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onActionTime()
-	 */
-	@Override
-	public boolean onActionTime()
-	{
-		// nothing
-		return false;
-	}
-}

+ 0 - 67
L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectRoot.java

@@ -1,67 +0,0 @@
-/*
- * 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.l2jserver.gameserver.skills.effects;
-
-import com.l2jserver.gameserver.model.CharEffectList;
-import com.l2jserver.gameserver.model.L2Effect;
-import com.l2jserver.gameserver.skills.Env;
-import com.l2jserver.gameserver.templates.effects.EffectTemplate;
-import com.l2jserver.gameserver.templates.skills.L2EffectType;
-
-/**
- * @author mkizub
- */
-public class EffectRoot extends L2Effect
-{
-	public EffectRoot(Env env, EffectTemplate template)
-	{
-		super(env, template);
-	}
-	
-	@Override
-	public L2EffectType getEffectType()
-	{
-		return L2EffectType.ROOT;
-	}
-	
-	@Override
-	public boolean onStart()
-	{
-		getEffected().startRooted();
-		return true;
-	}
-	
-	@Override
-	public void onExit()
-	{
-		getEffected().stopRooting(false);
-	}
-	
-	@Override
-	public boolean onActionTime()
-	{
-		// just stop this effect
-		return false;
-	}
-
-	/* (non-Javadoc)
-	 * @see com.l2jserver.gameserver.model.L2Effect#getEffectFlags()
-	 */
-	@Override
-	public int getEffectFlags()
-	{
-		return CharEffectList.EFFECT_FLAG_ROOTED;
-	}
-}

+ 0 - 121
L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectSignet.java

@@ -1,121 +0,0 @@
-/*
- * 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.l2jserver.gameserver.skills.effects;
-
-import javolution.util.FastList;
-
-import com.l2jserver.gameserver.datatables.SkillTable;
-import com.l2jserver.gameserver.model.L2Effect;
-import com.l2jserver.gameserver.model.L2Skill;
-import com.l2jserver.gameserver.model.actor.L2Character;
-import com.l2jserver.gameserver.model.actor.instance.L2EffectPointInstance;
-import com.l2jserver.gameserver.network.SystemMessageId;
-import com.l2jserver.gameserver.network.serverpackets.MagicSkillUse;
-import com.l2jserver.gameserver.network.serverpackets.SystemMessage;
-import com.l2jserver.gameserver.skills.Env;
-import com.l2jserver.gameserver.skills.l2skills.L2SkillSignet;
-import com.l2jserver.gameserver.skills.l2skills.L2SkillSignetCasttime;
-import com.l2jserver.gameserver.templates.effects.EffectTemplate;
-import com.l2jserver.gameserver.templates.skills.L2EffectType;
-
-/**
- * @authors Forsaiken, Sami
- */
-public class EffectSignet extends L2Effect
-{
-	private L2Skill _skill;
-	private L2EffectPointInstance _actor;
-	private boolean _srcInArena;
-	
-	public EffectSignet(Env env, EffectTemplate template)
-	{
-		super(env, template);
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#getEffectType()
-	 */
-	@Override
-	public L2EffectType getEffectType()
-	{
-		return L2EffectType.SIGNET_EFFECT;
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onStart()
-	 */
-	@Override
-	public boolean onStart()
-	{
-		if (getSkill() instanceof L2SkillSignet)
-			_skill = SkillTable.getInstance().getInfo(((L2SkillSignet) getSkill()).effectId, getLevel());
-		else if (getSkill() instanceof L2SkillSignetCasttime)
-			_skill = SkillTable.getInstance().getInfo(((L2SkillSignetCasttime) getSkill()).effectId, getLevel());
-		_actor = (L2EffectPointInstance) getEffected();
-		_srcInArena = (getEffector().isInsideZone(L2Character.ZONE_PVP) && !getEffector().isInsideZone(L2Character.ZONE_SIEGE));
-		return true;
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onActionTime()
-	 */
-	@Override
-	public boolean onActionTime()
-	{
-		if (_skill == null)
-			return true;
-		int mpConsume = _skill.getMpConsume();
-		
-		if (mpConsume > getEffector().getCurrentMp())
-		{
-			getEffector().sendPacket(SystemMessage.getSystemMessage(SystemMessageId.SKILL_REMOVED_DUE_LACK_MP));
-			return false;
-		}
-		
-		getEffector().reduceCurrentMp(mpConsume);
-		FastList<L2Character> targets = FastList.newInstance();
-		for (L2Character cha : _actor.getKnownList().getKnownCharactersInRadius(getSkill().getSkillRadius()))
-		{
-			if (cha == null)
-				continue;
-			
-			if (_skill.isOffensive() && !L2Skill.checkForAreaOffensiveSkills(getEffector(), cha, _skill, _srcInArena))
-				continue;
-			
-			// there doesn't seem to be a visible effect with MagicSkillLaunched packet...
-			_actor.broadcastPacket(new MagicSkillUse(_actor, cha, _skill.getId(), _skill.getLevel(), 0, 0));
-			targets.add(cha);
-		}
-		
-		if (!targets.isEmpty())
-			getEffector().callSkill(_skill, targets.toArray(new L2Character[targets.size()]));
-		FastList.recycle(targets);
-		return true;
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onExit()
-	 */
-	@Override
-	public void onExit()
-	{
-		if (_actor != null)
-			_actor.deleteMe();
-	}
-}

+ 0 - 119
L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectSignetAntiSummon.java

@@ -1,119 +0,0 @@
-/*
- * 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.l2jserver.gameserver.skills.effects;
-
-import com.l2jserver.gameserver.ai.CtrlEvent;
-import com.l2jserver.gameserver.model.L2Effect;
-import com.l2jserver.gameserver.model.actor.L2Character;
-import com.l2jserver.gameserver.model.actor.L2Playable;
-import com.l2jserver.gameserver.model.actor.L2Summon;
-import com.l2jserver.gameserver.model.actor.instance.L2EffectPointInstance;
-import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
-import com.l2jserver.gameserver.network.SystemMessageId;
-import com.l2jserver.gameserver.network.serverpackets.SystemMessage;
-import com.l2jserver.gameserver.skills.Env;
-import com.l2jserver.gameserver.templates.effects.EffectTemplate;
-import com.l2jserver.gameserver.templates.skills.L2EffectType;
-
-/**
- * @author Forsaiken
- */
-public class EffectSignetAntiSummon extends L2Effect
-{
-	private L2EffectPointInstance _actor;
-	
-	public EffectSignetAntiSummon(Env env, EffectTemplate template)
-	{
-		super(env, template);
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#getEffectType()
-	 */
-	@Override
-	public L2EffectType getEffectType()
-	{
-		return L2EffectType.SIGNET_GROUND;
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onStart()
-	 */
-	@Override
-	public boolean onStart()
-	{
-		_actor = (L2EffectPointInstance) getEffected();
-		return true;
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onActionTime()
-	 */
-	@Override
-	public boolean onActionTime()
-	{
-		if (getCount() == getTotalCount() - 1)
-			return true; // do nothing first time
-		int mpConsume = getSkill().getMpConsume();
-		
-		L2PcInstance caster = (L2PcInstance) getEffector();
-		
-		for (L2Character cha : _actor.getKnownList().getKnownCharactersInRadius(getSkill().getSkillRadius()))
-		{
-			if (cha == null)
-				continue;
-			
-			if (cha instanceof L2Playable)
-			{
-				if (caster.canAttackCharacter(cha))
-				{
-					L2PcInstance owner = null;
-					if (cha instanceof L2Summon)
-						owner = ((L2Summon) cha).getOwner();
-					else
-						owner = (L2PcInstance) cha;
-					
-					if (owner != null && owner.getPet() != null)
-					{
-						if (mpConsume > getEffector().getCurrentMp())
-						{
-							getEffector().sendPacket(SystemMessage.getSystemMessage(SystemMessageId.SKILL_REMOVED_DUE_LACK_MP));
-							return false;
-						}
-						
-						getEffector().reduceCurrentMp(mpConsume);
-						owner.getPet().unSummon(owner);
-						owner.getAI().notifyEvent(CtrlEvent.EVT_ATTACKED, getEffector());
-					}
-				}
-			}
-		}
-		return true;
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onExit()
-	 */
-	@Override
-	public void onExit()
-	{
-		if (_actor != null)
-			_actor.deleteMe();
-	}
-}

+ 0 - 210
L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectSignetMDam.java

@@ -1,210 +0,0 @@
-/*
- * 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/>.
- */
-
-/**
- * @author Forsaiken
- */
-package com.l2jserver.gameserver.skills.effects;
-
-import javolution.util.FastList;
-
-import com.l2jserver.gameserver.ai.CtrlEvent;
-import com.l2jserver.gameserver.datatables.NpcTable;
-import com.l2jserver.gameserver.idfactory.IdFactory;
-import com.l2jserver.gameserver.model.L2Effect;
-import com.l2jserver.gameserver.model.L2ItemInstance;
-import com.l2jserver.gameserver.model.L2Skill;
-import com.l2jserver.gameserver.model.actor.L2Attackable;
-import com.l2jserver.gameserver.model.actor.L2Character;
-import com.l2jserver.gameserver.model.actor.L2Playable;
-import com.l2jserver.gameserver.model.actor.L2Summon;
-import com.l2jserver.gameserver.model.actor.instance.L2EffectPointInstance;
-import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
-import com.l2jserver.gameserver.network.SystemMessageId;
-import com.l2jserver.gameserver.network.serverpackets.MagicSkillLaunched;
-import com.l2jserver.gameserver.network.serverpackets.SystemMessage;
-import com.l2jserver.gameserver.skills.Env;
-import com.l2jserver.gameserver.skills.Formulas;
-import com.l2jserver.gameserver.skills.l2skills.L2SkillSignetCasttime;
-import com.l2jserver.gameserver.templates.chars.L2NpcTemplate;
-import com.l2jserver.gameserver.templates.effects.EffectTemplate;
-import com.l2jserver.gameserver.templates.skills.L2EffectType;
-import com.l2jserver.gameserver.util.Point3D;
-
-public class EffectSignetMDam extends L2Effect
-{
-	private L2EffectPointInstance _actor;
-	
-	public EffectSignetMDam(Env env, EffectTemplate template)
-	{
-		super(env, template);
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#getEffectType()
-	 */
-	@Override
-	public L2EffectType getEffectType()
-	{
-		return L2EffectType.SIGNET_GROUND;
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onStart()
-	 */
-	@Override
-	public boolean onStart()
-	{
-		L2NpcTemplate template;
-		if (getSkill() instanceof L2SkillSignetCasttime)
-			template = NpcTable.getInstance().getTemplate(((L2SkillSignetCasttime) getSkill())._effectNpcId);
-		else
-			return false;
-		
-		L2EffectPointInstance effectPoint = new L2EffectPointInstance(IdFactory.getInstance().getNextId(), template, getEffector());
-		effectPoint.setCurrentHp(effectPoint.getMaxHp());
-		effectPoint.setCurrentMp(effectPoint.getMaxMp());
-		//L2World.getInstance().storeObject(effectPoint);
-		
-		int x = getEffector().getX();
-		int y = getEffector().getY();
-		int z = getEffector().getZ();
-		
-		if (getEffector() instanceof L2PcInstance
-				&& getSkill().getTargetType() == L2Skill.SkillTargetType.TARGET_GROUND)
-		{
-			Point3D wordPosition = ((L2PcInstance) getEffector()).getCurrentSkillWorldPosition();
-			
-			if (wordPosition != null)
-			{
-				x = wordPosition.getX();
-				y = wordPosition.getY();
-				z = wordPosition.getZ();
-			}
-		}
-		effectPoint.setIsInvul(true);
-		effectPoint.spawnMe(x, y, z);
-		
-		_actor = effectPoint;
-		return true;
-		
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onActionTime()
-	 */
-	@Override
-	public boolean onActionTime()
-	{
-		if (getCount() >= getTotalCount() - 2)
-			return true; // do nothing first 2 times
-		int mpConsume = getSkill().getMpConsume();
-		
-		L2PcInstance caster = (L2PcInstance) getEffector();
-		
-		boolean ss = false;
-		boolean bss = false;
-		
-		L2ItemInstance weaponInst = caster.getActiveWeaponInstance();
-		if (weaponInst != null)
-		{
-			switch (weaponInst.getChargedSpiritshot())
-			{
-				case L2ItemInstance.CHARGED_BLESSED_SPIRITSHOT:
-					weaponInst.setChargedSpiritshot(L2ItemInstance.CHARGED_NONE);
-					bss = true;
-					break;
-				case L2ItemInstance.CHARGED_SPIRITSHOT:
-					weaponInst.setChargedSpiritshot(L2ItemInstance.CHARGED_NONE);
-					ss = true;
-					break;
-			}
-		}
-		
-		FastList<L2Character> targets = new FastList<L2Character>();
-		
-		for (L2Character cha : _actor.getKnownList().getKnownCharactersInRadius(getSkill().getSkillRadius()))
-		{
-			if (cha == null || cha == caster)
-				continue;
-			
-			if (cha instanceof L2Attackable || cha instanceof L2Playable)
-			{
-				if (cha.isAlikeDead())
-					continue;
-				
-				if (mpConsume > caster.getCurrentMp())
-				{
-					caster.sendPacket(SystemMessage.getSystemMessage(SystemMessageId.SKILL_REMOVED_DUE_LACK_MP));
-					return false;
-				}
-				
-				caster.reduceCurrentMp(mpConsume);
-				if (cha instanceof L2Playable)
-				{
-					if (caster.canAttackCharacter(cha))
-					{
-						targets.add(cha);
-						caster.updatePvPStatus(cha);
-					}
-				}
-				else
-					targets.add(cha);
-			}
-		}
-		
-		if (!targets.isEmpty())
-		{
-			caster.broadcastPacket(new MagicSkillLaunched(caster, getSkill().getId(), getSkill().getLevel(), targets.toArray(new L2Character[targets.size()])));
-			for (L2Character target : targets)
-			{
-				boolean mcrit = Formulas.calcMCrit(caster.getMCriticalHit(target, getSkill()));
-				byte shld = Formulas.calcShldUse(caster, target, getSkill());
-				int mdam = (int) Formulas.calcMagicDam(caster, target, getSkill(), shld, ss, bss, mcrit);
-				
-				if (target instanceof L2Summon)
-					target.broadcastStatusUpdate();
-				
-				if (mdam > 0)
-				{
-					if (!target.isRaid()
-							&& Formulas.calcAtkBreak(target, mdam))
-					{
-						target.breakAttack();
-						target.breakCast();
-					}
-					caster.sendDamageMessage(target, mdam, mcrit, false, false);
-					target.reduceCurrentHp(mdam, caster, getSkill());
-				}
-				target.getAI().notifyEvent(CtrlEvent.EVT_ATTACKED, caster);
-			}
-		}
-		return true;
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onExit()
-	 */
-	@Override
-	public void onExit()
-	{
-		if (_actor != null)
-			_actor.deleteMe();
-	}
-}

+ 0 - 102
L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectSignetNoise.java

@@ -1,102 +0,0 @@
-/*
- * 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.l2jserver.gameserver.skills.effects;
-
-import com.l2jserver.gameserver.model.L2Effect;
-import com.l2jserver.gameserver.model.actor.L2Character;
-import com.l2jserver.gameserver.model.actor.instance.L2EffectPointInstance;
-import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
-import com.l2jserver.gameserver.skills.Env;
-import com.l2jserver.gameserver.templates.effects.EffectTemplate;
-import com.l2jserver.gameserver.templates.skills.L2EffectType;
-
-/**
- * @authors Forsaiken, Sami
- */
-public class EffectSignetNoise extends L2Effect
-{
-	private L2EffectPointInstance _actor;
-	
-	public EffectSignetNoise(Env env, EffectTemplate template)
-	{
-		super(env, template);
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#getEffectType()
-	 */
-	@Override
-	public L2EffectType getEffectType()
-	{
-		return L2EffectType.SIGNET_GROUND;
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onStart()
-	 */
-	@Override
-	public boolean onStart()
-	{
-		_actor = (L2EffectPointInstance) getEffected();
-		return true;
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onActionTime()
-	 */
-	@Override
-	public boolean onActionTime()
-	{
-		if (getCount() == getTotalCount() - 1)
-			return true; // do nothing first time
-		
-		L2PcInstance caster = (L2PcInstance) getEffector();
-		
-		for (L2Character target : _actor.getKnownList().getKnownCharactersInRadius(getSkill().getSkillRadius()))
-		{
-			if (target == null || target == caster)
-				continue;
-			
-			if (caster.canAttackCharacter(target))
-			{
-				L2Effect[] effects = target.getAllEffects();
-				if (effects != null)
-				{
-					for (L2Effect effect : effects)
-					{
-						if (effect.getSkill().isDance())
-							effect.exit();
-					}
-				}
-			}
-		}
-		return true;
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onExit()
-	 */
-	@Override
-	public void onExit()
-	{
-		if (_actor != null)
-			_actor.deleteMe();
-	}
-}

+ 0 - 81
L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectSilenceMagicPhysical.java

@@ -1,81 +0,0 @@
-/*
- * 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.l2jserver.gameserver.skills.effects;
-
-import com.l2jserver.gameserver.model.CharEffectList;
-import com.l2jserver.gameserver.model.L2Effect;
-import com.l2jserver.gameserver.skills.Env;
-import com.l2jserver.gameserver.templates.effects.EffectTemplate;
-import com.l2jserver.gameserver.templates.skills.L2EffectType;
-
-public class EffectSilenceMagicPhysical extends L2Effect
-{
-	public EffectSilenceMagicPhysical(Env env, EffectTemplate template)
-	{
-		super(env, template);
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#getEffectType()
-	 */
-	@Override
-	public L2EffectType getEffectType()
-	{
-		return L2EffectType.SILENCE_MAGIC_PHYSICAL;
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onStart()
-	 */
-	@Override
-	public boolean onStart()
-	{
-		getEffected().startMuted();
-		getEffected().startPsychicalMuted();
-		return true;
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onActionTime()
-	 */
-	@Override
-	public boolean onActionTime()
-	{
-		return false;
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onExit()
-	 */
-	@Override
-	public void onExit()
-	{
-		getEffected().stopMuted(false);
-		getEffected().stopPsychicalMuted(false);
-	}
-	
-	/* (non-Javadoc)
-	 * @see com.l2jserver.gameserver.model.L2Effect#getEffectFlags()
-	 */
-	@Override
-	public int getEffectFlags()
-	{
-		return CharEffectList.EFFECT_FLAG_MUTED | CharEffectList.EFFECT_FLAG_PSYCHICAL_MUTED;
-	}
-}

+ 0 - 114
L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectSilentMove.java

@@ -1,114 +0,0 @@
-/*
- * 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.l2jserver.gameserver.skills.effects;
-
-import com.l2jserver.gameserver.model.CharEffectList;
-import com.l2jserver.gameserver.model.L2Effect;
-import com.l2jserver.gameserver.network.SystemMessageId;
-import com.l2jserver.gameserver.network.serverpackets.SystemMessage;
-import com.l2jserver.gameserver.skills.Env;
-import com.l2jserver.gameserver.templates.effects.EffectTemplate;
-import com.l2jserver.gameserver.templates.skills.L2EffectType;
-import com.l2jserver.gameserver.templates.skills.L2SkillType;
-
-public class EffectSilentMove extends L2Effect
-{
-	public EffectSilentMove(Env env, EffectTemplate template)
-	{
-		super(env, template);
-	}
-	
-	// Special constructor to steal this effect
-	public EffectSilentMove(Env env, L2Effect effect)
-	{
-		super(env, effect);
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#effectCanBeStolen()
-	 */
-	@Override
-	protected boolean effectCanBeStolen()
-	{
-		return true;
-	}
-
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onStart()
-	 */
-	@Override
-	public boolean onStart()
-	{
-		super.onStart();
-		return true;
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onExit()
-	 */
-	@Override
-	public void onExit()
-	{
-		super.onExit();
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#getEffectType()
-	 */
-	@Override
-	public L2EffectType getEffectType()
-	{
-		return L2EffectType.SILENT_MOVE;
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onActionTime()
-	 */
-	@Override
-	public boolean onActionTime()
-	{
-		// Only cont skills shouldn't end
-		if (getSkill().getSkillType() != L2SkillType.CONT)
-			return false;
-		
-		if (getEffected().isDead())
-			return false;
-		
-		double manaDam = calc();
-		
-		if (manaDam > getEffected().getCurrentMp())
-		{
-			getEffected().sendPacket(SystemMessage.getSystemMessage(SystemMessageId.SKILL_REMOVED_DUE_LACK_MP));
-			return false;
-		}
-		
-		getEffected().reduceCurrentMp(manaDam);
-		return true;
-	}
-	
-	/* (non-Javadoc)
-	 * @see com.l2jserver.gameserver.model.L2Effect#getEffectFlags()
-	 */
-	@Override
-	public int getEffectFlags()
-	{
-		return CharEffectList.EFFECT_FLAG_SILENT_MOVE;
-	}
-}

+ 0 - 84
L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectSleep.java

@@ -1,84 +0,0 @@
-/*
- * 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.l2jserver.gameserver.skills.effects;
-
-import com.l2jserver.gameserver.model.CharEffectList;
-import com.l2jserver.gameserver.model.L2Effect;
-import com.l2jserver.gameserver.skills.Env;
-import com.l2jserver.gameserver.templates.effects.EffectTemplate;
-import com.l2jserver.gameserver.templates.skills.L2EffectType;
-
-/**
- * @author mkizub
- * 
- */
-public class EffectSleep extends L2Effect
-{
-	public EffectSleep(Env env, EffectTemplate template)
-	{
-		super(env, template);
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#getEffectType()
-	 */
-	@Override
-	public L2EffectType getEffectType()
-	{
-		return L2EffectType.SLEEP;
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onStart()
-	 */
-	@Override
-	public boolean onStart()
-	{
-		getEffected().startSleeping();
-		return true;
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onExit()
-	 */
-	@Override
-	public void onExit()
-	{
-		getEffected().stopSleeping(false);
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onActionTime()
-	 */
-	@Override
-	public boolean onActionTime()
-	{
-		// just stop this effect
-		return false;
-	}
-
-	/* (non-Javadoc)
-	 * @see com.l2jserver.gameserver.model.L2Effect#getEffectFlags()
-	 */
-	@Override
-	public int getEffectFlags()
-	{
-		return CharEffectList.EFFECT_FLAG_SLEEP;
-	}
-}

+ 0 - 105
L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectSpoil.java

@@ -1,105 +0,0 @@
-/*
- * 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.l2jserver.gameserver.skills.effects;
-
-import com.l2jserver.gameserver.ai.CtrlEvent;
-import com.l2jserver.gameserver.model.L2Effect;
-import com.l2jserver.gameserver.model.actor.instance.L2MonsterInstance;
-import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
-import com.l2jserver.gameserver.network.SystemMessageId;
-import com.l2jserver.gameserver.network.serverpackets.SystemMessage;
-import com.l2jserver.gameserver.skills.Env;
-import com.l2jserver.gameserver.skills.Formulas;
-import com.l2jserver.gameserver.templates.effects.EffectTemplate;
-import com.l2jserver.gameserver.templates.skills.L2EffectType;
-
-/**
- * 
- * @author Ahmed
- * 
- *         This is the Effect support for spoil.
- * 
- *         This was originally done by _drunk_
- */
-public class EffectSpoil extends L2Effect
-{
-	public EffectSpoil(Env env, EffectTemplate template)
-	{
-		super(env, template);
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#getEffectType()
-	 */
-	@Override
-	public L2EffectType getEffectType()
-	{
-		return L2EffectType.SPOIL;
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onStart()
-	 */
-	@Override
-	public boolean onStart()
-	{
-		
-		if (!(getEffector() instanceof L2PcInstance))
-			return false;
-		
-		if (!(getEffected() instanceof L2MonsterInstance))
-			return false;
-		
-		L2MonsterInstance target = (L2MonsterInstance) getEffected();
-		
-		if (target == null)
-			return false;
-		
-		if (target.isSpoil())
-		{
-			getEffector().sendPacket(SystemMessage.getSystemMessage(SystemMessageId.ALREADY_SPOILED));
-			return false;
-		}
-		
-		// SPOIL SYSTEM by Lbaldi
-		boolean spoil = false;
-		if (target.isDead() == false)
-		{
-			spoil = Formulas.calcMagicSuccess(getEffector(), target, getSkill());
-			
-			if (spoil)
-			{
-				target.setSpoil(true);
-				target.setIsSpoiledBy(getEffector().getObjectId());
-				getEffector().sendPacket(SystemMessage.getSystemMessage(SystemMessageId.SPOIL_SUCCESS));
-			}
-			target.getAI().notifyEvent(CtrlEvent.EVT_ATTACKED, getEffector());
-		}
-		return true;
-		
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onActionTime()
-	 */
-	@Override
-	public boolean onActionTime()
-	{
-		return false;
-	}
-}

+ 0 - 83
L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectStun.java

@@ -1,83 +0,0 @@
-/*
- * 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.l2jserver.gameserver.skills.effects;
-
-import com.l2jserver.gameserver.model.CharEffectList;
-import com.l2jserver.gameserver.model.L2Effect;
-import com.l2jserver.gameserver.skills.Env;
-import com.l2jserver.gameserver.templates.effects.EffectTemplate;
-import com.l2jserver.gameserver.templates.skills.L2EffectType;
-
-/**
- * @author mkizub
- */
-public class EffectStun extends L2Effect
-{
-	public EffectStun(Env env, EffectTemplate template)
-	{
-		super(env, template);
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#getEffectType()
-	 */
-	@Override
-	public L2EffectType getEffectType()
-	{
-		return L2EffectType.STUN;
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onStart()
-	 */
-	@Override
-	public boolean onStart()
-	{
-		getEffected().startStunning();
-		return true;
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onExit()
-	 */
-	@Override
-	public void onExit()
-	{
-		getEffected().stopStunning(false);
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onActionTime()
-	 */
-	@Override
-	public boolean onActionTime()
-	{
-		// just stop this effect
-		return false;
-	}
-	
-	/* (non-Javadoc)
-	 * @see com.l2jserver.gameserver.model.L2Effect#getEffectFlags()
-	 */
-	@Override
-	public int getEffectFlags()
-	{
-		return CharEffectList.EFFECT_FLAG_STUNNED;
-	}
-}

+ 0 - 86
L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectStunSelf.java

@@ -1,86 +0,0 @@
-/*
- * 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.l2jserver.gameserver.skills.effects;
-
-import com.l2jserver.gameserver.model.CharEffectList;
-import com.l2jserver.gameserver.model.L2Effect;
-import com.l2jserver.gameserver.skills.Env;
-import com.l2jserver.gameserver.templates.effects.EffectTemplate;
-import com.l2jserver.gameserver.templates.skills.L2EffectType;
-
-public class EffectStunSelf extends L2Effect
-{
-	public EffectStunSelf(Env env, EffectTemplate template)
-	{
-		super(env, template);
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#getEffectType()
-	 */
-	@Override
-	public L2EffectType getEffectType()
-	{
-		return L2EffectType.STUN_SELF;
-	}
-	
-	@Override
-	public boolean isSeflEffectType()
-	{
-		return true;
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onStart()
-	 */
-	@Override
-	public boolean onStart()
-	{
-		getEffector().startStunning();
-		return true;
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onExit()
-	 */
-	@Override
-	public void onExit()
-	{
-		getEffector().stopStunning(false);
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onActionTime()
-	 */
-	@Override
-	public boolean onActionTime()
-	{
-		// just stop this effect
-		return false;
-	}
-	
-	/* (non-Javadoc)
-	 * @see com.l2jserver.gameserver.model.L2Effect#getEffectFlags()
-	 */
-	@Override
-	public int getEffectFlags()
-	{
-		return CharEffectList.EFFECT_FLAG_STUNNED;
-	}
-}

+ 0 - 97
L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectTargetMe.java

@@ -1,97 +0,0 @@
-/*
- * 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.l2jserver.gameserver.skills.effects;
-
-import com.l2jserver.gameserver.model.L2Effect;
-import com.l2jserver.gameserver.model.actor.L2Attackable;
-import com.l2jserver.gameserver.model.actor.L2Playable;
-import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
-import com.l2jserver.gameserver.model.actor.instance.L2SiegeSummonInstance;
-import com.l2jserver.gameserver.network.serverpackets.MyTargetSelected;
-import com.l2jserver.gameserver.skills.Env;
-import com.l2jserver.gameserver.templates.effects.EffectTemplate;
-import com.l2jserver.gameserver.templates.skills.L2EffectType;
-
-/**
- * 
- * @author -Nemesiss-
- */
-public class EffectTargetMe extends L2Effect
-{
-	public EffectTargetMe(Env env, EffectTemplate template)
-	{
-		super(env, template);
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#getEffectType()
-	 */
-	@Override
-	public L2EffectType getEffectType()
-	{
-		return L2EffectType.TARGET_ME;
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onStart()
-	 */
-	@Override
-	public boolean onStart()
-	{
-		if (getEffected() instanceof L2Playable)
-		{
-			if (getEffected() instanceof L2SiegeSummonInstance)
-				return false;
-			
-			if (getEffected().getTarget() != getEffector())
-			{
-				// Target is different
-				getEffected().setTarget(getEffector());
-				if (getEffected() instanceof L2PcInstance)
-					getEffected().sendPacket(new MyTargetSelected(getEffector().getObjectId(), 0));
-			}
-			((L2Playable)getEffected()).setLockedTarget(getEffector());
-			return true;
-		}
-		else if (getEffected() instanceof L2Attackable && !getEffected().isRaid())
-			return true;
-		
-		return false;
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onExit()
-	 */
-	@Override
-	public void onExit()
-	{
-		if (getEffected() instanceof L2Playable)
-			((L2Playable)getEffected()).setLockedTarget(null);
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onActionTime()
-	 */
-	@Override
-	public boolean onActionTime()
-	{
-		// nothing
-		return false;
-	}
-}

+ 0 - 139
L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectThrowUp.java

@@ -1,139 +0,0 @@
-/*
- * 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.l2jserver.gameserver.skills.effects;
-
-import java.util.logging.Logger;
-
-import com.l2jserver.Config;
-import com.l2jserver.gameserver.GeoData;
-import com.l2jserver.gameserver.model.CharEffectList;
-import com.l2jserver.gameserver.model.L2Effect;
-import com.l2jserver.gameserver.model.Location;
-import com.l2jserver.gameserver.network.serverpackets.FlyToLocation;
-import com.l2jserver.gameserver.network.serverpackets.FlyToLocation.FlyType;
-import com.l2jserver.gameserver.network.serverpackets.ValidateLocation;
-import com.l2jserver.gameserver.skills.Env;
-import com.l2jserver.gameserver.templates.effects.EffectTemplate;
-import com.l2jserver.gameserver.templates.skills.L2EffectType;
-
-public class EffectThrowUp extends L2Effect
-{
-	static final Logger _log = Logger.getLogger(EffectThrowUp.class.getName());
-	
-	private int _x, _y, _z;
-	
-	public EffectThrowUp(Env env, EffectTemplate template)
-	{
-		super(env, template);
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#getEffectType()
-	 */
-	@Override
-	public L2EffectType getEffectType()
-	{
-		return L2EffectType.THROW_UP;
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onStart()
-	 */
-	@Override
-	public boolean onStart()
-	{
-		// Get current position of the L2Character
-		final int curX = getEffected().getX();
-		final int curY = getEffected().getY();
-		final int curZ = getEffected().getZ();
-		
-		// Calculate distance between effector and effected current position
-		double dx = getEffector().getX() - curX;
-		double dy = getEffector().getY() - curY;
-		double dz = getEffector().getZ() - curZ;
-		double distance = Math.sqrt(dx * dx + dy * dy);
-		if (distance > 2000)
-		{
-			_log.info("EffectThrow was going to use invalid coordinates for characters, getEffected: "+curX+","+curY+" and getEffector: "+getEffector().getX()+","+getEffector().getY());
-			return false;
-		}
-		int offset = Math.min((int) distance + getSkill().getFlyRadius(), 1400);
-		
-		double cos;
-		double sin;
-		
-		// approximation for moving futher when z coordinates are different
-		// TODO: handle Z axis movement better
-		offset += Math.abs(dz);
-		if (offset < 5)
-			offset = 5;
-		
-		// If no distance
-		if (distance < 1)
-			return false;
-		
-		// Calculate movement angles needed
-		sin = dy / distance;
-		cos = dx / distance;
-		
-		// Calculate the new destination with offset included
-		_x = getEffector().getX() - (int) (offset * cos);
-		_y = getEffector().getY() - (int) (offset * sin);
-		_z = getEffected().getZ();
-		
-		if (Config.GEODATA > 0)
-		{
-			Location destiny = GeoData.getInstance().moveCheck(getEffected().getX(), getEffected().getY(), getEffected().getZ(), _x, _y, _z, getEffected().getInstanceId());
-			_x = destiny.getX();
-			_y = destiny.getY();
-		}
-		getEffected().startStunning();
-		getEffected().broadcastPacket(new FlyToLocation(getEffected(), _x, _y, _z, FlyType.THROW_UP));
-		return true;
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onActionTime()
-	 */
-	@Override
-	public boolean onActionTime()
-	{
-		return false;
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onExit()
-	 */
-	@Override
-	public void onExit()
-	{
-		getEffected().stopStunning(false);
-		getEffected().setXYZ(_x, _y, _z);
-		getEffected().broadcastPacket(new ValidateLocation(getEffected()));
-	}
-	
-	/* (non-Javadoc)
-	 * @see com.l2jserver.gameserver.model.L2Effect#getEffectFlags()
-	 */
-	@Override
-	public int getEffectFlags()
-	{
-		return CharEffectList.EFFECT_FLAG_STUNNED;
-	}
-}

+ 0 - 83
L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectTransferDamage.java

@@ -1,83 +0,0 @@
-/*
- * 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.l2jserver.gameserver.skills.effects;
-
-import com.l2jserver.gameserver.model.L2Effect;
-import com.l2jserver.gameserver.model.actor.L2Playable;
-import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
-import com.l2jserver.gameserver.skills.Env;
-import com.l2jserver.gameserver.templates.effects.EffectTemplate;
-import com.l2jserver.gameserver.templates.skills.L2EffectType;
-
-/**
- *
- * @author UnAfraid
- */
-
-public class EffectTransferDamage extends L2Effect
-{  
-   public EffectTransferDamage(Env env, EffectTemplate template)
-   {
-      super(env, template);
-   }
-
-   public EffectTransferDamage(Env env, L2Effect effect)
-   {
-      super(env, effect);
-   }
-
-   /**
-    *
-    * @see com.l2jserver.gameserver.model.L2Effect#getEffectType()
-    */
-   @Override
-   public L2EffectType getEffectType()
-   {
-      return L2EffectType.DAMAGE_TRANSFER;
-   }
-
-   /**
-    *
-    * @see com.l2jserver.gameserver.model.L2Effect#onStart()
-    */
-   @Override
-   public boolean onStart()
-   {
-      if (getEffected() instanceof L2Playable && getEffector() instanceof L2PcInstance)
-    	  ((L2Playable) getEffected()).setTransferDamageTo((L2PcInstance) getEffector());
-      return true;
-   }
-
-   /**
-    *
-    * @see com.l2jserver.gameserver.model.L2Effect#onExit()
-    */
-   @Override
-   public void onExit()
-   {
-      if (getEffected() instanceof L2Playable && getEffector() instanceof L2PcInstance)
-         ((L2Playable) getEffected()).setTransferDamageTo(null);
-   }
-
-   /**
-    *
-    * @see com.l2jserver.gameserver.model.L2Effect#onActionTime()
-    */
-   @Override
-   public boolean onActionTime()
-   {
-      return false;
-   }
-}

+ 0 - 96
L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectTransformation.java

@@ -1,96 +0,0 @@
-/*
- * 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.l2jserver.gameserver.skills.effects;
-
-import com.l2jserver.gameserver.instancemanager.TransformationManager;
-import com.l2jserver.gameserver.model.L2Effect;
-import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
-import com.l2jserver.gameserver.network.SystemMessageId;
-import com.l2jserver.gameserver.network.serverpackets.SystemMessage;
-import com.l2jserver.gameserver.skills.Env;
-import com.l2jserver.gameserver.templates.effects.EffectTemplate;
-import com.l2jserver.gameserver.templates.skills.L2EffectType;
-
-/**
- * 
- * @author nBd
- */
-public class EffectTransformation extends L2Effect
-{
-	public EffectTransformation(Env env, EffectTemplate template)
-	{
-		super(env, template);
-	}
-	
-	// Special constructor to steal this effect
-	public EffectTransformation(Env env, L2Effect effect)
-	{
-		super(env, effect);
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#getEffectType()
-	 */
-	@Override
-	public L2EffectType getEffectType()
-	{
-		return L2EffectType.TRANSFORMATION;
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onStart()
-	 */
-	@Override
-	public boolean onStart()
-	{
-		if (!(getEffected() instanceof L2PcInstance))
-			return false;
-		
-		L2PcInstance trg = (L2PcInstance) getEffected();
-		if (trg == null)
-			return false;
-		
-		if (trg.isAlikeDead() || trg.isCursedWeaponEquipped())
-			return false;
-		
-		if (trg.getTransformation() != null)
-		{
-			trg.sendPacket(SystemMessage.getSystemMessage(SystemMessageId.YOU_ALREADY_POLYMORPHED_AND_CANNOT_POLYMORPH_AGAIN));
-			return false;
-		}
-		
-		TransformationManager.getInstance().transformPlayer(getSkill().getTransformId(), trg);
-		return true;
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onActionTime()
-	 */
-	@Override
-	public boolean onActionTime()
-	{
-		return false;
-	}
-	
-	@Override
-	public void onExit()
-	{
-		getEffected().stopTransformation(false);
-	}
-}

+ 0 - 127
L2J_Server_BETA/java/com/l2jserver/gameserver/skills/effects/EffectWarp.java

@@ -1,127 +0,0 @@
-/*
- * 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.l2jserver.gameserver.skills.effects;
-
-import com.l2jserver.Config;
-import com.l2jserver.gameserver.GeoData;
-import com.l2jserver.gameserver.ai.CtrlIntention;
-import com.l2jserver.gameserver.model.L2Effect;
-import com.l2jserver.gameserver.model.Location;
-import com.l2jserver.gameserver.model.actor.L2Character;
-import com.l2jserver.gameserver.network.serverpackets.FlyToLocation;
-import com.l2jserver.gameserver.network.serverpackets.FlyToLocation.FlyType;
-import com.l2jserver.gameserver.network.serverpackets.ValidateLocation;
-import com.l2jserver.gameserver.skills.Env;
-import com.l2jserver.gameserver.templates.effects.EffectTemplate;
-import com.l2jserver.gameserver.templates.skills.L2EffectType;
-import com.l2jserver.gameserver.util.Util;
-
-/**
- * This class handles warp effects, disappear and quickly turn up in a near
- * location. If geodata enabled and an object is between initial and final
- * point, flight is stopped just before colliding with object. Flight course and
- * radius are set as skill properties (flyCourse and flyRadius):
- * 
- * <li>Fly Radius means the distance between starting point and final point, it
- * must be an integer.</li> <li>Fly Course means the movement direction: imagine
- * a compass above player's head, making north player's heading. So if fly
- * course is 180, player will go backwards (good for blink, e.g.). By the way,
- * if flyCourse = 360 or 0, player will be moved in in front of him. <br>
- * <br>
- * 
- * If target is effector, put in XML self = "1". This will make _actor =
- * getEffector(). This, combined with target type, allows more complex actions
- * like flying target's backwards or player's backwards.<br>
- * <br>
- * 
- * @author House
- */
-public class EffectWarp extends L2Effect
-{
-	private int x, y, z;
-	private L2Character _actor;
-	
-	public EffectWarp(Env env, EffectTemplate template)
-	{
-		super(env, template);
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#getEffectType()
-	 */
-	@Override
-	public L2EffectType getEffectType()
-	{
-		return L2EffectType.WARP;
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onStart()
-	 */
-	@Override
-	public boolean onStart()
-	{
-		_actor = isSelfEffect() ? getEffector() : getEffected();
-		
-		if (_actor.isMovementDisabled())
-			return false;
-		
-		int _radius = getSkill().getFlyRadius();
-		
-		double angle = Util.convertHeadingToDegree(_actor.getHeading());
-		double radian = Math.toRadians(angle);
-		double course = Math.toRadians(getSkill().getFlyCourse());
-		
-		int x1 = (int) (Math.cos(Math.PI + radian + course) * _radius);
-		int y1 = (int) (Math.sin(Math.PI + radian + course) * _radius);
-		
-		x = _actor.getX() + x1;
-		y = _actor.getY() + y1;
-		z = _actor.getZ();
-		
-		if (Config.GEODATA > 0)
-		{
-			Location destiny = GeoData.getInstance().moveCheck(_actor.getX(), _actor.getY(), _actor.getZ(), x, y, z, _actor.getInstanceId());
-			x = destiny.getX();
-			y = destiny.getY();
-			z = destiny.getZ();
-		}
-		
-		// TODO: check if this AI intention is retail-like. This stops player's
-		// previous movement
-		_actor.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
-		
-		_actor.broadcastPacket(new FlyToLocation(_actor, x, y, z, FlyType.DUMMY));
-		_actor.abortAttack();
-		_actor.abortCast();
-		
-		_actor.setXYZ(x, y, z);
-		_actor.broadcastPacket(new ValidateLocation(_actor));
-		
-		return true;
-	}
-	
-	/**
-	 * 
-	 * @see com.l2jserver.gameserver.model.L2Effect#onActionTime()
-	 */
-	@Override
-	public boolean onActionTime()
-	{
-		return false;
-	}
-}

+ 6 - 6
L2J_Server_BETA/java/com/l2jserver/gameserver/templates/effects/EffectTemplate.java

@@ -19,6 +19,7 @@ import java.lang.reflect.InvocationTargetException;
 import java.util.logging.Level;
 import java.util.logging.Logger;
 
+import com.l2jserver.gameserver.handler.EffectHandler;
 import com.l2jserver.gameserver.model.ChanceCondition;
 import com.l2jserver.gameserver.model.L2Effect;
 import com.l2jserver.gameserver.skills.AbnormalEffect;
@@ -88,14 +89,13 @@ public class EffectTemplate
 		
 		passiveEffect = passiveEff;
 		
-		try
-		{
-			_func = Class.forName("com.l2jserver.gameserver.skills.effects.Effect" + func);
-		}
-		catch (ClassNotFoundException e)
+		_func = EffectHandler.getInstance().getHandler(func);
+		if(func == null)
 		{
-			throw new RuntimeException(e);
+			_log.warning("EffectTemplate: Requested Unexistent effect: "+func);
+			throw new RuntimeException();
 		}
+
 		try
 		{
 			_constructor = _func.getConstructor(Env.class, EffectTemplate.class);