viewing paste iTouch - Last Man Standin | 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 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312
-       script  LMS#disable     -1,{
 
OnInit:
        disablenpc "Mr. Banker";
        disablenpc "All Job Manager";
        disablenpc "Baby Manager";
        disablenpc "Novice Manager";
        end;
}
 
-       script  LMS     -1,{
 
OnClock1800:
goto startlmsevent;
 
startlmsevent:
        announce "Mr. Manager: The Last Man Standing event will be starting shortly.",0;
        sleep2 10000;
        announce "Mr. Manager: Those who want to play, please proceed to Prontera and Register.",0;
        sleep2 10000;
        announce "Mr. Manager: After 1 Minute the Registration will close.",0;
        sleep2 10000;
        announce "Mr. Manager: Please go to Prontera and Register now if you want to join.",0;
        enablenpc $Manager$;
        initnpctimer;
        end;
 
OnTimer30000:
        announce "Mr. Manager: Last 30 seconds.",0;
        sleep2 5000;
        announce "Mr. Manager: If you want to join please Register in Prontera.",0;
        end;
       
OnTimer50000:
        announce "Mr. Manager: Last 10 seconds.",0;
        end;
       
OnTimer55000:
        announce "Mr. Manager: 5.",0;
        end;
       
OnTimer56000:
        announce "Mr. Manager: 4.",0;
        end;
       
OnTimer57000:
        announce "Mr. Manager: 3.",0;
        end;
       
OnTimer58000:
        announce "Mr. Manager: 2.",0;
        end;
       
OnTimer59000:
        announce "Mr. Manager: 1.",0;
        end;
       
OnTimer60000:
        announce "Mr. Manager: Time's up.",0;
        end;
       
OnTimer61000:
        disablenpc $Manager$;
        donpcevent "Mr. Banker::OnEnable";
        stopnpctimer;
        end;
        }
//---------All Job Registration---------------
prontera,147,172,5      script  All Job Manager 106,{
 
        mes "[Mr. Manager]";
        mes "Hello What can I do for you?";
        next;
        menu "Register",-,"What is LMS?",what,"Leave",leave;
        next;
        mes "[Mr. Manager]";
        mes "Thankyou for registering Mr. " + strcharinfo(0) + ", Have fun!";
        warp "quiz_02",305,249;
        end;
what:
        mes "[Mr. Manager]";
        mes "LMS is also known as Last Man Standing Event";
        next;
        mes "[Mr. Manager]";
        mes "LMS is also like a PvP.";
        mes "The only difference is at LMS you will get 20 CDSC Event Cards if you are the Last Man Standing at the arena.";
        next;
        mes "[Mr. Manager]";
        mes "That's all";
        close;
leave:
        mes "[Mr. Manager]";
        mes "I hope you will register next time";
        close;
 
 
}
//---- Baby Registration -------
prontera,144,172,5      script  Baby Manager    812,{
 
        mes "[Mr. Manager]";
        mes "Hello this is Baby LMS Registration";
        mes "What can I do for you?";
        next;
        menu "Register",-,"What is Baby LMS?",what,"Leave",leave;
        next;
        if (class < 4023 || class > 4045) goto L_NotBaby;
        mes "[Mr. Manager]";
        mes "Thankyou for registering Mr. " + strcharinfo(0) + ", Have fun!";
        warp "quiz_02",305,249;
        end;
L_NotBaby:
        mes "[Mr. Manager]";
        mes "Hmmm.. Sorry but only baby classes can enter";
        close;
what:
        mes "[Mr. Manager]";
        mes "LMS is also known as Last Man Standing Event";
        next;
        mes "[Mr. Manager]";
        mes "This LMS is for Baby Classes only.";
        mes "The only difference is at LMS you will get 20 CDSC Event Cards if you are the Last Man Standing at the arena.";
        next;
        mes "[Mr. Manager]";
        mes "That's all";
        close;
leave:
        mes "[Mr. Manager]";
        mes "I hope you will register next time";
        close;
}
//--------Novice LMS Registration---------
prontera,141,172,5      script  Novice Manager  729,{
 
        mes "[Mr. Manager]";
        mes "Hello What can I do for you?";
        next;
        menu "Register",-,"What is LMS?",what,"Leave",leave;
        next;
         if (class == 0 && baselevel == 1) {
        mes "[Mr. Manager]";
        mes "Thankyou for registering Mr. " + strcharinfo(0) + ", Have fun!";
        warp "quiz_02",305,249;
        end;
    }
    mes "Sorry for level 1 novices only";
    close;
 
what:
        mes "[Mr. Manager]";
        mes "LMS is also known as Last Man Standing Event";
        next;
        mes "[Mr. Manager]";
        mes "LMS is also like a PvP.";
        mes "The only difference is at LMS you will get 20 CDSC Event Cards if you are the Last Man Standing at the arena.";
        next;
        mes "[Mr. Manager]";
        mes "That's all";
        close;
leave:
        mes "[Mr. Manager]";
        mes "I hope you will register next time";
        close;
}
 
