Proper use of isScriptValue instead of getScriptValue method.
This commit is contained in:
@@ -83,7 +83,7 @@ public class LeopardDragonHachling extends AbstractNpcAI
|
||||
@Override
|
||||
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.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);
|
||||
}
|
||||
if (qs.isStarted() && (npc.getScriptValue() == 0))
|
||||
if (qs.isStarted() && npc.isScriptValue(0))
|
||||
{
|
||||
if (hasQuestItems(player, CHAPEL_KEY))
|
||||
{
|
||||
@@ -362,7 +362,7 @@ public class FourSepulchers extends AbstractNpcAI implements IXmlReader
|
||||
}
|
||||
if (npc.getId() == MYSTERIOUS_CHEST)
|
||||
{
|
||||
if (npc.getScriptValue() == 0)
|
||||
if (npc.isScriptValue(0))
|
||||
{
|
||||
npc.setScriptValue(1);
|
||||
npc.deleteMe();
|
||||
@@ -372,7 +372,7 @@ public class FourSepulchers extends AbstractNpcAI implements IXmlReader
|
||||
}
|
||||
if (npc.getId() == KEY_CHEST)
|
||||
{
|
||||
if (npc.getScriptValue() == 0)
|
||||
if (npc.isScriptValue(0))
|
||||
{
|
||||
npc.setScriptValue(1);
|
||||
npc.deleteMe();
|
||||
|
@@ -696,12 +696,12 @@ public class LastImperialTomb extends AbstractInstance
|
||||
{
|
||||
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);
|
||||
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);
|
||||
startQuestTimer("SCARLET_SECOND_MORPH", 1000, npc, null, false);
|
||||
|
@@ -207,7 +207,7 @@ public class Q10303_CrossroadsBetweenLightAndDarkness extends Quest
|
||||
htmltext = "32909-00a.htm";
|
||||
break;
|
||||
}
|
||||
else if (qs.isCond(1) && (npc.getScriptValue() == 0))
|
||||
else if (qs.isCond(1) && npc.isScriptValue(0))
|
||||
{
|
||||
htmltext = "32909-01.htm";
|
||||
}
|
||||
@@ -220,7 +220,7 @@ public class Q10303_CrossroadsBetweenLightAndDarkness extends Quest
|
||||
htmltext = "33361-00a.htm";
|
||||
break;
|
||||
}
|
||||
else if (qs.isCond(1) && (npc.getScriptValue() == 0))
|
||||
else if (qs.isCond(1) && npc.isScriptValue(0))
|
||||
{
|
||||
htmltext = "33361-01.htm";
|
||||
}
|
||||
|
Reference in New Issue
Block a user