Noticias:

Debes de estar registrado para poder ver el contenido indicado. Registrate o Conectate

Menú Principal

Big Head Effect

Iniciado por Swarlog, Sep 01, 2022, 12:29 AM

Tema anterior - Siguiente tema

Swarlog


diff --git a/dist/game/data/scripts/handlers/EffectMasterHandler.java b/dist/game/data/scripts/handlers/EffectMasterHandler.java
index 78cc1f3..4b617b4 100644
--- a/dist/game/data/scripts/handlers/EffectMasterHandler.java
+++ b/dist/game/data/scripts/handlers/EffectMasterHandler.java
@@ -40,6 +40,7 @@
       AttackTrait.class,
       Backstab.class,
       Betray.class,
+      BigHead.class,
       Blink.class,
       BlockAction.class,
       BlockBuff.class,
@@ -220,4 +221,4 @@
          _log.log(Level.WARNING, "Failed invoking size method for handler: " + EffectMasterHandler.class.getSimpleName(), e);
       }
    }
-}
+}
\ No newline at end of file
diff --git a/dist/game/data/scripts/handlers/effecthandlers/BigHead.java b/dist/game/data/scripts/handlers/effecthandlers/BigHead.java
new file mode 100644
index 0000000..28c6593
--- /dev/null
+++ b/dist/game/data/scripts/handlers/effecthandlers/BigHead.java
@@ -0,0 +1,68 @@
+/*
+ * Copyright (C) 2004-2016 L2J DataPack
+ *
+ * This file is part of L2J DataPack.
+ *
+ * L2J DataPack 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.
+ *
+ * L2J DataPack 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 handlers.effecthandlers;
+
+import com.l2jserver.gameserver.model.StatsSet;
+import com.l2jserver.gameserver.model.conditions.Condition;
+import com.l2jserver.gameserver.model.effects.AbstractEffect;
+import com.l2jserver.gameserver.model.effects.L2EffectType;
+import com.l2jserver.gameserver.model.skills.AbnormalVisualEffect;
+import com.l2jserver.gameserver.model.skills.BuffInfo;
+
+/**
+ * @author LBaldi, Sacrifice
+ */
+public final class BigHead extends AbstractEffect
+{
+   public BigHead(Condition attachCond, Condition applyCond, StatsSet set, StatsSet params)
+   {
+      super(attachCond, applyCond, set, params);
+   }
+   
+   @Override
+   public boolean isInstant()
+   {
+      return true;
+   }
+   
+   @Override
+   public L2EffectType getEffectType()
+   {
+      return L2EffectType.BUFF;
+   }
+   
+   @Override
+   public void onStart(BuffInfo info)
+   {
+      info.getEffected().startAbnormalVisualEffect(true, AbnormalVisualEffect.BIG_HEAD);
+      return;
+   }
+   
+   @Override
+   public void onExit(BuffInfo info)
+   {
+      info.getEffected().stopAbnormalVisualEffect(true, AbnormalVisualEffect.BIG_HEAD);
+   }
+   
+   @Override
+   public boolean onActionTime(BuffInfo info)
+   {
+      return false;
+   }
+}
\ No newline at end of file
diff --git a/dist/game/data/stats/skills/03200-03299.xml b/dist/game/data/stats/skills/03200-03299.xml
index 5c61932..3fc7315 100644
--- a/dist/game/data/stats/skills/03200-03299.xml
+++ b/dist/game/data/stats/skills/03200-03299.xml
@@ -1126,11 +1126,13 @@
       </for>
    </skill>
    <skill id="3265" levels="1" name="Mysterious Ability">
+      <set name="abnormalInstant" val="true" />
       <set name="abnormalLvl" val="0" />
       <set name="abnormalTime" val="600" />
       <set name="abnormalType" val="BIG_HEAD" />
       <set name="abnormalVisualEffect" val="BIG_HEAD" />
       <set name="activateRate" val="0" />
+      <set name="icon" val="BranchSys.icon.br_Afro_hair_i00" />
       <set name="isMagic" val="2" /> <!-- Static Skill -->
       <set name="magicLvl" val="1" />
       <set name="operateType" val="A2" />
@@ -1138,6 +1140,9 @@
       <set name="rideState" val="NONE;STRIDER;WYVERN;WOLF" />
       <set name="targetType" val="SELF" />
       <set name="trait" val="ETC" />
+      <for>
+         <effect name="BigHead" />
+      </for>
    </skill>
    <skill id="3266" levels="1" name="Large Fireworks Ability">
       <!-- Allows the use of Large Fireworks. -->
diff --git a/dist/game/data/stats/skills/21000-21099.xml b/dist/game/data/stats/skills/21000-21099.xml
index ad970ba..bf5de24 100644
--- a/dist/game/data/stats/skills/21000-21099.xml
+++ b/dist/game/data/stats/skills/21000-21099.xml
@@ -112,8 +112,9 @@
       <set name="rideState" val="NONE;STRIDER;WYVERN;WOLF" />
       <set name="targetType" val="SELF" />
    </skill>
-   <skill id="21007" levels="1" name="Ability of Doubt">
+   <skill id="21007" levels="1" name="Mysterious Ability">
       <!-- Confirmed CT2.5 -->
+      <set name="abnormalInstant" val="true" />
       <set name="abnormalLvl" val="0" />
       <set name="abnormalTime" val="600" />
       <set name="abnormalType" val="BIG_HEAD" />
@@ -127,6 +128,9 @@
       <set name="rideState" val="NONE;STRIDER;WYVERN;WOLF" />
       <set name="targetType" val="SELF" />
       <set name="trait" val="ETC" />
+      <for>
+         <effect name="BigHead" />
+      </for>
    </skill>
    <skill id="21008" levels="1" name="Release Seal on Agathion - Baby Panda">
       <!-- Confirmed CT2.5 -->