summaryrefslogtreecommitdiff
path: root/npc/048-2
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-06-15 19:53:33 -0300
committerJesusaves <cpntb1@ymail.com>2021-06-15 19:53:33 -0300
commit6a454665079605d231dd72f722eba648c0e01bbc (patch)
tree42de749c8a42d796eef70d2893738c9f272f4588 /npc/048-2
parent6bc75a466368caad026c26059d91981a9f8a096d (diff)
downloadserverdata-6a454665079605d231dd72f722eba648c0e01bbc.tar.gz
serverdata-6a454665079605d231dd72f722eba648c0e01bbc.tar.bz2
serverdata-6a454665079605d231dd72f722eba648c0e01bbc.tar.xz
serverdata-6a454665079605d231dd72f722eba648c0e01bbc.zip
Fix casts to mobcount() functions
Diffstat (limited to 'npc/048-2')
-rw-r--r--npc/048-2/slimes.txt28
1 files changed, 14 insertions, 14 deletions
diff --git a/npc/048-2/slimes.txt b/npc/048-2/slimes.txt
index c3d4e5c8..f9733871 100644
--- a/npc/048-2/slimes.txt
+++ b/npc/048-2/slimes.txt
@@ -4,7 +4,7 @@
048-2,181,95,0 script #Slime0Trigger NPC32767,2,2,{
@slimes = ((QUEST_BlueSage & $@Q_BlueSageSlimes_MASK) >> $@Q_BlueSageSlimes_SHIFT);
- if (mobcount("048-2", "#Slime0::OnSlimeDeath") < 0) // returns -1 if no monsters
+ if (mobcount("048-2", "#Slime0::OnSlimeDeath") <= 0)
$@BlueSageSlime0_Spawn = 0;
// if finished or haven't started yet or spawn already active or spawn already done, do nothing
@@ -46,7 +46,7 @@ OnSpawn:
OnSlimeDeath:
$@BlueSageSlime0_Spawn = $@BlueSageSlime0_Spawn - 1;
- if (mobcount("048-2", "#Slime0::OnSlimeDeath") < 0) // returns -1 if no monsters
+ if (mobcount("048-2", "#Slime0::OnSlimeDeath") <= 0)
$@BlueSageSlime0_Spawn = 0;
if ($@Slime0VictimID == getcharid(3))
@@ -90,7 +90,7 @@ L_ClearedPoint:
048-2,164,123,0 script #Slime1Trigger NPC32767,2,2,{
@slimes = ((QUEST_BlueSage & $@Q_BlueSageSlimes_MASK) >> $@Q_BlueSageSlimes_SHIFT);
- if (mobcount("048-2", "#Slime1::OnSlimeDeath") < 0) // returns -1 if no monsters
+ if (mobcount("048-2", "#Slime1::OnSlimeDeath") <= 0)
$@BlueSageSlime1_Spawn = 0;
// if finished or haven't started yet or spawn already active or spawn already done, do nothing
@@ -132,7 +132,7 @@ OnSpawn:
OnSlimeDeath:
$@BlueSageSlime1_Spawn = $@BlueSageSlime1_Spawn - 1;
- if (mobcount("048-2", "#Slime1::OnSlimeDeath") < 0) // returns -1 if no monsters
+ if (mobcount("048-2", "#Slime1::OnSlimeDeath") <= 0)
$@BlueSageSlime1_Spawn = 0;
if ($@Slime1VictimID == getcharid(3))
@@ -176,7 +176,7 @@ L_ClearedPoint:
048-2,198,115,0 script #Slime2Trigger NPC32767,2,2,{
@slimes = ((QUEST_BlueSage & $@Q_BlueSageSlimes_MASK) >> $@Q_BlueSageSlimes_SHIFT);
- if (mobcount("048-2", "#Slime2::OnSlimeDeath") < 0) // returns -1 if no monsters
+ if (mobcount("048-2", "#Slime2::OnSlimeDeath") <= 0)
$@BlueSageSlime2_Spawn = 0;
// if finished or haven't started yet or spawn already active or spawn already done, do nothing
@@ -218,7 +218,7 @@ OnSpawn:
OnSlimeDeath:
$@BlueSageSlime2_Spawn = $@BlueSageSlime2_Spawn - 1;
- if (mobcount("048-2", "#Slime2::OnSlimeDeath") < 0) // returns -1 if no monsters
+ if (mobcount("048-2", "#Slime2::OnSlimeDeath") <= 0)
$@BlueSageSlime2_Spawn = 0;
if ($@Slime2VictimID == getcharid(3))
@@ -262,7 +262,7 @@ L_ClearedPoint:
048-2,167,79,0 script #Slime3Trigger NPC32767,2,2,{
@slimes = ((QUEST_BlueSage & $@Q_BlueSageSlimes_MASK) >> $@Q_BlueSageSlimes_SHIFT);
- if (mobcount("048-2", "#Slime3::OnSlimeDeath") < 0) // returns -1 if no monsters
+ if (mobcount("048-2", "#Slime3::OnSlimeDeath") <= 0)
$@BlueSageSlime3_Spawn = 0;
// if finished or haven't started yet or spawn already active or spawn already done, do nothing
@@ -304,7 +304,7 @@ OnSpawn:
OnSlimeDeath:
$@BlueSageSlime3_Spawn = $@BlueSageSlime3_Spawn - 1;
- if (mobcount("048-2", "#Slime3::OnSlimeDeath") < 0) // returns -1 if no monsters
+ if (mobcount("048-2", "#Slime3::OnSlimeDeath") <= 0)
$@BlueSageSlime3_Spawn = 0;
if ($@Slime3VictimID == getcharid(3))
@@ -348,7 +348,7 @@ L_ClearedPoint:
048-2,192,86,0 script #Slime4Trigger NPC32767,2,2,{
@slimes = ((QUEST_BlueSage & $@Q_BlueSageSlimes_MASK) >> $@Q_BlueSageSlimes_SHIFT);
- if (mobcount("048-2", "#Slime4::OnSlimeDeath") < 0) // returns -1 if no monsters
+ if (mobcount("048-2", "#Slime4::OnSlimeDeath") <= 0)
$@BlueSageSlime4_Spawn = 0;
// if finished or haven't started yet or spawn already active or spawn already done, do nothing
@@ -390,7 +390,7 @@ OnSpawn:
OnSlimeDeath:
$@BlueSageSlime4_Spawn = $@BlueSageSlime4_Spawn - 1;
- if (mobcount("048-2", "#Slime4::OnSlimeDeath") < 0) // returns -1 if no monsters
+ if (mobcount("048-2", "#Slime4::OnSlimeDeath") <= 0)
$@BlueSageSlime4_Spawn = 0;
if ($@Slime4VictimID == getcharid(3))
@@ -434,7 +434,7 @@ L_ClearedPoint:
048-2,183,110,0 script #Slime5Trigger NPC32767,2,2,{
@slimes = ((QUEST_BlueSage & $@Q_BlueSageSlimes_MASK) >> $@Q_BlueSageSlimes_SHIFT);
- if (mobcount("048-2", "#Slime5::OnSlimeDeath") < 0) // returns -1 if no monsters
+ if (mobcount("048-2", "#Slime5::OnSlimeDeath") <= 0)
$@BlueSageSlime5_Spawn = 0;
// if finished or haven't started yet or spawn already active or spawn already done, do nothing
@@ -476,7 +476,7 @@ OnSpawn:
OnSlimeDeath:
$@BlueSageSlime5_Spawn = $@BlueSageSlime5_Spawn - 1;
- if (mobcount("048-2", "#Slime5::OnSlimeDeath") < 0) // returns -1 if no monsters
+ if (mobcount("048-2", "#Slime5::OnSlimeDeath") <= 0)
$@BlueSageSlime5_Spawn = 0;
if ($@Slime5VictimID == getcharid(3))
@@ -520,7 +520,7 @@ L_ClearedPoint:
048-2,164,102,0 script #Slime6Trigger NPC32767,2,2,{
@slimes = ((QUEST_BlueSage & $@Q_BlueSageSlimes_MASK) >> $@Q_BlueSageSlimes_SHIFT);
- if (mobcount("048-2", "#Slime6::OnSlimeDeath") < 0) // returns -1 if no monsters
+ if (mobcount("048-2", "#Slime6::OnSlimeDeath") <= 0)
$@BlueSageSlime6_Spawn = 0;
// if finished or haven't started yet or spawn already active or spawn already done, do nothing
@@ -562,7 +562,7 @@ OnSpawn:
OnSlimeDeath:
$@BlueSageSlime6_Spawn = $@BlueSageSlime6_Spawn - 1;
- if (mobcount("048-2", "#Slime6::OnSlimeDeath") < 0) // returns -1 if no monsters
+ if (mobcount("048-2", "#Slime6::OnSlimeDeath") <= 0)
$@BlueSageSlime6_Spawn = 0;
if ($@Slime6VictimID == getcharid(3))