viewing paste checking status | Plain text

Posted on the
1 2 3 4 5 6 7 8 9 10 11 12 13 14
int random = rnd()%10000;
#if DEBUGMODE            
            char output[255];
            ShowDebug("sc_def=%d\n",sc_def);
            sprintf(output,"Rate = %d.%d/100.00 Random=%d.%d",rate/100,rate%100,random/100,random%100);
            ShowDebug("%s\n",output);
            clif_disp_onlyself(sd,output,strlen(output));
            sprintf(output,"Rate>=Random =%d",(rate>=random)?1:0);
            ShowDebug("%s\n",output);
            clif_disp_onlyself(sd,output,strlen(output));
#endif            
            if (!(random < rate))
                return 0;
        }
Viewed 535 times, submitted by lighta.