Liviuss,
To produce something which more closeley represents official c1... well sorta, try the following;
Code:
ceil(((($level*$level)/12)+$level))
I believe the gremlin 1x c1 is actually aquire sp of 2. But with that formula, results will vary from mob to mob. With some mobs its close while others its pretty far. Not sure what the coefecient is... by looking at each mob its almost like they just put in what looked good :P