View Single Post
  #2  
Old 11-14-2002, 03:51 PM
Trumpcard
Demi-God
 
Join Date: Jan 2002
Location: Charlotte, NC
Posts: 2,614
Default

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.
Reply With Quote