Proper use of isScriptValue instead of getScriptValue method.
This commit is contained in:
@@ -83,7 +83,7 @@ public class LeopardDragonHachling extends AbstractNpcAI
|
|||||||
@Override
|
@Override
|
||||||
public String onAttack(Npc npc, PlayerInstance attacker, int damage, boolean isSummon, Skill skill)
|
public String onAttack(Npc npc, PlayerInstance attacker, int damage, boolean isSummon, Skill skill)
|
||||||
{
|
{
|
||||||
if (npc.getScriptValue() == 0)
|
if (npc.isScriptValue(0))
|
||||||
{
|
{
|
||||||
npc.setScriptValue(1);
|
npc.setScriptValue(1);
|
||||||
npc.broadcastPacket(new NpcSay(npc.getObjectId(), ChatType.NPC_GENERAL, DRAGON_HACHLING, NpcStringId.HEY_THAT_HURT_YOU_JUST_WAIT_HERE_AND_I_LL_BE_BACK_AS_A_STRONGER_DRAGON));
|
npc.broadcastPacket(new NpcSay(npc.getObjectId(), ChatType.NPC_GENERAL, DRAGON_HACHLING, NpcStringId.HEY_THAT_HURT_YOU_JUST_WAIT_HERE_AND_I_LL_BE_BACK_AS_A_STRONGER_DRAGON));
|
||||||
|
@@ -245,7 +245,7 @@ public class FourSepulchers extends AbstractNpcAI implements IXmlReader
|
|||||||
{
|
{
|
||||||
return getNoQuestMsg(player);
|
return getNoQuestMsg(player);
|
||||||
}
|
}
|
||||||
if (qs.isStarted() && (npc.getScriptValue() == 0))
|
if (qs.isStarted() && npc.isScriptValue(0))
|
||||||
{
|
{
|
||||||
if (hasQuestItems(player, CHAPEL_KEY))
|
if (hasQuestItems(player, CHAPEL_KEY))
|
||||||
{
|
{
|
||||||
@@ -362,7 +362,7 @@ public class FourSepulchers extends AbstractNpcAI implements IXmlReader
|
|||||||
}
|
}
|
||||||
if (npc.getId() == MYSTERIOUS_CHEST)
|
if (npc.getId() == MYSTERIOUS_CHEST)
|
||||||
{
|
{
|
||||||
if (npc.getScriptValue() == 0)
|
if (npc.isScriptValue(0))
|
||||||
{
|
{
|
||||||
npc.setScriptValue(1);
|
npc.setScriptValue(1);
|
||||||
npc.deleteMe();
|
npc.deleteMe();
|
||||||
@@ -372,7 +372,7 @@ public class FourSepulchers extends AbstractNpcAI implements IXmlReader
|
|||||||
}
|
}
|
||||||
if (npc.getId() == KEY_CHEST)
|
if (npc.getId() == KEY_CHEST)
|
||||||
{
|
{
|
||||||
if (npc.getScriptValue() == 0)
|
if (npc.isScriptValue(0))
|
||||||
{
|
{
|
||||||
npc.setScriptValue(1);
|
npc.setScriptValue(1);
|
||||||
npc.deleteMe();
|
npc.deleteMe();
|
||||||
|
@@ -696,12 +696,12 @@ public class LastImperialTomb extends AbstractInstance
|
|||||||
{
|
{
|
||||||
if (npc.getId() == SCARLET1)
|
if (npc.getId() == SCARLET1)
|
||||||
{
|
{
|
||||||
if ((npc.getScriptValue() == 0) && (npc.getCurrentHp() < (npc.getMaxHp() * 0.80)))
|
if (npc.isScriptValue(0) && (npc.getCurrentHp() < (npc.getMaxHp() * 0.80)))
|
||||||
{
|
{
|
||||||
npc.setScriptValue(1);
|
npc.setScriptValue(1);
|
||||||
startQuestTimer("SCARLET_FIRST_MORPH", 1000, npc, null, false);
|
startQuestTimer("SCARLET_FIRST_MORPH", 1000, npc, null, false);
|
||||||
}
|
}
|
||||||
if ((npc.getScriptValue() == 1) && (npc.getCurrentHp() < (npc.getMaxHp() * 0.20)))
|
if (npc.isScriptValue(1) && (npc.getCurrentHp() < (npc.getMaxHp() * 0.20)))
|
||||||
{
|
{
|
||||||
npc.setScriptValue(2);
|
npc.setScriptValue(2);
|
||||||
startQuestTimer("SCARLET_SECOND_MORPH", 1000, npc, null, false);
|
startQuestTimer("SCARLET_SECOND_MORPH", 1000, npc, null, false);
|
||||||
|
@@ -207,7 +207,7 @@ public class Q10303_CrossroadsBetweenLightAndDarkness extends Quest
|
|||||||
htmltext = "32909-00a.htm";
|
htmltext = "32909-00a.htm";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
else if (qs.isCond(1) && (npc.getScriptValue() == 0))
|
else if (qs.isCond(1) && npc.isScriptValue(0))
|
||||||
{
|
{
|
||||||
htmltext = "32909-01.htm";
|
htmltext = "32909-01.htm";
|
||||||
}
|
}
|
||||||
@@ -220,7 +220,7 @@ public class Q10303_CrossroadsBetweenLightAndDarkness extends Quest
|
|||||||
htmltext = "33361-00a.htm";
|
htmltext = "33361-00a.htm";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
else if (qs.isCond(1) && (npc.getScriptValue() == 0))
|
else if (qs.isCond(1) && npc.isScriptValue(0))
|
||||||
{
|
{
|
||||||
htmltext = "33361-01.htm";
|
htmltext = "33361-01.htm";
|
||||||
}
|
}
|
||||||
|
@@ -83,7 +83,7 @@ public class LeopardDragonHachling extends AbstractNpcAI
|
|||||||
@Override
|
@Override
|
||||||
public String onAttack(Npc npc, PlayerInstance attacker, int damage, boolean isSummon, Skill skill)
|
public String onAttack(Npc npc, PlayerInstance attacker, int damage, boolean isSummon, Skill skill)
|
||||||
{
|
{
|
||||||
if (npc.getScriptValue() == 0)
|
if (npc.isScriptValue(0))
|
||||||
{
|
{
|
||||||
npc.setScriptValue(1);
|
npc.setScriptValue(1);
|
||||||
npc.broadcastPacket(new NpcSay(npc.getObjectId(), ChatType.NPC_GENERAL, DRAGON_HACHLING, NpcStringId.HEY_THAT_HURT_YOU_JUST_WAIT_HERE_AND_I_LL_BE_BACK_AS_A_STRONGER_DRAGON));
|
npc.broadcastPacket(new NpcSay(npc.getObjectId(), ChatType.NPC_GENERAL, DRAGON_HACHLING, NpcStringId.HEY_THAT_HURT_YOU_JUST_WAIT_HERE_AND_I_LL_BE_BACK_AS_A_STRONGER_DRAGON));
|
||||||
|
@@ -245,7 +245,7 @@ public class FourSepulchers extends AbstractNpcAI implements IXmlReader
|
|||||||
{
|
{
|
||||||
return getNoQuestMsg(player);
|
return getNoQuestMsg(player);
|
||||||
}
|
}
|
||||||
if (qs.isStarted() && (npc.getScriptValue() == 0))
|
if (qs.isStarted() && npc.isScriptValue(0))
|
||||||
{
|
{
|
||||||
if (hasQuestItems(player, CHAPEL_KEY))
|
if (hasQuestItems(player, CHAPEL_KEY))
|
||||||
{
|
{
|
||||||
@@ -362,7 +362,7 @@ public class FourSepulchers extends AbstractNpcAI implements IXmlReader
|
|||||||
}
|
}
|
||||||
if (npc.getId() == MYSTERIOUS_CHEST)
|
if (npc.getId() == MYSTERIOUS_CHEST)
|
||||||
{
|
{
|
||||||
if (npc.getScriptValue() == 0)
|
if (npc.isScriptValue(0))
|
||||||
{
|
{
|
||||||
npc.setScriptValue(1);
|
npc.setScriptValue(1);
|
||||||
npc.deleteMe();
|
npc.deleteMe();
|
||||||
@@ -372,7 +372,7 @@ public class FourSepulchers extends AbstractNpcAI implements IXmlReader
|
|||||||
}
|
}
|
||||||
if (npc.getId() == KEY_CHEST)
|
if (npc.getId() == KEY_CHEST)
|
||||||
{
|
{
|
||||||
if (npc.getScriptValue() == 0)
|
if (npc.isScriptValue(0))
|
||||||
{
|
{
|
||||||
npc.setScriptValue(1);
|
npc.setScriptValue(1);
|
||||||
npc.deleteMe();
|
npc.deleteMe();
|
||||||
|
@@ -696,12 +696,12 @@ public class LastImperialTomb extends AbstractInstance
|
|||||||
{
|
{
|
||||||
if (npc.getId() == SCARLET1)
|
if (npc.getId() == SCARLET1)
|
||||||
{
|
{
|
||||||
if ((npc.getScriptValue() == 0) && (npc.getCurrentHp() < (npc.getMaxHp() * 0.80)))
|
if (npc.isScriptValue(0) && (npc.getCurrentHp() < (npc.getMaxHp() * 0.80)))
|
||||||
{
|
{
|
||||||
npc.setScriptValue(1);
|
npc.setScriptValue(1);
|
||||||
startQuestTimer("SCARLET_FIRST_MORPH", 1000, npc, null, false);
|
startQuestTimer("SCARLET_FIRST_MORPH", 1000, npc, null, false);
|
||||||
}
|
}
|
||||||
if ((npc.getScriptValue() == 1) && (npc.getCurrentHp() < (npc.getMaxHp() * 0.20)))
|
if (npc.isScriptValue(1) && (npc.getCurrentHp() < (npc.getMaxHp() * 0.20)))
|
||||||
{
|
{
|
||||||
npc.setScriptValue(2);
|
npc.setScriptValue(2);
|
||||||
startQuestTimer("SCARLET_SECOND_MORPH", 1000, npc, null, false);
|
startQuestTimer("SCARLET_SECOND_MORPH", 1000, npc, null, false);
|
||||||
|
@@ -207,7 +207,7 @@ public class Q10303_CrossroadsBetweenLightAndDarkness extends Quest
|
|||||||
htmltext = "32909-00a.htm";
|
htmltext = "32909-00a.htm";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
else if (qs.isCond(1) && (npc.getScriptValue() == 0))
|
else if (qs.isCond(1) && npc.isScriptValue(0))
|
||||||
{
|
{
|
||||||
htmltext = "32909-01.htm";
|
htmltext = "32909-01.htm";
|
||||||
}
|
}
|
||||||
@@ -220,7 +220,7 @@ public class Q10303_CrossroadsBetweenLightAndDarkness extends Quest
|
|||||||
htmltext = "33361-00a.htm";
|
htmltext = "33361-00a.htm";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
else if (qs.isCond(1) && (npc.getScriptValue() == 0))
|
else if (qs.isCond(1) && npc.isScriptValue(0))
|
||||||
{
|
{
|
||||||
htmltext = "33361-01.htm";
|
htmltext = "33361-01.htm";
|
||||||
}
|
}
|
||||||
|
@@ -83,7 +83,7 @@ public class LeopardDragonHachling extends AbstractNpcAI
|
|||||||
@Override
|
@Override
|
||||||
public String onAttack(Npc npc, PlayerInstance attacker, int damage, boolean isSummon, Skill skill)
|
public String onAttack(Npc npc, PlayerInstance attacker, int damage, boolean isSummon, Skill skill)
|
||||||
{
|
{
|
||||||
if (npc.getScriptValue() == 0)
|
if (npc.isScriptValue(0))
|
||||||
{
|
{
|
||||||
npc.setScriptValue(1);
|
npc.setScriptValue(1);
|
||||||
npc.broadcastPacket(new NpcSay(npc.getObjectId(), ChatType.NPC_GENERAL, DRAGON_HACHLING, NpcStringId.HEY_THAT_HURT_YOU_JUST_WAIT_HERE_AND_I_LL_BE_BACK_AS_A_STRONGER_DRAGON));
|
npc.broadcastPacket(new NpcSay(npc.getObjectId(), ChatType.NPC_GENERAL, DRAGON_HACHLING, NpcStringId.HEY_THAT_HURT_YOU_JUST_WAIT_HERE_AND_I_LL_BE_BACK_AS_A_STRONGER_DRAGON));
|
||||||
|
@@ -245,7 +245,7 @@ public class FourSepulchers extends AbstractNpcAI implements IXmlReader
|
|||||||
{
|
{
|
||||||
return getNoQuestMsg(player);
|
return getNoQuestMsg(player);
|
||||||
}
|
}
|
||||||
if (qs.isStarted() && (npc.getScriptValue() == 0))
|
if (qs.isStarted() && npc.isScriptValue(0))
|
||||||
{
|
{
|
||||||
if (hasQuestItems(player, CHAPEL_KEY))
|
if (hasQuestItems(player, CHAPEL_KEY))
|
||||||
{
|
{
|
||||||
@@ -362,7 +362,7 @@ public class FourSepulchers extends AbstractNpcAI implements IXmlReader
|
|||||||
}
|
}
|
||||||
if (npc.getId() == MYSTERIOUS_CHEST)
|
if (npc.getId() == MYSTERIOUS_CHEST)
|
||||||
{
|
{
|
||||||
if (npc.getScriptValue() == 0)
|
if (npc.isScriptValue(0))
|
||||||
{
|
{
|
||||||
npc.setScriptValue(1);
|
npc.setScriptValue(1);
|
||||||
npc.deleteMe();
|
npc.deleteMe();
|
||||||
@@ -372,7 +372,7 @@ public class FourSepulchers extends AbstractNpcAI implements IXmlReader
|
|||||||
}
|
}
|
||||||
if (npc.getId() == KEY_CHEST)
|
if (npc.getId() == KEY_CHEST)
|
||||||
{
|
{
|
||||||
if (npc.getScriptValue() == 0)
|
if (npc.isScriptValue(0))
|
||||||
{
|
{
|
||||||
npc.setScriptValue(1);
|
npc.setScriptValue(1);
|
||||||
npc.deleteMe();
|
npc.deleteMe();
|
||||||
|
@@ -696,12 +696,12 @@ public class LastImperialTomb extends AbstractInstance
|
|||||||
{
|
{
|
||||||
if (npc.getId() == SCARLET1)
|
if (npc.getId() == SCARLET1)
|
||||||
{
|
{
|
||||||
if ((npc.getScriptValue() == 0) && (npc.getCurrentHp() < (npc.getMaxHp() * 0.80)))
|
if (npc.isScriptValue(0) && (npc.getCurrentHp() < (npc.getMaxHp() * 0.80)))
|
||||||
{
|
{
|
||||||
npc.setScriptValue(1);
|
npc.setScriptValue(1);
|
||||||
startQuestTimer("SCARLET_FIRST_MORPH", 1000, npc, null, false);
|
startQuestTimer("SCARLET_FIRST_MORPH", 1000, npc, null, false);
|
||||||
}
|
}
|
||||||
if ((npc.getScriptValue() == 1) && (npc.getCurrentHp() < (npc.getMaxHp() * 0.20)))
|
if (npc.isScriptValue(1) && (npc.getCurrentHp() < (npc.getMaxHp() * 0.20)))
|
||||||
{
|
{
|
||||||
npc.setScriptValue(2);
|
npc.setScriptValue(2);
|
||||||
startQuestTimer("SCARLET_SECOND_MORPH", 1000, npc, null, false);
|
startQuestTimer("SCARLET_SECOND_MORPH", 1000, npc, null, false);
|
||||||
|
@@ -207,7 +207,7 @@ public class Q10303_CrossroadsBetweenLightAndDarkness extends Quest
|
|||||||
htmltext = "32909-00a.htm";
|
htmltext = "32909-00a.htm";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
else if (qs.isCond(1) && (npc.getScriptValue() == 0))
|
else if (qs.isCond(1) && npc.isScriptValue(0))
|
||||||
{
|
{
|
||||||
htmltext = "32909-01.htm";
|
htmltext = "32909-01.htm";
|
||||||
}
|
}
|
||||||
@@ -220,7 +220,7 @@ public class Q10303_CrossroadsBetweenLightAndDarkness extends Quest
|
|||||||
htmltext = "33361-00a.htm";
|
htmltext = "33361-00a.htm";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
else if (qs.isCond(1) && (npc.getScriptValue() == 0))
|
else if (qs.isCond(1) && npc.isScriptValue(0))
|
||||||
{
|
{
|
||||||
htmltext = "33361-01.htm";
|
htmltext = "33361-01.htm";
|
||||||
}
|
}
|
||||||
|
@@ -83,7 +83,7 @@ public class LeopardDragonHachling extends AbstractNpcAI
|
|||||||
@Override
|
@Override
|
||||||
public String onAttack(Npc npc, PlayerInstance attacker, int damage, boolean isSummon, Skill skill)
|
public String onAttack(Npc npc, PlayerInstance attacker, int damage, boolean isSummon, Skill skill)
|
||||||
{
|
{
|
||||||
if (npc.getScriptValue() == 0)
|
if (npc.isScriptValue(0))
|
||||||
{
|
{
|
||||||
npc.setScriptValue(1);
|
npc.setScriptValue(1);
|
||||||
npc.broadcastPacket(new NpcSay(npc.getObjectId(), ChatType.NPC_GENERAL, DRAGON_HACHLING, NpcStringId.HEY_THAT_HURT_YOU_JUST_WAIT_HERE_AND_I_LL_BE_BACK_AS_A_STRONGER_DRAGON));
|
npc.broadcastPacket(new NpcSay(npc.getObjectId(), ChatType.NPC_GENERAL, DRAGON_HACHLING, NpcStringId.HEY_THAT_HURT_YOU_JUST_WAIT_HERE_AND_I_LL_BE_BACK_AS_A_STRONGER_DRAGON));
|
||||||
|
@@ -245,7 +245,7 @@ public class FourSepulchers extends AbstractNpcAI implements IXmlReader
|
|||||||
{
|
{
|
||||||
return getNoQuestMsg(player);
|
return getNoQuestMsg(player);
|
||||||
}
|
}
|
||||||
if (qs.isStarted() && (npc.getScriptValue() == 0))
|
if (qs.isStarted() && npc.isScriptValue(0))
|
||||||
{
|
{
|
||||||
if (hasQuestItems(player, CHAPEL_KEY))
|
if (hasQuestItems(player, CHAPEL_KEY))
|
||||||
{
|
{
|
||||||
@@ -362,7 +362,7 @@ public class FourSepulchers extends AbstractNpcAI implements IXmlReader
|
|||||||
}
|
}
|
||||||
if (npc.getId() == MYSTERIOUS_CHEST)
|
if (npc.getId() == MYSTERIOUS_CHEST)
|
||||||
{
|
{
|
||||||
if (npc.getScriptValue() == 0)
|
if (npc.isScriptValue(0))
|
||||||
{
|
{
|
||||||
npc.setScriptValue(1);
|
npc.setScriptValue(1);
|
||||||
npc.deleteMe();
|
npc.deleteMe();
|
||||||
@@ -372,7 +372,7 @@ public class FourSepulchers extends AbstractNpcAI implements IXmlReader
|
|||||||
}
|
}
|
||||||
if (npc.getId() == KEY_CHEST)
|
if (npc.getId() == KEY_CHEST)
|
||||||
{
|
{
|
||||||
if (npc.getScriptValue() == 0)
|
if (npc.isScriptValue(0))
|
||||||
{
|
{
|
||||||
npc.setScriptValue(1);
|
npc.setScriptValue(1);
|
||||||
npc.deleteMe();
|
npc.deleteMe();
|
||||||
|
@@ -696,12 +696,12 @@ public class LastImperialTomb extends AbstractInstance
|
|||||||
{
|
{
|
||||||
if (npc.getId() == SCARLET1)
|
if (npc.getId() == SCARLET1)
|
||||||
{
|
{
|
||||||
if ((npc.getScriptValue() == 0) && (npc.getCurrentHp() < (npc.getMaxHp() * 0.80)))
|
if (npc.isScriptValue(0) && (npc.getCurrentHp() < (npc.getMaxHp() * 0.80)))
|
||||||
{
|
{
|
||||||
npc.setScriptValue(1);
|
npc.setScriptValue(1);
|
||||||
startQuestTimer("SCARLET_FIRST_MORPH", 1000, npc, null, false);
|
startQuestTimer("SCARLET_FIRST_MORPH", 1000, npc, null, false);
|
||||||
}
|
}
|
||||||
if ((npc.getScriptValue() == 1) && (npc.getCurrentHp() < (npc.getMaxHp() * 0.20)))
|
if (npc.isScriptValue(1) && (npc.getCurrentHp() < (npc.getMaxHp() * 0.20)))
|
||||||
{
|
{
|
||||||
npc.setScriptValue(2);
|
npc.setScriptValue(2);
|
||||||
startQuestTimer("SCARLET_SECOND_MORPH", 1000, npc, null, false);
|
startQuestTimer("SCARLET_SECOND_MORPH", 1000, npc, null, false);
|
||||||
|
@@ -207,7 +207,7 @@ public class Q10303_CrossroadsBetweenLightAndDarkness extends Quest
|
|||||||
htmltext = "32909-00a.htm";
|
htmltext = "32909-00a.htm";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
else if (qs.isCond(1) && (npc.getScriptValue() == 0))
|
else if (qs.isCond(1) && npc.isScriptValue(0))
|
||||||
{
|
{
|
||||||
htmltext = "32909-01.htm";
|
htmltext = "32909-01.htm";
|
||||||
}
|
}
|
||||||
@@ -220,7 +220,7 @@ public class Q10303_CrossroadsBetweenLightAndDarkness extends Quest
|
|||||||
htmltext = "33361-00a.htm";
|
htmltext = "33361-00a.htm";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
else if (qs.isCond(1) && (npc.getScriptValue() == 0))
|
else if (qs.isCond(1) && npc.isScriptValue(0))
|
||||||
{
|
{
|
||||||
htmltext = "33361-01.htm";
|
htmltext = "33361-01.htm";
|
||||||
}
|
}
|
||||||
|
@@ -83,7 +83,7 @@ public class LeopardDragonHachling extends AbstractNpcAI
|
|||||||
@Override
|
@Override
|
||||||
public String onAttack(Npc npc, PlayerInstance attacker, int damage, boolean isSummon, Skill skill)
|
public String onAttack(Npc npc, PlayerInstance attacker, int damage, boolean isSummon, Skill skill)
|
||||||
{
|
{
|
||||||
if (npc.getScriptValue() == 0)
|
if (npc.isScriptValue(0))
|
||||||
{
|
{
|
||||||
npc.setScriptValue(1);
|
npc.setScriptValue(1);
|
||||||
npc.broadcastPacket(new NpcSay(npc.getObjectId(), ChatType.NPC_GENERAL, DRAGON_HACHLING, NpcStringId.HEY_THAT_HURT_YOU_JUST_WAIT_HERE_AND_I_LL_BE_BACK_AS_A_STRONGER_DRAGON));
|
npc.broadcastPacket(new NpcSay(npc.getObjectId(), ChatType.NPC_GENERAL, DRAGON_HACHLING, NpcStringId.HEY_THAT_HURT_YOU_JUST_WAIT_HERE_AND_I_LL_BE_BACK_AS_A_STRONGER_DRAGON));
|
||||||
|
@@ -245,7 +245,7 @@ public class FourSepulchers extends AbstractNpcAI implements IXmlReader
|
|||||||
{
|
{
|
||||||
return getNoQuestMsg(player);
|
return getNoQuestMsg(player);
|
||||||
}
|
}
|
||||||
if (qs.isStarted() && (npc.getScriptValue() == 0))
|
if (qs.isStarted() && npc.isScriptValue(0))
|
||||||
{
|
{
|
||||||
if (hasQuestItems(player, CHAPEL_KEY))
|
if (hasQuestItems(player, CHAPEL_KEY))
|
||||||
{
|
{
|
||||||
@@ -362,7 +362,7 @@ public class FourSepulchers extends AbstractNpcAI implements IXmlReader
|
|||||||
}
|
}
|
||||||
if (npc.getId() == MYSTERIOUS_CHEST)
|
if (npc.getId() == MYSTERIOUS_CHEST)
|
||||||
{
|
{
|
||||||
if (npc.getScriptValue() == 0)
|
if (npc.isScriptValue(0))
|
||||||
{
|
{
|
||||||
npc.setScriptValue(1);
|
npc.setScriptValue(1);
|
||||||
npc.deleteMe();
|
npc.deleteMe();
|
||||||
@@ -372,7 +372,7 @@ public class FourSepulchers extends AbstractNpcAI implements IXmlReader
|
|||||||
}
|
}
|
||||||
if (npc.getId() == KEY_CHEST)
|
if (npc.getId() == KEY_CHEST)
|
||||||
{
|
{
|
||||||
if (npc.getScriptValue() == 0)
|
if (npc.isScriptValue(0))
|
||||||
{
|
{
|
||||||
npc.setScriptValue(1);
|
npc.setScriptValue(1);
|
||||||
npc.deleteMe();
|
npc.deleteMe();
|
||||||
|
@@ -696,12 +696,12 @@ public class LastImperialTomb extends AbstractInstance
|
|||||||
{
|
{
|
||||||
if (npc.getId() == SCARLET1)
|
if (npc.getId() == SCARLET1)
|
||||||
{
|
{
|
||||||
if ((npc.getScriptValue() == 0) && (npc.getCurrentHp() < (npc.getMaxHp() * 0.80)))
|
if (npc.isScriptValue(0) && (npc.getCurrentHp() < (npc.getMaxHp() * 0.80)))
|
||||||
{
|
{
|
||||||
npc.setScriptValue(1);
|
npc.setScriptValue(1);
|
||||||
startQuestTimer("SCARLET_FIRST_MORPH", 1000, npc, null, false);
|
startQuestTimer("SCARLET_FIRST_MORPH", 1000, npc, null, false);
|
||||||
}
|
}
|
||||||
if ((npc.getScriptValue() == 1) && (npc.getCurrentHp() < (npc.getMaxHp() * 0.20)))
|
if (npc.isScriptValue(1) && (npc.getCurrentHp() < (npc.getMaxHp() * 0.20)))
|
||||||
{
|
{
|
||||||
npc.setScriptValue(2);
|
npc.setScriptValue(2);
|
||||||
startQuestTimer("SCARLET_SECOND_MORPH", 1000, npc, null, false);
|
startQuestTimer("SCARLET_SECOND_MORPH", 1000, npc, null, false);
|
||||||
|
@@ -207,7 +207,7 @@ public class Q10303_CrossroadsBetweenLightAndDarkness extends Quest
|
|||||||
htmltext = "32909-00a.htm";
|
htmltext = "32909-00a.htm";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
else if (qs.isCond(1) && (npc.getScriptValue() == 0))
|
else if (qs.isCond(1) && npc.isScriptValue(0))
|
||||||
{
|
{
|
||||||
htmltext = "32909-01.htm";
|
htmltext = "32909-01.htm";
|
||||||
}
|
}
|
||||||
@@ -220,7 +220,7 @@ public class Q10303_CrossroadsBetweenLightAndDarkness extends Quest
|
|||||||
htmltext = "33361-00a.htm";
|
htmltext = "33361-00a.htm";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
else if (qs.isCond(1) && (npc.getScriptValue() == 0))
|
else if (qs.isCond(1) && npc.isScriptValue(0))
|
||||||
{
|
{
|
||||||
htmltext = "33361-01.htm";
|
htmltext = "33361-01.htm";
|
||||||
}
|
}
|
||||||
|
@@ -83,7 +83,7 @@ public class LeopardDragonHachling extends AbstractNpcAI
|
|||||||
@Override
|
@Override
|
||||||
public String onAttack(Npc npc, PlayerInstance attacker, int damage, boolean isSummon, Skill skill)
|
public String onAttack(Npc npc, PlayerInstance attacker, int damage, boolean isSummon, Skill skill)
|
||||||
{
|
{
|
||||||
if (npc.getScriptValue() == 0)
|
if (npc.isScriptValue(0))
|
||||||
{
|
{
|
||||||
npc.setScriptValue(1);
|
npc.setScriptValue(1);
|
||||||
npc.broadcastPacket(new NpcSay(npc.getObjectId(), ChatType.NPC_GENERAL, DRAGON_HACHLING, NpcStringId.HEY_THAT_HURT_YOU_JUST_WAIT_HERE_AND_I_LL_BE_BACK_AS_A_STRONGER_DRAGON));
|
npc.broadcastPacket(new NpcSay(npc.getObjectId(), ChatType.NPC_GENERAL, DRAGON_HACHLING, NpcStringId.HEY_THAT_HURT_YOU_JUST_WAIT_HERE_AND_I_LL_BE_BACK_AS_A_STRONGER_DRAGON));
|
||||||
|
@@ -245,7 +245,7 @@ public class FourSepulchers extends AbstractNpcAI implements IXmlReader
|
|||||||
{
|
{
|
||||||
return getNoQuestMsg(player);
|
return getNoQuestMsg(player);
|
||||||
}
|
}
|
||||||
if (qs.isStarted() && (npc.getScriptValue() == 0))
|
if (qs.isStarted() && npc.isScriptValue(0))
|
||||||
{
|
{
|
||||||
if (hasQuestItems(player, CHAPEL_KEY))
|
if (hasQuestItems(player, CHAPEL_KEY))
|
||||||
{
|
{
|
||||||
@@ -362,7 +362,7 @@ public class FourSepulchers extends AbstractNpcAI implements IXmlReader
|
|||||||
}
|
}
|
||||||
if (npc.getId() == MYSTERIOUS_CHEST)
|
if (npc.getId() == MYSTERIOUS_CHEST)
|
||||||
{
|
{
|
||||||
if (npc.getScriptValue() == 0)
|
if (npc.isScriptValue(0))
|
||||||
{
|
{
|
||||||
npc.setScriptValue(1);
|
npc.setScriptValue(1);
|
||||||
npc.deleteMe();
|
npc.deleteMe();
|
||||||
@@ -372,7 +372,7 @@ public class FourSepulchers extends AbstractNpcAI implements IXmlReader
|
|||||||
}
|
}
|
||||||
if (npc.getId() == KEY_CHEST)
|
if (npc.getId() == KEY_CHEST)
|
||||||
{
|
{
|
||||||
if (npc.getScriptValue() == 0)
|
if (npc.isScriptValue(0))
|
||||||
{
|
{
|
||||||
npc.setScriptValue(1);
|
npc.setScriptValue(1);
|
||||||
npc.deleteMe();
|
npc.deleteMe();
|
||||||
|
@@ -696,12 +696,12 @@ public class LastImperialTomb extends AbstractInstance
|
|||||||
{
|
{
|
||||||
if (npc.getId() == SCARLET1)
|
if (npc.getId() == SCARLET1)
|
||||||
{
|
{
|
||||||
if ((npc.getScriptValue() == 0) && (npc.getCurrentHp() < (npc.getMaxHp() * 0.80)))
|
if (npc.isScriptValue(0) && (npc.getCurrentHp() < (npc.getMaxHp() * 0.80)))
|
||||||
{
|
{
|
||||||
npc.setScriptValue(1);
|
npc.setScriptValue(1);
|
||||||
startQuestTimer("SCARLET_FIRST_MORPH", 1000, npc, null, false);
|
startQuestTimer("SCARLET_FIRST_MORPH", 1000, npc, null, false);
|
||||||
}
|
}
|
||||||
if ((npc.getScriptValue() == 1) && (npc.getCurrentHp() < (npc.getMaxHp() * 0.20)))
|
if (npc.isScriptValue(1) && (npc.getCurrentHp() < (npc.getMaxHp() * 0.20)))
|
||||||
{
|
{
|
||||||
npc.setScriptValue(2);
|
npc.setScriptValue(2);
|
||||||
startQuestTimer("SCARLET_SECOND_MORPH", 1000, npc, null, false);
|
startQuestTimer("SCARLET_SECOND_MORPH", 1000, npc, null, false);
|
||||||
|
@@ -207,7 +207,7 @@ public class Q10303_CrossroadsBetweenLightAndDarkness extends Quest
|
|||||||
htmltext = "32909-00a.htm";
|
htmltext = "32909-00a.htm";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
else if (qs.isCond(1) && (npc.getScriptValue() == 0))
|
else if (qs.isCond(1) && npc.isScriptValue(0))
|
||||||
{
|
{
|
||||||
htmltext = "32909-01.htm";
|
htmltext = "32909-01.htm";
|
||||||
}
|
}
|
||||||
@@ -220,7 +220,7 @@ public class Q10303_CrossroadsBetweenLightAndDarkness extends Quest
|
|||||||
htmltext = "33361-00a.htm";
|
htmltext = "33361-00a.htm";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
else if (qs.isCond(1) && (npc.getScriptValue() == 0))
|
else if (qs.isCond(1) && npc.isScriptValue(0))
|
||||||
{
|
{
|
||||||
htmltext = "33361-01.htm";
|
htmltext = "33361-01.htm";
|
||||||
}
|
}
|
||||||
|
@@ -83,7 +83,7 @@ public class LeopardDragonHachling extends AbstractNpcAI
|
|||||||
@Override
|
@Override
|
||||||
public String onAttack(Npc npc, PlayerInstance attacker, int damage, boolean isSummon, Skill skill)
|
public String onAttack(Npc npc, PlayerInstance attacker, int damage, boolean isSummon, Skill skill)
|
||||||
{
|
{
|
||||||
if (npc.getScriptValue() == 0)
|
if (npc.isScriptValue(0))
|
||||||
{
|
{
|
||||||
npc.setScriptValue(1);
|
npc.setScriptValue(1);
|
||||||
npc.broadcastPacket(new NpcSay(npc.getObjectId(), ChatType.NPC_GENERAL, DRAGON_HACHLING, NpcStringId.HEY_THAT_HURT_YOU_JUST_WAIT_HERE_AND_I_LL_BE_BACK_AS_A_STRONGER_DRAGON));
|
npc.broadcastPacket(new NpcSay(npc.getObjectId(), ChatType.NPC_GENERAL, DRAGON_HACHLING, NpcStringId.HEY_THAT_HURT_YOU_JUST_WAIT_HERE_AND_I_LL_BE_BACK_AS_A_STRONGER_DRAGON));
|
||||||
|
@@ -245,7 +245,7 @@ public class FourSepulchers extends AbstractNpcAI implements IXmlReader
|
|||||||
{
|
{
|
||||||
return getNoQuestMsg(player);
|
return getNoQuestMsg(player);
|
||||||
}
|
}
|
||||||
if (qs.isStarted() && (npc.getScriptValue() == 0))
|
if (qs.isStarted() && npc.isScriptValue(0))
|
||||||
{
|
{
|
||||||
if (hasQuestItems(player, CHAPEL_KEY))
|
if (hasQuestItems(player, CHAPEL_KEY))
|
||||||
{
|
{
|
||||||
@@ -362,7 +362,7 @@ public class FourSepulchers extends AbstractNpcAI implements IXmlReader
|
|||||||
}
|
}
|
||||||
if (npc.getId() == MYSTERIOUS_CHEST)
|
if (npc.getId() == MYSTERIOUS_CHEST)
|
||||||
{
|
{
|
||||||
if (npc.getScriptValue() == 0)
|
if (npc.isScriptValue(0))
|
||||||
{
|
{
|
||||||
npc.setScriptValue(1);
|
npc.setScriptValue(1);
|
||||||
npc.deleteMe();
|
npc.deleteMe();
|
||||||
@@ -372,7 +372,7 @@ public class FourSepulchers extends AbstractNpcAI implements IXmlReader
|
|||||||
}
|
}
|
||||||
if (npc.getId() == KEY_CHEST)
|
if (npc.getId() == KEY_CHEST)
|
||||||
{
|
{
|
||||||
if (npc.getScriptValue() == 0)
|
if (npc.isScriptValue(0))
|
||||||
{
|
{
|
||||||
npc.setScriptValue(1);
|
npc.setScriptValue(1);
|
||||||
npc.deleteMe();
|
npc.deleteMe();
|
||||||
|
@@ -696,12 +696,12 @@ public class LastImperialTomb extends AbstractInstance
|
|||||||
{
|
{
|
||||||
if (npc.getId() == SCARLET1)
|
if (npc.getId() == SCARLET1)
|
||||||
{
|
{
|
||||||
if ((npc.getScriptValue() == 0) && (npc.getCurrentHp() < (npc.getMaxHp() * 0.80)))
|
if (npc.isScriptValue(0) && (npc.getCurrentHp() < (npc.getMaxHp() * 0.80)))
|
||||||
{
|
{
|
||||||
npc.setScriptValue(1);
|
npc.setScriptValue(1);
|
||||||
startQuestTimer("SCARLET_FIRST_MORPH", 1000, npc, null, false);
|
startQuestTimer("SCARLET_FIRST_MORPH", 1000, npc, null, false);
|
||||||
}
|
}
|
||||||
if ((npc.getScriptValue() == 1) && (npc.getCurrentHp() < (npc.getMaxHp() * 0.20)))
|
if (npc.isScriptValue(1) && (npc.getCurrentHp() < (npc.getMaxHp() * 0.20)))
|
||||||
{
|
{
|
||||||
npc.setScriptValue(2);
|
npc.setScriptValue(2);
|
||||||
startQuestTimer("SCARLET_SECOND_MORPH", 1000, npc, null, false);
|
startQuestTimer("SCARLET_SECOND_MORPH", 1000, npc, null, false);
|
||||||
|
@@ -207,7 +207,7 @@ public class Q10303_CrossroadsBetweenLightAndDarkness extends Quest
|
|||||||
htmltext = "32909-00a.htm";
|
htmltext = "32909-00a.htm";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
else if (qs.isCond(1) && (npc.getScriptValue() == 0))
|
else if (qs.isCond(1) && npc.isScriptValue(0))
|
||||||
{
|
{
|
||||||
htmltext = "32909-01.htm";
|
htmltext = "32909-01.htm";
|
||||||
}
|
}
|
||||||
@@ -220,7 +220,7 @@ public class Q10303_CrossroadsBetweenLightAndDarkness extends Quest
|
|||||||
htmltext = "33361-00a.htm";
|
htmltext = "33361-00a.htm";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
else if (qs.isCond(1) && (npc.getScriptValue() == 0))
|
else if (qs.isCond(1) && npc.isScriptValue(0))
|
||||||
{
|
{
|
||||||
htmltext = "33361-01.htm";
|
htmltext = "33361-01.htm";
|
||||||
}
|
}
|
||||||
|
@@ -83,7 +83,7 @@ public class LeopardDragonHachling extends AbstractNpcAI
|
|||||||
@Override
|
@Override
|
||||||
public String onAttack(Npc npc, PlayerInstance attacker, int damage, boolean isSummon, Skill skill)
|
public String onAttack(Npc npc, PlayerInstance attacker, int damage, boolean isSummon, Skill skill)
|
||||||
{
|
{
|
||||||
if (npc.getScriptValue() == 0)
|
if (npc.isScriptValue(0))
|
||||||
{
|
{
|
||||||
npc.setScriptValue(1);
|
npc.setScriptValue(1);
|
||||||
npc.broadcastPacket(new NpcSay(npc.getObjectId(), ChatType.NPC_GENERAL, DRAGON_HACHLING, NpcStringId.HEY_THAT_HURT_YOU_JUST_WAIT_HERE_AND_I_LL_BE_BACK_AS_A_STRONGER_DRAGON));
|
npc.broadcastPacket(new NpcSay(npc.getObjectId(), ChatType.NPC_GENERAL, DRAGON_HACHLING, NpcStringId.HEY_THAT_HURT_YOU_JUST_WAIT_HERE_AND_I_LL_BE_BACK_AS_A_STRONGER_DRAGON));
|
||||||
|
@@ -245,7 +245,7 @@ public class FourSepulchers extends AbstractNpcAI implements IXmlReader
|
|||||||
{
|
{
|
||||||
return getNoQuestMsg(player);
|
return getNoQuestMsg(player);
|
||||||
}
|
}
|
||||||
if (qs.isStarted() && (npc.getScriptValue() == 0))
|
if (qs.isStarted() && npc.isScriptValue(0))
|
||||||
{
|
{
|
||||||
if (hasQuestItems(player, CHAPEL_KEY))
|
if (hasQuestItems(player, CHAPEL_KEY))
|
||||||
{
|
{
|
||||||
@@ -362,7 +362,7 @@ public class FourSepulchers extends AbstractNpcAI implements IXmlReader
|
|||||||
}
|
}
|
||||||
if (npc.getId() == MYSTERIOUS_CHEST)
|
if (npc.getId() == MYSTERIOUS_CHEST)
|
||||||
{
|
{
|
||||||
if (npc.getScriptValue() == 0)
|
if (npc.isScriptValue(0))
|
||||||
{
|
{
|
||||||
npc.setScriptValue(1);
|
npc.setScriptValue(1);
|
||||||
npc.deleteMe();
|
npc.deleteMe();
|
||||||
@@ -372,7 +372,7 @@ public class FourSepulchers extends AbstractNpcAI implements IXmlReader
|
|||||||
}
|
}
|
||||||
if (npc.getId() == KEY_CHEST)
|
if (npc.getId() == KEY_CHEST)
|
||||||
{
|
{
|
||||||
if (npc.getScriptValue() == 0)
|
if (npc.isScriptValue(0))
|
||||||
{
|
{
|
||||||
npc.setScriptValue(1);
|
npc.setScriptValue(1);
|
||||||
npc.deleteMe();
|
npc.deleteMe();
|
||||||
|
@@ -696,12 +696,12 @@ public class LastImperialTomb extends AbstractInstance
|
|||||||
{
|
{
|
||||||
if (npc.getId() == SCARLET1)
|
if (npc.getId() == SCARLET1)
|
||||||
{
|
{
|
||||||
if ((npc.getScriptValue() == 0) && (npc.getCurrentHp() < (npc.getMaxHp() * 0.80)))
|
if (npc.isScriptValue(0) && (npc.getCurrentHp() < (npc.getMaxHp() * 0.80)))
|
||||||
{
|
{
|
||||||
npc.setScriptValue(1);
|
npc.setScriptValue(1);
|
||||||
startQuestTimer("SCARLET_FIRST_MORPH", 1000, npc, null, false);
|
startQuestTimer("SCARLET_FIRST_MORPH", 1000, npc, null, false);
|
||||||
}
|
}
|
||||||
if ((npc.getScriptValue() == 1) && (npc.getCurrentHp() < (npc.getMaxHp() * 0.20)))
|
if (npc.isScriptValue(1) && (npc.getCurrentHp() < (npc.getMaxHp() * 0.20)))
|
||||||
{
|
{
|
||||||
npc.setScriptValue(2);
|
npc.setScriptValue(2);
|
||||||
startQuestTimer("SCARLET_SECOND_MORPH", 1000, npc, null, false);
|
startQuestTimer("SCARLET_SECOND_MORPH", 1000, npc, null, false);
|
||||||
|
@@ -207,7 +207,7 @@ public class Q10303_CrossroadsBetweenLightAndDarkness extends Quest
|
|||||||
htmltext = "32909-00a.htm";
|
htmltext = "32909-00a.htm";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
else if (qs.isCond(1) && (npc.getScriptValue() == 0))
|
else if (qs.isCond(1) && npc.isScriptValue(0))
|
||||||
{
|
{
|
||||||
htmltext = "32909-01.htm";
|
htmltext = "32909-01.htm";
|
||||||
}
|
}
|
||||||
@@ -220,7 +220,7 @@ public class Q10303_CrossroadsBetweenLightAndDarkness extends Quest
|
|||||||
htmltext = "33361-00a.htm";
|
htmltext = "33361-00a.htm";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
else if (qs.isCond(1) && (npc.getScriptValue() == 0))
|
else if (qs.isCond(1) && npc.isScriptValue(0))
|
||||||
{
|
{
|
||||||
htmltext = "33361-01.htm";
|
htmltext = "33361-01.htm";
|
||||||
}
|
}
|
||||||
|
@@ -652,7 +652,7 @@ public class Q348_AnArrogantSearch extends Quest
|
|||||||
switch (npc.getNpcId())
|
switch (npc.getNpcId())
|
||||||
{
|
{
|
||||||
case ARK_GUARDIAN_ELBEROTH:
|
case ARK_GUARDIAN_ELBEROTH:
|
||||||
if (npc.getScriptValue() == 0)
|
if (npc.isScriptValue(0))
|
||||||
{
|
{
|
||||||
npc.broadcastNpcSay("...I feel very sorry, but I have taken your life.");
|
npc.broadcastNpcSay("...I feel very sorry, but I have taken your life.");
|
||||||
npc.setScriptValue(1);
|
npc.setScriptValue(1);
|
||||||
@@ -660,7 +660,7 @@ public class Q348_AnArrogantSearch extends Quest
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case ARK_GUARDIAN_SHADOW_FANG:
|
case ARK_GUARDIAN_SHADOW_FANG:
|
||||||
if (npc.getScriptValue() == 0)
|
if (npc.isScriptValue(0))
|
||||||
{
|
{
|
||||||
npc.broadcastNpcSay("I will cover this mountain with your blood!");
|
npc.broadcastNpcSay("I will cover this mountain with your blood!");
|
||||||
npc.setScriptValue(1);
|
npc.setScriptValue(1);
|
||||||
@@ -668,7 +668,7 @@ public class Q348_AnArrogantSearch extends Quest
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case ANGEL_KILLER:
|
case ANGEL_KILLER:
|
||||||
if (npc.getScriptValue() == 0)
|
if (npc.isScriptValue(0))
|
||||||
{
|
{
|
||||||
npc.broadcastNpcSay("Haha.. Really amusing! As for the key, search the corpse!");
|
npc.broadcastNpcSay("Haha.. Really amusing! As for the key, search the corpse!");
|
||||||
npc.setScriptValue(1);
|
npc.setScriptValue(1);
|
||||||
|
@@ -697,12 +697,12 @@ public class LastImperialTomb extends AbstractInstance
|
|||||||
{
|
{
|
||||||
if (npc.getId() == SCARLET1)
|
if (npc.getId() == SCARLET1)
|
||||||
{
|
{
|
||||||
if ((npc.getScriptValue() == 0) && (npc.getCurrentHp() < (npc.getMaxHp() * 0.80)))
|
if (npc.isScriptValue(0) && (npc.getCurrentHp() < (npc.getMaxHp() * 0.80)))
|
||||||
{
|
{
|
||||||
npc.setScriptValue(1);
|
npc.setScriptValue(1);
|
||||||
startQuestTimer("SCARLET_FIRST_MORPH", 1000, npc, null, false);
|
startQuestTimer("SCARLET_FIRST_MORPH", 1000, npc, null, false);
|
||||||
}
|
}
|
||||||
if ((npc.getScriptValue() == 1) && (npc.getCurrentHp() < (npc.getMaxHp() * 0.20)))
|
if (npc.isScriptValue(1) && (npc.getCurrentHp() < (npc.getMaxHp() * 0.20)))
|
||||||
{
|
{
|
||||||
npc.setScriptValue(2);
|
npc.setScriptValue(2);
|
||||||
startQuestTimer("SCARLET_SECOND_MORPH", 1000, npc, null, false);
|
startQuestTimer("SCARLET_SECOND_MORPH", 1000, npc, null, false);
|
||||||
|
@@ -697,12 +697,12 @@ public class LastImperialTomb extends AbstractInstance
|
|||||||
{
|
{
|
||||||
if (npc.getId() == SCARLET1)
|
if (npc.getId() == SCARLET1)
|
||||||
{
|
{
|
||||||
if ((npc.getScriptValue() == 0) && (npc.getCurrentHp() < (npc.getMaxHp() * 0.80)))
|
if (npc.isScriptValue(0) && (npc.getCurrentHp() < (npc.getMaxHp() * 0.80)))
|
||||||
{
|
{
|
||||||
npc.setScriptValue(1);
|
npc.setScriptValue(1);
|
||||||
startQuestTimer("SCARLET_FIRST_MORPH", 1000, npc, null, false);
|
startQuestTimer("SCARLET_FIRST_MORPH", 1000, npc, null, false);
|
||||||
}
|
}
|
||||||
if ((npc.getScriptValue() == 1) && (npc.getCurrentHp() < (npc.getMaxHp() * 0.20)))
|
if (npc.isScriptValue(1) && (npc.getCurrentHp() < (npc.getMaxHp() * 0.20)))
|
||||||
{
|
{
|
||||||
npc.setScriptValue(2);
|
npc.setScriptValue(2);
|
||||||
startQuestTimer("SCARLET_SECOND_MORPH", 1000, npc, null, false);
|
startQuestTimer("SCARLET_SECOND_MORPH", 1000, npc, null, false);
|
||||||
|
Reference in New Issue
Block a user