View Full Version : [FORMULA] Aquire SP
Firedaemon
28.05.2006, 17:35
Just thought I would share this. It is a custom formula I use for determining SP rate for each mob. Harder mobs give more SP and etc.
[php:1:9787acf7bf]
((($npc['level'] + $npc['level'])*$sp_rate)+floatval($npc['org_hp']))*2.6
[/php:1:9787acf7bf]
jtomasrl
28.05.2006, 17:44
where do i put this formula? ><
toolpunk
28.05.2006, 19:37
just write some program which gets the needed values from npcdata and a user input field.
then let it calculate and update the sp entries...
shouldn't be hard. there are enough tutorials on the net.
for example you could do it in delphi, which is very easy to learn and code.
Here's something I whipped up in a second for people who don't know PHP.
Enter the values and it will calculate for you.
I do suggest learning PHP, however.
There isn't a lot of error checking and such, so just enter all three numbers, hit calculate, and you'll be good to go.
Вложения из исходного сообщения (сами файлы в копии отсутствуют):
calc_193.rar — 674 байт
I don't think this formula is correct. As example gremlin lvl=1 hp=62 sp_rate=1
we got
SP= ((1*2)+1) + (62 * 2.6) = 164.2
164.2 for lvl1 mob with rates x1 ?!!! It's absurd. In retail C1 npcdata we got only 6SP
P.S. Formula provided in your calculator
/==================================
$lev = $_POST['npclevel']*2 + $_POST['sprate'];
$hp = $_POST['npchp']*2.6;
$total = $lev + $hp;
/===================================
Firedaemon
30.05.2006, 11:17
Liviuss,
To produce something which more closeley represents official c1... well sorta, try the following;
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