Jump to content
Sign in to follow this  
Aeromesi

[Auto-Event] Satan Morocc Invasion

Recommended Posts

thumb-75c1f0c58426b81e8d9b0836f0a42fa7-screenhercules124.jpg

File Name: [Auto-Event] Satan Morocc Invasion

File Submitter: Aeromesi

File Submitted: 10 Oct 2016

File Category: Events & Games

 

[Auto-Event] Satan Morocc Invasion

 

Based on a request by Will Su.

 

Satan Morocc invades every hour, if the players haven't killed Satan Morocc in that timeframe by the next hour he won't spawn again. Player who kills Satan Morocc gets Cash Points (change to whatever currency you use or simply switch to item like Coin)

 

 

Enjoy :)

 

Click here to download this file

Share this post


Link to post
Share on other sites

Mesi~ I'll edit the scipt to instead summon satan morocc, it summons a custom mob named Skyline and if they can't kill it, they will be nuked and warped to a map where warp is disabled, and the only way they can get out is if they type "Skyline is handsome"

Share this post


Link to post
Share on other sites

you could have problem probably load a timer for specific time for player who enter map to fight satan morocc. How will you attach that event of being nuked to every player?

Share this post


Link to post
Share on other sites

 

 

Edit the OnTimer labels if you want it to every 3 hours.

 

OnTimer10800000: // 3 hours

 

How about the cashpoint to coin reward? Thanks!

 

 

Well in your PM I told you about that, here's the randomized maps you wanted (and for anyone else) just add the maps in the array and the x/y coordinates Satan should spawn on.

 

 

// Created by Aeromesi
-    script    SatanMorroc#Inv    -1,{
 
OnInit: 
    .points = 100; // Points to give the player upon killing Morocc.
    .points_name$ = "#CASHPOINTS"; // Variable name for points
    .MobID = 1916;
    .MobAM = 1;
    setarray .maps$[1],"morocc","prontera","geffen";
    setarray .mapsx[1],158,150,180;
    setarray .mapsy[1],92,150,150;
    initnpctimer;
    end;
 
    OnTimer360000: // 1 hour
    OnSpawnMorocc:
        if ( !$@Invaded ) {
        .mapsize = getarraysize(.maps$);
        .mapselect = rand(.mapsize);
        announce "Satan has invaded "+.maps$[.mapselect]+"! Head there at once to stop him!",bc_all;
        $@Invaded++;
        monster .maps$[.mapselect],.mapsx[.mapselect],.mapsy[.mapselect],""+strmobinfo(1,.MobID)+"",1916,1,strnpcinfo(0)+"::OnSatanDead";
        end;
} else
        if ( $@Invaded ) {
        end;
}
    OnSatanDead:
        announce "Congratulations to "+strcharinfo(0)+" for sending Satan back into the Dimensional Vortex...",bc_all;
        setd .points_name$, getd(.points_name$) + .points;
        dispbottom "You now have "+#CASHPOINTS+" Cash Points!";
        sleep 4000;
        announce "Be warned... Satan will be back again.",bc_all;
        $@Invaded = 0;
        initnpctimer;
        end;
    }

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.