0010: ff 9e c3 03 00 8f f3 ff ff .........
format dddddd (player id, target id, distance, startx, starty, startz)
@version $Revision: 1.1.2.1.2.3 $ $Date: 2005/03/27 15:29:57 $
294295296297298299300301302303304
if(!activeChar.isMoving()){ if(activeChar.isInBoat()) sendPacket(new ValidateLocationInVehicle(activeChar)); else sendPacket(new ValidateLocation(activeChar)); }else if(diffSq > activeChar.getStat().getMoveSpeed()) activeChar.broadcastPacket(new CharMoveToLocation(activeChar));
7172737475767778798081
MyTargetSelected my = new MyTargetSelected(getObjectId(), 0); player.sendPacket(my); my = null; // Send a Server->Client packet ValidateLocation to correct the L2NpcInstance position and heading on the client player.sendPacket(new ValidateLocation(this)); } else { // Calculate the distance between the L2PcInstance and the L2NpcInstance if(!canInteract(player))
170171172173174175176177178179180
// Send a Server->Client packet MyTargetSelected to the L2PcInstance player MyTargetSelected my = new MyTargetSelected(getObjectId(), 0); player.sendPacket(my); my = null; player.sendPacket(new ValidateLocation(this)); } else { // Calculate the distance between the L2PcInstance and the L2NpcInstance if(!canInteract(player))
116117118119120121122123124125126
su.addAttribute(StatusUpdate.MAX_HP, getMaxHp()); player.sendPacket(su); su = null; // Send a Server->Client packet ValidateLocation to correct the L2NpcInstance position and heading on the client player.sendPacket(new ValidateLocation(this)); } else { if(isAutoAttackable(player) && Math.abs(player.getZ() - getZ()) < 100) {
216217218219220221222223224225226
// player The color to display in the select window is White MyTargetSelected my = new MyTargetSelected(getObjectId(), 0); player.sendPacket(my); // Send a Server->Client packet ValidateLocation to correct the // L2NpcInstance position and heading on the client player.sendPacket(new ValidateLocation(this)); } else { // Check if the L2PcInstance is in the _aggroList of the L2GuardInstance if(containsTarget(player))
791792793794795796797798799800801802803804805806
my = null; } player.setTimerToAttack(System.currentTimeMillis()); // Send a Server->Client packet ValidateLocation to correct the L2NpcInstance position and heading on the client player.sendPacket(new ValidateLocation(this)); } else { player.sendPacket(new ValidateLocation(this)); // Check if the player is attackable (without a forced attack) and isn't dead if (isAutoAttackable(player) && !isAlikeDead()) { // Check the height difference
110211031104110511061107110811091110111111121113111411151116
player.sendPacket(my); my = null; } player.setTimerToAttack(System.currentTimeMillis()); player.sendPacket(new ValidateLocation(this)); } else { player.sendPacket(new ValidateLocation(this)); // Check if the player is attackable (without a forced attack) and isn't dead if (isAutoAttackable(player) && !isAlikeDead()) { // Check the height difference if (Math.abs(player.getZ() - getZ()) < 400) // this max heigth difference might need some tweaking
8283848586878889909192
6162636465666768697071
180181182183184185186187188189190
su.addAttribute(StatusUpdate.MAX_HP, getMaxHp()); player.sendPacket(su); su = null; // Send a Server->Client packet ValidateLocation to correct the L2NpcInstance position and heading on the client player.sendPacket(new ValidateLocation(this)); } else { if(isAutoAttackable(player) && !isAlikeDead()) {