Addition of BonusRaidPoints effect handler.

This commit is contained in:
MobiusDevelopment 2021-09-13 13:08:53 +00:00
parent fd4ad348ab
commit 4baa29f4a0
72 changed files with 528 additions and 24 deletions

View File

@ -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);

View 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);
}
}

View File

@ -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% -->

View File

@ -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%. -->

View File

@ -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.

View File

@ -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)

View File

@ -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

View File

@ -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);

View 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);
}
}

View File

@ -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% -->

View File

@ -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%. -->

View File

@ -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.

View File

@ -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)

View File

@ -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

View File

@ -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);

View 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);
}
}

View File

@ -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% -->

View File

@ -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%. -->

View File

@ -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.

View File

@ -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)

View File

@ -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

View File

@ -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);

View 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);
}
}

View File

@ -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% -->

View File

@ -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%. -->

View File

@ -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.

View File

@ -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)

View File

@ -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

View File

@ -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);

View 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);
}
}

View File

@ -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% -->

View File

@ -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. -->

View File

@ -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.

View File

@ -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)

View File

@ -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

View File

@ -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);

View 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);
}
}

View File

@ -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% -->

View File

@ -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. -->

View File

@ -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.

View File

@ -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)

View File

@ -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

View File

@ -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);

View 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);
}
}

View File

@ -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.

View File

@ -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())

View File

@ -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

View File

@ -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);

View 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);
}
}

View File

@ -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.

View File

@ -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())

View File

@ -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

View File

@ -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);

View 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);
}
}

View File

@ -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.

View File

@ -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())

View File

@ -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

View File

@ -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);

View 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);
}
}

View File

@ -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.

View File

@ -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())

View File

@ -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

View File

@ -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);

View 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);
}
}

View File

@ -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.

View File

@ -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())

View File

@ -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

View File

@ -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);

View 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);
}
}

View File

@ -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.

View File

@ -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())

View File

@ -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