The script will let a GM send invitation to all player, the player has a choice if he will decline or participate.Its working somehow and you can optimized or change it as much as you want to make it better. The thing I want is, I want it to be an array so that all gm can use this. If you can see it only works to GM Maynard. I want it to be 3 people or more,
GM Maynard,name1,name2,name3,,,,; I will edit the name.
Actually I dont know how to script, I just copy paste part of different script and paste it together.
Im using rathena.
- script event_inviter -1,{
OnInit:
bindatcmd "gmevent",strnpcinfo(3)+"::OnTest",10,99;
end;
OnTest:
addrid(0);
.@gm_name$ = "GM maynard";
if( getgmlevel() > 1 || (checkvending() >= 1 || checkchatting() == 1) ){
dispbottom "You really did it :D";
end;
}else{
mes "^FF0000"+strcharinfo(0)+"^000000,You are being summoned by: ^0000FF" + .@gm_name$;
next;
.@i = select("Decline:Warp to GM.");
if (!getcharid(0,.@gm_name$)) {
mes .@gm_name$ + " is not online.";
close;
}
getmapxy(.@map$,.@x,.@y,0,.@gm_name$);
if (.@i == 1)
mes "Ok if you say so";
else
warp .@map$,.@x,.@y;
close;
}
}
[*]Reply
[*]Report
[*]
[*]