|
@@ -132,17 +132,17 @@ public class L2NpcActionShift implements IActionHandler
|
|
|
html.replace("%spawn%", ((L2Npc) target).getSpawn().getLocx() + " " + ((L2Npc) target).getSpawn().getLocy() + " " + ((L2Npc) target).getSpawn().getLocz());
|
|
|
html.replace("%loc2d%", String.valueOf((int) Math.sqrt(((L2Character) target).getPlanDistanceSq(((L2Npc) target).getSpawn().getLocx(), ((L2Npc) target).getSpawn().getLocy()))));
|
|
|
html.replace("%loc3d%", String.valueOf((int) Math.sqrt(((L2Character) target).getDistanceSq(((L2Npc) target).getSpawn().getLocx(), ((L2Npc) target).getSpawn().getLocy(), ((L2Npc) target).getSpawn().getLocz()))));
|
|
|
- if (((L2Npc)target).getSpawn().getRespawnMinDelay() == 0)
|
|
|
+ if (((L2Npc) target).getSpawn().getRespawnMinDelay() == 0)
|
|
|
{
|
|
|
- html.replace("%resp%", "None");
|
|
|
+ html.replace("%resp%", "None");
|
|
|
}
|
|
|
- else if (((L2Npc)target).getSpawn().hasRespawnRandom())
|
|
|
+ else if (((L2Npc) target).getSpawn().hasRespawnRandom())
|
|
|
{
|
|
|
- html.replace("%resp%", String.valueOf(((L2Npc)target).getSpawn().getRespawnMinDelay() / 1000) + "-" + String.valueOf(((L2Npc)target).getSpawn().getRespawnMaxDelay() / 1000 + " sec"));
|
|
|
+ html.replace("%resp%", String.valueOf(((L2Npc) target).getSpawn().getRespawnMinDelay() / 1000) + "-" + String.valueOf((((L2Npc) target).getSpawn().getRespawnMaxDelay() / 1000) + " sec"));
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- html.replace("%resp%", String.valueOf(((L2Npc)target).getSpawn().getRespawnMinDelay() / 1000) + " sec");
|
|
|
+ html.replace("%resp%", String.valueOf(((L2Npc) target).getSpawn().getRespawnMinDelay() / 1000) + " sec");
|
|
|
}
|
|
|
}
|
|
|
else
|