View Single Post
Old 03-19-2007, 03:19 AM  
darksoul
Confirmed User
 
darksoul's Avatar
 
Join Date: Apr 2002
Location: /root/
Posts: 4,997
Quote:
Originally Posted by V_RocKs View Post
He would still have to get around the search time limit... Which means he will miss a lot of seconds...
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.
__________________
1337 5y54|)m1n: 157717888
BM-2cUBw4B2fgiYAfjkE7JvWaJMiUXD96n9tN
Cambooth

Last edited by darksoul; 03-19-2007 at 03:21 AM..
darksoul is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote