summaryrefslogtreecommitdiff
path: root/npc/052-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/052-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/052-2')
-rw-r--r--npc/052-2/lobby.txt6
-rw-r--r--npc/052-2/storage.txt2
2 files changed, 4 insertions, 4 deletions
diff --git a/npc/052-2/lobby.txt b/npc/052-2/lobby.txt
index 047fd903..0245cc6b 100644
--- a/npc/052-2/lobby.txt
+++ b/npc/052-2/lobby.txt
@@ -278,11 +278,11 @@ OnTimer2000:
end;
setnpctimer 0;
// Mock players randomly (more or less once every 40 secs) and if still enough mobs running after them
- if ($@illia_level_5_progress == 5 && rand(20) == 0 && (mobcount("052-2", "Luvia?::OnDSDeath") > 20))
+ if ($@illia_level_5_progress == 5 && rand(20) == 0 && (mobcount("052-2", "Luvia?::OnDSDeath") > 21))
npctalk strnpcinfo(0), "Ahaha! Run... Run!";
- if ($@illia_level_5_progress == 5 && (mobcount("052-2", "Luvia?::OnDSDeath") < 0))
+ if ($@illia_level_5_progress == 5 && (mobcount("052-2", "Luvia?::OnDSDeath") <= 0))
goto L_AllWavesClear;
- if ($@illia_level_5_progress == 7 && (mobcount("052-2", "Luvia?::OnWGDeath") < 0))
+ if ($@illia_level_5_progress == 7 && (mobcount("052-2", "Luvia?::OnWGDeath") <= 0))
goto L_AllWavesClear;
end;
diff --git a/npc/052-2/storage.txt b/npc/052-2/storage.txt
index ae1656e3..8dfcdfaf 100644
--- a/npc/052-2/storage.txt
+++ b/npc/052-2/storage.txt
@@ -118,7 +118,7 @@ L_MakeSpecialItem:
L_CheckMobs:
if ($@illia_progress != 6)
goto L_Clear;
- if (mobcount("052-2", "#ItemsInvoker::OnDeath") < 0)
+ if (mobcount("052-2", "#ItemsInvoker::OnDeath") <= 0)
goto L_Stop;
setnpctimer 0;
end;