Fixed SetupGauge send proper objId.
Contributed by Sahar.
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user