![]() |
[FORMULA] Aquire SP
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] |
where do i put this formula? ><
|
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; /=================================== |
Liviuss,
To produce something which more closeley represents official c1... well sorta, try the following; Code:
ceil(((($level*$level)/12)+$level)) |
| All times are GMT. The time now is 21:45. |