Hello Try this i already fixed and set gm lvl to 80 you can edit that to any gm lvl but don't make it 0 because 0 is equal normal player.
prontera,163,173,4 script GM Helper 980,{
if( getgmlevel() < 80 ) {
mes "You are not a GM with level 80 or higher, GTFO!";
close;
}
set .@Gm$,"[GM Helper]";
digit:
mes "Hello GM "+strcharinfo(0)+", what do you wish to do?";
next;
switch( select ("Set a winner","Exit")) {
case 1:
mes .@Gm$;
mes "Enter char name";
next;
while(!.@id) {
input .@name$;
mes "[GM Helper]";
set .@id,getcharid(3,.@name$);
if(!.@id) {
mes "Character not online. Please try again";
next;
continue;
}
}
mes "["+.@name$+"] is correct?";
if( select ("Yes:No") == 2) close;
if( isloggedin(getcharid(3,.@name$))) getitem 7720,5,getcharid(3,.@name$);
mes "Given reward to " + .@name$;
announce .@name$ + " is the winner of the event and has won a reward!",bc_all;
close;
break;
case 2:
mes .@Gm$;
mes "Nothing to do.";
close;
break;
}
}
Have fun please give me feed back.
No normal player can't talk to this npc because it's set up on gm level .
hi thanks for making the script but i want a reward that i can choose like event coins or tcg..
when GM type the name of the player it will automatically give the player the reward (item 7720 or 7227) and announce the GM Name and this player is the winner of the event and got 5 Event coins or TCG Card..
Your welcome
here already done . you can choose now and please just set up what ever you want to reward if you want to change
just change this script if you want to change reward
Reward < amount >
getitem 7227,5
Here's the code you request i hope you enjoy it
prontera,163,173,4 script GM Helper 980,{
if( getgmlevel() < 80 ) {
mes "You are not a GM with level 80 or higher, GTFO!";
close;
}
set .@Gm$,"[GM Helper]";
digit:
mes "Hello GM "+strcharinfo(0)+", what do you wish to do?";
next;
switch( select ("Set a winner","Exit")) {
case 1:
mes .@Gm$;
mes "Enter char name";
next;
while(!.@id) {
input .@name$;
mes "[GM Helper]";
set .@id,getcharid(3,.@name$);
if(!.@id) {
mes "Character not online. Please try again";
next;
continue;
}
}
mes "["+.@name$+"] is correct?";
if( select ("Yes:No") == 2) close;
next;
mes "Select your prize you want to give, Tcg or Coins";
//Selection if TCG Or Coins
if( select ("Tcg:Coins") == 1 ) {
//Selected Option 1
if( isloggedin(getcharid(3,.@name$))) getitem 7227,5,getcharid(3,.@name$);
mes "Given reward to " + .@name$;
announce "GM " + strcharinfo(0) + " rewarded "+.@name$ + " for the winner of the event and has gotten 5 event TCG as a reward!",bc_all;
}else{
//Selected Option 2
if( isloggedin(getcharid(3,.@name$))) getitem 7720,5,getcharid(3,.@name$);
mes "Given reward to " + .@name$;
announce "GM " + strcharinfo(0) + " rewarded " + .@name$ + " for the winner of the event and has gotten 5 event Coins as a reward!",bc_all;
}
close;
break;
case 2:
mes .@Gm$;
mes "Nothing to do.";
close;
break;
}
}