viewing paste Prontera Under Attack v2 | 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
-   script  Disable_Exit    -1,{
OnInit:
    hideonnpc "Exit to Prontera";
    end;
}
-   script  PronteraUnderAttack -1,{
 
 
OnClock0756:
OnClock2123:
 
 
startdefender:  
    
    announce "Warning! Mafia's generals are coming",0;
    sleep 3000;
    announce "Players , Please Defend our beloved Capital Town Prontera from the Mafia Generals",0;
    sleep 30000;
    announce "To win, you need to kill Mafia's General",0;
    sleep 5000;
    announce "2 Minutes before Mafia's army will reach Prontera Gates",0;
    sleep 120000;
    announce "Generals of Mafia were spotted at all Gates of Prontera!",0;
    sleep2 3000;
    goto L_OnSummon;
L_OnSummon:
    setmapflag  prt_fild06,mf_noloot;
    setmapflag  prt_fild05,mf_noloot; 
    setmapflag  prt_fild08,mf_noloot;  
    monster "prt_fild06",23,193,"Madness",1891,25,"PronteraUnderAttack::OnMobLose";
    monster "prt_fild06",30,187,"Sgt. XurDeads",1891,10,"PronteraUnderAttack::OnMobLose";
    monster "prt_fild06",23,100,"General Slark",1751,1,"PronteraUnderAttack::OnMobWin1";
    monster "prt_fild06",23,156,"General Slark",1751,1,"PronteraUnderAttack::OnMobWin1";
    monster "prt_fild06",23,233,"General Slark",1751,1,"PronteraUnderAttack::OnMobWin1";
    monster "prt_fild06",23,287,"General Slark",1751,1,"PronteraUnderAttack::OnMobWin1";
    monster "prt_fild05",368,205,"Fucker",1891,25,"PronteraUnderAttack2::OnMobLose";
    monster "prt_fild05",364,209,"Sgt. Good BYe",1891,10,"PronteraUnderAttack::OnMobLose";
    monster "prt_fild05",374,300,"General Magma",1832,1,"PronteraUnderAttack::OnMobWin2";
    monster "prt_fild05",374,212,"General Magma",1832,1,"PronteraUnderAttack::OnMobWin2";
    monster "prt_fild05",374,152,"General Magma",1832,1,"PronteraUnderAttack::OnMobWin2";
    monster "prt_fild05",374,76,"General Magma",1832,1,"PronteraUnderAttack::OnMobWin2";
    monster "prt_fild08",170,372,"Fringe",1891,25,"PronteraUnderAttack::OnMobLose";
    monster "prt_fild08",176,371,"Sgt. Tusok",1891,10,"PronteraUnderAttack::OnMobLose";
    monster "prt_fild08",45,377,"General Lazarus",1708,1,"PronteraUnderAttack::OnMobWin3";
    monster "prt_fild08",120,377,"General Lazarus",1708,1,"PronteraUnderAttack::OnMobWin3";
    monster "prt_fild08",223,377,"General Lazarus",1708,1,"PronteraUnderAttack::OnMobWin3";
    monster "prt_fild08",291,377,"General Lazarus",1708,1,"PronteraUnderAttack::OnMobWin3";
    announce "[HPRO] : Defend our Prontera",0;
    initnpctimer;
    end;
 
OnTimer3600000:
    announce "Nobody Stop Mafia's army , Prontera is under Mafia's hands",0;
    sleep2 3000;
    announce "Prontera is DOOMED!",0;
    killmonster "prt_fild06","PronteraUnderAttack::OnMobLose";
    killmonster "prt_fild06","PronteraUnderAttack::OnMobWin";
    killmonster "prt_fild05","PronteraUnderAttack::OnMobLose";
    killmonster "prt_fild05","PronteraUnderAttack::OnMobWin2";
    killmonster "prt_fild08","PronteraUnderAttack::OnMobLose";
    killmonster "prt_fild08","PronteraUnderAttack::OnMobWin3";
    killmonster "rwc01","Exit to Prontera::OnMafiaKilled";
    removemapflag   prt_fild06,mf_noloot;
    removemapflag   prt_fild05,mf_noloot;
    removemapflag   prt_fild08,mf_noloot;
    stopnpctimer;
    end;
 
OnMobLose:
    dispbottom "I'm not the Leader LOL.. Suicide!";
    end;
 
OnMobWin1:
    removemapflag   prt_fild06,mf_noloot;
    atcommand "@cleanmap";
    killmonster "prt_fild06","PronteraUnderAttack::OnMobLose";
    killmonster "prt_fild06","PronteraUnderAttack::OnMobWin1";
    set #CASHPOINTS,#CASHPOINTS+25;
    dispbottom "You killed Captain Slark, +25 HpRO Point";
    announce strcharinfo(0) + " killed General Slark! Slark's troops are now retreating",0;
    sleep2 3000;
    announce "Mafia is Mad , he recalled "+strcharinfo(0)+" and the other's who killed his captains to challenge for a duel",0;
    warp "rwc01",0,0;
    mapannounce "rwc01","[Mafia]: Wait for me here until all my Generals are killed by your defenders",0;
    donpcevent "Exit to Prontera::OnEnable";
    end;
 
OnMobWin2:
    removemapflag   prt_fild05,mf_noloot;
    atcommand "@cleanmap";
    killmonster "prt_fild05","PronteraUnderAttack::OnMobLose";
    killmonster "prt_fild05","PronteraUnderAttack::OnMobWin2";
    set #CASHPOINTS,#CASHPOINTS+25;
    dispbottom "You killed Captain Slark, +25 HpRO Point";
    announce strcharinfo(0) + " killed General Magma! Slark's troops are now retreating",0;
    sleep2 3000;
    announce "Mafia is Mad , he recalled "+strcharinfo(0)+" and the other's who killed his captains to challenge for a duel",0;
    warp "rwc01",0,0;
    mapannounce "rwc01","[Mafia]: Wait for me here until all my Generals are killed by your defenders",0;
    donpcevent "Exit to Prontera::OnEnable";
    end;
 
OnMobWIn3:
    removemapflag   prt_fild08,mf_noloot;
    atcommand "@cleanmap";
    killmonster "prt_fild08","PronteraUnderAttack::OnMobLose";
    killmonster "prt_fild08","PronteraUnderAttack::OnMobWin3";
    set #CASHPOINTS,#CASHPOINTS+25;
    dispbottom "You killed Captain Slark, +25 HpRO Point";
    announce strcharinfo(0) + " killed General Lazarus! Slark's troops are now retreating",0;
    sleep2 3000;
    announce "Mafia is Mad , he recalled "+strcharinfo(0)+" and the other's who killed his captains to challenge for a duel",0;
    warp "rwc01",0,0;
    mapannounce "rwc01","[Mafia]: Wait for me here until all my Generals are killed by your defenders",0;
    donpcevent "Exit to Prontera::OnEnable";
    end;
 
 
 
}
 
