Partial improvement for lag caused by soulshots.

This commit is contained in:
MobiusDevelopment 2020-08-28 09:48:13 +00:00
parent 662603c11a
commit ba8fe260ab
10 changed files with 28 additions and 10 deletions

View File

@ -148,7 +148,7 @@ public class BeastSoulShot implements IItemHandler
// Pet uses the power of spirit.
activeOwner.sendPacket(SystemMessageId.PET_USES_THE_POWER_OF_SPIRIT);
Broadcast.toSelfAndKnownPlayersInRadius(activeOwner, new MagicSkillUse(activePet, activePet, 2033, 1, 0, 0), 360000/* 600 */);
Broadcast.toSelfAndKnownPlayersInRadius(activeOwner, new MagicSkillUse(activePet, activePet, 2033, 1, 0, 0), 360000);
}
@Override

View File

@ -163,7 +163,7 @@ public class BeastSpiritShot implements IItemHandler
// Pet uses the power of spirit.
activeOwner.sendPacket(SystemMessageId.PET_USES_THE_POWER_OF_SPIRIT);
Broadcast.toSelfAndKnownPlayersInRadius(activeOwner, new MagicSkillUse(activePet, activePet, isBlessed ? 2009 : 2008, 1, 0, 0), 360000/* 600 */);
Broadcast.toSelfAndKnownPlayersInRadius(activeOwner, new MagicSkillUse(activePet, activePet, isBlessed ? 2009 : 2008, 1, 0, 0), 360000);
}
@Override

View File

@ -122,11 +122,14 @@ public class BlessedSpiritShot implements IItemHandler
}
// Charge Blessed Spiritshot
if (weaponInst.getChargedSpiritshot() != itemId)
{
Broadcast.toSelfAndKnownPlayersInRadius(player, new MagicSkillUse(player, player, SKILL_IDS[weaponGrade], 1, 0, 0), 360000);
}
weaponInst.setChargedSpiritshot(ItemInstance.CHARGED_BLESSED_SPIRITSHOT);
// Send message to client
player.sendPacket(SystemMessageId.POWER_OF_MANA_ENABLED);
Broadcast.toSelfAndKnownPlayersInRadius(player, new MagicSkillUse(player, player, SKILL_IDS[weaponGrade], 1, 0, 0), 360000/* 600 */);
}
@Override

View File

@ -115,11 +115,14 @@ public class SoulShots implements IItemHandler
}
// Charge soulshot
if (weaponInst.getChargedSoulshot() != itemId)
{
Broadcast.toSelfAndKnownPlayersInRadius(player, new MagicSkillUse(player, player, SKILL_IDS[weaponGrade], 1, 0, 0), 360000);
}
weaponInst.setChargedSoulshot(ItemInstance.CHARGED_SOULSHOT);
// Send message to client
player.sendPacket(SystemMessageId.POWER_OF_THE_SPIRITS_ENABLED);
Broadcast.toSelfAndKnownPlayersInRadius(player, new MagicSkillUse(player, player, SKILL_IDS[weaponGrade], 1, 0, 0), 360000/* 600 */);
}
@Override

View File

@ -112,11 +112,14 @@ public class SpiritShot implements IItemHandler
}
// Charge Spiritshot
if (weaponInst.getChargedSpiritshot() != itemId)
{
Broadcast.toSelfAndKnownPlayersInRadius(player, new MagicSkillUse(player, player, SKILL_IDS[weaponGrade], 1, 0, 0), 360000);
}
weaponInst.setChargedSpiritshot(ItemInstance.CHARGED_SPIRITSHOT);
// Send message to client
player.sendPacket(SystemMessageId.POWER_OF_MANA_ENABLED);
Broadcast.toSelfAndKnownPlayersInRadius(player, new MagicSkillUse(player, player, SKILL_IDS[weaponGrade], 1, 0, 0), 360000/* 600 */);
}
@Override

View File

@ -148,7 +148,7 @@ public class BeastSoulShot implements IItemHandler
// Pet uses the power of spirit.
activeOwner.sendPacket(SystemMessageId.PET_USES_THE_POWER_OF_SPIRIT);
Broadcast.toSelfAndKnownPlayersInRadius(activeOwner, new MagicSkillUse(activePet, activePet, 2033, 1, 0, 0), 360000/* 600 */);
Broadcast.toSelfAndKnownPlayersInRadius(activeOwner, new MagicSkillUse(activePet, activePet, 2033, 1, 0, 0), 360000);
}
@Override

View File

@ -163,7 +163,7 @@ public class BeastSpiritShot implements IItemHandler
// Pet uses the power of spirit.
activeOwner.sendPacket(SystemMessageId.PET_USES_THE_POWER_OF_SPIRIT);
Broadcast.toSelfAndKnownPlayersInRadius(activeOwner, new MagicSkillUse(activePet, activePet, isBlessed ? 2009 : 2008, 1, 0, 0), 360000/* 600 */);
Broadcast.toSelfAndKnownPlayersInRadius(activeOwner, new MagicSkillUse(activePet, activePet, isBlessed ? 2009 : 2008, 1, 0, 0), 360000);
}
@Override

View File

@ -122,11 +122,14 @@ public class BlessedSpiritShot implements IItemHandler
}
// Charge Blessed Spiritshot
if (weaponInst.getChargedSpiritshot() != itemId)
{
Broadcast.toSelfAndKnownPlayersInRadius(player, new MagicSkillUse(player, player, SKILL_IDS[weaponGrade], 1, 0, 0), 360000);
}
weaponInst.setChargedSpiritshot(ItemInstance.CHARGED_BLESSED_SPIRITSHOT);
// Send message to client
player.sendPacket(SystemMessageId.POWER_OF_MANA_ENABLED);
Broadcast.toSelfAndKnownPlayersInRadius(player, new MagicSkillUse(player, player, SKILL_IDS[weaponGrade], 1, 0, 0), 360000/* 600 */);
}
@Override

View File

@ -115,11 +115,14 @@ public class SoulShots implements IItemHandler
}
// Charge soulshot
if (weaponInst.getChargedSoulshot() != itemId)
{
Broadcast.toSelfAndKnownPlayersInRadius(player, new MagicSkillUse(player, player, SKILL_IDS[weaponGrade], 1, 0, 0), 360000);
}
weaponInst.setChargedSoulshot(ItemInstance.CHARGED_SOULSHOT);
// Send message to client
player.sendPacket(SystemMessageId.POWER_OF_THE_SPIRITS_ENABLED);
Broadcast.toSelfAndKnownPlayersInRadius(player, new MagicSkillUse(player, player, SKILL_IDS[weaponGrade], 1, 0, 0), 360000/* 600 */);
}
@Override

View File

@ -112,11 +112,14 @@ public class SpiritShot implements IItemHandler
}
// Charge Spiritshot
if (weaponInst.getChargedSpiritshot() != itemId)
{
Broadcast.toSelfAndKnownPlayersInRadius(player, new MagicSkillUse(player, player, SKILL_IDS[weaponGrade], 1, 0, 0), 360000);
}
weaponInst.setChargedSpiritshot(ItemInstance.CHARGED_SPIRITSHOT);
// Send message to client
player.sendPacket(SystemMessageId.POWER_OF_MANA_ENABLED);
Broadcast.toSelfAndKnownPlayersInRadius(player, new MagicSkillUse(player, player, SKILL_IDS[weaponGrade], 1, 0, 0), 360000/* 600 */);
}
@Override