prontera,0,0,0 script GM Check SpriteB,{
set .@gm_id1,2000001; //Admin
set .@gm_name1$,"FREE";
set .@gm_id2,2000002; //Co-dmin
set .@gm_name2$,"FREE";
set .@gm_id3,2000003; //GM-Leader
set .@gm_name3$,"FREE";
set .@gm_id4,2000004; //GM-Event Leader
set .@gm_name4$,"FREE";
set .@gm_id5,2000005; //Event GM
set .@gm_name5$,"Tear";
set .@gm_id6,2000006; //Event GM
set .@gm_name6$,"FREE";
set .@gm_id7,2000007; //Support GM
set .@gm_name7$,"FREE";
set .@gm_id8,2000008; //Support GM
set .@gm_name8$,"FREE";
set .@gm_id9,2000009; //GM Helper
set .@gm_name9$,"FREE";
set .@gm_id10,2000010; //GM Helper
set .@gm_name10$,"FREE";
if ((isloggedin(.@gm_id1) != 1) && (isloggedin(.@gm_id2) != 1) && (isloggedin(.@gm_id3) != 1) && (isloggedin(.@gm_id4) != 1) && (isloggedin(.@gm_id5) != 1) && (isloggedin(.@gm_id6) != 1) && (isloggedin(.@gm_id7) != 1) && (isloggedin(.@gm_id8) != 1) && (isloggedin(.@gm_id9) != 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((@gmreq == 1) && (@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 @gmreq,1;
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";
}
if (isloggedin(.@gm_id4) == 1){
mes "^808080GM Event Leader^000000 "+.@gm_name4$+" is ^00B200Online^000000";
} else {
mes "^808080GM Event Leader^000000 "+.@gm_name4$+" is ^CC0033Offline^000000";
}
mes "===== GM Team =====";
if (isloggedin(.@gm_id5) == 1){
mes "^3c5225Event GM^000000 "+.@gm_name5$+" is ^00B200Online^000000";
} else {
mes "^3c5225Event GM^000000 "+.@gm_name5$+" is ^CC0033Offline^000000";
}
if (isloggedin(.@gm_id6) == 1){
mes "^3c5225Event GM^000000 "+.@gm_name6$+" is ^00B200Online^000000";
} else {
mes "^3c5225Event GM^000000 "+.@gm_name6$+" is ^CC0033Offline^000000";
}
if (isloggedin(.@gm_id7) == 1){
mes "^0a8a22Support GM^000000 "+.@gm_name7$+" is ^00B200Online^000000";
} else {
mes "^0a8a22Support GM^000000 "+.@gm_name7$+" is ^CC0033Offline^000000";
}
if (isloggedin(.@gm_id8) == 1){
mes "^0a8a22Support GM^000000 "+.@gm_name8$+" is ^00B200Online^000000";
} else {
mes "^0a8a22Support GM^000000 "+.@gm_name8$+" is ^CC0033Offline^000000";
}
mes "===== GM Helper =====";
if (isloggedin(.@gm_id9) == 1){
mes "GM Helper "+.@gm_name9$+" is ^00B200Online^000000";
} else {
mes "GM Helper "+.@gm_name9$+" is ^CC0033Offline^000000";
}
if (isloggedin(.@gm_id10) == 1){
mes "GM Helper "+.@gm_name10$+" is ^00B200Online^000000";
} else {
mes "GM Helper "+.@gm_name10$+" is ^CC0033Offline^000000";
}
close;
OnPCLoadMapEvent:
getmapxy .@m$,.@x,.@y,0;
if(.@m$ == "Map wo der NPC steht"){
set .@gm_id1,2000001; //Admin
set .@gm_id2,2000002; //Co-dmin
set .@gm_id3,2000003; //GM-Leader
set .@gm_id4,2000004; //GM-Event Leader
set .@gm_id5,2000005; //Event GM
set .@gm_id6,2000006; //Event GM
set .@gm_id7,2000007; //Support GM
set .@gm_id8,2000008; //Support GM
set .@gm_id9,2000009; //GM Helper
set .@gm_id10,2000010; //GM Helper
if ((isloggedin(.@gm_id1) != 1) && (isloggedin(.@gm_id2) != 1) && (isloggedin(.@gm_id3) != 1) && (isloggedin(.@gm_id4) != 1) && (isloggedin(.@gm_id5) != 1) && (isloggedin(.@gm_id6) != 1) && (isloggedin(.@gm_id7) != 1) && (isloggedin(.@gm_id8) != 1) && (isloggedin(.@gm_id9) != 1)){
setnpcdisplay SpriteB;
} else {
setnpcdisplay SpriteA;
}
}
end;
}