Proper use of isScriptValue instead of getScriptValue method.
This commit is contained in:
parent
d63bf771ff
commit
3071525a9c
@ -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";
|
||||
}
|
||||
|
@ -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";
|
||||
}
|
||||
|
@ -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";
|
||||
}
|
||||
|
@ -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";
|
||||
}
|
||||
|
@ -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";
|
||||
}
|
||||
|
@ -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";
|
||||
}
|
||||
|
@ -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";
|
||||
}
|
||||
|
@ -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";
|
||||
}
|
||||
|
@ -652,7 +652,7 @@ public class Q348_AnArrogantSearch extends Quest
|
||||
switch (npc.getNpcId())
|
||||
{
|
||||
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.setScriptValue(1);
|
||||
@ -660,7 +660,7 @@ public class Q348_AnArrogantSearch extends Quest
|
||||
break;
|
||||
|
||||
case ARK_GUARDIAN_SHADOW_FANG:
|
||||
if (npc.getScriptValue() == 0)
|
||||
if (npc.isScriptValue(0))
|
||||
{
|
||||
npc.broadcastNpcSay("I will cover this mountain with your blood!");
|
||||
npc.setScriptValue(1);
|
||||
@ -668,7 +668,7 @@ public class Q348_AnArrogantSearch extends Quest
|
||||
break;
|
||||
|
||||
case ANGEL_KILLER:
|
||||
if (npc.getScriptValue() == 0)
|
||||
if (npc.isScriptValue(0))
|
||||
{
|
||||
npc.broadcastNpcSay("Haha.. Really amusing! As for the key, search the corpse!");
|
||||
npc.setScriptValue(1);
|
||||
|
@ -697,12 +697,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);
|
||||
|
@ -697,12 +697,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);
|
||||
|
Loading…
Reference in New Issue
Block a user