Let @winner$ = variable for party name of the winner
prontera,123,123,4 script Event Prize 123,{
if(getcharid(1) == @winner$) {
mes "Congrats! Here's your prize.";
close2;
getitem @itemid,@amount;
end;
}
mes "Sorry, but your party didn't win.";
close;
}