viewing paste Devil Square | Athena

Posted on the
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195
//   Made:By Kirlein (Tyirial Script Concept)  //
// Devil Square based off the mmorpg Muonline  //
// Have Fun and feel free to leave suggestions //
//          Leave This intacted                //
// +   Translated by Stillhard aka Dewa        //
// +  Add times for 24 hours of play :P        //
// +  Add a little bit infos for newbie users  //
//      Completely rewrite by ~AnnieRuru~      //
// +  Tested with SVN10900 Stable              //
/////////////////////////////////////////////////
 
prontera,154,194,5  script  Devil Square Guardian   979,{
    mes "[Devil Square Guardian]";
    mes "Welcome to the entrance door to ^FF0000Devil Square^000000";
    mes "If you failed or die, the door will be closed and you have to wait until it start to open again";
    next;
    menu "Enter",-,"Info",L_info,"Cancel",L_cancel;
    
    if ( $@DS_entry == 0 ) goto L_error;
    if ( Baselevel < 70 || Zeny < 20000 ) goto L_req;
    if ( getmapusers("ordeal_1-1") >= 10 ) goto L_toomany;
 
    set Zeny,Zeny - 20000;
    announce strcharinfo(0)+" has entered the Devil Square",8;
    percentheal 100,100;
    warp "ordeal_1-1",183,182;
    end;
 
L_error:
    mes "[Devil Square Guardian]";
    mes "Devil Square is now closed";
    mes "It'll be open again every hour at 0 minutes and 30 minutes";
    close;
 
L_req:
    mes "[Devil Square Guardian]";
    mes "Minimum base level to enter is 70";
    mes "The registration fee is 20,000z";
    close;
 
L_toomany:
    mes "[Devil Square Guardian]";
    mes "I'm sorry but the Devil Square is FULL";
    mes "Maximum users to enter is 10 players";
    close;
 
L_info:
    mes "[Devil Square Guardian]";
    mes "There are 3 level monster you'll encounter";
    mes "Each level the enemies will grow stronger";
    mes "If you succeded to win all 3 level monster, you'll get the opportunity to open 10 Treasure Box with items, equips, and rare cards inside!!";
    close;
 
L_cancel:
    mes "[Devil Square Guardian]";
    mes "See ya";
    close;
}
 
