viewing paste Unknown #53476 | 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
quiz_02,82,97,5 script  Event   1_F_MARIA,{
if(getgmlevel() >= 40) {
mes "Hello GM!";
 
switch(select("Turn ON/OFF Event:Set Players & Rounds")) {
case 1:
        if (.play) {
        mes " The Event is currently ON ";
        } else {
        mes " The Event is currently OFF ";
        mes "Would you like to ON? ";
        }
        if(select("Yes:No")==2) close;
        close2;
        if (.play) {
        set .play,0;
        disablenpc "DeathMatch";
        disablenpc "BG DeathMatch";
        announce " A GM has turn the Event OFF", 0;
        end;
        }
        set .play,1;
        announce " The Event will start in a few moments", 0;
        goto OnStart;
        end;
        }
mes "You can set the number of players and rounds in Deathmatch";
next;
mes "Input Players per Team";
mes "ex: 2 = 2v2";
mes "Min. 2 [ per Team ] Max. 20";
        while(.@players < 2 || .@players > 20) {
            input .@players;
            if(!.@players)
            end;
        }
        next;
mes "Input Event Round/s";
mes "Min. 1 [ per Round ] Max. 5";
        while(.@rounds < 1 || .@rounds > 5) {
            input .@rounds;
            if(!.@rounds)
                end;
        }
        .partysize = .@players;
        .winningscore = .@rounds;
        .active = true;
        end;
    }   
Viewed 5223 times, submitted by Guest.