Hmm try this~
Item_db:
644,Gift_Box,Gift Box,2,1000,,200,,,,,0xFFFFFFFF,63,2,,,,,,{ callfunc "randombox"; },{},{}
Script:
function script randombox {
setarray .BoxItems[0],983,982,978,976,980,975,981;
set .Random, rand( getarraysize( .BoxItems ) );
getitem .BoxItems[ .Random ], 1;
end;
}
Please hit the reputation button if this works. ->
i hv try and its work! thnx xinnie!