501,Red_Potion,Red Potion,0,50,,70,,,,,0xFFFFFFFF,7,2,,,,,,{ if(countitem(512)>0) { callfunc "CustomBox"; }},{},{}
function script CustomBox {
setarray .BoxItems[0],501,502,503;
set .Random, getarraysize( .BoxItems );
delitem 512,1;
getitem .BoxItems[ rand( .Random ) ], 1;
announce "["+strcharinfo(0)+"] has just obtained a ["+getitemname(.BoxItems[ .Random ])+"] from a Custom Box.",0;
end;
}