viewing paste Unknown #685 | C

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
caspen,164,240,3    script  GM Checker  561,{
 
    set .@n$,"[GM Checker]";
    set .@gm_id1,2000005;  //Admin
    set .@gm_name1$,"Seizure";
    set .@gm_id2,2000004;  //Co-dmin
    set .@gm_name2$,"FREE";
    set .@gm_id3,2000003;  //GM-Leader
    set .@gm_name3$,"FREE";
 
    if ((isloggedin(.@gm_id1) != 1) && (isloggedin(.@gm_id2) != 1) && (isloggedin(.@gm_id3) != 1)){
        mes .@n$;
        mes "Welcome "+strcharinfo(0)+"!";
        mes "Currently is no GM online. Would you like me to make an GM call?";
        next;
        if(select("Yes, please!:No, thanks.") == 1){
            if(@gmcall > gettimetick(0)){
                mes "I'm sorry but you have to wait 5 Minutes until you can call again for the GM's!";
                close;
            }
            set @gmcall,gettimetick(0)+300000;
            close2;
            announce strcharinfo(0)+" is in the GM Mansion and needs help!",bc_all;
            end;
        }
        mes "[GM Rufer]";
        mes "Ok! Come back again if you need help!";
        emotion 32;
        close;
    }
    mes .@n$;
    mes "Welcome "+strcharinfo(0)+"!";
    mes "Currently the following GM's are online:";
    next;
    mes "===== Admin Team =====";
    if (isloggedin(.@gm_id1) == 1){
        mes "^1b1ba8Admin^000000 "+.@gm_name1$+" is ^00B200Online^000000";
    } else {
        mes "^1b1ba8Admin^000000 "+.@gm_name1$+" is ^CC0033Offline^000000";
    }
    if (isloggedin(.@gm_id2) == 1){
        mes "^1b1ba8Co-Admin^000000 "+.@gm_name2$+" is ^00B200Online^000000";
    } else {
        mes "^1b1ba8Co-Admin^000000 "+.@gm_name2$+" is ^CC0033Offline^000000";
    }
    mes "===== GM Leader Team =====";
    if (isloggedin(.@gm_id3) == 1){
        mes "^808080GM Leader^000000 "+.@gm_name3$+" is ^00B200Online^000000";
    } else {
        mes "^808080GM Leader^000000 "+.@gm_name3$+" is ^CC0033Offline^000000";
    }
    close;
 
OnPCLoadMapEvent:
    getmapxy .@m$,.@x,.@y,0;
    if(.@m$ == "caspen"){
        set .@gm_id1,2000005;  //Admin
        set .@gm_id2,2000004;  //Co-dmin
        set .@gm_id3,2000003;  //GM-Leader
        if ((isloggedin(.@gm_id1) != 1) && (isloggedin(.@gm_id2) != 1) && (isloggedin(.@gm_id3) != 1)){
            setnpcdisplay "GM Checker",562;
        } else {
            setnpcdisplay "GM Checker",561;
        }
    }
    end;
}
 
casper  mapflag loadevent
Viewed 595 times, submitted by Guest.