function script specialbox { setarray .i[0],12345,12346;// Itemlist in boxset.chance, rand(100);// First item in list (12345) x 1 (1% Chance)if(.chance ==1){ getitem .i[0],1; announce "["+strcharinfo(0)+"] won a ["+getitemname(.i[0])+"] from the Special Box.",0; end;}// First item in list (12346) x 100 (5~10% Chance)if(.chance <=10&&.chance >5){ getitem .i[1],100; end;}}
Where i need to put this script? on new txt or just copy under the box item id?
Announce item from random box
in Script Requests
Posted
Where i need to put this script? on new txt or just copy under the box item id?