function script Random_Box_Script { .@[member=Rand] = rand(1,3); switch(.@[member=Rand]) { case 1: getitem 1001,1; end; case 2: getitem 1002,1; end; case 3: getitem 1003,1; // The special item announce strcharinfo(0)+ " was lucky and obtained the special prize!",bc_map,0x00FF00; // Map announcement end; }}
{ Id: 1000 AegisName: "Random_Box" Name: "Random Box" Type: 18 Buy: 0 Weight: 0 Script: <" callfunc "Random_Box_Script"; ">},
We use essential cookies to make this site work, and optional cookies to enhance your experience.