Addition of Compelling effect handler.
This commit is contained in:
parent
eb0b1368f7
commit
4e0858a5d6
@ -74,6 +74,7 @@ public final class EffectMasterHandler
|
||||
EffectHandler.getInstance().registerHandler("ChangeHairColor", ChangeHairColor::new);
|
||||
EffectHandler.getInstance().registerHandler("ChangeHairStyle", ChangeHairStyle::new);
|
||||
EffectHandler.getInstance().registerHandler("ClassChange", ClassChange::new);
|
||||
EffectHandler.getInstance().registerHandler("Compelling", Compelling::new);
|
||||
EffectHandler.getInstance().registerHandler("Confuse", Confuse::new);
|
||||
EffectHandler.getInstance().registerHandler("ConsumeBody", ConsumeBody::new);
|
||||
EffectHandler.getInstance().registerHandler("ConvertItem", ConvertItem::new);
|
||||
|
47
L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/handlers/effecthandlers/Compelling.java
vendored
Normal file
47
L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/handlers/effecthandlers/Compelling.java
vendored
Normal file
@ -0,0 +1,47 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* 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 handlers.effecthandlers;
|
||||
|
||||
import com.l2jmobius.gameserver.ai.CtrlIntention;
|
||||
import com.l2jmobius.gameserver.model.StatsSet;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Character;
|
||||
import com.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
||||
import com.l2jmobius.gameserver.model.skills.Skill;
|
||||
|
||||
/**
|
||||
* @author Mobius
|
||||
*/
|
||||
public final class Compelling extends AbstractEffect
|
||||
{
|
||||
public Compelling(StatsSet params)
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isInstant()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void instant(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item)
|
||||
{
|
||||
effected.setRunning();
|
||||
effected.getAI().setIntention(CtrlIntention.AI_INTENTION_MOVE_TO, effector.getLocation());
|
||||
}
|
||||
}
|
@ -42,6 +42,7 @@ ChangeHairColor: Changes the Player's hair color.
|
||||
ChangeHairStyle: Changes the Player's Hair style.
|
||||
CheapShot: Oldschool cheap shot SA effect. Has a chance to consume less soulshots during attack.
|
||||
ClassChange: Switch to the given subclass index. Main class, Dual class, Sub-class 1, Sub-Class 2.
|
||||
Compelling: Force target to move at caster. (l2jmobius)
|
||||
Confuse: Causes the target to attack random target.
|
||||
ConsumeBody: Removes target NPC's corpse.
|
||||
ConvertItem: Kamael's Change Weapon skill effect.
|
||||
|
@ -74,6 +74,7 @@ public final class EffectMasterHandler
|
||||
EffectHandler.getInstance().registerHandler("ChangeHairColor", ChangeHairColor::new);
|
||||
EffectHandler.getInstance().registerHandler("ChangeHairStyle", ChangeHairStyle::new);
|
||||
EffectHandler.getInstance().registerHandler("ClassChange", ClassChange::new);
|
||||
EffectHandler.getInstance().registerHandler("Compelling", Compelling::new);
|
||||
EffectHandler.getInstance().registerHandler("Confuse", Confuse::new);
|
||||
EffectHandler.getInstance().registerHandler("ConsumeBody", ConsumeBody::new);
|
||||
EffectHandler.getInstance().registerHandler("ConvertItem", ConvertItem::new);
|
||||
|
47
L2J_Mobius_2.5_Underground/dist/game/data/scripts/handlers/effecthandlers/Compelling.java
vendored
Normal file
47
L2J_Mobius_2.5_Underground/dist/game/data/scripts/handlers/effecthandlers/Compelling.java
vendored
Normal file
@ -0,0 +1,47 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* 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 handlers.effecthandlers;
|
||||
|
||||
import com.l2jmobius.gameserver.ai.CtrlIntention;
|
||||
import com.l2jmobius.gameserver.model.StatsSet;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Character;
|
||||
import com.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
||||
import com.l2jmobius.gameserver.model.skills.Skill;
|
||||
|
||||
/**
|
||||
* @author Mobius
|
||||
*/
|
||||
public final class Compelling extends AbstractEffect
|
||||
{
|
||||
public Compelling(StatsSet params)
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isInstant()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void instant(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item)
|
||||
{
|
||||
effected.setRunning();
|
||||
effected.getAI().setIntention(CtrlIntention.AI_INTENTION_MOVE_TO, effector.getLocation());
|
||||
}
|
||||
}
|
@ -42,6 +42,7 @@ ChangeHairColor: Changes the Player's hair color.
|
||||
ChangeHairStyle: Changes the Player's Hair style.
|
||||
CheapShot: Oldschool cheap shot SA effect. Has a chance to consume less soulshots during attack.
|
||||
ClassChange: Switch to the given subclass index. Main class, Dual class, Sub-class 1, Sub-Class 2.
|
||||
Compelling: Force target to move at caster. (l2jmobius)
|
||||
Confuse: Causes the target to attack random target.
|
||||
ConsumeBody: Removes target NPC's corpse.
|
||||
ConvertItem: Kamael's Change Weapon skill effect.
|
||||
|
@ -74,6 +74,7 @@ public final class EffectMasterHandler
|
||||
EffectHandler.getInstance().registerHandler("ChangeHairColor", ChangeHairColor::new);
|
||||
EffectHandler.getInstance().registerHandler("ChangeHairStyle", ChangeHairStyle::new);
|
||||
EffectHandler.getInstance().registerHandler("ClassChange", ClassChange::new);
|
||||
EffectHandler.getInstance().registerHandler("Compelling", Compelling::new);
|
||||
EffectHandler.getInstance().registerHandler("Confuse", Confuse::new);
|
||||
EffectHandler.getInstance().registerHandler("ConsumeBody", ConsumeBody::new);
|
||||
EffectHandler.getInstance().registerHandler("ConvertItem", ConvertItem::new);
|
||||
|
47
L2J_Mobius_3.0_Helios/dist/game/data/scripts/handlers/effecthandlers/Compelling.java
vendored
Normal file
47
L2J_Mobius_3.0_Helios/dist/game/data/scripts/handlers/effecthandlers/Compelling.java
vendored
Normal file
@ -0,0 +1,47 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* 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 handlers.effecthandlers;
|
||||
|
||||
import com.l2jmobius.gameserver.ai.CtrlIntention;
|
||||
import com.l2jmobius.gameserver.model.StatsSet;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Character;
|
||||
import com.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
||||
import com.l2jmobius.gameserver.model.skills.Skill;
|
||||
|
||||
/**
|
||||
* @author Mobius
|
||||
*/
|
||||
public final class Compelling extends AbstractEffect
|
||||
{
|
||||
public Compelling(StatsSet params)
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isInstant()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void instant(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item)
|
||||
{
|
||||
effected.setRunning();
|
||||
effected.getAI().setIntention(CtrlIntention.AI_INTENTION_MOVE_TO, effector.getLocation());
|
||||
}
|
||||
}
|
@ -42,6 +42,7 @@ ChangeHairColor: Changes the Player's hair color.
|
||||
ChangeHairStyle: Changes the Player's Hair style.
|
||||
CheapShot: Oldschool cheap shot SA effect. Has a chance to consume less soulshots during attack.
|
||||
ClassChange: Switch to the given subclass index. Main class, Dual class, Sub-class 1, Sub-Class 2.
|
||||
Compelling: Force target to move at caster. (l2jmobius)
|
||||
Confuse: Causes the target to attack random target.
|
||||
ConsumeBody: Removes target NPC's corpse.
|
||||
ConvertItem: Kamael's Change Weapon skill effect.
|
||||
|
@ -74,6 +74,7 @@ public final class EffectMasterHandler
|
||||
EffectHandler.getInstance().registerHandler("ChangeHairColor", ChangeHairColor::new);
|
||||
EffectHandler.getInstance().registerHandler("ChangeHairStyle", ChangeHairStyle::new);
|
||||
EffectHandler.getInstance().registerHandler("ClassChange", ClassChange::new);
|
||||
EffectHandler.getInstance().registerHandler("Compelling", Compelling::new);
|
||||
EffectHandler.getInstance().registerHandler("Confuse", Confuse::new);
|
||||
EffectHandler.getInstance().registerHandler("ConsumeBody", ConsumeBody::new);
|
||||
EffectHandler.getInstance().registerHandler("ConvertItem", ConvertItem::new);
|
||||
|
47
L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/effecthandlers/Compelling.java
vendored
Normal file
47
L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/effecthandlers/Compelling.java
vendored
Normal file
@ -0,0 +1,47 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* 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 handlers.effecthandlers;
|
||||
|
||||
import com.l2jmobius.gameserver.ai.CtrlIntention;
|
||||
import com.l2jmobius.gameserver.model.StatsSet;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Character;
|
||||
import com.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
||||
import com.l2jmobius.gameserver.model.skills.Skill;
|
||||
|
||||
/**
|
||||
* @author Mobius
|
||||
*/
|
||||
public final class Compelling extends AbstractEffect
|
||||
{
|
||||
public Compelling(StatsSet params)
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isInstant()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void instant(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item)
|
||||
{
|
||||
effected.setRunning();
|
||||
effected.getAI().setIntention(CtrlIntention.AI_INTENTION_MOVE_TO, effector.getLocation());
|
||||
}
|
||||
}
|
@ -42,6 +42,7 @@ ChangeHairColor: Changes the Player's hair color.
|
||||
ChangeHairStyle: Changes the Player's Hair style.
|
||||
CheapShot: Oldschool cheap shot SA effect. Has a chance to consume less soulshots during attack.
|
||||
ClassChange: Switch to the given subclass index. Main class, Dual class, Sub-class 1, Sub-Class 2.
|
||||
Compelling: Force target to move at caster. (l2jmobius)
|
||||
Confuse: Causes the target to attack random target.
|
||||
ConsumeBody: Removes target NPC's corpse.
|
||||
ConvertItem: Kamael's Change Weapon skill effect.
|
||||
|
Loading…
Reference in New Issue
Block a user