prontera,153,183,5 script Sampel 100,{
if ( countitem( .item ) < .amount ) {
mes "You dont have the " + .amount + "x " + getitemname( .item )+"that i requested..";
close;
}
delitem .item, .amount;
getitem .p, .a;
announce "Yayks! " + strcharinfo( 0 ) + " won the event",0;
hideonnpc strnpcinfo(1);
end;
OnMinute00:
.@time++;
if ( .@time % 2 ) end;
.@i = rand( getarraysize( .BringMeItems ) );
.item = .BringMeItems[ .@i ];
.amount = rand( 10, 30 );
announce "Bring me " + .amount + "x " + getitemname( .item ),0;
hideoffnpc strnpcinfo(1);
end;
OnInit:
setarray .BringMeItems[0],501,7227,4001,7005,909,512,714;
.p = 7227;
.a = 5;
hideonnpc strnpcinfo(1);
end;
}