Quote:
Originally Posted by darksoul
That would be a bad design if you use search.
Heres how the bot should work at the first thought:
Code:
$timer = 300;
$thredid = 1231231;
$winner = 51;
while ($PostNumber = get_info($threadid)) {
$timer = $timer / ($winner + $PostNumber); # the wait time decreases as the winning post gets closer
if($PostNumber == $winner) {
makepost($threadid, "Did I win ?");
}
sleep($timer);
}
piece of cake.
|
Sharps $100 programmer is reading this, lol.