//------------------------
 
quiz_02,297,265,6       script  Checker 780,{
 
        mes "[Checker]";
        mes "Hi " + strcharinfo(0) + ", Want to check how many are you here?";
        next;
        mes "There are currently ["+getmapusers("quiz_02")+"]players on map";
        close;
       
OnInit:
        waitingroom "Map Checker",0;
        end;
}
 
//--------------------------
 
//--------------------------
quiz_02,311,265,6       script  Mr. Banker      56,{
       
        mes "[Banker]";
        mes "Please tell me your name.";
        next;
        input .@name$;
        if(.@name$ != strcharinfo(0)) {
                mes "[Banker]";
                mes "Are you sure thats your character name?";
                close;
        }
        mes "[Banker]";
        mes "Congrats. You've won.";
        close2;
        announce "Mr. Manager: We have a winner! well done "+.@name$+".",0;
        getitem 18110, 20; // Change This item id to what ever you want . item id,amount
        warp "prontera",155,182;
        disablenpc "Mr. Banker";
        end;
OnEnable:
        mapannounce "quiz_02","Mr. Manager:The Last Man Standing Event will start shortly",0;
        sleep2 10000;
        mapannounce "quiz_02","Mr. Manager:But before we start this is just a few reminders..",0;
        sleep2 10000;
        mapannounce "quiz_02","Mr. Manager:Using Cloaking , Hiding is strictly not allowed..",0;
        sleep2 10000;
        mapannounce "quiz_02","Mr. Manager: Only the Last Man Standing will win this event!!",0;
        sleep2 10000;
        mapannounce "quiz_02","Mr. Manager: What are we waiting for?..Let's Get Ready to Rumble!!...",0;
        sleep2 10000;
        goto L_Start;
        end;
L_Start:
        if(getmapusers("quiz_02") == 1) goto L_Champ;
        if(getmapusers("quiz_02") == 0) goto L_None;
        if(getmapusers("quiz_02") > 1) {
        mapannounce "quiz_02","Mr. Manager: Get ready at the count of 5 we will start!....",0;
        sleep2 10000;
        mapannounce "quiz_02","Mr. Manager: 5",0;
        sleep2 5000;
        mapannounce "quiz_02","Mr. Manager: 4",0;
        sleep2 4000;
        mapannounce "quiz_02","Mr. Manager: 3",0;
        sleep2 3000;
        mapannounce "quiz_02","Mr. Manager: 2",0;
        sleep2 2000;
        mapannounce "quiz_02","Mr. Manager: 1",0;
        sleep2 1000;
        pvpon "quiz_02";
        goto timer;
        end;
        }
timer:
        initnpctimer;
        end;
 
OnTimer1000:
        end;
       
OnTimer1100:
        if(getmapusers("quiz_02") == 1) goto L_Champ;
        if(getmapusers("quiz_02") > 2) goto timer;
        if(getmapusers("quiz_02") == 2) goto champ;
        stopnpctimer;
        end;
 
champ:
        announce "Mr. Manager: Last 2 Brave warriors are still alive!",0;
        sleep2 10000;
        if(getmapusers("quiz_02") == 1) goto L_Champ;
        if(getmapusers("quiz_02") > 1) goto timer;
        end;
       
L_Champ:
        mapannounce "quiz_02","Mr. Banker: Please talk to me to get your prize..",0;
        pvpoff "quiz_02";
        enablenpc "Mr. Banker";
        end;
       
L_None:
        disablenpc "Banker";
        pvpoff "quiz_02";
        end;
        }
//----- Die = warp prt -----
-       script  Killa_warp      -1,{
 
OnPCDieEvent:
        getmapxy(.@map$,.@x,.@y,0);
        if(.@map$=="quiz_02")
        {
                dispbottom "You are killed.";
                warp "prontera",0,0;
                end;
        }
}
 
// ----Manager Setting------------
-       script  Setting -1,{
        if ($Manager$=="") donpcevent "Setting::OnClock0000";
OnInit:
OnClock0000:
        switch(gettime(4)) {
        Case 0:// Sunday
        Case 1:// Monday
        Case 2:// Tuesday
                set $Manager$, "All Job Manager";
                break;
        Case 3:// Wed
        Case 4:// Thursday
                set $Manager$, "Baby Manager";
                break;
        Case 5://Friday
        Case 6://Saturday
                set $Manager$, "Novice Manager";
                break;
        }
        end;
}
                       
 
 
// == Mapflags
quiz_02 mapflag nowarp
quiz_02 mapflag nowarpto
quiz_02 mapflag noteleport
quiz_02 mapflag nosave
quiz_02 mapflag nomemo
quiz_02 mapflag nobranch
Viewed 324 times, submitted by unknown.