Changed misleading NPC distance information.
This commit is contained in:
parent
e05acf38aa
commit
74f491d654
@ -30,7 +30,7 @@
|
||||
<tr><td><table width=270 border=0 bgcolor=131210><tr><td width=100><font color="LEVEL">Heading:</font></td><td align=right width=170>%heading%</td></tr></table></td></tr>
|
||||
<tr><td><table width=270 border=0><tr><td width=100><font color="LEVEL">Collision Radius:</font></td><td align=right width=170>%collision_radius%</td></tr></table></td></tr>
|
||||
<tr><td><table width=270 border=0 bgcolor=131210><tr><td width=100><font color="LEVEL">Collision Height:</font></td><td align=right width=170>%collision_height%</td></tr></table></td></tr>
|
||||
<tr><td><table width=270 border=0><tr><td width=100><font color="LEVEL">Distance:</font></td><td align=right width=170>2D: %loc2d%, 3D: %loc3d%, You: %dist%</td></tr></table></td></tr>
|
||||
<tr><td><table width=270 border=0><tr><td width=100><font color="LEVEL">Distance:</font></td><td align=right width=170>2D: %loc2d%, 3D: %loc3d%</td></tr></table></td></tr>
|
||||
<tr><td><table width=270 border=0 bgcolor=131210><tr><td width=100><font color="LEVEL">Respawn:</font></td><td align=right width=170>%resp%</td></tr></table></td></tr>
|
||||
<tr><td><table width=270 border=0><tr><td width=100><font color="LEVEL">Aggro:</font></td><td align=right width=170><font color=999999>%aggro%</font></td></tr></table></td></tr>
|
||||
<tr><td><table width=270 border=0 bgcolor=131210><tr><td width=100><font color="LEVEL">HP:</font></td><td align=right width=170><font color=FF4040>%hp%/%hpmax%</font></td></tr></table></td></tr>
|
||||
|
@ -90,12 +90,13 @@ public class L2NpcActionShift implements IActionShiftHandler
|
||||
html.replace("%heading%", String.valueOf(npc.getHeading()));
|
||||
html.replace("%collision_radius%", String.valueOf(npc.getTemplate().getfCollisionRadius()));
|
||||
html.replace("%collision_height%", String.valueOf(npc.getTemplate().getfCollisionHeight()));
|
||||
html.replace("%dist%", String.valueOf((int) activeChar.calculateDistance(target, true, false)));
|
||||
html.replace("%clanHall%", clanHall != null ? clanHall.getName() : "none");
|
||||
html.replace("%mpRewardValue%", npc.getTemplate().getMpRewardValue());
|
||||
html.replace("%mpRewardTicks%", npc.getTemplate().getMpRewardTicks());
|
||||
html.replace("%mpRewardType%", npc.getTemplate().getMpRewardType().name());
|
||||
html.replace("%mpRewardAffectType%", npc.getTemplate().getMpRewardAffectType().name());
|
||||
html.replace("%loc2d%", String.valueOf((int) activeChar.calculateDistance(npc, false, false)));
|
||||
html.replace("%loc3d%", String.valueOf((int) activeChar.calculateDistance(npc, true, false)));
|
||||
|
||||
final AttributeType attackAttribute = npc.getAttackElement();
|
||||
html.replace("%ele_atk%", attackAttribute.name());
|
||||
@ -129,8 +130,6 @@ public class L2NpcActionShift implements IActionShiftHandler
|
||||
}
|
||||
|
||||
html.replace("%spawn%", npc.getSpawn().getX() + " " + npc.getSpawn().getY() + " " + npc.getSpawn().getZ());
|
||||
html.replace("%loc2d%", String.valueOf((int) npc.calculateDistance(npc.getSpawn().getLocation(), false, false)));
|
||||
html.replace("%loc3d%", String.valueOf((int) npc.calculateDistance(npc.getSpawn().getLocation(), true, false)));
|
||||
if (npc.getSpawn().getRespawnMinDelay() == 0)
|
||||
{
|
||||
html.replace("%resp%", "None");
|
||||
@ -147,8 +146,6 @@ public class L2NpcActionShift implements IActionShiftHandler
|
||||
else
|
||||
{
|
||||
html.replace("%spawn%", "<font color=FF0000>null</font>");
|
||||
html.replace("%loc2d%", "<font color=FF0000>--</font>");
|
||||
html.replace("%loc3d%", "<font color=FF0000>--</font>");
|
||||
html.replace("%resp%", "<font color=FF0000>--</font>");
|
||||
}
|
||||
|
||||
|
@ -30,7 +30,7 @@
|
||||
<tr><td><table width=270 border=0 bgcolor=131210><tr><td width=100><font color="LEVEL">Heading:</font></td><td align=right width=170>%heading%</td></tr></table></td></tr>
|
||||
<tr><td><table width=270 border=0><tr><td width=100><font color="LEVEL">Collision Radius:</font></td><td align=right width=170>%collision_radius%</td></tr></table></td></tr>
|
||||
<tr><td><table width=270 border=0 bgcolor=131210><tr><td width=100><font color="LEVEL">Collision Height:</font></td><td align=right width=170>%collision_height%</td></tr></table></td></tr>
|
||||
<tr><td><table width=270 border=0><tr><td width=100><font color="LEVEL">Distance:</font></td><td align=right width=170>2D: %loc2d%, 3D: %loc3d%, You: %dist%</td></tr></table></td></tr>
|
||||
<tr><td><table width=270 border=0><tr><td width=100><font color="LEVEL">Distance:</font></td><td align=right width=170>2D: %loc2d%, 3D: %loc3d%</td></tr></table></td></tr>
|
||||
<tr><td><table width=270 border=0 bgcolor=131210><tr><td width=100><font color="LEVEL">Respawn:</font></td><td align=right width=170>%resp%</td></tr></table></td></tr>
|
||||
<tr><td><table width=270 border=0><tr><td width=100><font color="LEVEL">Aggro:</font></td><td align=right width=170><font color=999999>%aggro%</font></td></tr></table></td></tr>
|
||||
<tr><td><table width=270 border=0 bgcolor=131210><tr><td width=100><font color="LEVEL">HP:</font></td><td align=right width=170><font color=FF4040>%hp%/%hpmax%</font></td></tr></table></td></tr>
|
||||
|
@ -90,12 +90,13 @@ public class L2NpcActionShift implements IActionShiftHandler
|
||||
html.replace("%heading%", String.valueOf(npc.getHeading()));
|
||||
html.replace("%collision_radius%", String.valueOf(npc.getTemplate().getfCollisionRadius()));
|
||||
html.replace("%collision_height%", String.valueOf(npc.getTemplate().getfCollisionHeight()));
|
||||
html.replace("%dist%", String.valueOf((int) activeChar.calculateDistance(target, true, false)));
|
||||
html.replace("%clanHall%", clanHall != null ? clanHall.getName() : "none");
|
||||
html.replace("%mpRewardValue%", npc.getTemplate().getMpRewardValue());
|
||||
html.replace("%mpRewardTicks%", npc.getTemplate().getMpRewardTicks());
|
||||
html.replace("%mpRewardType%", npc.getTemplate().getMpRewardType().name());
|
||||
html.replace("%mpRewardAffectType%", npc.getTemplate().getMpRewardAffectType().name());
|
||||
html.replace("%loc2d%", String.valueOf((int) activeChar.calculateDistance(npc, false, false)));
|
||||
html.replace("%loc3d%", String.valueOf((int) activeChar.calculateDistance(npc, true, false)));
|
||||
|
||||
final AttributeType attackAttribute = npc.getAttackElement();
|
||||
html.replace("%ele_atk%", attackAttribute.name());
|
||||
@ -129,8 +130,6 @@ public class L2NpcActionShift implements IActionShiftHandler
|
||||
}
|
||||
|
||||
html.replace("%spawn%", npc.getSpawn().getX() + " " + npc.getSpawn().getY() + " " + npc.getSpawn().getZ());
|
||||
html.replace("%loc2d%", String.valueOf((int) npc.calculateDistance(npc.getSpawn().getLocation(), false, false)));
|
||||
html.replace("%loc3d%", String.valueOf((int) npc.calculateDistance(npc.getSpawn().getLocation(), true, false)));
|
||||
if (npc.getSpawn().getRespawnMinDelay() == 0)
|
||||
{
|
||||
html.replace("%resp%", "None");
|
||||
@ -147,8 +146,6 @@ public class L2NpcActionShift implements IActionShiftHandler
|
||||
else
|
||||
{
|
||||
html.replace("%spawn%", "<font color=FF0000>null</font>");
|
||||
html.replace("%loc2d%", "<font color=FF0000>--</font>");
|
||||
html.replace("%loc3d%", "<font color=FF0000>--</font>");
|
||||
html.replace("%resp%", "<font color=FF0000>--</font>");
|
||||
}
|
||||
|
||||
|
@ -30,7 +30,7 @@
|
||||
<tr><td><table width=270 border=0 bgcolor=131210><tr><td width=100><font color="LEVEL">Heading:</font></td><td align=right width=170>%heading%</td></tr></table></td></tr>
|
||||
<tr><td><table width=270 border=0><tr><td width=100><font color="LEVEL">Collision Radius:</font></td><td align=right width=170>%collision_radius%</td></tr></table></td></tr>
|
||||
<tr><td><table width=270 border=0 bgcolor=131210><tr><td width=100><font color="LEVEL">Collision Height:</font></td><td align=right width=170>%collision_height%</td></tr></table></td></tr>
|
||||
<tr><td><table width=270 border=0><tr><td width=100><font color="LEVEL">Distance:</font></td><td align=right width=170>2D: %loc2d%, 3D: %loc3d%, You: %dist%</td></tr></table></td></tr>
|
||||
<tr><td><table width=270 border=0><tr><td width=100><font color="LEVEL">Distance:</font></td><td align=right width=170>2D: %loc2d%, 3D: %loc3d%</td></tr></table></td></tr>
|
||||
<tr><td><table width=270 border=0 bgcolor=131210><tr><td width=100><font color="LEVEL">Respawn:</font></td><td align=right width=170>%resp%</td></tr></table></td></tr>
|
||||
<tr><td><table width=270 border=0><tr><td width=100><font color="LEVEL">Aggro:</font></td><td align=right width=170><font color=999999>%aggro%</font></td></tr></table></td></tr>
|
||||
<tr><td><table width=270 border=0 bgcolor=131210><tr><td width=100><font color="LEVEL">HP:</font></td><td align=right width=170><font color=FF4040>%hp%/%hpmax%</font></td></tr></table></td></tr>
|
||||
|
@ -90,12 +90,13 @@ public class L2NpcActionShift implements IActionShiftHandler
|
||||
html.replace("%heading%", String.valueOf(npc.getHeading()));
|
||||
html.replace("%collision_radius%", String.valueOf(npc.getTemplate().getfCollisionRadius()));
|
||||
html.replace("%collision_height%", String.valueOf(npc.getTemplate().getfCollisionHeight()));
|
||||
html.replace("%dist%", String.valueOf((int) activeChar.calculateDistance(target, true, false)));
|
||||
html.replace("%clanHall%", clanHall != null ? clanHall.getName() : "none");
|
||||
html.replace("%mpRewardValue%", npc.getTemplate().getMpRewardValue());
|
||||
html.replace("%mpRewardTicks%", npc.getTemplate().getMpRewardTicks());
|
||||
html.replace("%mpRewardType%", npc.getTemplate().getMpRewardType().name());
|
||||
html.replace("%mpRewardAffectType%", npc.getTemplate().getMpRewardAffectType().name());
|
||||
html.replace("%loc2d%", String.valueOf((int) activeChar.calculateDistance(npc, false, false)));
|
||||
html.replace("%loc3d%", String.valueOf((int) activeChar.calculateDistance(npc, true, false)));
|
||||
|
||||
final AttributeType attackAttribute = npc.getAttackElement();
|
||||
html.replace("%ele_atk%", attackAttribute.name());
|
||||
@ -129,8 +130,6 @@ public class L2NpcActionShift implements IActionShiftHandler
|
||||
}
|
||||
|
||||
html.replace("%spawn%", npc.getSpawn().getX() + " " + npc.getSpawn().getY() + " " + npc.getSpawn().getZ());
|
||||
html.replace("%loc2d%", String.valueOf((int) npc.calculateDistance(npc.getSpawn().getLocation(), false, false)));
|
||||
html.replace("%loc3d%", String.valueOf((int) npc.calculateDistance(npc.getSpawn().getLocation(), true, false)));
|
||||
if (npc.getSpawn().getRespawnMinDelay() == 0)
|
||||
{
|
||||
html.replace("%resp%", "None");
|
||||
@ -147,8 +146,6 @@ public class L2NpcActionShift implements IActionShiftHandler
|
||||
else
|
||||
{
|
||||
html.replace("%spawn%", "<font color=FF0000>null</font>");
|
||||
html.replace("%loc2d%", "<font color=FF0000>--</font>");
|
||||
html.replace("%loc3d%", "<font color=FF0000>--</font>");
|
||||
html.replace("%resp%", "<font color=FF0000>--</font>");
|
||||
}
|
||||
|
||||
|
@ -30,7 +30,7 @@
|
||||
<tr><td><table width=270 border=0 bgcolor=131210><tr><td width=100><font color="LEVEL">Heading:</font></td><td align=right width=170>%heading%</td></tr></table></td></tr>
|
||||
<tr><td><table width=270 border=0><tr><td width=100><font color="LEVEL">Collision Radius:</font></td><td align=right width=170>%collision_radius%</td></tr></table></td></tr>
|
||||
<tr><td><table width=270 border=0 bgcolor=131210><tr><td width=100><font color="LEVEL">Collision Height:</font></td><td align=right width=170>%collision_height%</td></tr></table></td></tr>
|
||||
<tr><td><table width=270 border=0><tr><td width=100><font color="LEVEL">Distance:</font></td><td align=right width=170>2D: %loc2d%, 3D: %loc3d%, You: %dist%</td></tr></table></td></tr>
|
||||
<tr><td><table width=270 border=0><tr><td width=100><font color="LEVEL">Distance:</font></td><td align=right width=170>2D: %loc2d%, 3D: %loc3d%</td></tr></table></td></tr>
|
||||
<tr><td><table width=270 border=0 bgcolor=131210><tr><td width=100><font color="LEVEL">Respawn:</font></td><td align=right width=170>%resp%</td></tr></table></td></tr>
|
||||
<tr><td><table width=270 border=0><tr><td width=100><font color="LEVEL">Aggro:</font></td><td align=right width=170><font color=999999>%aggro%</font></td></tr></table></td></tr>
|
||||
<tr><td><table width=270 border=0 bgcolor=131210><tr><td width=100><font color="LEVEL">HP:</font></td><td align=right width=170><font color=FF4040>%hp%/%hpmax%</font></td></tr></table></td></tr>
|
||||
|
@ -90,12 +90,13 @@ public class L2NpcActionShift implements IActionShiftHandler
|
||||
html.replace("%heading%", String.valueOf(npc.getHeading()));
|
||||
html.replace("%collision_radius%", String.valueOf(npc.getTemplate().getfCollisionRadius()));
|
||||
html.replace("%collision_height%", String.valueOf(npc.getTemplate().getfCollisionHeight()));
|
||||
html.replace("%dist%", String.valueOf((int) activeChar.calculateDistance(target, true, false)));
|
||||
html.replace("%clanHall%", clanHall != null ? clanHall.getName() : "none");
|
||||
html.replace("%mpRewardValue%", npc.getTemplate().getMpRewardValue());
|
||||
html.replace("%mpRewardTicks%", npc.getTemplate().getMpRewardTicks());
|
||||
html.replace("%mpRewardType%", npc.getTemplate().getMpRewardType().name());
|
||||
html.replace("%mpRewardAffectType%", npc.getTemplate().getMpRewardAffectType().name());
|
||||
html.replace("%loc2d%", String.valueOf((int) activeChar.calculateDistance(npc, false, false)));
|
||||
html.replace("%loc3d%", String.valueOf((int) activeChar.calculateDistance(npc, true, false)));
|
||||
|
||||
final AttributeType attackAttribute = npc.getAttackElement();
|
||||
html.replace("%ele_atk%", attackAttribute.name());
|
||||
@ -129,8 +130,6 @@ public class L2NpcActionShift implements IActionShiftHandler
|
||||
}
|
||||
|
||||
html.replace("%spawn%", npc.getSpawn().getX() + " " + npc.getSpawn().getY() + " " + npc.getSpawn().getZ());
|
||||
html.replace("%loc2d%", String.valueOf((int) npc.calculateDistance(npc.getSpawn().getLocation(), false, false)));
|
||||
html.replace("%loc3d%", String.valueOf((int) npc.calculateDistance(npc.getSpawn().getLocation(), true, false)));
|
||||
if (npc.getSpawn().getRespawnMinDelay() == 0)
|
||||
{
|
||||
html.replace("%resp%", "None");
|
||||
@ -147,8 +146,6 @@ public class L2NpcActionShift implements IActionShiftHandler
|
||||
else
|
||||
{
|
||||
html.replace("%spawn%", "<font color=FF0000>null</font>");
|
||||
html.replace("%loc2d%", "<font color=FF0000>--</font>");
|
||||
html.replace("%loc3d%", "<font color=FF0000>--</font>");
|
||||
html.replace("%resp%", "<font color=FF0000>--</font>");
|
||||
}
|
||||
|
||||
|
@ -28,7 +28,7 @@
|
||||
<tr><td><table width=270 border=0 bgcolor=131210><tr><td width=100><font color="LEVEL">Heading:</font></td><td align=right width=170>%heading%</td></tr></table></td></tr>
|
||||
<tr><td><table width=270 border=0><tr><td width=100><font color="LEVEL">Collision Radius:</font></td><td align=right width=170>%collision_radius%</td></tr></table></td></tr>
|
||||
<tr><td><table width=270 border=0 bgcolor=131210><tr><td width=100><font color="LEVEL">Collision Height:</font></td><td align=right width=170>%collision_height%</td></tr></table></td></tr>
|
||||
<tr><td><table width=270 border=0><tr><td width=100><font color="LEVEL">Distance:</font></td><td align=right width=170>2D: %loc2d%, 3D: %loc3d%, You: %dist%</td></tr></table></td></tr>
|
||||
<tr><td><table width=270 border=0><tr><td width=100><font color="LEVEL">Distance:</font></td><td align=right width=170>2D: %loc2d%, 3D: %loc3d%</td></tr></table></td></tr>
|
||||
<tr><td><table width=270 border=0 bgcolor=131210><tr><td width=100><font color="LEVEL">Respawn:</font></td><td align=right width=170>%resp%</td></tr></table></td></tr>
|
||||
<tr><td><table width=270 border=0><tr><td width=100><font color="LEVEL">Aggro:</font></td><td align=right width=170><font color=999999>%aggro%</font></td></tr></table></td></tr>
|
||||
<tr><td><table width=270 border=0 bgcolor=131210><tr><td width=100><font color="LEVEL">HP:</font></td><td align=right width=170><font color=FF4040>%hp%/%hpmax%</font></td></tr></table></td></tr>
|
||||
|
@ -101,7 +101,8 @@ public class L2NpcActionShift implements IActionShiftHandler
|
||||
html.replace("%heading%", String.valueOf(((L2Character) target).getHeading()));
|
||||
html.replace("%collision_radius%", String.valueOf(((L2Character) target).getTemplate().getfCollisionRadius()));
|
||||
html.replace("%collision_height%", String.valueOf(((L2Character) target).getTemplate().getfCollisionHeight()));
|
||||
html.replace("%dist%", String.valueOf((int) activeChar.calculateDistance(target, true, false)));
|
||||
html.replace("%loc2d%", String.valueOf((int) activeChar.calculateDistance(target, false, false)));
|
||||
html.replace("%loc3d%", String.valueOf((int) activeChar.calculateDistance(target, true, false)));
|
||||
|
||||
final byte attackAttribute = ((L2Character) target).getAttackElement();
|
||||
html.replace("%ele_atk%", Elementals.getElementName(attackAttribute));
|
||||
@ -127,8 +128,6 @@ public class L2NpcActionShift implements IActionShiftHandler
|
||||
html.replace("%spawntype%", "Fixed");
|
||||
html.replace("%spawn%", ((L2Npc) target).getSpawn().getX() + " " + ((L2Npc) target).getSpawn().getY() + " " + ((L2Npc) target).getSpawn().getZ());
|
||||
}
|
||||
html.replace("%loc2d%", String.valueOf((int) target.calculateDistance(((L2Npc) target).getSpawn().getLocation(), false, false)));
|
||||
html.replace("%loc3d%", String.valueOf((int) target.calculateDistance(((L2Npc) target).getSpawn().getLocation(), true, false)));
|
||||
if (((L2Npc) target).getSpawn().getRespawnMinDelay() == 0)
|
||||
{
|
||||
html.replace("%resp%", "None");
|
||||
@ -151,8 +150,6 @@ public class L2NpcActionShift implements IActionShiftHandler
|
||||
html.replace("%territory%", "<font color=FF0000>--</font>");
|
||||
html.replace("%spawntype%", "<font color=FF0000>--</font>");
|
||||
html.replace("%spawn%", "<font color=FF0000>null</font>");
|
||||
html.replace("%loc2d%", "<font color=FF0000>--</font>");
|
||||
html.replace("%loc3d%", "<font color=FF0000>--</font>");
|
||||
html.replace("%resp%", "<font color=FF0000>--</font>");
|
||||
}
|
||||
|
||||
|
@ -30,7 +30,7 @@
|
||||
<tr><td><table width=270 border=0 bgcolor=131210><tr><td width=100><font color="LEVEL">Heading:</font></td><td align=right width=170>%heading%</td></tr></table></td></tr>
|
||||
<tr><td><table width=270 border=0><tr><td width=100><font color="LEVEL">Collision Radius:</font></td><td align=right width=170>%collision_radius%</td></tr></table></td></tr>
|
||||
<tr><td><table width=270 border=0 bgcolor=131210><tr><td width=100><font color="LEVEL">Collision Height:</font></td><td align=right width=170>%collision_height%</td></tr></table></td></tr>
|
||||
<tr><td><table width=270 border=0><tr><td width=100><font color="LEVEL">Distance:</font></td><td align=right width=170>2D: %loc2d%, 3D: %loc3d%, You: %dist%</td></tr></table></td></tr>
|
||||
<tr><td><table width=270 border=0><tr><td width=100><font color="LEVEL">Distance:</font></td><td align=right width=170>2D: %loc2d%, 3D: %loc3d%</td></tr></table></td></tr>
|
||||
<tr><td><table width=270 border=0 bgcolor=131210><tr><td width=100><font color="LEVEL">Respawn:</font></td><td align=right width=170>%resp%</td></tr></table></td></tr>
|
||||
<tr><td><table width=270 border=0><tr><td width=100><font color="LEVEL">Aggro:</font></td><td align=right width=170><font color=999999>%aggro%</font></td></tr></table></td></tr>
|
||||
<tr><td><table width=270 border=0 bgcolor=131210><tr><td width=100><font color="LEVEL">HP:</font></td><td align=right width=170><font color=FF4040>%hp%/%hpmax%</font></td></tr></table></td></tr>
|
||||
|
@ -90,12 +90,13 @@ public class L2NpcActionShift implements IActionShiftHandler
|
||||
html.replace("%heading%", String.valueOf(npc.getHeading()));
|
||||
html.replace("%collision_radius%", String.valueOf(npc.getTemplate().getfCollisionRadius()));
|
||||
html.replace("%collision_height%", String.valueOf(npc.getTemplate().getfCollisionHeight()));
|
||||
html.replace("%dist%", String.valueOf((int) activeChar.calculateDistance(target, true, false)));
|
||||
html.replace("%clanHall%", clanHall != null ? clanHall.getName() : "none");
|
||||
html.replace("%mpRewardValue%", npc.getTemplate().getMpRewardValue());
|
||||
html.replace("%mpRewardTicks%", npc.getTemplate().getMpRewardTicks());
|
||||
html.replace("%mpRewardType%", npc.getTemplate().getMpRewardType().name());
|
||||
html.replace("%mpRewardAffectType%", npc.getTemplate().getMpRewardAffectType().name());
|
||||
html.replace("%loc2d%", String.valueOf((int) activeChar.calculateDistance(npc, false, false)));
|
||||
html.replace("%loc3d%", String.valueOf((int) activeChar.calculateDistance(npc, true, false)));
|
||||
|
||||
final AttributeType attackAttribute = npc.getAttackElement();
|
||||
html.replace("%ele_atk%", attackAttribute.name());
|
||||
@ -129,8 +130,6 @@ public class L2NpcActionShift implements IActionShiftHandler
|
||||
}
|
||||
|
||||
html.replace("%spawn%", npc.getSpawn().getX() + " " + npc.getSpawn().getY() + " " + npc.getSpawn().getZ());
|
||||
html.replace("%loc2d%", String.valueOf((int) npc.calculateDistance(npc.getSpawn().getLocation(), false, false)));
|
||||
html.replace("%loc3d%", String.valueOf((int) npc.calculateDistance(npc.getSpawn().getLocation(), true, false)));
|
||||
if (npc.getSpawn().getRespawnMinDelay() == 0)
|
||||
{
|
||||
html.replace("%resp%", "None");
|
||||
@ -147,8 +146,6 @@ public class L2NpcActionShift implements IActionShiftHandler
|
||||
else
|
||||
{
|
||||
html.replace("%spawn%", "<font color=FF0000>null</font>");
|
||||
html.replace("%loc2d%", "<font color=FF0000>--</font>");
|
||||
html.replace("%loc3d%", "<font color=FF0000>--</font>");
|
||||
html.replace("%resp%", "<font color=FF0000>--</font>");
|
||||
}
|
||||
|
||||
|
@ -30,7 +30,7 @@
|
||||
<tr><td><table width=270 border=0 bgcolor=131210><tr><td width=100><font color="LEVEL">Heading:</font></td><td align=right width=170>%heading%</td></tr></table></td></tr>
|
||||
<tr><td><table width=270 border=0><tr><td width=100><font color="LEVEL">Collision Radius:</font></td><td align=right width=170>%collision_radius%</td></tr></table></td></tr>
|
||||
<tr><td><table width=270 border=0 bgcolor=131210><tr><td width=100><font color="LEVEL">Collision Height:</font></td><td align=right width=170>%collision_height%</td></tr></table></td></tr>
|
||||
<tr><td><table width=270 border=0><tr><td width=100><font color="LEVEL">Distance:</font></td><td align=right width=170>2D: %loc2d%, 3D: %loc3d%, You: %dist%</td></tr></table></td></tr>
|
||||
<tr><td><table width=270 border=0><tr><td width=100><font color="LEVEL">Distance:</font></td><td align=right width=170>2D: %loc2d%, 3D: %loc3d%</td></tr></table></td></tr>
|
||||
<tr><td><table width=270 border=0 bgcolor=131210><tr><td width=100><font color="LEVEL">Respawn:</font></td><td align=right width=170>%resp%</td></tr></table></td></tr>
|
||||
<tr><td><table width=270 border=0><tr><td width=100><font color="LEVEL">Aggro:</font></td><td align=right width=170><font color=999999>%aggro%</font></td></tr></table></td></tr>
|
||||
<tr><td><table width=270 border=0 bgcolor=131210><tr><td width=100><font color="LEVEL">HP:</font></td><td align=right width=170><font color=FF4040>%hp%/%hpmax%</font></td></tr></table></td></tr>
|
||||
|
@ -90,12 +90,13 @@ public class L2NpcActionShift implements IActionShiftHandler
|
||||
html.replace("%heading%", String.valueOf(npc.getHeading()));
|
||||
html.replace("%collision_radius%", String.valueOf(npc.getTemplate().getfCollisionRadius()));
|
||||
html.replace("%collision_height%", String.valueOf(npc.getTemplate().getfCollisionHeight()));
|
||||
html.replace("%dist%", String.valueOf((int) activeChar.calculateDistance(target, true, false)));
|
||||
html.replace("%clanHall%", clanHall != null ? clanHall.getName() : "none");
|
||||
html.replace("%mpRewardValue%", npc.getTemplate().getMpRewardValue());
|
||||
html.replace("%mpRewardTicks%", npc.getTemplate().getMpRewardTicks());
|
||||
html.replace("%mpRewardType%", npc.getTemplate().getMpRewardType().name());
|
||||
html.replace("%mpRewardAffectType%", npc.getTemplate().getMpRewardAffectType().name());
|
||||
html.replace("%loc2d%", String.valueOf((int) activeChar.calculateDistance(npc, false, false)));
|
||||
html.replace("%loc3d%", String.valueOf((int) activeChar.calculateDistance(npc, true, false)));
|
||||
|
||||
final AttributeType attackAttribute = npc.getAttackElement();
|
||||
html.replace("%ele_atk%", attackAttribute.name());
|
||||
@ -129,8 +130,6 @@ public class L2NpcActionShift implements IActionShiftHandler
|
||||
}
|
||||
|
||||
html.replace("%spawn%", npc.getSpawn().getX() + " " + npc.getSpawn().getY() + " " + npc.getSpawn().getZ());
|
||||
html.replace("%loc2d%", String.valueOf((int) npc.calculateDistance(npc.getSpawn().getLocation(), false, false)));
|
||||
html.replace("%loc3d%", String.valueOf((int) npc.calculateDistance(npc.getSpawn().getLocation(), true, false)));
|
||||
if (npc.getSpawn().getRespawnMinDelay() == 0)
|
||||
{
|
||||
html.replace("%resp%", "None");
|
||||
@ -147,8 +146,6 @@ public class L2NpcActionShift implements IActionShiftHandler
|
||||
else
|
||||
{
|
||||
html.replace("%spawn%", "<font color=FF0000>null</font>");
|
||||
html.replace("%loc2d%", "<font color=FF0000>--</font>");
|
||||
html.replace("%loc3d%", "<font color=FF0000>--</font>");
|
||||
html.replace("%resp%", "<font color=FF0000>--</font>");
|
||||
}
|
||||
|
||||
|
@ -30,7 +30,7 @@
|
||||
<tr><td><table width=270 border=0 bgcolor=131210><tr><td width=100><font color="LEVEL">Heading:</font></td><td align=right width=170>%heading%</td></tr></table></td></tr>
|
||||
<tr><td><table width=270 border=0><tr><td width=100><font color="LEVEL">Collision Radius:</font></td><td align=right width=170>%collision_radius%</td></tr></table></td></tr>
|
||||
<tr><td><table width=270 border=0 bgcolor=131210><tr><td width=100><font color="LEVEL">Collision Height:</font></td><td align=right width=170>%collision_height%</td></tr></table></td></tr>
|
||||
<tr><td><table width=270 border=0><tr><td width=100><font color="LEVEL">Distance:</font></td><td align=right width=170>2D: %loc2d%, 3D: %loc3d%, You: %dist%</td></tr></table></td></tr>
|
||||
<tr><td><table width=270 border=0><tr><td width=100><font color="LEVEL">Distance:</font></td><td align=right width=170>2D: %loc2d%, 3D: %loc3d%</td></tr></table></td></tr>
|
||||
<tr><td><table width=270 border=0 bgcolor=131210><tr><td width=100><font color="LEVEL">Respawn:</font></td><td align=right width=170>%resp%</td></tr></table></td></tr>
|
||||
<tr><td><table width=270 border=0><tr><td width=100><font color="LEVEL">Aggro:</font></td><td align=right width=170><font color=999999>%aggro%</font></td></tr></table></td></tr>
|
||||
<tr><td><table width=270 border=0 bgcolor=131210><tr><td width=100><font color="LEVEL">HP:</font></td><td align=right width=170><font color=FF4040>%hp%/%hpmax%</font></td></tr></table></td></tr>
|
||||
|
@ -90,12 +90,13 @@ public class L2NpcActionShift implements IActionShiftHandler
|
||||
html.replace("%heading%", String.valueOf(npc.getHeading()));
|
||||
html.replace("%collision_radius%", String.valueOf(npc.getTemplate().getfCollisionRadius()));
|
||||
html.replace("%collision_height%", String.valueOf(npc.getTemplate().getfCollisionHeight()));
|
||||
html.replace("%dist%", String.valueOf((int) activeChar.calculateDistance(target, true, false)));
|
||||
html.replace("%clanHall%", clanHall != null ? clanHall.getName() : "none");
|
||||
html.replace("%mpRewardValue%", npc.getTemplate().getMpRewardValue());
|
||||
html.replace("%mpRewardTicks%", npc.getTemplate().getMpRewardTicks());
|
||||
html.replace("%mpRewardType%", npc.getTemplate().getMpRewardType().name());
|
||||
html.replace("%mpRewardAffectType%", npc.getTemplate().getMpRewardAffectType().name());
|
||||
html.replace("%loc2d%", String.valueOf((int) activeChar.calculateDistance(npc, false, false)));
|
||||
html.replace("%loc3d%", String.valueOf((int) activeChar.calculateDistance(npc, true, false)));
|
||||
|
||||
final AttributeType attackAttribute = npc.getAttackElement();
|
||||
html.replace("%ele_atk%", attackAttribute.name());
|
||||
@ -129,8 +130,6 @@ public class L2NpcActionShift implements IActionShiftHandler
|
||||
}
|
||||
|
||||
html.replace("%spawn%", npc.getSpawn().getX() + " " + npc.getSpawn().getY() + " " + npc.getSpawn().getZ());
|
||||
html.replace("%loc2d%", String.valueOf((int) npc.calculateDistance(npc.getSpawn().getLocation(), false, false)));
|
||||
html.replace("%loc3d%", String.valueOf((int) npc.calculateDistance(npc.getSpawn().getLocation(), true, false)));
|
||||
if (npc.getSpawn().getRespawnMinDelay() == 0)
|
||||
{
|
||||
html.replace("%resp%", "None");
|
||||
@ -147,8 +146,6 @@ public class L2NpcActionShift implements IActionShiftHandler
|
||||
else
|
||||
{
|
||||
html.replace("%spawn%", "<font color=FF0000>null</font>");
|
||||
html.replace("%loc2d%", "<font color=FF0000>--</font>");
|
||||
html.replace("%loc3d%", "<font color=FF0000>--</font>");
|
||||
html.replace("%resp%", "<font color=FF0000>--</font>");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user