Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 28.05.2006, 17:35   #1
Firedaemon
Архивный участник
 
Join Date: Oct 2005
Posts: 267
Default [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]
Firedaemon is offline  
Old 28.05.2006, 17:44   #2
jtomasrl
Архивный участник
 
Join Date: Apr 2006
Posts: 33
Default

where do i put this formula? ><
jtomasrl is offline  
Old 28.05.2006, 19:37   #3
toolpunk
Архивный участник
 
Join Date: May 2005
Posts: 2,033
Default

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.
toolpunk is offline  
Old 28.05.2006, 22:00   #4
Cardon
Архивный участник
 
Join Date: Apr 2006
Posts: 65
Default

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 байт
Cardon is offline  
Old 29.05.2006, 09:55   #5
Liviuss
Архивный участник
 
Join Date: Mar 2005
Posts: 10
Default

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 is offline  
Old 30.05.2006, 11:17   #6
Firedaemon
Архивный участник
 
Join Date: Oct 2005
Posts: 267
Default

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
Firedaemon is offline  
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 18:05.