i am trying to make a few things appear random in my game, i thought the below code was good enough, but the random items are appearing far to quickly,
what i want is items to appear at very large intervials, im talking days before anyone see's one's for testing i made the code
Quote
$randevent=rand(0,1500);
$event="";
if($randevent==0){ $rare1=1; $event="Your villagers have uncovered the eye of evil stone..."; }
if($randevent==250){ $rare2=1; $event="Your villagers have uncovered the jewel of death stone..."; }
if($randevent==350){ $rare3=1; $event="Your villagers have uncovered the stone of fear..."; }
if($randevent==450){ $rare4=1; $event="Your villagers have uncovered the dragons eye stone..."; }
if($randevent==550){ $rare5=1; $event="Your villagers have uncovered the statue of eden..."; }
if($randevent==650){ $rare6=1; $event="Your villagers have uncovered the priest of lier stone..."; }
if($randevent==750){ $rare7=1; $event="Your villagers have uncovered the sphere of sin stone..."; }
if($randevent==850){ $rare8=1; $event="Your villagers have uncovered the knights of satan stone..."; }
if($randevent==950){ $rare9=1; $event="Your villagers have uncovered the weather witch stone..."; }
if($randevent==1500){ $rare10=1; $event="Your villagers have uncovered the gods of war stone..."; }
$event="";
if($randevent==0){ $rare1=1; $event="Your villagers have uncovered the eye of evil stone..."; }
if($randevent==250){ $rare2=1; $event="Your villagers have uncovered the jewel of death stone..."; }
if($randevent==350){ $rare3=1; $event="Your villagers have uncovered the stone of fear..."; }
if($randevent==450){ $rare4=1; $event="Your villagers have uncovered the dragons eye stone..."; }
if($randevent==550){ $rare5=1; $event="Your villagers have uncovered the statue of eden..."; }
if($randevent==650){ $rare6=1; $event="Your villagers have uncovered the priest of lier stone..."; }
if($randevent==750){ $rare7=1; $event="Your villagers have uncovered the sphere of sin stone..."; }
if($randevent==850){ $rare8=1; $event="Your villagers have uncovered the knights of satan stone..."; }
if($randevent==950){ $rare9=1; $event="Your villagers have uncovered the weather witch stone..."; }
if($randevent==1500){ $rare10=1; $event="Your villagers have uncovered the gods of war stone..."; }
i figured at 1500 it would take a while to find them all, but i had them within 10 mins, can someone point out my mistake?? or give me a little advice on how to lengthen the returns.
as always thanks a mill for the help.
