Addition of GiveFame effect.
This commit is contained in:
parent
640875535b
commit
239ff51f88
@ -141,6 +141,7 @@ public final class EffectMasterHandler
|
||||
EffectHandler.getInstance().registerHandler("GetDamageLimit", GetDamageLimit::new);
|
||||
EffectHandler.getInstance().registerHandler("GetMomentum", GetMomentum::new);
|
||||
EffectHandler.getInstance().registerHandler("GiveClanReputation", GiveClanReputation::new);
|
||||
EffectHandler.getInstance().registerHandler("GiveFame", GiveFame::new);
|
||||
EffectHandler.getInstance().registerHandler("GiveRecommendation", GiveRecommendation::new);
|
||||
EffectHandler.getInstance().registerHandler("GiveSp", GiveSp::new);
|
||||
EffectHandler.getInstance().registerHandler("GiveXp", GiveXp::new);
|
||||
|
55
L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/handlers/effecthandlers/GiveFame.java
vendored
Normal file
55
L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/handlers/effecthandlers/GiveFame.java
vendored
Normal file
@ -0,0 +1,55 @@
|
||||
/*
|
||||
* 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.model.StatsSet;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Character;
|
||||
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
|
||||
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 class GiveFame extends AbstractEffect
|
||||
{
|
||||
private final int _fame;
|
||||
|
||||
public GiveFame(StatsSet params)
|
||||
{
|
||||
_fame = params.getInt("fame", 0);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isInstant()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void instant(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item)
|
||||
{
|
||||
if (!effector.isPlayer() || !effected.isPlayer() || effected.isAlikeDead())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
final L2PcInstance player = effector.getActingPlayer();
|
||||
player.setFame(player.getFame() + _fame);
|
||||
}
|
||||
}
|
@ -1371,49 +1371,67 @@
|
||||
<affectScope>SINGLE</affectScope>
|
||||
</skill>
|
||||
<skill id="9439" toLevel="1" name="Scroll: 10,000 Individual Fame">
|
||||
<!-- AUTO GENERATED SKILL -->
|
||||
<!-- Restores 10,000 Individual Fame. -->
|
||||
<icon>icon.skill0000</icon>
|
||||
<operateType>A1</operateType>
|
||||
<hitTime>200</hitTime>
|
||||
<rideState>NONE;STRIDER;WYVERN;WOLF</rideState>
|
||||
<magicCriticalRate>5</magicCriticalRate>
|
||||
<itemConsumeCount>1</itemConsumeCount>
|
||||
<itemConsumeId>35664</itemConsumeId> <!-- Scroll: 10,000 Individual Fame -->
|
||||
<hitCancelTime>0</hitCancelTime>
|
||||
<magicLvl>1</magicLvl>
|
||||
<isMagic>2</isMagic>
|
||||
<reuseDelay>3000</reuseDelay>
|
||||
<targetType>SELF</targetType>
|
||||
<affectScope>SINGLE</affectScope>
|
||||
<effects>
|
||||
<effect name="GiveFame">
|
||||
<fame>10000</fame>
|
||||
</effect>
|
||||
</effects>
|
||||
</skill>
|
||||
<skill id="9440" toLevel="1" name="Scroll: 50,000 Individual Fame">
|
||||
<!-- AUTO GENERATED SKILL -->
|
||||
<!-- Restores 50,000 Individual Fame. -->
|
||||
<icon>icon.skill0000</icon>
|
||||
<operateType>A1</operateType>
|
||||
<hitTime>200</hitTime>
|
||||
<rideState>NONE;STRIDER;WYVERN;WOLF</rideState>
|
||||
<magicCriticalRate>5</magicCriticalRate>
|
||||
<itemConsumeCount>1</itemConsumeCount>
|
||||
<itemConsumeId>35665</itemConsumeId> <!-- Scroll: 50,000 Individual Fame -->
|
||||
<hitCancelTime>0</hitCancelTime>
|
||||
<magicLvl>1</magicLvl>
|
||||
<isMagic>2</isMagic>
|
||||
<reuseDelay>3000</reuseDelay>
|
||||
<targetType>SELF</targetType>
|
||||
<affectScope>SINGLE</affectScope>
|
||||
<effects>
|
||||
<effect name="GiveFame">
|
||||
<fame>50000</fame>
|
||||
</effect>
|
||||
</effects>
|
||||
</skill>
|
||||
<skill id="9441" toLevel="1" name="Scroll: 100,000 Individual Fame">
|
||||
<!-- AUTO GENERATED SKILL -->
|
||||
<!-- Restores 100,000 Individual Fame. -->
|
||||
<icon>icon.skill0000</icon>
|
||||
<operateType>A1</operateType>
|
||||
<hitTime>200</hitTime>
|
||||
<rideState>NONE;STRIDER;WYVERN;WOLF</rideState>
|
||||
<magicCriticalRate>5</magicCriticalRate>
|
||||
<itemConsumeCount>1</itemConsumeCount>
|
||||
<itemConsumeId>35666</itemConsumeId> <!-- Scroll: 100,000 Individual Fame -->
|
||||
<hitCancelTime>0</hitCancelTime>
|
||||
<magicLvl>1</magicLvl>
|
||||
<isMagic>2</isMagic>
|
||||
<reuseDelay>3000</reuseDelay>
|
||||
<targetType>SELF</targetType>
|
||||
<affectScope>SINGLE</affectScope>
|
||||
<effects>
|
||||
<effect name="GiveFame">
|
||||
<fame>100000</fame>
|
||||
</effect>
|
||||
</effects>
|
||||
</skill>
|
||||
<skill id="9442" toLevel="1" name="Trowel">
|
||||
<!-- Gathers the Flame Flower. -->
|
||||
|
@ -110,11 +110,12 @@ GetAgro: Causes enemy NPC to attack you.
|
||||
GetDamageLimit: Sets the maximum amount of damage you can receive.
|
||||
GetMomentum: Increases momentum by a given value at fixed rate.
|
||||
GiveClanReputation: Gives clan reputation points to a players clan. (l2jmobius)
|
||||
GiveRecommendation: Gives reccomendations to a player. Blue name.
|
||||
GiveFame: Gives a given amount of Fame. (l2jmobius)
|
||||
GiveRecommendation: Gives recommendations to a player. Blue name.
|
||||
GiveSp: Gives a given amount of SP.
|
||||
GiveXp: Gives a given amount of XP. (l2jmobius)
|
||||
Grow: Sets NPC collision to its growth collision.
|
||||
HairAccessorySet: See/Unsee hair accessoary.
|
||||
HairAccessorySet: See/Unsee hair accessory.
|
||||
Harvesting: Manor's harvesting seed.
|
||||
HateAttack: Attacks with increased hate value
|
||||
HeadquarterCreate: Creates a siege flag
|
||||
|
@ -141,6 +141,7 @@ public final class EffectMasterHandler
|
||||
EffectHandler.getInstance().registerHandler("GetDamageLimit", GetDamageLimit::new);
|
||||
EffectHandler.getInstance().registerHandler("GetMomentum", GetMomentum::new);
|
||||
EffectHandler.getInstance().registerHandler("GiveClanReputation", GiveClanReputation::new);
|
||||
EffectHandler.getInstance().registerHandler("GiveFame", GiveFame::new);
|
||||
EffectHandler.getInstance().registerHandler("GiveRecommendation", GiveRecommendation::new);
|
||||
EffectHandler.getInstance().registerHandler("GiveSp", GiveSp::new);
|
||||
EffectHandler.getInstance().registerHandler("GiveXp", GiveXp::new);
|
||||
|
55
L2J_Mobius_2.5_Underground/dist/game/data/scripts/handlers/effecthandlers/GiveFame.java
vendored
Normal file
55
L2J_Mobius_2.5_Underground/dist/game/data/scripts/handlers/effecthandlers/GiveFame.java
vendored
Normal file
@ -0,0 +1,55 @@
|
||||
/*
|
||||
* 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.model.StatsSet;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Character;
|
||||
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
|
||||
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 class GiveFame extends AbstractEffect
|
||||
{
|
||||
private final int _fame;
|
||||
|
||||
public GiveFame(StatsSet params)
|
||||
{
|
||||
_fame = params.getInt("fame", 0);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isInstant()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void instant(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item)
|
||||
{
|
||||
if (!effector.isPlayer() || !effected.isPlayer() || effected.isAlikeDead())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
final L2PcInstance player = effector.getActingPlayer();
|
||||
player.setFame(player.getFame() + _fame);
|
||||
}
|
||||
}
|
@ -1371,49 +1371,67 @@
|
||||
<affectScope>SINGLE</affectScope>
|
||||
</skill>
|
||||
<skill id="9439" toLevel="1" name="Scroll: 10,000 Individual Fame">
|
||||
<!-- AUTO GENERATED SKILL -->
|
||||
<!-- Restores 10,000 Individual Fame. -->
|
||||
<icon>icon.skill0000</icon>
|
||||
<operateType>A1</operateType>
|
||||
<hitTime>200</hitTime>
|
||||
<rideState>NONE;STRIDER;WYVERN;WOLF</rideState>
|
||||
<magicCriticalRate>5</magicCriticalRate>
|
||||
<itemConsumeCount>1</itemConsumeCount>
|
||||
<itemConsumeId>35664</itemConsumeId> <!-- Scroll: 10,000 Individual Fame -->
|
||||
<hitCancelTime>0</hitCancelTime>
|
||||
<magicLvl>1</magicLvl>
|
||||
<isMagic>2</isMagic>
|
||||
<reuseDelay>3000</reuseDelay>
|
||||
<targetType>SELF</targetType>
|
||||
<affectScope>SINGLE</affectScope>
|
||||
<effects>
|
||||
<effect name="GiveFame">
|
||||
<fame>10000</fame>
|
||||
</effect>
|
||||
</effects>
|
||||
</skill>
|
||||
<skill id="9440" toLevel="1" name="Scroll: 50,000 Individual Fame">
|
||||
<!-- AUTO GENERATED SKILL -->
|
||||
<!-- Restores 50,000 Individual Fame. -->
|
||||
<icon>icon.skill0000</icon>
|
||||
<operateType>A1</operateType>
|
||||
<hitTime>200</hitTime>
|
||||
<rideState>NONE;STRIDER;WYVERN;WOLF</rideState>
|
||||
<magicCriticalRate>5</magicCriticalRate>
|
||||
<itemConsumeCount>1</itemConsumeCount>
|
||||
<itemConsumeId>35665</itemConsumeId> <!-- Scroll: 50,000 Individual Fame -->
|
||||
<hitCancelTime>0</hitCancelTime>
|
||||
<magicLvl>1</magicLvl>
|
||||
<isMagic>2</isMagic>
|
||||
<reuseDelay>3000</reuseDelay>
|
||||
<targetType>SELF</targetType>
|
||||
<affectScope>SINGLE</affectScope>
|
||||
<effects>
|
||||
<effect name="GiveFame">
|
||||
<fame>50000</fame>
|
||||
</effect>
|
||||
</effects>
|
||||
</skill>
|
||||
<skill id="9441" toLevel="1" name="Scroll: 100,000 Individual Fame">
|
||||
<!-- AUTO GENERATED SKILL -->
|
||||
<!-- Restores 100,000 Individual Fame. -->
|
||||
<icon>icon.skill0000</icon>
|
||||
<operateType>A1</operateType>
|
||||
<hitTime>200</hitTime>
|
||||
<rideState>NONE;STRIDER;WYVERN;WOLF</rideState>
|
||||
<magicCriticalRate>5</magicCriticalRate>
|
||||
<itemConsumeCount>1</itemConsumeCount>
|
||||
<itemConsumeId>35666</itemConsumeId> <!-- Scroll: 100,000 Individual Fame -->
|
||||
<hitCancelTime>0</hitCancelTime>
|
||||
<magicLvl>1</magicLvl>
|
||||
<isMagic>2</isMagic>
|
||||
<reuseDelay>3000</reuseDelay>
|
||||
<targetType>SELF</targetType>
|
||||
<affectScope>SINGLE</affectScope>
|
||||
<effects>
|
||||
<effect name="GiveFame">
|
||||
<fame>100000</fame>
|
||||
</effect>
|
||||
</effects>
|
||||
</skill>
|
||||
<skill id="9442" toLevel="1" name="Trowel">
|
||||
<!-- Gathers the Flame Flower. -->
|
||||
|
@ -110,11 +110,12 @@ GetAgro: Causes enemy NPC to attack you.
|
||||
GetDamageLimit: Sets the maximum amount of damage you can receive.
|
||||
GetMomentum: Increases momentum by a given value at fixed rate.
|
||||
GiveClanReputation: Gives clan reputation points to a players clan. (l2jmobius)
|
||||
GiveRecommendation: Gives reccomendations to a player. Blue name.
|
||||
GiveFame: Gives a given amount of Fame. (l2jmobius)
|
||||
GiveRecommendation: Gives recommendations to a player. Blue name.
|
||||
GiveSp: Gives a given amount of SP.
|
||||
GiveXp: Gives a given amount of XP. (l2jmobius)
|
||||
Grow: Sets NPC collision to its growth collision.
|
||||
HairAccessorySet: See/Unsee hair accessoary.
|
||||
HairAccessorySet: See/Unsee hair accessory.
|
||||
Harvesting: Manor's harvesting seed.
|
||||
HateAttack: Attacks with increased hate value
|
||||
HeadquarterCreate: Creates a siege flag
|
||||
|
@ -141,6 +141,7 @@ public final class EffectMasterHandler
|
||||
EffectHandler.getInstance().registerHandler("GetDamageLimit", GetDamageLimit::new);
|
||||
EffectHandler.getInstance().registerHandler("GetMomentum", GetMomentum::new);
|
||||
EffectHandler.getInstance().registerHandler("GiveClanReputation", GiveClanReputation::new);
|
||||
EffectHandler.getInstance().registerHandler("GiveFame", GiveFame::new);
|
||||
EffectHandler.getInstance().registerHandler("GiveRecommendation", GiveRecommendation::new);
|
||||
EffectHandler.getInstance().registerHandler("GiveSp", GiveSp::new);
|
||||
EffectHandler.getInstance().registerHandler("GiveXp", GiveXp::new);
|
||||
|
55
L2J_Mobius_3.0_Helios/dist/game/data/scripts/handlers/effecthandlers/GiveFame.java
vendored
Normal file
55
L2J_Mobius_3.0_Helios/dist/game/data/scripts/handlers/effecthandlers/GiveFame.java
vendored
Normal file
@ -0,0 +1,55 @@
|
||||
/*
|
||||
* 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.model.StatsSet;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Character;
|
||||
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
|
||||
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 class GiveFame extends AbstractEffect
|
||||
{
|
||||
private final int _fame;
|
||||
|
||||
public GiveFame(StatsSet params)
|
||||
{
|
||||
_fame = params.getInt("fame", 0);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isInstant()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void instant(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item)
|
||||
{
|
||||
if (!effector.isPlayer() || !effected.isPlayer() || effected.isAlikeDead())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
final L2PcInstance player = effector.getActingPlayer();
|
||||
player.setFame(player.getFame() + _fame);
|
||||
}
|
||||
}
|
@ -1371,49 +1371,67 @@
|
||||
<affectScope>SINGLE</affectScope>
|
||||
</skill>
|
||||
<skill id="9439" toLevel="1" name="Scroll: 10,000 Individual Fame">
|
||||
<!-- AUTO GENERATED SKILL -->
|
||||
<!-- Restores 10,000 Individual Fame. -->
|
||||
<icon>icon.skill0000</icon>
|
||||
<operateType>A1</operateType>
|
||||
<hitTime>200</hitTime>
|
||||
<rideState>NONE;STRIDER;WYVERN;WOLF</rideState>
|
||||
<magicCriticalRate>5</magicCriticalRate>
|
||||
<itemConsumeCount>1</itemConsumeCount>
|
||||
<itemConsumeId>35664</itemConsumeId> <!-- Scroll: 10,000 Individual Fame -->
|
||||
<hitCancelTime>0</hitCancelTime>
|
||||
<magicLvl>1</magicLvl>
|
||||
<isMagic>2</isMagic>
|
||||
<reuseDelay>3000</reuseDelay>
|
||||
<targetType>SELF</targetType>
|
||||
<affectScope>SINGLE</affectScope>
|
||||
<effects>
|
||||
<effect name="GiveFame">
|
||||
<fame>10000</fame>
|
||||
</effect>
|
||||
</effects>
|
||||
</skill>
|
||||
<skill id="9440" toLevel="1" name="Scroll: 50,000 Individual Fame">
|
||||
<!-- AUTO GENERATED SKILL -->
|
||||
<!-- Restores 50,000 Individual Fame. -->
|
||||
<icon>icon.skill0000</icon>
|
||||
<operateType>A1</operateType>
|
||||
<hitTime>200</hitTime>
|
||||
<rideState>NONE;STRIDER;WYVERN;WOLF</rideState>
|
||||
<magicCriticalRate>5</magicCriticalRate>
|
||||
<itemConsumeCount>1</itemConsumeCount>
|
||||
<itemConsumeId>35665</itemConsumeId> <!-- Scroll: 50,000 Individual Fame -->
|
||||
<hitCancelTime>0</hitCancelTime>
|
||||
<magicLvl>1</magicLvl>
|
||||
<isMagic>2</isMagic>
|
||||
<reuseDelay>3000</reuseDelay>
|
||||
<targetType>SELF</targetType>
|
||||
<affectScope>SINGLE</affectScope>
|
||||
<effects>
|
||||
<effect name="GiveFame">
|
||||
<fame>50000</fame>
|
||||
</effect>
|
||||
</effects>
|
||||
</skill>
|
||||
<skill id="9441" toLevel="1" name="Scroll: 100,000 Individual Fame">
|
||||
<!-- AUTO GENERATED SKILL -->
|
||||
<!-- Restores 100,000 Individual Fame. -->
|
||||
<icon>icon.skill0000</icon>
|
||||
<operateType>A1</operateType>
|
||||
<hitTime>200</hitTime>
|
||||
<rideState>NONE;STRIDER;WYVERN;WOLF</rideState>
|
||||
<magicCriticalRate>5</magicCriticalRate>
|
||||
<itemConsumeCount>1</itemConsumeCount>
|
||||
<itemConsumeId>35666</itemConsumeId> <!-- Scroll: 100,000 Individual Fame -->
|
||||
<hitCancelTime>0</hitCancelTime>
|
||||
<magicLvl>1</magicLvl>
|
||||
<isMagic>2</isMagic>
|
||||
<reuseDelay>3000</reuseDelay>
|
||||
<targetType>SELF</targetType>
|
||||
<affectScope>SINGLE</affectScope>
|
||||
<effects>
|
||||
<effect name="GiveFame">
|
||||
<fame>100000</fame>
|
||||
</effect>
|
||||
</effects>
|
||||
</skill>
|
||||
<skill id="9442" toLevel="1" name="Trowel">
|
||||
<!-- Gathers the Flame Flower. -->
|
||||
|
@ -110,11 +110,12 @@ GetAgro: Causes enemy NPC to attack you.
|
||||
GetDamageLimit: Sets the maximum amount of damage you can receive.
|
||||
GetMomentum: Increases momentum by a given value at fixed rate.
|
||||
GiveClanReputation: Gives clan reputation points to a players clan. (l2jmobius)
|
||||
GiveRecommendation: Gives reccomendations to a player. Blue name.
|
||||
GiveFame: Gives a given amount of Fame. (l2jmobius)
|
||||
GiveRecommendation: Gives recommendations to a player. Blue name.
|
||||
GiveSp: Gives a given amount of SP.
|
||||
GiveXp: Gives a given amount of XP. (l2jmobius)
|
||||
Grow: Sets NPC collision to its growth collision.
|
||||
HairAccessorySet: See/Unsee hair accessoary.
|
||||
HairAccessorySet: See/Unsee hair accessory.
|
||||
Harvesting: Manor's harvesting seed.
|
||||
HateAttack: Attacks with increased hate value
|
||||
HeadquarterCreate: Creates a siege flag
|
||||
|
@ -141,6 +141,7 @@ public final class EffectMasterHandler
|
||||
EffectHandler.getInstance().registerHandler("GetDamageLimit", GetDamageLimit::new);
|
||||
EffectHandler.getInstance().registerHandler("GetMomentum", GetMomentum::new);
|
||||
EffectHandler.getInstance().registerHandler("GiveClanReputation", GiveClanReputation::new);
|
||||
EffectHandler.getInstance().registerHandler("GiveFame", GiveFame::new);
|
||||
EffectHandler.getInstance().registerHandler("GiveRecommendation", GiveRecommendation::new);
|
||||
EffectHandler.getInstance().registerHandler("GiveSp", GiveSp::new);
|
||||
EffectHandler.getInstance().registerHandler("GiveXp", GiveXp::new);
|
||||
|
55
L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/effecthandlers/GiveFame.java
vendored
Normal file
55
L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/effecthandlers/GiveFame.java
vendored
Normal file
@ -0,0 +1,55 @@
|
||||
/*
|
||||
* 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.model.StatsSet;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Character;
|
||||
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
|
||||
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 class GiveFame extends AbstractEffect
|
||||
{
|
||||
private final int _fame;
|
||||
|
||||
public GiveFame(StatsSet params)
|
||||
{
|
||||
_fame = params.getInt("fame", 0);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isInstant()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void instant(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item)
|
||||
{
|
||||
if (!effector.isPlayer() || !effected.isPlayer() || effected.isAlikeDead())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
final L2PcInstance player = effector.getActingPlayer();
|
||||
player.setFame(player.getFame() + _fame);
|
||||
}
|
||||
}
|
@ -110,11 +110,12 @@ GetAgro: Causes enemy NPC to attack you.
|
||||
GetDamageLimit: Sets the maximum amount of damage you can receive.
|
||||
GetMomentum: Increases momentum by a given value at fixed rate.
|
||||
GiveClanReputation: Gives clan reputation points to a players clan. (l2jmobius)
|
||||
GiveRecommendation: Gives reccomendations to a player. Blue name.
|
||||
GiveFame: Gives a given amount of Fame. (l2jmobius)
|
||||
GiveRecommendation: Gives recommendations to a player. Blue name.
|
||||
GiveSp: Gives a given amount of SP.
|
||||
GiveXp: Gives a given amount of XP. (l2jmobius)
|
||||
Grow: Sets NPC collision to its growth collision.
|
||||
HairAccessorySet: See/Unsee hair accessoary.
|
||||
HairAccessorySet: See/Unsee hair accessory.
|
||||
Harvesting: Manor's harvesting seed.
|
||||
HateAttack: Attacks with increased hate value
|
||||
HeadquarterCreate: Creates a siege flag
|
||||
|
Loading…
Reference in New Issue
Block a user