Addition of BonusRaidPoints effect handler.
This commit is contained in:
parent
fd4ad348ab
commit
4baa29f4a0
@ -68,6 +68,7 @@ public class EffectMasterHandler
|
||||
EffectHandler.getInstance().registerHandler("BonusDropAdena", BonusDropAdena::new);
|
||||
EffectHandler.getInstance().registerHandler("BonusDropAmount", BonusDropAmount::new);
|
||||
EffectHandler.getInstance().registerHandler("BonusDropRate", BonusDropRate::new);
|
||||
EffectHandler.getInstance().registerHandler("BonusRaidPoints", BonusRaidPoints::new);
|
||||
EffectHandler.getInstance().registerHandler("BonusSpoilRate", BonusSpoilRate::new);
|
||||
EffectHandler.getInstance().registerHandler("Breath", Breath::new);
|
||||
EffectHandler.getInstance().registerHandler("BuffBlock", BuffBlock::new);
|
||||
|
31
L2J_Mobius_5.0_Salvation/dist/game/data/scripts/handlers/effecthandlers/BonusRaidPoints.java
vendored
Normal file
31
L2J_Mobius_5.0_Salvation/dist/game/data/scripts/handlers/effecthandlers/BonusRaidPoints.java
vendored
Normal file
@ -0,0 +1,31 @@
|
||||
/*
|
||||
* 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 org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.stats.Stat;
|
||||
|
||||
/**
|
||||
* @author Mobius
|
||||
*/
|
||||
public class BonusRaidPoints extends AbstractStatPercentEffect
|
||||
{
|
||||
public BonusRaidPoints(StatSet params)
|
||||
{
|
||||
super(params, Stat.BONUS_RAID_POINTS);
|
||||
}
|
||||
}
|
@ -34,6 +34,10 @@
|
||||
<set name="weight" val="10" />
|
||||
<set name="is_sellable" val="false" />
|
||||
<set name="is_stackable" val="true" />
|
||||
<set name="handler" val="ExtractableItems" />
|
||||
<capsuled_items>
|
||||
<item id="48304" min="1" max="1" chance="100" /> <!-- Resolute Raid Point Rune -->
|
||||
</capsuled_items>
|
||||
</item>
|
||||
<item id="48304" name="Resolute Raid Point Rune" additionalName="2-hour" type="EtcItem">
|
||||
<!-- Having it in the inventory increases Raid Points gained by 100%. Will be deleted on Wednesday, May 31, 2017, after regular maintenance. -->
|
||||
@ -42,6 +46,11 @@
|
||||
<set name="is_tradable" val="false" />
|
||||
<set name="is_dropable" val="false" />
|
||||
<set name="is_sellable" val="false" />
|
||||
<set name="etcitem_type" val="ENCHT_ATTR_RUNE" />
|
||||
<set name="time" val="120" />
|
||||
<skills>
|
||||
<skill id="39177" level="1" /> <!-- Resolute Raid Point Rune -->
|
||||
</skills>
|
||||
</item>
|
||||
<item id="48305" name="Blessed Antharas' Earring - Shield" additionalName="30-day" type="Armor">
|
||||
<!-- Dimensional Item. MP +59, P./ M. Def. +15%, CON/ MEN+3, Earth/ Holy Attribute Def. +30, Bleed Atk./ Def. Success Rate +50%, Stun/ Mental Atk./ Def. Success Rate +40%, Heal Received +10%, Skill MP Consumption -5%, Vampiric Rage +4%. Active Skill: Can use Stun Cancellation. Momentarily increases Stun Resistance +100%. Does not stack with identical earrings or earrings with same Craft Effect. <Craft Effect>. P. Def. +4% -->
|
||||
|
@ -195,6 +195,13 @@
|
||||
<!-- RP gain +100% if stored in the inventory. -->
|
||||
<icon>icon.etc_i.etc_rp_point_i00</icon>
|
||||
<operateType>P</operateType>
|
||||
<magicCriticalRate>5</magicCriticalRate>
|
||||
<magicLevel>1</magicLevel>
|
||||
<effects>
|
||||
<effect name="BonusRaidPoints">
|
||||
<amount>100</amount>
|
||||
</effect>
|
||||
</effects>
|
||||
</skill>
|
||||
<skill id="39178" toLevel="1" name="Resolute Attack Scroll">
|
||||
<!-- For 30 minutes, all clan members' P. Atk./ M. Atk. +3%, Physical/ Magic Skill Power +3%, XP and SP gain +5%. -->
|
||||
|
@ -38,6 +38,7 @@ Bluff: Rotates the target so you face its back.
|
||||
BonusDropAdena: Bonus amount for dropped adena. (l2jmobius)
|
||||
BonusDropAmount: Bonus amount for dropped items. (l2jmobius)
|
||||
BonusDropRate: Bonus chance for dropping items. (l2jmobius)
|
||||
BonusRaidPoints: Bonus amount for raid points. (l2jmobius)
|
||||
BonusSpoilRate: Bonus chance for acquiring spoil items. (l2jmobius)
|
||||
Breath: Underwater breathing stat.
|
||||
BuffBlock: Blocks target from receiving buffs.
|
||||
|
@ -481,7 +481,7 @@ public class Attackable extends Npc
|
||||
|
||||
members.forEach(p ->
|
||||
{
|
||||
final int points = Math.max(raidbossPoints / members.size(), 1);
|
||||
final int points = (int) (Math.max(raidbossPoints / members.size(), 1) * p.getStat().getValue(Stat.BONUS_RAID_POINTS, 1));
|
||||
p.increaseRaidbossPoints(points);
|
||||
p.sendPacket(new SystemMessage(SystemMessageId.YOU_HAVE_EARNED_S1_RAID_POINT_S).addInt(points));
|
||||
if (p.getNobleLevel() > 0)
|
||||
@ -492,7 +492,7 @@ public class Attackable extends Npc
|
||||
}
|
||||
else
|
||||
{
|
||||
final int points = Math.max(raidbossPoints, 1);
|
||||
final int points = (int) (Math.max(raidbossPoints, 1) * player.getStat().getValue(Stat.BONUS_RAID_POINTS, 1));
|
||||
player.increaseRaidbossPoints(points);
|
||||
player.sendPacket(new SystemMessage(SystemMessageId.YOU_HAVE_EARNED_S1_RAID_POINT_S).addInt(points));
|
||||
if (player.getNobleLevel() > 0)
|
||||
|
@ -150,6 +150,7 @@ public enum Stat
|
||||
BONUS_DROP_AMOUNT("bonusDropAmount"),
|
||||
BONUS_DROP_RATE("bonusDropRate"),
|
||||
BONUS_SPOIL_RATE("bonusSpoilRate"),
|
||||
BONUS_RAID_POINTS("bonusRaidPoints"),
|
||||
ATTACK_CANCEL("cancel"),
|
||||
|
||||
// ACCURACY & RANGE
|
||||
|
@ -69,6 +69,7 @@ public class EffectMasterHandler
|
||||
EffectHandler.getInstance().registerHandler("BonusDropAdena", BonusDropAdena::new);
|
||||
EffectHandler.getInstance().registerHandler("BonusDropAmount", BonusDropAmount::new);
|
||||
EffectHandler.getInstance().registerHandler("BonusDropRate", BonusDropRate::new);
|
||||
EffectHandler.getInstance().registerHandler("BonusRaidPoints", BonusRaidPoints::new);
|
||||
EffectHandler.getInstance().registerHandler("BonusSpoilRate", BonusSpoilRate::new);
|
||||
EffectHandler.getInstance().registerHandler("Breath", Breath::new);
|
||||
EffectHandler.getInstance().registerHandler("BuffBlock", BuffBlock::new);
|
||||
|
31
L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/handlers/effecthandlers/BonusRaidPoints.java
vendored
Normal file
31
L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/handlers/effecthandlers/BonusRaidPoints.java
vendored
Normal file
@ -0,0 +1,31 @@
|
||||
/*
|
||||
* 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 org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.stats.Stat;
|
||||
|
||||
/**
|
||||
* @author Mobius
|
||||
*/
|
||||
public class BonusRaidPoints extends AbstractStatPercentEffect
|
||||
{
|
||||
public BonusRaidPoints(StatSet params)
|
||||
{
|
||||
super(params, Stat.BONUS_RAID_POINTS);
|
||||
}
|
||||
}
|
@ -34,6 +34,10 @@
|
||||
<set name="weight" val="10" />
|
||||
<set name="is_sellable" val="false" />
|
||||
<set name="is_stackable" val="true" />
|
||||
<set name="handler" val="ExtractableItems" />
|
||||
<capsuled_items>
|
||||
<item id="48304" min="1" max="1" chance="100" /> <!-- Resolute Raid Point Rune -->
|
||||
</capsuled_items>
|
||||
</item>
|
||||
<item id="48304" name="Resolute Raid Point Rune" additionalName="2-hr." type="EtcItem">
|
||||
<!-- Having it in the inventory increases Raid Points gained by 100%. Will be deleted on Wednesday, May 31, 2017, after regular maintenance. -->
|
||||
@ -42,6 +46,11 @@
|
||||
<set name="is_tradable" val="false" />
|
||||
<set name="is_dropable" val="false" />
|
||||
<set name="is_sellable" val="false" />
|
||||
<set name="etcitem_type" val="ENCHT_ATTR_RUNE" />
|
||||
<set name="time" val="120" />
|
||||
<skills>
|
||||
<skill id="39177" level="1" /> <!-- Resolute Raid Point Rune -->
|
||||
</skills>
|
||||
</item>
|
||||
<item id="48305" name="Blessed Antharas' Earring - Shield" additionalName="30-day" type="Armor">
|
||||
<!-- Dimensional Item. MP +59, P./ M. Def. +15%, CON/ MEN+3, Earth/ Holy Attribute Resistance +30, Bleed Atk./ Def. Success Rate +50%, Stun/ Mental Atk./ Def. Success Rate +40%, Heal Received +10%, Skill MP Consumption -5%, Vampiric Rage +4%. Active Skill: Cancels Stun and gives Stun Resistance for 5 secs. Does not stack with identical earrings or earrings with same Craft Effect. <Craft Effect>. P. Def. +4% -->
|
||||
|
@ -196,6 +196,13 @@
|
||||
<!-- RP gain +100% if stored in the inventory. -->
|
||||
<icon>icon.etc_i.etc_rp_point_i00</icon>
|
||||
<operateType>P</operateType>
|
||||
<magicCriticalRate>5</magicCriticalRate>
|
||||
<magicLevel>1</magicLevel>
|
||||
<effects>
|
||||
<effect name="BonusRaidPoints">
|
||||
<amount>100</amount>
|
||||
</effect>
|
||||
</effects>
|
||||
</skill>
|
||||
<skill id="39178" toLevel="1" name="Resolute Attack Scroll">
|
||||
<!-- For 30 min., all clan members' P. Atk./ M. Atk. +3%, P. Skill Power/ M. Skill Power +3%, XP and SP gain +5%. -->
|
||||
|
@ -39,6 +39,7 @@ Bluff: Rotates the target so you face its back.
|
||||
BonusDropAdena: Bonus amount for dropped adena. (l2jmobius)
|
||||
BonusDropAmount: Bonus amount for dropped items. (l2jmobius)
|
||||
BonusDropRate: Bonus chance for dropping items. (l2jmobius)
|
||||
BonusRaidPoints: Bonus amount for raid points. (l2jmobius)
|
||||
BonusSpoilRate: Bonus chance for acquiring spoil items. (l2jmobius)
|
||||
Breath: Underwater breathing stat.
|
||||
BuffBlock: Blocks target from receiving buffs.
|
||||
|
@ -481,7 +481,7 @@ public class Attackable extends Npc
|
||||
|
||||
members.forEach(p ->
|
||||
{
|
||||
final int points = Math.max(raidbossPoints / members.size(), 1);
|
||||
final int points = (int) (Math.max(raidbossPoints / members.size(), 1) * p.getStat().getValue(Stat.BONUS_RAID_POINTS, 1));
|
||||
p.increaseRaidbossPoints(points);
|
||||
p.sendPacket(new SystemMessage(SystemMessageId.YOU_HAVE_EARNED_S1_RAID_POINT_S).addInt(points));
|
||||
if (p.getNobleLevel() > 0)
|
||||
@ -492,7 +492,7 @@ public class Attackable extends Npc
|
||||
}
|
||||
else
|
||||
{
|
||||
final int points = Math.max(raidbossPoints, 1);
|
||||
final int points = (int) (Math.max(raidbossPoints, 1) * player.getStat().getValue(Stat.BONUS_RAID_POINTS, 1));
|
||||
player.increaseRaidbossPoints(points);
|
||||
player.sendPacket(new SystemMessage(SystemMessageId.YOU_HAVE_EARNED_S1_RAID_POINT_S).addInt(points));
|
||||
if (player.getNobleLevel() > 0)
|
||||
|
@ -150,6 +150,7 @@ public enum Stat
|
||||
BONUS_DROP_AMOUNT("bonusDropAmount"),
|
||||
BONUS_DROP_RATE("bonusDropRate"),
|
||||
BONUS_SPOIL_RATE("bonusSpoilRate"),
|
||||
BONUS_RAID_POINTS("bonusRaidPoints"),
|
||||
ATTACK_CANCEL("cancel"),
|
||||
|
||||
// ACCURACY & RANGE
|
||||
|
@ -69,6 +69,7 @@ public class EffectMasterHandler
|
||||
EffectHandler.getInstance().registerHandler("BonusDropAdena", BonusDropAdena::new);
|
||||
EffectHandler.getInstance().registerHandler("BonusDropAmount", BonusDropAmount::new);
|
||||
EffectHandler.getInstance().registerHandler("BonusDropRate", BonusDropRate::new);
|
||||
EffectHandler.getInstance().registerHandler("BonusRaidPoints", BonusRaidPoints::new);
|
||||
EffectHandler.getInstance().registerHandler("BonusSpoilRate", BonusSpoilRate::new);
|
||||
EffectHandler.getInstance().registerHandler("Breath", Breath::new);
|
||||
EffectHandler.getInstance().registerHandler("BuffBlock", BuffBlock::new);
|
||||
|
31
L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/handlers/effecthandlers/BonusRaidPoints.java
vendored
Normal file
31
L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/handlers/effecthandlers/BonusRaidPoints.java
vendored
Normal file
@ -0,0 +1,31 @@
|
||||
/*
|
||||
* 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 org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.stats.Stat;
|
||||
|
||||
/**
|
||||
* @author Mobius
|
||||
*/
|
||||
public class BonusRaidPoints extends AbstractStatPercentEffect
|
||||
{
|
||||
public BonusRaidPoints(StatSet params)
|
||||
{
|
||||
super(params, Stat.BONUS_RAID_POINTS);
|
||||
}
|
||||
}
|
@ -34,6 +34,10 @@
|
||||
<set name="weight" val="10" />
|
||||
<set name="is_sellable" val="false" />
|
||||
<set name="is_stackable" val="true" />
|
||||
<set name="handler" val="ExtractableItems" />
|
||||
<capsuled_items>
|
||||
<item id="48304" min="1" max="1" chance="100" /> <!-- Resolute Raid Point Rune -->
|
||||
</capsuled_items>
|
||||
</item>
|
||||
<item id="48304" name="Resolute Raid Point Rune" additionalName="2-hour" type="EtcItem">
|
||||
<!-- Having it in the inventory increases Raid Points gained by 100%. -->
|
||||
@ -42,6 +46,11 @@
|
||||
<set name="is_tradable" val="false" />
|
||||
<set name="is_dropable" val="false" />
|
||||
<set name="is_sellable" val="false" />
|
||||
<set name="etcitem_type" val="ENCHT_ATTR_RUNE" />
|
||||
<set name="time" val="120" />
|
||||
<skills>
|
||||
<skill id="39177" level="1" /> <!-- Resolute Raid Point Rune -->
|
||||
</skills>
|
||||
</item>
|
||||
<item id="48305" name="Blessed Antharas' Earring - Shield" additionalName="30-day" type="Armor">
|
||||
<!-- Dimensional Item. MP +59, P./ M. Def. +15%, CON/ MEN+3, Earth/ Holy Attribute Resistance +30, Bleed Atk./ Def. Success Rate +50%, Stun/ Mental Atk./ Def. Success Rate +40%, Heal Received +10%, Skill MP Consumption -5%, Vampiric Rage +4%. Active Skill: Cancels Stun and gives Stun Resistance for 5 secs. Does not stack with identical earrings or earrings with same Craft Effect. <Craft Effect>. P. Def. +4% -->
|
||||
|
@ -197,6 +197,13 @@
|
||||
<!-- RP gain +100% if stored in the inventory. -->
|
||||
<icon>icon.etc_i.etc_rp_point_i00</icon>
|
||||
<operateType>P</operateType>
|
||||
<magicCriticalRate>5</magicCriticalRate>
|
||||
<magicLevel>1</magicLevel>
|
||||
<effects>
|
||||
<effect name="BonusRaidPoints">
|
||||
<amount>100</amount>
|
||||
</effect>
|
||||
</effects>
|
||||
</skill>
|
||||
<skill id="39178" toLevel="1" name="Resolute Attack Scroll">
|
||||
<!-- For 30 min., all clan members' P. Atk./ M. Atk. +3%, P. Skill Power/ M. Skill Power +3%, XP and SP gain +5%. -->
|
||||
|
@ -39,6 +39,7 @@ Bluff: Rotates the target so you face its back.
|
||||
BonusDropAdena: Bonus amount for dropped adena. (l2jmobius)
|
||||
BonusDropAmount: Bonus amount for dropped items. (l2jmobius)
|
||||
BonusDropRate: Bonus chance for dropping items. (l2jmobius)
|
||||
BonusRaidPoints: Bonus amount for raid points. (l2jmobius)
|
||||
BonusSpoilRate: Bonus chance for acquiring spoil items. (l2jmobius)
|
||||
Breath: Underwater breathing stat.
|
||||
BuffBlock: Blocks target from receiving buffs.
|
||||
|
@ -481,7 +481,7 @@ public class Attackable extends Npc
|
||||
|
||||
members.forEach(p ->
|
||||
{
|
||||
final int points = Math.max(raidbossPoints / members.size(), 1);
|
||||
final int points = (int) (Math.max(raidbossPoints / members.size(), 1) * p.getStat().getValue(Stat.BONUS_RAID_POINTS, 1));
|
||||
p.increaseRaidbossPoints(points);
|
||||
p.sendPacket(new SystemMessage(SystemMessageId.YOU_HAVE_EARNED_S1_RAID_POINT_S).addInt(points));
|
||||
if (p.getNobleLevel() > 0)
|
||||
@ -492,7 +492,7 @@ public class Attackable extends Npc
|
||||
}
|
||||
else
|
||||
{
|
||||
final int points = Math.max(raidbossPoints, 1);
|
||||
final int points = (int) (Math.max(raidbossPoints, 1) * player.getStat().getValue(Stat.BONUS_RAID_POINTS, 1));
|
||||
player.increaseRaidbossPoints(points);
|
||||
player.sendPacket(new SystemMessage(SystemMessageId.YOU_HAVE_EARNED_S1_RAID_POINT_S).addInt(points));
|
||||
if (player.getNobleLevel() > 0)
|
||||
|
@ -150,6 +150,7 @@ public enum Stat
|
||||
BONUS_DROP_AMOUNT("bonusDropAmount"),
|
||||
BONUS_DROP_RATE("bonusDropRate"),
|
||||
BONUS_SPOIL_RATE("bonusSpoilRate"),
|
||||
BONUS_RAID_POINTS("bonusRaidPoints"),
|
||||
ATTACK_CANCEL("cancel"),
|
||||
|
||||
// ACCURACY & RANGE
|
||||
|
@ -70,6 +70,7 @@ public class EffectMasterHandler
|
||||
EffectHandler.getInstance().registerHandler("BonusDropAdena", BonusDropAdena::new);
|
||||
EffectHandler.getInstance().registerHandler("BonusDropAmount", BonusDropAmount::new);
|
||||
EffectHandler.getInstance().registerHandler("BonusDropRate", BonusDropRate::new);
|
||||
EffectHandler.getInstance().registerHandler("BonusRaidPoints", BonusRaidPoints::new);
|
||||
EffectHandler.getInstance().registerHandler("BonusSpoilRate", BonusSpoilRate::new);
|
||||
EffectHandler.getInstance().registerHandler("Breath", Breath::new);
|
||||
EffectHandler.getInstance().registerHandler("BuffBlock", BuffBlock::new);
|
||||
|
31
L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/handlers/effecthandlers/BonusRaidPoints.java
vendored
Normal file
31
L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/handlers/effecthandlers/BonusRaidPoints.java
vendored
Normal file
@ -0,0 +1,31 @@
|
||||
/*
|
||||
* 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 org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.stats.Stat;
|
||||
|
||||
/**
|
||||
* @author Mobius
|
||||
*/
|
||||
public class BonusRaidPoints extends AbstractStatPercentEffect
|
||||
{
|
||||
public BonusRaidPoints(StatSet params)
|
||||
{
|
||||
super(params, Stat.BONUS_RAID_POINTS);
|
||||
}
|
||||
}
|
@ -34,6 +34,10 @@
|
||||
<set name="weight" val="10" />
|
||||
<set name="is_sellable" val="false" />
|
||||
<set name="is_stackable" val="true" />
|
||||
<set name="handler" val="ExtractableItems" />
|
||||
<capsuled_items>
|
||||
<item id="48304" min="1" max="1" chance="100" /> <!-- Resolute Raid Point Rune -->
|
||||
</capsuled_items>
|
||||
</item>
|
||||
<item id="48304" name="Resolute Raid Point Rune" additionalName="2-hour" type="EtcItem">
|
||||
<!-- Having it in the inventory increases Raid Points gained by 100%. -->
|
||||
@ -42,6 +46,11 @@
|
||||
<set name="is_tradable" val="false" />
|
||||
<set name="is_dropable" val="false" />
|
||||
<set name="is_sellable" val="false" />
|
||||
<set name="etcitem_type" val="ENCHT_ATTR_RUNE" />
|
||||
<set name="time" val="120" />
|
||||
<skills>
|
||||
<skill id="39177" level="1" /> <!-- Resolute Raid Point Rune -->
|
||||
</skills>
|
||||
</item>
|
||||
<item id="48305" name="Blessed Antharas' Earring - Shield" additionalName="30-day" type="Armor">
|
||||
<!-- Dimensional Item. MP +59, P./ M. Def. +15%, CON/ MEN+3, Earth/ Holy Attribute Resistance +30, Bleed Atk./ Def. Success Rate +50%, Stun/ Mental Atk./ Def. Success Rate +40%, Heal Received +10%, Skill MP Consumption -5%, Vampiric Rage +4%. Active Skill: Cancels Stun and gives Stun Resistance for 5 secs. Does not stack with identical earrings or earrings with same Craft Effect. <Craft Effect>. P. Def. +4% -->
|
||||
|
@ -197,6 +197,13 @@
|
||||
<!-- When in inventory, Acquired RP +100%. -->
|
||||
<icon>icon.etc_i.etc_rp_point_i00</icon>
|
||||
<operateType>P</operateType>
|
||||
<magicCriticalRate>5</magicCriticalRate>
|
||||
<magicLevel>1</magicLevel>
|
||||
<effects>
|
||||
<effect name="BonusRaidPoints">
|
||||
<amount>100</amount>
|
||||
</effect>
|
||||
</effects>
|
||||
</skill>
|
||||
<skill id="39178" toLevel="1" name="Resolute Attack Scroll">
|
||||
<!-- For 30 min., all clan members' P. Atk./ M. Atk. +3%, P. Skill Power/ M. Skill Power +3%, XP and SP gain +5%. -->
|
||||
|
@ -40,6 +40,7 @@ Bluff: Rotates the target so you face its back.
|
||||
BonusDropAdena: Bonus amount for dropped adena. (l2jmobius)
|
||||
BonusDropAmount: Bonus amount for dropped items. (l2jmobius)
|
||||
BonusDropRate: Bonus chance for dropping items. (l2jmobius)
|
||||
BonusRaidPoints: Bonus amount for raid points. (l2jmobius)
|
||||
BonusSpoilRate: Bonus chance for acquiring spoil items. (l2jmobius)
|
||||
Breath: Underwater breathing stat.
|
||||
BuffBlock: Blocks target from receiving buffs.
|
||||
|
@ -481,7 +481,7 @@ public class Attackable extends Npc
|
||||
|
||||
members.forEach(p ->
|
||||
{
|
||||
final int points = Math.max(raidbossPoints / members.size(), 1);
|
||||
final int points = (int) (Math.max(raidbossPoints / members.size(), 1) * p.getStat().getValue(Stat.BONUS_RAID_POINTS, 1));
|
||||
p.increaseRaidbossPoints(points);
|
||||
p.sendPacket(new SystemMessage(SystemMessageId.YOU_HAVE_EARNED_S1_RAID_POINT_S).addInt(points));
|
||||
if (p.getNobleLevel() > 0)
|
||||
@ -492,7 +492,7 @@ public class Attackable extends Npc
|
||||
}
|
||||
else
|
||||
{
|
||||
final int points = Math.max(raidbossPoints, 1);
|
||||
final int points = (int) (Math.max(raidbossPoints, 1) * player.getStat().getValue(Stat.BONUS_RAID_POINTS, 1));
|
||||
player.increaseRaidbossPoints(points);
|
||||
player.sendPacket(new SystemMessage(SystemMessageId.YOU_HAVE_EARNED_S1_RAID_POINT_S).addInt(points));
|
||||
if (player.getNobleLevel() > 0)
|
||||
|
@ -150,6 +150,7 @@ public enum Stat
|
||||
BONUS_DROP_AMOUNT("bonusDropAmount"),
|
||||
BONUS_DROP_RATE("bonusDropRate"),
|
||||
BONUS_SPOIL_RATE("bonusSpoilRate"),
|
||||
BONUS_RAID_POINTS("bonusRaidPoints"),
|
||||
ATTACK_CANCEL("cancel"),
|
||||
|
||||
// ACCURACY & RANGE
|
||||
|
@ -70,6 +70,7 @@ public class EffectMasterHandler
|
||||
EffectHandler.getInstance().registerHandler("BonusDropAdena", BonusDropAdena::new);
|
||||
EffectHandler.getInstance().registerHandler("BonusDropAmount", BonusDropAmount::new);
|
||||
EffectHandler.getInstance().registerHandler("BonusDropRate", BonusDropRate::new);
|
||||
EffectHandler.getInstance().registerHandler("BonusRaidPoints", BonusRaidPoints::new);
|
||||
EffectHandler.getInstance().registerHandler("BonusSpoilRate", BonusSpoilRate::new);
|
||||
EffectHandler.getInstance().registerHandler("Breath", Breath::new);
|
||||
EffectHandler.getInstance().registerHandler("BuffBlock", BuffBlock::new);
|
||||
|
31
L2J_Mobius_8.2_Homunculus/dist/game/data/scripts/handlers/effecthandlers/BonusRaidPoints.java
vendored
Normal file
31
L2J_Mobius_8.2_Homunculus/dist/game/data/scripts/handlers/effecthandlers/BonusRaidPoints.java
vendored
Normal file
@ -0,0 +1,31 @@
|
||||
/*
|
||||
* 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 org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.stats.Stat;
|
||||
|
||||
/**
|
||||
* @author Mobius
|
||||
*/
|
||||
public class BonusRaidPoints extends AbstractStatPercentEffect
|
||||
{
|
||||
public BonusRaidPoints(StatSet params)
|
||||
{
|
||||
super(params, Stat.BONUS_RAID_POINTS);
|
||||
}
|
||||
}
|
@ -34,6 +34,10 @@
|
||||
<set name="weight" val="10" />
|
||||
<set name="is_sellable" val="false" />
|
||||
<set name="is_stackable" val="true" />
|
||||
<set name="handler" val="ExtractableItems" />
|
||||
<capsuled_items>
|
||||
<item id="48304" min="1" max="1" chance="100" /> <!-- Resolute Raid Point Rune -->
|
||||
</capsuled_items>
|
||||
</item>
|
||||
<item id="48304" name="Resolute Raid Point Rune" additionalName="2-hour" type="EtcItem">
|
||||
<!-- Having it in the inventory increases Raid Points gained by 100%. -->
|
||||
@ -42,6 +46,11 @@
|
||||
<set name="is_tradable" val="false" />
|
||||
<set name="is_dropable" val="false" />
|
||||
<set name="is_sellable" val="false" />
|
||||
<set name="etcitem_type" val="ENCHT_ATTR_RUNE" />
|
||||
<set name="time" val="120" />
|
||||
<skills>
|
||||
<skill id="39177" level="1" /> <!-- Resolute Raid Point Rune -->
|
||||
</skills>
|
||||
</item>
|
||||
<item id="48305" name="Blessed Antharas' Earring - Shield" additionalName="30-day" type="Armor">
|
||||
<!-- MP +59, P./ M. Def. +15%, CON/ MEN +3, Earth/ Holy Resistance +30, Infection Resistance/ Atk. Rate +50%, Confusion Resistance/ Atk. Rate +40%, Received Healing +10%, Skill MP Consumption -5%, Vampiric Rage effect +4%. Active skill: Removes Stun debuffs and grants immunity to Confusion for 5 sec. Effects of two identical earrings do not stack. <Special effect>. P. Def. +4% -->
|
||||
|
@ -203,6 +203,13 @@
|
||||
<!-- When in inventory, Acquired RP +100%. -->
|
||||
<icon>icon.etc_i.etc_rp_point_i00</icon>
|
||||
<operateType>P</operateType>
|
||||
<magicCriticalRate>5</magicCriticalRate>
|
||||
<magicLevel>1</magicLevel>
|
||||
<effects>
|
||||
<effect name="BonusRaidPoints">
|
||||
<amount>100</amount>
|
||||
</effect>
|
||||
</effects>
|
||||
</skill>
|
||||
<skill id="39178" toLevel="1" name="Resolute Attack Scroll">
|
||||
<!-- For $s1, clan members' P. Atk./ M. Atk. +$s2, P. Skill Power/ M. Skill Power +$s3, acquired XP/ SP +$s4. -->
|
||||
|
@ -40,6 +40,7 @@ Bluff: Rotates the target so you face its back.
|
||||
BonusDropAdena: Bonus amount for dropped adena. (l2jmobius)
|
||||
BonusDropAmount: Bonus amount for dropped items. (l2jmobius)
|
||||
BonusDropRate: Bonus chance for dropping items. (l2jmobius)
|
||||
BonusRaidPoints: Bonus amount for raid points. (l2jmobius)
|
||||
BonusSpoilRate: Bonus chance for acquiring spoil items. (l2jmobius)
|
||||
Breath: Underwater breathing stat.
|
||||
BuffBlock: Blocks target from receiving buffs.
|
||||
|
@ -481,7 +481,7 @@ public class Attackable extends Npc
|
||||
|
||||
members.forEach(p ->
|
||||
{
|
||||
final int points = Math.max(raidbossPoints / members.size(), 1);
|
||||
final int points = (int) (Math.max(raidbossPoints / members.size(), 1) * p.getStat().getValue(Stat.BONUS_RAID_POINTS, 1));
|
||||
p.increaseRaidbossPoints(points);
|
||||
p.sendPacket(new SystemMessage(SystemMessageId.YOU_HAVE_EARNED_S1_RAID_POINT_S).addInt(points));
|
||||
if (p.getNobleLevel() > 0)
|
||||
@ -492,7 +492,7 @@ public class Attackable extends Npc
|
||||
}
|
||||
else
|
||||
{
|
||||
final int points = Math.max(raidbossPoints, 1);
|
||||
final int points = (int) (Math.max(raidbossPoints, 1) * player.getStat().getValue(Stat.BONUS_RAID_POINTS, 1));
|
||||
player.increaseRaidbossPoints(points);
|
||||
player.sendPacket(new SystemMessage(SystemMessageId.YOU_HAVE_EARNED_S1_RAID_POINT_S).addInt(points));
|
||||
if (player.getNobleLevel() > 0)
|
||||
|
@ -150,6 +150,7 @@ public enum Stat
|
||||
BONUS_DROP_AMOUNT("bonusDropAmount"),
|
||||
BONUS_DROP_RATE("bonusDropRate"),
|
||||
BONUS_SPOIL_RATE("bonusSpoilRate"),
|
||||
BONUS_RAID_POINTS("bonusRaidPoints"),
|
||||
ATTACK_CANCEL("cancel"),
|
||||
|
||||
// ACCURACY & RANGE
|
||||
|
@ -71,6 +71,7 @@ public class EffectMasterHandler
|
||||
EffectHandler.getInstance().registerHandler("BonusDropAdena", BonusDropAdena::new);
|
||||
EffectHandler.getInstance().registerHandler("BonusDropAmount", BonusDropAmount::new);
|
||||
EffectHandler.getInstance().registerHandler("BonusDropRate", BonusDropRate::new);
|
||||
EffectHandler.getInstance().registerHandler("BonusRaidPoints", BonusRaidPoints::new);
|
||||
EffectHandler.getInstance().registerHandler("BonusSpoilRate", BonusSpoilRate::new);
|
||||
EffectHandler.getInstance().registerHandler("Breath", Breath::new);
|
||||
EffectHandler.getInstance().registerHandler("BuffBlock", BuffBlock::new);
|
||||
|
@ -0,0 +1,31 @@
|
||||
/*
|
||||
* 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 org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.stats.Stat;
|
||||
|
||||
/**
|
||||
* @author Mobius
|
||||
*/
|
||||
public class BonusRaidPoints extends AbstractStatPercentEffect
|
||||
{
|
||||
public BonusRaidPoints(StatSet params)
|
||||
{
|
||||
super(params, Stat.BONUS_RAID_POINTS);
|
||||
}
|
||||
}
|
@ -34,6 +34,10 @@
|
||||
<set name="weight" val="10" />
|
||||
<set name="is_sellable" val="false" />
|
||||
<set name="is_stackable" val="true" />
|
||||
<set name="handler" val="ExtractableItems" />
|
||||
<capsuled_items>
|
||||
<item id="48304" min="1" max="1" chance="100" /> <!-- Resolute Raid Point Rune -->
|
||||
</capsuled_items>
|
||||
</item>
|
||||
<item id="48304" name="Resolute Raid Point Rune" additionalName="2-hour" type="EtcItem">
|
||||
<!-- Having it in the inventory increases Raid Points gained by 100%. -->
|
||||
@ -42,6 +46,11 @@
|
||||
<set name="is_tradable" val="false" />
|
||||
<set name="is_dropable" val="false" />
|
||||
<set name="is_sellable" val="false" />
|
||||
<set name="etcitem_type" val="ENCHT_ATTR_RUNE" />
|
||||
<set name="time" val="120" />
|
||||
<skills>
|
||||
<skill id="39177" level="1" /> <!-- Resolute Raid Point Rune -->
|
||||
</skills>
|
||||
</item>
|
||||
<item id="48305" name="Blessed Antharas' Earring - Shield" additionalName="30-day" type="Armor">
|
||||
<!-- MP +59, P./ M. Def. +15%, CON/ MEN +3, Earth/ Holy Resistance +30, Infection Resistance/ Atk. Rate +50%, Confusion Resistance/ Atk. Rate +40%, Received Healing +10%, Skill MP Consumption -5%, Vampiric Rage effect +4%. Active skill: Removes Stun debuffs and grants immunity to Confusion for 5 sec. Effects of two identical earrings do not stack. <Special effect>. P. Def. +4% -->
|
||||
|
@ -203,6 +203,13 @@
|
||||
<!-- When in inventory, Acquired RP +100%. -->
|
||||
<icon>icon.etc_i.etc_rp_point_i00</icon>
|
||||
<operateType>P</operateType>
|
||||
<magicCriticalRate>5</magicCriticalRate>
|
||||
<magicLevel>1</magicLevel>
|
||||
<effects>
|
||||
<effect name="BonusRaidPoints">
|
||||
<amount>100</amount>
|
||||
</effect>
|
||||
</effects>
|
||||
</skill>
|
||||
<skill id="39178" toLevel="1" name="Resolute Attack Scroll">
|
||||
<!-- For $s1, clan members' P. Atk./ M. Atk. +$s2, P. Skill Power/ M. Skill Power +$s3, acquired XP/ SP +$s4. -->
|
||||
|
@ -40,6 +40,7 @@ Bluff: Rotates the target so you face its back.
|
||||
BonusDropAdena: Bonus amount for dropped adena. (l2jmobius)
|
||||
BonusDropAmount: Bonus amount for dropped items. (l2jmobius)
|
||||
BonusDropRate: Bonus chance for dropping items. (l2jmobius)
|
||||
BonusRaidPoints: Bonus amount for raid points. (l2jmobius)
|
||||
BonusSpoilRate: Bonus chance for acquiring spoil items. (l2jmobius)
|
||||
Breath: Underwater breathing stat.
|
||||
BuffBlock: Blocks target from receiving buffs.
|
||||
|
@ -481,7 +481,7 @@ public class Attackable extends Npc
|
||||
|
||||
members.forEach(p ->
|
||||
{
|
||||
final int points = Math.max(raidbossPoints / members.size(), 1);
|
||||
final int points = (int) (Math.max(raidbossPoints / members.size(), 1) * p.getStat().getValue(Stat.BONUS_RAID_POINTS, 1));
|
||||
p.increaseRaidbossPoints(points);
|
||||
p.sendPacket(new SystemMessage(SystemMessageId.YOU_HAVE_EARNED_S1_RAID_POINT_S).addInt(points));
|
||||
if (p.getNobleLevel() > 0)
|
||||
@ -492,7 +492,7 @@ public class Attackable extends Npc
|
||||
}
|
||||
else
|
||||
{
|
||||
final int points = Math.max(raidbossPoints, 1);
|
||||
final int points = (int) (Math.max(raidbossPoints, 1) * player.getStat().getValue(Stat.BONUS_RAID_POINTS, 1));
|
||||
player.increaseRaidbossPoints(points);
|
||||
player.sendPacket(new SystemMessage(SystemMessageId.YOU_HAVE_EARNED_S1_RAID_POINT_S).addInt(points));
|
||||
if (player.getNobleLevel() > 0)
|
||||
|
@ -150,6 +150,7 @@ public enum Stat
|
||||
BONUS_DROP_AMOUNT("bonusDropAmount"),
|
||||
BONUS_DROP_RATE("bonusDropRate"),
|
||||
BONUS_SPOIL_RATE("bonusSpoilRate"),
|
||||
BONUS_RAID_POINTS("bonusRaidPoints"),
|
||||
ATTACK_CANCEL("cancel"),
|
||||
|
||||
// ACCURACY & RANGE
|
||||
|
@ -67,6 +67,7 @@ public class EffectMasterHandler
|
||||
EffectHandler.getInstance().registerHandler("BonusDropAdena", BonusDropAdena::new);
|
||||
EffectHandler.getInstance().registerHandler("BonusDropAmount", BonusDropAmount::new);
|
||||
EffectHandler.getInstance().registerHandler("BonusDropRate", BonusDropRate::new);
|
||||
EffectHandler.getInstance().registerHandler("BonusRaidPoints", BonusRaidPoints::new);
|
||||
EffectHandler.getInstance().registerHandler("BonusSpoilRate", BonusSpoilRate::new);
|
||||
EffectHandler.getInstance().registerHandler("Breath", Breath::new);
|
||||
EffectHandler.getInstance().registerHandler("BuffBlock", BuffBlock::new);
|
||||
|
@ -0,0 +1,31 @@
|
||||
/*
|
||||
* 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 org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.stats.Stat;
|
||||
|
||||
/**
|
||||
* @author Mobius
|
||||
*/
|
||||
public class BonusRaidPoints extends AbstractStatPercentEffect
|
||||
{
|
||||
public BonusRaidPoints(StatSet params)
|
||||
{
|
||||
super(params, Stat.BONUS_RAID_POINTS);
|
||||
}
|
||||
}
|
@ -37,6 +37,7 @@ Bluff: Rotates the target so you face its back.
|
||||
BonusDropAdena: Bonus amount for dropped adena. (l2jmobius)
|
||||
BonusDropAmount: Bonus amount for dropped items. (l2jmobius)
|
||||
BonusDropRate: Bonus chance for dropping items. (l2jmobius)
|
||||
BonusRaidPoints: Bonus amount for raid points. (l2jmobius)
|
||||
BonusSpoilRate: Bonus chance for acquiring spoil items. (l2jmobius)
|
||||
Breath: Underwater breathing stat.
|
||||
BuffBlock: Blocks target from receiving buffs.
|
||||
|
@ -482,7 +482,7 @@ public class Attackable extends Npc
|
||||
|
||||
members.forEach(p ->
|
||||
{
|
||||
final int points = Math.max(raidbossPoints / members.size(), 1);
|
||||
final int points = (int) (Math.max(raidbossPoints / members.size(), 1) * p.getStat().getValue(Stat.BONUS_RAID_POINTS, 1));
|
||||
p.increaseRaidbossPoints(points);
|
||||
p.sendPacket(new SystemMessage(SystemMessageId.YOU_HAVE_EARNED_S1_RAID_POINT_S).addInt(points));
|
||||
if (p.isNoble())
|
||||
@ -493,7 +493,7 @@ public class Attackable extends Npc
|
||||
}
|
||||
else
|
||||
{
|
||||
final int points = Math.max(raidbossPoints, 1);
|
||||
final int points = (int) (Math.max(raidbossPoints, 1) * player.getStat().getValue(Stat.BONUS_RAID_POINTS, 1));
|
||||
player.increaseRaidbossPoints(points);
|
||||
player.sendPacket(new SystemMessage(SystemMessageId.YOU_HAVE_EARNED_S1_RAID_POINT_S).addInt(points));
|
||||
if (player.isNoble())
|
||||
|
@ -149,6 +149,7 @@ public enum Stat
|
||||
BONUS_DROP_AMOUNT("bonusDropAmount"),
|
||||
BONUS_DROP_RATE("bonusDropRate"),
|
||||
BONUS_SPOIL_RATE("bonusSpoilRate"),
|
||||
BONUS_RAID_POINTS("bonusRaidPoints"),
|
||||
ATTACK_CANCEL("cancel"),
|
||||
|
||||
// ACCURACY & RANGE
|
||||
|
@ -68,6 +68,7 @@ public class EffectMasterHandler
|
||||
EffectHandler.getInstance().registerHandler("BonusDropAdena", BonusDropAdena::new);
|
||||
EffectHandler.getInstance().registerHandler("BonusDropAmount", BonusDropAmount::new);
|
||||
EffectHandler.getInstance().registerHandler("BonusDropRate", BonusDropRate::new);
|
||||
EffectHandler.getInstance().registerHandler("BonusRaidPoints", BonusRaidPoints::new);
|
||||
EffectHandler.getInstance().registerHandler("BonusSpoilRate", BonusSpoilRate::new);
|
||||
EffectHandler.getInstance().registerHandler("Breath", Breath::new);
|
||||
EffectHandler.getInstance().registerHandler("BuffBlock", BuffBlock::new);
|
||||
|
@ -0,0 +1,31 @@
|
||||
/*
|
||||
* 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 org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.stats.Stat;
|
||||
|
||||
/**
|
||||
* @author Mobius
|
||||
*/
|
||||
public class BonusRaidPoints extends AbstractStatPercentEffect
|
||||
{
|
||||
public BonusRaidPoints(StatSet params)
|
||||
{
|
||||
super(params, Stat.BONUS_RAID_POINTS);
|
||||
}
|
||||
}
|
@ -38,6 +38,7 @@ Bluff: Rotates the target so you face its back.
|
||||
BonusDropAdena: Bonus amount for dropped adena. (l2jmobius)
|
||||
BonusDropAmount: Bonus amount for dropped items. (l2jmobius)
|
||||
BonusDropRate: Bonus chance for dropping items. (l2jmobius)
|
||||
BonusRaidPoints: Bonus amount for raid points. (l2jmobius)
|
||||
BonusSpoilRate: Bonus chance for acquiring spoil items. (l2jmobius)
|
||||
Breath: Underwater breathing stat.
|
||||
BuffBlock: Blocks target from receiving buffs.
|
||||
|
@ -484,7 +484,7 @@ public class Attackable extends Npc
|
||||
|
||||
members.forEach(p ->
|
||||
{
|
||||
final int points = Math.max(raidbossPoints / members.size(), 1);
|
||||
final int points = (int) (Math.max(raidbossPoints / members.size(), 1) * p.getStat().getValue(Stat.BONUS_RAID_POINTS, 1));
|
||||
p.increaseRaidbossPoints(points);
|
||||
p.sendPacket(new SystemMessage(SystemMessageId.YOU_HAVE_EARNED_S1_RAID_POINT_S).addInt(points));
|
||||
if (p.isNoble())
|
||||
@ -495,7 +495,7 @@ public class Attackable extends Npc
|
||||
}
|
||||
else
|
||||
{
|
||||
final int points = Math.max(raidbossPoints, 1);
|
||||
final int points = (int) (Math.max(raidbossPoints, 1) * player.getStat().getValue(Stat.BONUS_RAID_POINTS, 1));
|
||||
player.increaseRaidbossPoints(points);
|
||||
player.sendPacket(new SystemMessage(SystemMessageId.YOU_HAVE_EARNED_S1_RAID_POINT_S).addInt(points));
|
||||
if (player.isNoble())
|
||||
|
@ -162,6 +162,7 @@ public enum Stat
|
||||
BONUS_DROP_AMOUNT("bonusDropAmount"),
|
||||
BONUS_DROP_RATE("bonusDropRate"),
|
||||
BONUS_SPOIL_RATE("bonusSpoilRate"),
|
||||
BONUS_RAID_POINTS("bonusRaidPoints"),
|
||||
ATTACK_CANCEL("cancel"),
|
||||
|
||||
// ACCURACY & RANGE
|
||||
|
@ -68,6 +68,7 @@ public class EffectMasterHandler
|
||||
EffectHandler.getInstance().registerHandler("BonusDropAdena", BonusDropAdena::new);
|
||||
EffectHandler.getInstance().registerHandler("BonusDropAmount", BonusDropAmount::new);
|
||||
EffectHandler.getInstance().registerHandler("BonusDropRate", BonusDropRate::new);
|
||||
EffectHandler.getInstance().registerHandler("BonusRaidPoints", BonusRaidPoints::new);
|
||||
EffectHandler.getInstance().registerHandler("BonusSpoilRate", BonusSpoilRate::new);
|
||||
EffectHandler.getInstance().registerHandler("Breath", Breath::new);
|
||||
EffectHandler.getInstance().registerHandler("BuffBlock", BuffBlock::new);
|
||||
|
@ -0,0 +1,31 @@
|
||||
/*
|
||||
* 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 org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.stats.Stat;
|
||||
|
||||
/**
|
||||
* @author Mobius
|
||||
*/
|
||||
public class BonusRaidPoints extends AbstractStatPercentEffect
|
||||
{
|
||||
public BonusRaidPoints(StatSet params)
|
||||
{
|
||||
super(params, Stat.BONUS_RAID_POINTS);
|
||||
}
|
||||
}
|
@ -38,6 +38,7 @@ Bluff: Rotates the target so you face its back.
|
||||
BonusDropAdena: Bonus amount for dropped adena. (l2jmobius)
|
||||
BonusDropAmount: Bonus amount for dropped items. (l2jmobius)
|
||||
BonusDropRate: Bonus chance for dropping items. (l2jmobius)
|
||||
BonusRaidPoints: Bonus amount for raid points. (l2jmobius)
|
||||
BonusSpoilRate: Bonus chance for acquiring spoil items. (l2jmobius)
|
||||
Breath: Underwater breathing stat.
|
||||
BuffBlock: Blocks target from receiving buffs.
|
||||
|
@ -484,7 +484,7 @@ public class Attackable extends Npc
|
||||
|
||||
members.forEach(p ->
|
||||
{
|
||||
final int points = Math.max(raidbossPoints / members.size(), 1);
|
||||
final int points = (int) (Math.max(raidbossPoints / members.size(), 1) * p.getStat().getValue(Stat.BONUS_RAID_POINTS, 1));
|
||||
p.increaseRaidbossPoints(points);
|
||||
p.sendPacket(new SystemMessage(SystemMessageId.YOU_HAVE_EARNED_S1_RAID_POINT_S).addInt(points));
|
||||
if (p.isNoble())
|
||||
@ -495,7 +495,7 @@ public class Attackable extends Npc
|
||||
}
|
||||
else
|
||||
{
|
||||
final int points = Math.max(raidbossPoints, 1);
|
||||
final int points = (int) (Math.max(raidbossPoints, 1) * player.getStat().getValue(Stat.BONUS_RAID_POINTS, 1));
|
||||
player.increaseRaidbossPoints(points);
|
||||
player.sendPacket(new SystemMessage(SystemMessageId.YOU_HAVE_EARNED_S1_RAID_POINT_S).addInt(points));
|
||||
if (player.isNoble())
|
||||
|
@ -162,6 +162,7 @@ public enum Stat
|
||||
BONUS_DROP_AMOUNT("bonusDropAmount"),
|
||||
BONUS_DROP_RATE("bonusDropRate"),
|
||||
BONUS_SPOIL_RATE("bonusSpoilRate"),
|
||||
BONUS_RAID_POINTS("bonusRaidPoints"),
|
||||
ATTACK_CANCEL("cancel"),
|
||||
|
||||
// ACCURACY & RANGE
|
||||
|
@ -69,6 +69,7 @@ public class EffectMasterHandler
|
||||
EffectHandler.getInstance().registerHandler("BonusDropAdena", BonusDropAdena::new);
|
||||
EffectHandler.getInstance().registerHandler("BonusDropAmount", BonusDropAmount::new);
|
||||
EffectHandler.getInstance().registerHandler("BonusDropRate", BonusDropRate::new);
|
||||
EffectHandler.getInstance().registerHandler("BonusRaidPoints", BonusRaidPoints::new);
|
||||
EffectHandler.getInstance().registerHandler("BonusSpoilRate", BonusSpoilRate::new);
|
||||
EffectHandler.getInstance().registerHandler("Breath", Breath::new);
|
||||
EffectHandler.getInstance().registerHandler("BuffBlock", BuffBlock::new);
|
||||
|
@ -0,0 +1,31 @@
|
||||
/*
|
||||
* 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 org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.stats.Stat;
|
||||
|
||||
/**
|
||||
* @author Mobius
|
||||
*/
|
||||
public class BonusRaidPoints extends AbstractStatPercentEffect
|
||||
{
|
||||
public BonusRaidPoints(StatSet params)
|
||||
{
|
||||
super(params, Stat.BONUS_RAID_POINTS);
|
||||
}
|
||||
}
|
@ -39,6 +39,7 @@ Bluff: Rotates the target so you face its back.
|
||||
BonusDropAdena: Bonus amount for dropped adena. (l2jmobius)
|
||||
BonusDropAmount: Bonus amount for dropped items. (l2jmobius)
|
||||
BonusDropRate: Bonus chance for dropping items. (l2jmobius)
|
||||
BonusRaidPoints: Bonus amount for raid points. (l2jmobius)
|
||||
BonusSpoilRate: Bonus chance for acquiring spoil items. (l2jmobius)
|
||||
Breath: Underwater breathing stat.
|
||||
BuffBlock: Blocks target from receiving buffs.
|
||||
|
@ -484,7 +484,7 @@ public class Attackable extends Npc
|
||||
|
||||
members.forEach(p ->
|
||||
{
|
||||
final int points = Math.max(raidbossPoints / members.size(), 1);
|
||||
final int points = (int) (Math.max(raidbossPoints / members.size(), 1) * p.getStat().getValue(Stat.BONUS_RAID_POINTS, 1));
|
||||
p.increaseRaidbossPoints(points);
|
||||
p.sendPacket(new SystemMessage(SystemMessageId.YOU_HAVE_EARNED_S1_RAID_POINT_S).addInt(points));
|
||||
if (p.isNoble())
|
||||
@ -495,7 +495,7 @@ public class Attackable extends Npc
|
||||
}
|
||||
else
|
||||
{
|
||||
final int points = Math.max(raidbossPoints, 1);
|
||||
final int points = (int) (Math.max(raidbossPoints, 1) * player.getStat().getValue(Stat.BONUS_RAID_POINTS, 1));
|
||||
player.increaseRaidbossPoints(points);
|
||||
player.sendPacket(new SystemMessage(SystemMessageId.YOU_HAVE_EARNED_S1_RAID_POINT_S).addInt(points));
|
||||
if (player.isNoble())
|
||||
|
@ -164,6 +164,7 @@ public enum Stat
|
||||
BONUS_DROP_AMOUNT("bonusDropAmount"),
|
||||
BONUS_DROP_RATE("bonusDropRate"),
|
||||
BONUS_SPOIL_RATE("bonusSpoilRate"),
|
||||
BONUS_RAID_POINTS("bonusRaidPoints"),
|
||||
ATTACK_CANCEL("cancel"),
|
||||
|
||||
// ACCURACY & RANGE
|
||||
|
@ -69,6 +69,7 @@ public class EffectMasterHandler
|
||||
EffectHandler.getInstance().registerHandler("BonusDropAdena", BonusDropAdena::new);
|
||||
EffectHandler.getInstance().registerHandler("BonusDropAmount", BonusDropAmount::new);
|
||||
EffectHandler.getInstance().registerHandler("BonusDropRate", BonusDropRate::new);
|
||||
EffectHandler.getInstance().registerHandler("BonusRaidPoints", BonusRaidPoints::new);
|
||||
EffectHandler.getInstance().registerHandler("BonusSpoilRate", BonusSpoilRate::new);
|
||||
EffectHandler.getInstance().registerHandler("Breath", Breath::new);
|
||||
EffectHandler.getInstance().registerHandler("BuffBlock", BuffBlock::new);
|
||||
|
@ -0,0 +1,31 @@
|
||||
/*
|
||||
* 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 org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.stats.Stat;
|
||||
|
||||
/**
|
||||
* @author Mobius
|
||||
*/
|
||||
public class BonusRaidPoints extends AbstractStatPercentEffect
|
||||
{
|
||||
public BonusRaidPoints(StatSet params)
|
||||
{
|
||||
super(params, Stat.BONUS_RAID_POINTS);
|
||||
}
|
||||
}
|
@ -39,6 +39,7 @@ Bluff: Rotates the target so you face its back.
|
||||
BonusDropAdena: Bonus amount for dropped adena. (l2jmobius)
|
||||
BonusDropAmount: Bonus amount for dropped items. (l2jmobius)
|
||||
BonusDropRate: Bonus chance for dropping items. (l2jmobius)
|
||||
BonusRaidPoints: Bonus amount for raid points. (l2jmobius)
|
||||
BonusSpoilRate: Bonus chance for acquiring spoil items. (l2jmobius)
|
||||
Breath: Underwater breathing stat.
|
||||
BuffBlock: Blocks target from receiving buffs.
|
||||
|
@ -485,7 +485,7 @@ public class Attackable extends Npc
|
||||
|
||||
members.forEach(p ->
|
||||
{
|
||||
final int points = Math.max(raidbossPoints / members.size(), 1);
|
||||
final int points = (int) (Math.max(raidbossPoints / members.size(), 1) * p.getStat().getValue(Stat.BONUS_RAID_POINTS, 1));
|
||||
p.increaseRaidbossPoints(points);
|
||||
p.sendPacket(new SystemMessage(SystemMessageId.YOU_HAVE_EARNED_S1_RAID_POINT_S).addInt(points));
|
||||
if (p.isNoble())
|
||||
@ -496,7 +496,7 @@ public class Attackable extends Npc
|
||||
}
|
||||
else
|
||||
{
|
||||
final int points = Math.max(raidbossPoints, 1);
|
||||
final int points = (int) (Math.max(raidbossPoints, 1) * player.getStat().getValue(Stat.BONUS_RAID_POINTS, 1));
|
||||
player.increaseRaidbossPoints(points);
|
||||
player.sendPacket(new SystemMessage(SystemMessageId.YOU_HAVE_EARNED_S1_RAID_POINT_S).addInt(points));
|
||||
if (player.isNoble())
|
||||
|
@ -164,6 +164,7 @@ public enum Stat
|
||||
BONUS_DROP_AMOUNT("bonusDropAmount"),
|
||||
BONUS_DROP_RATE("bonusDropRate"),
|
||||
BONUS_SPOIL_RATE("bonusSpoilRate"),
|
||||
BONUS_RAID_POINTS("bonusRaidPoints"),
|
||||
ATTACK_CANCEL("cancel"),
|
||||
|
||||
// ACCURACY & RANGE
|
||||
|
@ -69,6 +69,7 @@ public class EffectMasterHandler
|
||||
EffectHandler.getInstance().registerHandler("BonusDropAdena", BonusDropAdena::new);
|
||||
EffectHandler.getInstance().registerHandler("BonusDropAmount", BonusDropAmount::new);
|
||||
EffectHandler.getInstance().registerHandler("BonusDropRate", BonusDropRate::new);
|
||||
EffectHandler.getInstance().registerHandler("BonusRaidPoints", BonusRaidPoints::new);
|
||||
EffectHandler.getInstance().registerHandler("BonusSpoilRate", BonusSpoilRate::new);
|
||||
EffectHandler.getInstance().registerHandler("Breath", Breath::new);
|
||||
EffectHandler.getInstance().registerHandler("BuffBlock", BuffBlock::new);
|
||||
|
@ -0,0 +1,31 @@
|
||||
/*
|
||||
* 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 org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.stats.Stat;
|
||||
|
||||
/**
|
||||
* @author Mobius
|
||||
*/
|
||||
public class BonusRaidPoints extends AbstractStatPercentEffect
|
||||
{
|
||||
public BonusRaidPoints(StatSet params)
|
||||
{
|
||||
super(params, Stat.BONUS_RAID_POINTS);
|
||||
}
|
||||
}
|
@ -39,6 +39,7 @@ Bluff: Rotates the target so you face its back.
|
||||
BonusDropAdena: Bonus amount for dropped adena. (l2jmobius)
|
||||
BonusDropAmount: Bonus amount for dropped items. (l2jmobius)
|
||||
BonusDropRate: Bonus chance for dropping items. (l2jmobius)
|
||||
BonusRaidPoints: Bonus amount for raid points. (l2jmobius)
|
||||
BonusSpoilRate: Bonus chance for acquiring spoil items. (l2jmobius)
|
||||
Breath: Underwater breathing stat.
|
||||
BuffBlock: Blocks target from receiving buffs.
|
||||
|
@ -490,7 +490,7 @@ public class Attackable extends Npc
|
||||
|
||||
members.forEach(p ->
|
||||
{
|
||||
final int points = Math.max(raidbossPoints / members.size(), 1);
|
||||
final int points = (int) (Math.max(raidbossPoints / members.size(), 1) * p.getStat().getValue(Stat.BONUS_RAID_POINTS, 1));
|
||||
p.increaseRaidbossPoints(points);
|
||||
p.sendPacket(new SystemMessage(SystemMessageId.YOU_HAVE_EARNED_S1_RAID_POINT_S).addInt(points));
|
||||
if (p.isNoble())
|
||||
@ -501,7 +501,7 @@ public class Attackable extends Npc
|
||||
}
|
||||
else
|
||||
{
|
||||
final int points = Math.max(raidbossPoints, 1);
|
||||
final int points = (int) (Math.max(raidbossPoints, 1) * player.getStat().getValue(Stat.BONUS_RAID_POINTS, 1));
|
||||
player.increaseRaidbossPoints(points);
|
||||
player.sendPacket(new SystemMessage(SystemMessageId.YOU_HAVE_EARNED_S1_RAID_POINT_S).addInt(points));
|
||||
if (player.isNoble())
|
||||
|
@ -164,6 +164,7 @@ public enum Stat
|
||||
BONUS_DROP_AMOUNT("bonusDropAmount"),
|
||||
BONUS_DROP_RATE("bonusDropRate"),
|
||||
BONUS_SPOIL_RATE("bonusSpoilRate"),
|
||||
BONUS_RAID_POINTS("bonusRaidPoints"),
|
||||
ATTACK_CANCEL("cancel"),
|
||||
|
||||
// ACCURACY & RANGE
|
||||
|
Loading…
Reference in New Issue
Block a user