![]() |
|
|
#1 |
|
Архивный участник
Join Date: Oct 2005
Posts: 267
|
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] |
|
|
|
|
#2 |
|
Архивный участник
Join Date: Apr 2006
Posts: 33
|
where do i put this formula? ><
|
|
|
|
|
#3 |
|
Архивный участник
Join Date: May 2005
Posts: 2,033
|
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. |
|
|
|
|
#4 |
|
Архивный участник
Join Date: Apr 2006
Posts: 65
|
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 байт |
|
|
|
|
#5 |
|
Архивный участник
Join Date: Mar 2005
Posts: 10
|
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; /=================================== |
|
|
|
|
#6 |
|
Архивный участник
Join Date: Oct 2005
Posts: 267
|
Liviuss,
To produce something which more closeley represents official c1... well sorta, try the following; Code:
ceil(((($level*$level)/12)+$level)) |
|
|
| Thread Tools | Search this Thread |
| Display Modes | |
|
|