[Auto-Event] Satan Morocc Invasion

Aeromesi

Custom Instance Maniac
Messages
821
Points
0
Age
33
Location
Custom Instances
Discord
Aeromesi#0293
Github
http://www.github.com/aeromesi
Emulator
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
default_smile.png


Click here to download this file

 
Last edited by a moderator:
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"

 
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?

 
Last edited by a moderator:
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.

Code:
// 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;
    }
 
Back
Top