diff options
author | Jesusaves <cpntb1@ymail.com> | 2022-01-25 23:00:41 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2022-01-25 23:00:41 -0300 |
commit | 799907c78c0cc894229ee6eb2e14b694cb6b030d (patch) | |
tree | 2a72a995985aef90d9cd9e3990c9efb3a066a49e /npc/001-13 | |
parent | 60d280005b0624eb594bbfc07022442f03f7c71f (diff) | |
download | serverdata-799907c78c0cc894229ee6eb2e14b694cb6b030d.tar.gz serverdata-799907c78c0cc894229ee6eb2e14b694cb6b030d.tar.bz2 serverdata-799907c78c0cc894229ee6eb2e14b694cb6b030d.tar.xz serverdata-799907c78c0cc894229ee6eb2e14b694cb6b030d.zip |
Improve a bit boss raid by polishing the rough edges at Soul Menhir code
Diffstat (limited to 'npc/001-13')
-rw-r--r-- | npc/001-13/main.txt | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/npc/001-13/main.txt b/npc/001-13/main.txt index fe52bfbd5..cdb295ddf 100644 --- a/npc/001-13/main.txt +++ b/npc/001-13/main.txt @@ -5,6 +5,7 @@ // Controls boss raid showdown (Freeyorp Event System - Boss Raid) function script FYRaid_Select { + .@abort = getarg(0, false); if ($EVENT$ != "Raid") return; sleep2(100); // Anti-flood protection: Hold execution for 100ms mes l("Current Boss: %s", $RAIDING_BOSS$); @@ -35,6 +36,8 @@ function script FYRaid_Select { } } } + if (.@abort) + return; next; setarray .@opt$, l("Cancel"), -1; freeloop(true); @@ -197,8 +200,16 @@ OnClose: deltimer("sBossRaid::OnPump"); deltimer("sBossRaid::OnTimeout"); sleep2(500); - teleporthome(); - end; + if (@aurora_map$ != "" && @aurora_x && @aurora_y) { + warp @aurora_map$, @aurora_x, @aurora_y; + @aurora_map$=""; + @aurora_x=0; + @aurora_y=0; + } else { + teleporthome(); + } + FYRaid_Select(true); // Formally close the raid session + close; } 001-13 mapflag zone MMO |