Actually, that works pretty good... Try this out..
diff -b loottables.cpp loottables.cpp.mod
127c127,129
< if(rand() * 100 < atoi(row[4]) < 10 ? 10 : atoi(row[4]))
> if( (rand()%100) < (atoi(row[4]) * 10) )
144,145c146,147
< mysql_free_result(result);
< return;
---
> //mysql_free_result(result);
> //return;
The only bug i am seeing here is every once in awhile you get an ungoldly amount of plat...
__________________
Quitters never win, and winners never quit, but those who never win and never quit are idiots.
|