Partial improvement for lag caused by soulshots.
This commit is contained in:
parent
662603c11a
commit
ba8fe260ab
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user