ordeal_1-1,0,0,0    script  DS_HiddenNpc    -1,{
 
OnMinute00:
OnMinute30:
    set $@DS_complete,0;
    disablenpc "Exit#DS";
    mapannounce "ordeal_1-1","Devil Square is now closed",0;
    killmonsterall "ordeal_1-1";
    announce "Devil Square is OPENED NOW!! 5 Minutes until it starts..!!",0;
    set $@DS_entry,1;
    sleep 60000;
    announce "Devil Square will begin in 4 minutes..!!",0;
    sleep 60000;
    announce "Devil Square will begin in 3 minutes..!!",0;
    sleep 60000;
    announce "Devil Square will begin in 2 minutes..!!",0;
    sleep 60000;
    announce "Devil Square will begin in 1 minutes..!!",0;
    sleep 60000;
    announce "Devil Square is STARTED NOW !!",0;
    initnpctimer;
    set $@DS_entry,0;
    set $@mob,75;
    areamonster "ordeal_1-1",183,182,246,244,"[DS] SOLDIER SKELETON",1028,10,"DS_HiddenNpc::Ondevildead";
    areamonster "ordeal_1-1",183,182,246,244,"[DS] ORC ARCHER",1189,15,"DS_HiddenNpc::Ondevildead";
    areamonster "ordeal_1-1",183,182,246,244,"[DS] SANDMAN",1165,10,"DS_HiddenNpc::Ondevildead";
    areamonster "ordeal_1-1",183,182,246,244,"[DS] ARCHER SKELETON",1016,15,"DS_HiddenNpc::Ondevildead";
    areamonster "ordeal_1-1",183,182,246,244,"[DS] MINOROUS",1149,15,"DS_HiddenNpc::Ondevildead";
    areamonster "ordeal_1-1",183,182,246,244,"[DS] REQUIEM",1164,10,"DS_HiddenNpc::Ondevildead";
    end;
 
Ondevildead:
    set $@mob,$@mob - 1;
    if($@mob == 25) mapannounce "ordeal_1-1","Devil Square : 25 mobs to enter the 2nd round",0;
    if($@mob == 5) mapannounce "ordeal_1-1","Devil Square : 5 mobs to enter 2nd round",0;
    if($@mob == 0) { 
        mapannounce "ordeal_1-1","Devil Square will enter to 2nd round",0;
        goto Ondevil2;
    }
    end;
 
Ondevil2:
    set $@mob,70;
    areamonster "ordeal_1-1",183,182,246,244,"[DS] GARGOYLE",1253,15,"DS_HiddenNpc::Ondevildead2";
    areamonster "ordeal_1-1",183,182,246,244,"[DS] ALARM",1193,10,"DS_HiddenNpc::Ondevildead2";
    areamonster "ordeal_1-1",183,182,246,244,"[DS] HIGH ORC",1213,10,"DS_HiddenNpc::Ondevildead2";
    areamonster "ordeal_1-1",183,182,246,244,"[DS] INJUSTICE",1257,10,"DS_HiddenNpc::Ondevildead2";
    areamonster "ordeal_1-1",183,182,246,244,"[DS] MIMIC",1191,15,"DS_HiddenNpc::Ondevildead2";
    areamonster "ordeal_1-1",183,182,246,244,"[DS] WRAITH",1192,10,"DS_HiddenNpc::Ondevildead2";
    end;
 
Ondevildead2:
    set $@mob,$@mob - 1;
    if($@mob == 25) mapannounce "ordeal_1-1","Devil Square : 25 mobs left to enter the 3rd round",0;
    if($@mob == 5) mapannounce "ordeal_1-1","Devil Square : 5 mobs left to enter the 3rd round",0;
    if($@mob == 0) {
        mapannounce "ordeal_1-1","Devil Square will enter to 3rd round",0;
        goto Ondevil3;
    }
    end;
 
Ondevil3:
    set $@mob,58;
    areamonster "ordeal_1-1",183,182,246,244,"[DS] ANOLIAN",1206,15,"DS_HiddenNpc::Ondevildead3";
    areamonster "ordeal_1-1",183,182,246,244,"[DS] WANDERER",1208,15,"DS_HiddenNpc::Ondevildead3";
    areamonster "ordeal_1-1",183,182,246,244,"[DS] DEVIRUCHI",1109,10,"DS_HiddenNpc::Ondevildead3";
    areamonster "ordeal_1-1",183,182,246,244,"[DS] JOKER",1131,15,"DS_HiddenNpc::Ondevildead3";
    areamonster "ordeal_1-1",183,182,246,244,"[DS] MOONLIGHT",1150,2,"DS_HiddenNpc::Ondevildead3";
    areamonster "ordeal_1-1",183,182,246,244,"[DS] DARK ILLUSION",1302,1,"DS_HiddenNpc::Ondevildead3";
    end;
 
Ondevildead3:
    set $@mob,$@mob - 1;
    if($@mob == 25) mapannounce "ordeal_1-1","Devil Square : 25 mobs left to VICTORY",0;
    if($@mob == 5) mapannounce "ordeal_1-1","Devil Square : 5 mobs left to VICTORY",0;
    if($@mob == 0) {
        mapannounce "ordeal_1-1","Devil Square : CONGRATULATION - 10 Treasure Boxs will be yours now",0;
        goto Ondevil4;
    }
    end;
 
Ondevil4:
    set $@DS_complete,1;
    set $@mob,10;
    monster "ordeal_1-1",231,250,"Treasure Box",1324,1,"DS_HiddenNpc::Onboxdead";
    monster "ordeal_1-1",234,247,"Treasure Box",1328,1,"DS_HiddenNpc::Onboxdead";
    monster "ordeal_1-1",237,244,"Treasure Box",1332,1,"DS_HiddenNpc::Onboxdead";
    monster "ordeal_1-1",240,241,"Treasure Box",1336,1,"DS_HiddenNpc::Onboxdead";
    monster "ordeal_1-1",243,238,"Treasure Box",1340,1,"DS_HiddenNpc::Onboxdead";
    monster "ordeal_1-1",246,235,"Treasure Box",1344,1,"DS_HiddenNpc::Onboxdead";
    monster "ordeal_1-1",249,232,"Treasure Box",1348,1,"DS_HiddenNpc::Onboxdead";
    monster "ordeal_1-1",252,229,"Treasure Box",1352,1,"DS_HiddenNpc::Onboxdead";
    monster "ordeal_1-1",249,241,"Treasure Box",1356,1,"DS_HiddenNpc::Onboxdead";
    monster "ordeal_1-1",240,249,"Treasure Box",1360,1,"DS_HiddenNpc::Onboxdead";
    end;
 
Onboxdead:
    set $@mob, $@mob - 1;
    announce "Devil Square : "+ strcharinfo(0) +" has opened the treasure box at Devil Square",0;
    if ($@mob == 0) enablenpc "Exit#DS";
    end;
 
OnTimer30000:
    if ( $@DS_complete == 1 ) {
        stopnpctimer;
        end;
    } else
    if (getmapusers("ordeal_1-1") == 0) {
        announce "All players failed to survive at Devil Square",0;
        killmonsterall "ordeal_1-1";
        stopnpctimer;
        end;
    } else {
        mapannounce "ordeal_1-1",getmapusers("ordeal_1-1") +" players is still survive at Devil Square",0;
        initnpctimer;
        end;
    }
 
}
 
// -- Mapflags
ordeal_1-1  mapflag nowarp
ordeal_1-1  mapflag nowarpto
ordeal_1-1  mapflag noteleport
ordeal_1-1  mapflag nosave  SavePoint
ordeal_1-1  mapflag nomemo
ordeal_1-1  mapflag nobranch
ordeal_1-1  mapflag nopenalty
 
ordeal_1-1,246,245,7    script  Exit#DS 51,{
    mes "[Exit]";
    mes "See ya";
    next;
    warp "SavePoint",0,0;
    close;
}
Viewed 925 times, submitted by Guest.