// { callfunc "CustomBox"; },{},{} functionscriptCustomBox{ setarray .BoxItems[0],20130,20175,20218,20235,20318,20404,20407,20317,20109,20381; set .Random, getarraysize( .BoxItems ); getitembound .BoxItems[ rand( .Random ) ], 1; setarray .BoxItems1[0],30000,30002,30003,30004,30005,30006,30007,30008; set .Random, getarraysize( .BoxItems1 ); getitembound .BoxItems1[ rand( .Random ) ], 1; setarray .BoxItems2[0],30073,100,30280,1,671,1000,674,1000,7539,1000,30076,5,30078,5,30075,5; // Rewards: <item id>,<item amount> for ( set .@item, 0; .@item < getarraysize(.BoxItems2); set .@item, .@item + 2 ) getitembound .BoxItems2[.@item], .BoxItems2[.@item+1]; close; end; }