diff options
Diffstat (limited to 'npc/functions/siege.txt')
-rw-r--r-- | npc/functions/siege.txt | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/npc/functions/siege.txt b/npc/functions/siege.txt index 6ca42b37a..5acc86e56 100644 --- a/npc/functions/siege.txt +++ b/npc/functions/siege.txt @@ -346,12 +346,16 @@ function script do_siege { .@n$=getarg(4); .@t=getarg(5); + // Dry run + if ($@SIEGE_ABORTED) + return; + // If no active player, KILL THE SCRIPT .@c = getunits(BL_PC, .@players, MAX_CYCLE_PC); .@idle = 0; for (.@i = 0; .@i < .@c; .@i++) { attachrid(.@players[.@i]); - if (checkidle() < 300) + if (checkidle() < 450) .@idle++; detachrid(); } @@ -366,7 +370,8 @@ function script do_siege { siege_revert(.@o$); enablenpc("Mana Stone"); setd("$@SIEGE_"+.@c$, 0); - end; + setd("$@SIEGE_ABORTED", true); + return; } // In past, we had a $@SIEGE_<town> to determine difficulty |