my $random; sub EVENT_SPAWN { my $random = int(rand(1250)); if($random == 1249) { quest::addloot(1619,1); } }