Prevent forcing Freya movement while in combat.
This commit is contained in:
@@ -382,9 +382,12 @@ public final class IceQueensCastleBattle extends AbstractInstance
|
|||||||
if (npc.getVariables().getInt("FREYA_MOVE") == 0)
|
if (npc.getVariables().getInt("FREYA_MOVE") == 0)
|
||||||
{
|
{
|
||||||
controller.getVariables().set("FREYA_MOVE", 1);
|
controller.getVariables().set("FREYA_MOVE", 1);
|
||||||
|
if (!freya.isInCombat())
|
||||||
|
{
|
||||||
freya.setRunning();
|
freya.setRunning();
|
||||||
freya.getAI().setIntention(CtrlIntention.AI_INTENTION_MOVE_TO, MIDDLE_POINT);
|
freya.getAI().setIntention(CtrlIntention.AI_INTENTION_MOVE_TO, MIDDLE_POINT);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case "CAST_BLIZZARD":
|
case "CAST_BLIZZARD":
|
||||||
@@ -750,10 +753,13 @@ public final class IceQueensCastleBattle extends AbstractInstance
|
|||||||
if ((controller.getVariables().getInt("FREYA_MOVE") == 0) && world.isStatus(1))
|
if ((controller.getVariables().getInt("FREYA_MOVE") == 0) && world.isStatus(1))
|
||||||
{
|
{
|
||||||
controller.getVariables().set("FREYA_MOVE", 1);
|
controller.getVariables().set("FREYA_MOVE", 1);
|
||||||
|
if (!freya.isInCombat())
|
||||||
|
{
|
||||||
manageScreenMsg(world, NpcStringId.FREYA_HAS_STARTED_TO_MOVE);
|
manageScreenMsg(world, NpcStringId.FREYA_HAS_STARTED_TO_MOVE);
|
||||||
freya.setRunning();
|
freya.setRunning();
|
||||||
freya.getAI().setIntention(CtrlIntention.AI_INTENTION_MOVE_TO, MIDDLE_POINT);
|
freya.getAI().setIntention(CtrlIntention.AI_INTENTION_MOVE_TO, MIDDLE_POINT);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (npc.getCurrentHp() < (npc.getMaxHp() * 0.02))
|
if (npc.getCurrentHp() < (npc.getMaxHp() * 0.02))
|
||||||
{
|
{
|
||||||
@@ -825,9 +831,12 @@ public final class IceQueensCastleBattle extends AbstractInstance
|
|||||||
if (controller.getVariables().getInt("FREYA_MOVE") == 0)
|
if (controller.getVariables().getInt("FREYA_MOVE") == 0)
|
||||||
{
|
{
|
||||||
controller.getVariables().set("FREYA_MOVE", 1);
|
controller.getVariables().set("FREYA_MOVE", 1);
|
||||||
|
if (!freya.isInCombat())
|
||||||
|
{
|
||||||
freya.setRunning();
|
freya.setRunning();
|
||||||
freya.getAI().setIntention(CtrlIntention.AI_INTENTION_MOVE_TO, MIDDLE_POINT);
|
freya.getAI().setIntention(CtrlIntention.AI_INTENTION_MOVE_TO, MIDDLE_POINT);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if ((npc.getCurrentHp() < (npc.getMaxHp() * 0.2)) && !params.getBoolean("isSupportActive", false))
|
if ((npc.getCurrentHp() < (npc.getMaxHp() * 0.2)) && !params.getBoolean("isSupportActive", false))
|
||||||
{
|
{
|
||||||
@@ -1113,12 +1122,14 @@ public final class IceQueensCastleBattle extends AbstractInstance
|
|||||||
if ((var.getInt("FREYA_MOVE") == 0) && world.isStatus(1))
|
if ((var.getInt("FREYA_MOVE") == 0) && world.isStatus(1))
|
||||||
{
|
{
|
||||||
var.set("FREYA_MOVE", 1);
|
var.set("FREYA_MOVE", 1);
|
||||||
manageScreenMsg(world, NpcStringId.FREYA_HAS_STARTED_TO_MOVE);
|
|
||||||
|
|
||||||
final L2Npc freya = params.getObject("freya", L2Npc.class);
|
final L2Npc freya = params.getObject("freya", L2Npc.class);
|
||||||
|
if (!freya.isInCombat())
|
||||||
|
{
|
||||||
|
manageScreenMsg(world, NpcStringId.FREYA_HAS_STARTED_TO_MOVE);
|
||||||
freya.setRunning();
|
freya.setRunning();
|
||||||
freya.getAI().setIntention(CtrlIntention.AI_INTENTION_MOVE_TO, MIDDLE_POINT);
|
freya.getAI().setIntention(CtrlIntention.AI_INTENTION_MOVE_TO, MIDDLE_POINT);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if ((knightCount < 10) && (world.isStatus(2)))
|
if ((knightCount < 10) && (world.isStatus(2)))
|
||||||
{
|
{
|
||||||
|
@@ -382,9 +382,12 @@ public final class IceQueensCastleBattle extends AbstractInstance
|
|||||||
if (npc.getVariables().getInt("FREYA_MOVE") == 0)
|
if (npc.getVariables().getInt("FREYA_MOVE") == 0)
|
||||||
{
|
{
|
||||||
controller.getVariables().set("FREYA_MOVE", 1);
|
controller.getVariables().set("FREYA_MOVE", 1);
|
||||||
|
if (!freya.isInCombat())
|
||||||
|
{
|
||||||
freya.setRunning();
|
freya.setRunning();
|
||||||
freya.getAI().setIntention(CtrlIntention.AI_INTENTION_MOVE_TO, MIDDLE_POINT);
|
freya.getAI().setIntention(CtrlIntention.AI_INTENTION_MOVE_TO, MIDDLE_POINT);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case "CAST_BLIZZARD":
|
case "CAST_BLIZZARD":
|
||||||
@@ -750,10 +753,13 @@ public final class IceQueensCastleBattle extends AbstractInstance
|
|||||||
if ((controller.getVariables().getInt("FREYA_MOVE") == 0) && world.isStatus(1))
|
if ((controller.getVariables().getInt("FREYA_MOVE") == 0) && world.isStatus(1))
|
||||||
{
|
{
|
||||||
controller.getVariables().set("FREYA_MOVE", 1);
|
controller.getVariables().set("FREYA_MOVE", 1);
|
||||||
|
if (!freya.isInCombat())
|
||||||
|
{
|
||||||
manageScreenMsg(world, NpcStringId.FREYA_HAS_STARTED_TO_MOVE);
|
manageScreenMsg(world, NpcStringId.FREYA_HAS_STARTED_TO_MOVE);
|
||||||
freya.setRunning();
|
freya.setRunning();
|
||||||
freya.getAI().setIntention(CtrlIntention.AI_INTENTION_MOVE_TO, MIDDLE_POINT);
|
freya.getAI().setIntention(CtrlIntention.AI_INTENTION_MOVE_TO, MIDDLE_POINT);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (npc.getCurrentHp() < (npc.getMaxHp() * 0.02))
|
if (npc.getCurrentHp() < (npc.getMaxHp() * 0.02))
|
||||||
{
|
{
|
||||||
@@ -825,9 +831,12 @@ public final class IceQueensCastleBattle extends AbstractInstance
|
|||||||
if (controller.getVariables().getInt("FREYA_MOVE") == 0)
|
if (controller.getVariables().getInt("FREYA_MOVE") == 0)
|
||||||
{
|
{
|
||||||
controller.getVariables().set("FREYA_MOVE", 1);
|
controller.getVariables().set("FREYA_MOVE", 1);
|
||||||
|
if (!freya.isInCombat())
|
||||||
|
{
|
||||||
freya.setRunning();
|
freya.setRunning();
|
||||||
freya.getAI().setIntention(CtrlIntention.AI_INTENTION_MOVE_TO, MIDDLE_POINT);
|
freya.getAI().setIntention(CtrlIntention.AI_INTENTION_MOVE_TO, MIDDLE_POINT);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if ((npc.getCurrentHp() < (npc.getMaxHp() * 0.2)) && !params.getBoolean("isSupportActive", false))
|
if ((npc.getCurrentHp() < (npc.getMaxHp() * 0.2)) && !params.getBoolean("isSupportActive", false))
|
||||||
{
|
{
|
||||||
@@ -1113,12 +1122,14 @@ public final class IceQueensCastleBattle extends AbstractInstance
|
|||||||
if ((var.getInt("FREYA_MOVE") == 0) && world.isStatus(1))
|
if ((var.getInt("FREYA_MOVE") == 0) && world.isStatus(1))
|
||||||
{
|
{
|
||||||
var.set("FREYA_MOVE", 1);
|
var.set("FREYA_MOVE", 1);
|
||||||
manageScreenMsg(world, NpcStringId.FREYA_HAS_STARTED_TO_MOVE);
|
|
||||||
|
|
||||||
final L2Npc freya = params.getObject("freya", L2Npc.class);
|
final L2Npc freya = params.getObject("freya", L2Npc.class);
|
||||||
|
if (!freya.isInCombat())
|
||||||
|
{
|
||||||
|
manageScreenMsg(world, NpcStringId.FREYA_HAS_STARTED_TO_MOVE);
|
||||||
freya.setRunning();
|
freya.setRunning();
|
||||||
freya.getAI().setIntention(CtrlIntention.AI_INTENTION_MOVE_TO, MIDDLE_POINT);
|
freya.getAI().setIntention(CtrlIntention.AI_INTENTION_MOVE_TO, MIDDLE_POINT);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if ((knightCount < 10) && (world.isStatus(2)))
|
if ((knightCount < 10) && (world.isStatus(2)))
|
||||||
{
|
{
|
||||||
|
@@ -382,9 +382,12 @@ public final class IceQueensCastleBattle extends AbstractInstance
|
|||||||
if (npc.getVariables().getInt("FREYA_MOVE") == 0)
|
if (npc.getVariables().getInt("FREYA_MOVE") == 0)
|
||||||
{
|
{
|
||||||
controller.getVariables().set("FREYA_MOVE", 1);
|
controller.getVariables().set("FREYA_MOVE", 1);
|
||||||
|
if (!freya.isInCombat())
|
||||||
|
{
|
||||||
freya.setRunning();
|
freya.setRunning();
|
||||||
freya.getAI().setIntention(CtrlIntention.AI_INTENTION_MOVE_TO, MIDDLE_POINT);
|
freya.getAI().setIntention(CtrlIntention.AI_INTENTION_MOVE_TO, MIDDLE_POINT);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case "CAST_BLIZZARD":
|
case "CAST_BLIZZARD":
|
||||||
@@ -750,10 +753,13 @@ public final class IceQueensCastleBattle extends AbstractInstance
|
|||||||
if ((controller.getVariables().getInt("FREYA_MOVE") == 0) && world.isStatus(1))
|
if ((controller.getVariables().getInt("FREYA_MOVE") == 0) && world.isStatus(1))
|
||||||
{
|
{
|
||||||
controller.getVariables().set("FREYA_MOVE", 1);
|
controller.getVariables().set("FREYA_MOVE", 1);
|
||||||
|
if (!freya.isInCombat())
|
||||||
|
{
|
||||||
manageScreenMsg(world, NpcStringId.FREYA_HAS_STARTED_TO_MOVE);
|
manageScreenMsg(world, NpcStringId.FREYA_HAS_STARTED_TO_MOVE);
|
||||||
freya.setRunning();
|
freya.setRunning();
|
||||||
freya.getAI().setIntention(CtrlIntention.AI_INTENTION_MOVE_TO, MIDDLE_POINT);
|
freya.getAI().setIntention(CtrlIntention.AI_INTENTION_MOVE_TO, MIDDLE_POINT);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (npc.getCurrentHp() < (npc.getMaxHp() * 0.02))
|
if (npc.getCurrentHp() < (npc.getMaxHp() * 0.02))
|
||||||
{
|
{
|
||||||
@@ -825,9 +831,12 @@ public final class IceQueensCastleBattle extends AbstractInstance
|
|||||||
if (controller.getVariables().getInt("FREYA_MOVE") == 0)
|
if (controller.getVariables().getInt("FREYA_MOVE") == 0)
|
||||||
{
|
{
|
||||||
controller.getVariables().set("FREYA_MOVE", 1);
|
controller.getVariables().set("FREYA_MOVE", 1);
|
||||||
|
if (!freya.isInCombat())
|
||||||
|
{
|
||||||
freya.setRunning();
|
freya.setRunning();
|
||||||
freya.getAI().setIntention(CtrlIntention.AI_INTENTION_MOVE_TO, MIDDLE_POINT);
|
freya.getAI().setIntention(CtrlIntention.AI_INTENTION_MOVE_TO, MIDDLE_POINT);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if ((npc.getCurrentHp() < (npc.getMaxHp() * 0.2)) && !params.getBoolean("isSupportActive", false))
|
if ((npc.getCurrentHp() < (npc.getMaxHp() * 0.2)) && !params.getBoolean("isSupportActive", false))
|
||||||
{
|
{
|
||||||
@@ -1113,12 +1122,14 @@ public final class IceQueensCastleBattle extends AbstractInstance
|
|||||||
if ((var.getInt("FREYA_MOVE") == 0) && world.isStatus(1))
|
if ((var.getInt("FREYA_MOVE") == 0) && world.isStatus(1))
|
||||||
{
|
{
|
||||||
var.set("FREYA_MOVE", 1);
|
var.set("FREYA_MOVE", 1);
|
||||||
manageScreenMsg(world, NpcStringId.FREYA_HAS_STARTED_TO_MOVE);
|
|
||||||
|
|
||||||
final L2Npc freya = params.getObject("freya", L2Npc.class);
|
final L2Npc freya = params.getObject("freya", L2Npc.class);
|
||||||
|
if (!freya.isInCombat())
|
||||||
|
{
|
||||||
|
manageScreenMsg(world, NpcStringId.FREYA_HAS_STARTED_TO_MOVE);
|
||||||
freya.setRunning();
|
freya.setRunning();
|
||||||
freya.getAI().setIntention(CtrlIntention.AI_INTENTION_MOVE_TO, MIDDLE_POINT);
|
freya.getAI().setIntention(CtrlIntention.AI_INTENTION_MOVE_TO, MIDDLE_POINT);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if ((knightCount < 10) && (world.isStatus(2)))
|
if ((knightCount < 10) && (world.isStatus(2)))
|
||||||
{
|
{
|
||||||
|
@@ -382,9 +382,12 @@ public final class IceQueensCastleBattle extends AbstractInstance
|
|||||||
if (npc.getVariables().getInt("FREYA_MOVE") == 0)
|
if (npc.getVariables().getInt("FREYA_MOVE") == 0)
|
||||||
{
|
{
|
||||||
controller.getVariables().set("FREYA_MOVE", 1);
|
controller.getVariables().set("FREYA_MOVE", 1);
|
||||||
|
if (!freya.isInCombat())
|
||||||
|
{
|
||||||
freya.setRunning();
|
freya.setRunning();
|
||||||
freya.getAI().setIntention(CtrlIntention.AI_INTENTION_MOVE_TO, MIDDLE_POINT);
|
freya.getAI().setIntention(CtrlIntention.AI_INTENTION_MOVE_TO, MIDDLE_POINT);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case "CAST_BLIZZARD":
|
case "CAST_BLIZZARD":
|
||||||
@@ -750,10 +753,13 @@ public final class IceQueensCastleBattle extends AbstractInstance
|
|||||||
if ((controller.getVariables().getInt("FREYA_MOVE") == 0) && world.isStatus(1))
|
if ((controller.getVariables().getInt("FREYA_MOVE") == 0) && world.isStatus(1))
|
||||||
{
|
{
|
||||||
controller.getVariables().set("FREYA_MOVE", 1);
|
controller.getVariables().set("FREYA_MOVE", 1);
|
||||||
|
if (!freya.isInCombat())
|
||||||
|
{
|
||||||
manageScreenMsg(world, NpcStringId.FREYA_HAS_STARTED_TO_MOVE);
|
manageScreenMsg(world, NpcStringId.FREYA_HAS_STARTED_TO_MOVE);
|
||||||
freya.setRunning();
|
freya.setRunning();
|
||||||
freya.getAI().setIntention(CtrlIntention.AI_INTENTION_MOVE_TO, MIDDLE_POINT);
|
freya.getAI().setIntention(CtrlIntention.AI_INTENTION_MOVE_TO, MIDDLE_POINT);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (npc.getCurrentHp() < (npc.getMaxHp() * 0.02))
|
if (npc.getCurrentHp() < (npc.getMaxHp() * 0.02))
|
||||||
{
|
{
|
||||||
@@ -825,9 +831,12 @@ public final class IceQueensCastleBattle extends AbstractInstance
|
|||||||
if (controller.getVariables().getInt("FREYA_MOVE") == 0)
|
if (controller.getVariables().getInt("FREYA_MOVE") == 0)
|
||||||
{
|
{
|
||||||
controller.getVariables().set("FREYA_MOVE", 1);
|
controller.getVariables().set("FREYA_MOVE", 1);
|
||||||
|
if (!freya.isInCombat())
|
||||||
|
{
|
||||||
freya.setRunning();
|
freya.setRunning();
|
||||||
freya.getAI().setIntention(CtrlIntention.AI_INTENTION_MOVE_TO, MIDDLE_POINT);
|
freya.getAI().setIntention(CtrlIntention.AI_INTENTION_MOVE_TO, MIDDLE_POINT);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if ((npc.getCurrentHp() < (npc.getMaxHp() * 0.2)) && !params.getBoolean("isSupportActive", false))
|
if ((npc.getCurrentHp() < (npc.getMaxHp() * 0.2)) && !params.getBoolean("isSupportActive", false))
|
||||||
{
|
{
|
||||||
@@ -1113,12 +1122,14 @@ public final class IceQueensCastleBattle extends AbstractInstance
|
|||||||
if ((var.getInt("FREYA_MOVE") == 0) && world.isStatus(1))
|
if ((var.getInt("FREYA_MOVE") == 0) && world.isStatus(1))
|
||||||
{
|
{
|
||||||
var.set("FREYA_MOVE", 1);
|
var.set("FREYA_MOVE", 1);
|
||||||
manageScreenMsg(world, NpcStringId.FREYA_HAS_STARTED_TO_MOVE);
|
|
||||||
|
|
||||||
final L2Npc freya = params.getObject("freya", L2Npc.class);
|
final L2Npc freya = params.getObject("freya", L2Npc.class);
|
||||||
|
if (!freya.isInCombat())
|
||||||
|
{
|
||||||
|
manageScreenMsg(world, NpcStringId.FREYA_HAS_STARTED_TO_MOVE);
|
||||||
freya.setRunning();
|
freya.setRunning();
|
||||||
freya.getAI().setIntention(CtrlIntention.AI_INTENTION_MOVE_TO, MIDDLE_POINT);
|
freya.getAI().setIntention(CtrlIntention.AI_INTENTION_MOVE_TO, MIDDLE_POINT);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if ((knightCount < 10) && (world.isStatus(2)))
|
if ((knightCount < 10) && (world.isStatus(2)))
|
||||||
{
|
{
|
||||||
|
@@ -403,9 +403,12 @@ public final class IceQueensCastleBattle extends AbstractInstance
|
|||||||
if (npc.getVariables().getInt("FREYA_MOVE") == 0)
|
if (npc.getVariables().getInt("FREYA_MOVE") == 0)
|
||||||
{
|
{
|
||||||
controller.getVariables().set("FREYA_MOVE", 1);
|
controller.getVariables().set("FREYA_MOVE", 1);
|
||||||
|
if (!freya.isInCombat())
|
||||||
|
{
|
||||||
freya.setRunning();
|
freya.setRunning();
|
||||||
freya.getAI().setIntention(CtrlIntention.AI_INTENTION_MOVE_TO, MIDDLE_POINT);
|
freya.getAI().setIntention(CtrlIntention.AI_INTENTION_MOVE_TO, MIDDLE_POINT);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case "CAST_BLIZZARD":
|
case "CAST_BLIZZARD":
|
||||||
@@ -779,10 +782,13 @@ public final class IceQueensCastleBattle extends AbstractInstance
|
|||||||
if ((controller.getVariables().getInt("FREYA_MOVE") == 0) && world.isStatus(1))
|
if ((controller.getVariables().getInt("FREYA_MOVE") == 0) && world.isStatus(1))
|
||||||
{
|
{
|
||||||
controller.getVariables().set("FREYA_MOVE", 1);
|
controller.getVariables().set("FREYA_MOVE", 1);
|
||||||
|
if (!freya.isInCombat())
|
||||||
|
{
|
||||||
manageScreenMsg(world, NpcStringId.FREYA_HAS_STARTED_TO_MOVE);
|
manageScreenMsg(world, NpcStringId.FREYA_HAS_STARTED_TO_MOVE);
|
||||||
freya.setRunning();
|
freya.setRunning();
|
||||||
freya.getAI().setIntention(CtrlIntention.AI_INTENTION_MOVE_TO, MIDDLE_POINT);
|
freya.getAI().setIntention(CtrlIntention.AI_INTENTION_MOVE_TO, MIDDLE_POINT);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (npc.getCurrentHp() < (npc.getMaxHp() * 0.02))
|
if (npc.getCurrentHp() < (npc.getMaxHp() * 0.02))
|
||||||
{
|
{
|
||||||
@@ -860,9 +866,12 @@ public final class IceQueensCastleBattle extends AbstractInstance
|
|||||||
if (controller.getVariables().getInt("FREYA_MOVE") == 0)
|
if (controller.getVariables().getInt("FREYA_MOVE") == 0)
|
||||||
{
|
{
|
||||||
controller.getVariables().set("FREYA_MOVE", 1);
|
controller.getVariables().set("FREYA_MOVE", 1);
|
||||||
|
if (!freya.isInCombat())
|
||||||
|
{
|
||||||
freya.setRunning();
|
freya.setRunning();
|
||||||
freya.getAI().setIntention(CtrlIntention.AI_INTENTION_MOVE_TO, MIDDLE_POINT);
|
freya.getAI().setIntention(CtrlIntention.AI_INTENTION_MOVE_TO, MIDDLE_POINT);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if ((npc.getCurrentHp() < (npc.getMaxHp() * 0.2)) && !params.getBoolean("isSupportActive", false))
|
if ((npc.getCurrentHp() < (npc.getMaxHp() * 0.2)) && !params.getBoolean("isSupportActive", false))
|
||||||
{
|
{
|
||||||
@@ -1154,12 +1163,14 @@ public final class IceQueensCastleBattle extends AbstractInstance
|
|||||||
if ((var.getInt("FREYA_MOVE") == 0) && world.isStatus(1))
|
if ((var.getInt("FREYA_MOVE") == 0) && world.isStatus(1))
|
||||||
{
|
{
|
||||||
var.set("FREYA_MOVE", 1);
|
var.set("FREYA_MOVE", 1);
|
||||||
manageScreenMsg(world, NpcStringId.FREYA_HAS_STARTED_TO_MOVE);
|
|
||||||
|
|
||||||
final L2Npc freya = params.getObject("freya", L2Npc.class);
|
final L2Npc freya = params.getObject("freya", L2Npc.class);
|
||||||
|
if (!freya.isInCombat())
|
||||||
|
{
|
||||||
|
manageScreenMsg(world, NpcStringId.FREYA_HAS_STARTED_TO_MOVE);
|
||||||
freya.setRunning();
|
freya.setRunning();
|
||||||
freya.getAI().setIntention(CtrlIntention.AI_INTENTION_MOVE_TO, MIDDLE_POINT);
|
freya.getAI().setIntention(CtrlIntention.AI_INTENTION_MOVE_TO, MIDDLE_POINT);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if ((knightCount < 10) && (world.isStatus(2)))
|
if ((knightCount < 10) && (world.isStatus(2)))
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user