diff options
author | Jesusaves <cpntb1@ymail.com> | 2022-01-17 08:59:30 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2022-01-17 08:59:30 -0300 |
commit | 841331bf156ebaece2b4c5cc5179a0a4d3662df8 (patch) | |
tree | 283e18ac17070d9b705f3c3fc8ef45f85e07cbae /npc/001-14/ctrl.txt | |
parent | 2607f9c325adcd91d4ce43745bcbecc546031a94 (diff) | |
download | serverdata-841331bf156ebaece2b4c5cc5179a0a4d3662df8.tar.gz serverdata-841331bf156ebaece2b4c5cc5179a0a4d3662df8.tar.bz2 serverdata-841331bf156ebaece2b4c5cc5179a0a4d3662df8.tar.xz serverdata-841331bf156ebaece2b4c5cc5179a0a4d3662df8.zip |
Maze Race is now working. Scores below 5 seconds are disregarded
Diffstat (limited to 'npc/001-14/ctrl.txt')
-rw-r--r-- | npc/001-14/ctrl.txt | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/npc/001-14/ctrl.txt b/npc/001-14/ctrl.txt index 572ecce7d..7b8386497 100644 --- a/npc/001-14/ctrl.txt +++ b/npc/001-14/ctrl.txt @@ -308,7 +308,6 @@ OnInit: } ///////////////////////////////////////////////////////////////////////////////// -// FIXME ยป Testing required 001-14,39,114,0 script Hocus#MOLY0800 NPC_BLACKWIZARD,{ if (@moly_chall) end; mes ".:: " + l("Maze Race Challenge") + ":: ."; @@ -330,7 +329,7 @@ OnInit: .@mx=getmapinfo(MAPINFO_SIZE_X, MAZE_MAP$)-20; .@my=getmapinfo(MAPINFO_SIZE_Y, MAZE_MAP$)-20; .@tl=(20-.@mx)*(20-.@my) * 3 / 10; // Total tiles + collision guess - .@tl=.@tl / rand2(9,14) + 1; // Monster density is a bit random + .@tl=.@tl / rand2(12,16) + 1; // Monster density is a bit random /* *** Copied from 006-5/groata.txt & 018-2-2/main.txt! *** */ /* ********** Spawn monsters based on your level ********** */ @@ -582,6 +581,7 @@ OnInit: } while (!checknpccell(MAZE_MAP$, .@x, .@y, cell_chkpass)); warp MAZE_MAP$, .@x, .@y; + closeclientdialog; end; OnWin: @@ -590,7 +590,10 @@ OnWin: @moly_score = gettimetick(2) - @moly_tick; if (@moly_score < 8) end; // This is impossible*, don't even bother dispbottom l("End! Score this time: %s", FuzzyTime(@moly_tick)); - FYMOLY_RACERS = min(FYMOLY_RACERS, @moly_score); + if (FYMOLY_RACERS >= 8) + FYMOLY_RACERS = min(FYMOLY_RACERS, @moly_score); + else + FYMOLY_RACERS = @moly_score; @moly_score = 0; @moly_chall = 0; // *: Distance is always at least ~50 tiles in a straight line |