diff options
-rw-r--r-- | npc/functions/siege.txt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/npc/functions/siege.txt b/npc/functions/siege.txt index 4fe0bebf7..3c8b61d37 100644 --- a/npc/functions/siege.txt +++ b/npc/functions/siege.txt @@ -156,10 +156,15 @@ function script siege_selectmob { function script siege_setup { .@m$=getarg(0); + // Save old map zone + $@MZONE$[getmapinfo(MAPINFO_ID, .@m$)]=getmapinfo(MAPINFO_ZONE, .@m$); + + // Apply changes addmapmask .@m$, MASK_MATTACK; changemusic .@m$, any("mythica.ogg", "eric_matyas_ghouls.ogg", "misuse.ogg", "Arabesque.ogg"); disablenpc("Mana Stone"); pvpon(.@m$); + setmapflag(.@m$,mf_zone,"MMO"); // MMO Zone: Overrides GM Commands setmapflag(.@m$,mf_bexp,rand(120,140)); // 20~40% EXP UP on siege maps return; } @@ -169,6 +174,10 @@ function script siege_setup { function script siege_revert { .@m$=getarg(0); + // Revert map zone and delete backup + setmapflag(.@m$,mf_zone,$@MZONE$[getmapinfo(MAPINFO_ID, .@m$)]); + $@MZONE$[getmapinfo(MAPINFO_ID, .@m$)]=""; + removemapmask .@m$, MASK_MATTACK; changemusic .@m$, "caketown.ogg"; // :> enablenpc("Mana Stone"); |