Fixed SetupGauge send proper objId.

Contributed by Sahar.
This commit is contained in:
MobiusDev
2018-05-18 23:49:48 +00:00
parent e93064859b
commit 0c49dce9a5
9 changed files with 23 additions and 28 deletions

View File

@@ -496,7 +496,7 @@ public class AdminMobGroup implements IAdminCommandHandler
private void doAnimation(L2PcInstance activeChar)
{
Broadcast.toSelfAndKnownPlayersInRadius(activeChar, new MagicSkillUse(activeChar, 1008, 1, 4000, 0), 1500);
activeChar.sendPacket(new SetupGauge(0, 4000));
activeChar.sendPacket(new SetupGauge(activeChar.getObjectId(), 0, 4000));
}
private void attackGrp(String command, L2PcInstance activeChar)

View File

@@ -165,7 +165,7 @@ public class AdminPolymorph implements IAdminCommandHandler
final L2Character Char = (L2Character) obj;
final MagicSkillUse msk = new MagicSkillUse(Char, 1008, 1, 4000, 0);
Char.broadcastPacket(msk);
final SetupGauge sg = new SetupGauge(0, 4000);
final SetupGauge sg = new SetupGauge(Char.getObjectId(), 0, 4000);
Char.sendPacket(sg);
}
// end of animation

View File

@@ -131,7 +131,7 @@ public class RentPet implements IBypassHandler
}
player.mount(petId, 0, false);
final SetupGauge sg = new SetupGauge(3, time * 1000);
final SetupGauge sg = new SetupGauge(player.getObjectId(), 3, time * 1000);
player.sendPacket(sg);
player.startRentPet(time);
}

View File

@@ -106,7 +106,7 @@ public class Unstuck implements IUserCommandHandler
final MagicSkillUse msk = new MagicSkillUse(activeChar, 1050, 1, unstuckTimer, 0);
Broadcast.toSelfAndKnownPlayersInRadius(activeChar, msk, 900);
final SetupGauge sg = new SetupGauge(0, unstuckTimer);
final SetupGauge sg = new SetupGauge(activeChar.getObjectId(), 0, unstuckTimer);
activeChar.sendPacket(sg);
// End SoE Animation section

View File

@@ -466,7 +466,7 @@ public class Wedding implements IVoicedCommandHandler
final MagicSkillUse msk = new MagicSkillUse(activeChar, 1050, 1, teleportTimer, 0);
Broadcast.toSelfAndKnownPlayersInRadius(activeChar, msk, 900);
final SetupGauge sg = new SetupGauge(0, teleportTimer);
final SetupGauge sg = new SetupGauge(activeChar.getObjectId(), 0, teleportTimer);
activeChar.sendPacket(sg);
// End SoE Animation section