View Single Post
  #1  
Old 03-04-2013, 02:19 PM
orionsun
Banned
 
Join Date: May 2009
Location: USA
Posts: 22
Default

You are the least technical network whatever you claim to be. Its basic stuff like this that undermines all the boasting you do lol.

Lets break this down...

Your code:
Code:
else if (check_level < 101)
		mod = 3.0;
The equation:
Code:
float base = (check_levelm1)*(check_levelm1)*(check_levelm1);
mod *= 1000;
return(uint32(base * mod))
Basic math time...

check_levelm1 = 100 <-- Character level(lets test max)
mod = 3.0 <-- This is the modifier a level 100 char has

base = 100 * 100 * 100 = 1,000,000
mod = 3.0 * 1000 = 3,000

return val = 1,000,000, * 3,000 = 3,000,000,000

The max value a uint32 can hold is ~2.14 billion.

A monkey could figure out where to go from here... good luck.
Reply With Quote