summaryrefslogtreecommitdiff
path: root/npc/029-9
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-03-19 21:30:55 -0300
committerJesusaves <cpntb1@ymail.com>2021-03-19 21:30:55 -0300
commitb1311f8a3cd317106dfd9a812fa7ed0836f018b1 (patch)
treedd450d7c642a46e8b7a508ab35c76a3b5568ccb3 /npc/029-9
parenta9f035db691932502f2e61780fc337286833a1c0 (diff)
downloadserverdata-b1311f8a3cd317106dfd9a812fa7ed0836f018b1.tar.gz
serverdata-b1311f8a3cd317106dfd9a812fa7ed0836f018b1.tar.bz2
serverdata-b1311f8a3cd317106dfd9a812fa7ed0836f018b1.tar.xz
serverdata-b1311f8a3cd317106dfd9a812fa7ed0836f018b1.zip
Defeat conditions. Prevent players from cheating.
Diffstat (limited to 'npc/029-9')
-rw-r--r--npc/029-9/boss.txt26
1 files changed, 26 insertions, 0 deletions
diff --git a/npc/029-9/boss.txt b/npc/029-9/boss.txt
index aacfbedf3..882d6a184 100644
--- a/npc/029-9/boss.txt
+++ b/npc/029-9/boss.txt
@@ -349,6 +349,8 @@ OnEventEnd:
setnpcdisplay("Andrei Sakar#FoS298", "Elora#FoS298", NPC_HUMAN_FEMALE_NOOB);
disablenpc "Elora";
}
+ $@FIRESOFSTEAM_BOSS=0;
+ $@FIRESOFSTEAM_DIFF=0;
end;
////////////// Map Broadcast //////////////
@@ -383,8 +385,16 @@ OnMFShake:
closeclientdialog;
end;
+OnMFDispose:
+ if (ispcdead() && getq(General_Narrator) >= 20) warp("025-2", 100, 27);
+ end;
+
////////////// Heartbeat //////////////
OnTimer15000:
+ maptimer2("029-9", 10, "Book#FoS::OnMFDispose");
+ sleep(30);
+ if (getmapusers("029-9")) goto L_Defeat;
+ // Main cycle
if ($@FIRESOFSTEAM_BOSS == 1) {
monster("029-9", 102, 47, "Assassin", Assassin, 1);
} else if ($@FIRESOFSTEAM_BOSS == 2) {
@@ -491,6 +501,22 @@ OnTimer15000:
initnpctimer;
end;
+// Defeat
+L_Defeat:
+ $@FIRESOFSTEAM_BOSS=0;
+ $@FIRESOFSTEAM_DIFF=0;
+ $@FOS_ISB=0;
+ $@FOS_MOB=0;
+ $@FOS_AND=0;
+ .Support1=0;
+ .Support2=0;
+ .Support3=0;
+ .Support4=0;
+ .Support5=0;
+ killmonsterall("029-9");
+ kamibroadcast("The players were defeated at Fires of Steam Showdown.", "Fires of Steam");
+ end;
+
OnInit:
.firstime = 18000;
.boostime = 900000;