Sorry for the delay, but here it is. I need someone to add some kind of delay for this NPC. At least a 15 minute delay would be good, just to avoid spam. Edit: I'm planning on adding a GM Menu where the GM can set that he is AFK and the message for the player will be sent, however the reply on the bottom would be "GM is currently AFK."
prontera,143,167,5 script GM Support Assistant 738,{
mes "[GM Support Assistant]";
mes "There is "+.GM_Online+" GMs online.";
mes "Would you like to contact them?";
menu "Send a help request.",P_1,"Quit.",P_2;
P_1:
if( .GM_Online > 0){
atcommand "@request This player is in need of assistance.";
dispbottom "Notified the Game Masters.";
emotion e_hlp;
close;
}
dispbottom "No GMs are available.";
close;
end;
P_2:
close;
OnInit:
set .MinGMLevel,10;
end;
OnPCLoginEvent:
if( getgmlevel() > .MinGMLevel ){
set .GM_Online,.GM_Online+1;
end;
}
else
end;
OnPCLogoutEvent:
if( getgmlevel() < .MinGMLevel ){
set .GM_Online,.GM_Online-1;
end;
}
else
end;
}