rwc01,49,49,5   script  Exit to Prontera    119,{
 
    warp "prontera",0,0;
    end;
OnEnable:
    announce "[Mafia]: Defender's we are not done yet",0;
    sleep2 3000;
    announce "[Mafia]: You will all die! Hahahaha.. Haaaa",0;
    sleep2 3000;
    mapannounce "rwc01","[Mafia]: You will all die here!",0;
    sleep2 3000;
    mapannounce "rwc01","[Mafia]: I will teleport myself here!",0;
    sleep2 10000;
    announce "Emperror Lizardo appeared and now facing the Top defender of Prontera",0;
    mapannounce "rwc01","[Mafia]: I'm here find me! and kill me if you can",0;
    sleep2 3000;
    monster "rwc01",0,0,"Mafia",1916,1,"Exit to Prontera::OnMafiaKilled";
    end;
OnMafiaKilled:
    announce strcharinfo(0)+" Killed Mafia",0;
    sleep2 3000;
    announce "[Mafia]: We're not yet done yet "+strcharinfo(0)+"",0;
    sleep2 3000;
    announce "[Mafia]: I will come back and attack Prontera again!",0;
    sleep2 5000;
    announce "["+strcharinfo(0)+"] : Even you have 6 lifes I will still kill you again!",0;
    sleep2 5000;
    announce "[HPRO] : Thanks "+strcharinfo(0)+" for defending our beloved Prontera Town",0;
    sleep2 5000;
    announce "[HPRO] : By that you are rewarded of 50 HPRO Points",0;
    set #CASHPOINTS,#CASHPOINTS+50;
    dispbottom "+50 HPRO Points";
    enablenpc "Exit to Prontera";
    end;
}
rwc01   mapflag nowarp
rwc01   mapflag nowarpto
rwc01   mapflag noteleport
rwc01   mapflag nosave
Viewed 726 times, submitted by Guest.