Post Pacific

Post Pacific (https://postpacific.loc-online.com/index.php)
-   Темы без сохранившегося раздела (https://postpacific.loc-online.com/forumdisplay.php?f=10001)
-   -   [SHARE] Aquire EXP Formula (https://postpacific.loc-online.com/showthread.php?t=2931)

Firedaemon 03.01.2006 19:47

[SHARE] Aquire EXP Formula
 
At isoGames, we use a custom formula to determine the aquire exp rate of each mob. While it is not perfect to NCSoft rates, it is a nice calculation to deliver consistent exp for a mob based on its level and HP throughout the entire server. Easier mobs give less exp and harder mobs give more.

We wrote a simple PHP script to recalculate all our mobs aquire exp rates and it has been working nicely to deliver a percise and consistent exp system on our server.

acquire_exp_rate = ((($hp*0.69)+($level*$level))/($level*$level))*rate

This is being shared in case any of you other server admins would like to start implimenting higher level HP mobs based on c3 official HP stats and want to deliver a precise exp amount since the mobs are harder. Most of the NPC scripts that I see floating around have their aquire exp rates all over the place and I am assuming they were just made up and not based on any real mathematical calculation.

melwidh 03.01.2006 20:13

The formula is great, but what I do for use it? i dont use PHP, for nothing

Truffe 03.01.2006 20:39

Then stick it between two slices of bread, and eat it ! =D
(you can add some sliced pickles with it, tastes fabulous =D)

toolpunk 03.01.2006 20:41

nothing beats sliced bread :D
however nice share...
this will help a lot for the new boss mobs :)

Firedaemon 03.01.2006 23:28

If you dont know how to program, you can manually make your aquire exp rate. I would share my PHP but its part of a larger program I use to generate my own NPC scripts from mysql and its not ready to share yet.

I manage all my NPC data from mysql so I can perform large operations through scripting. I already released a prior version but the new one is much better. I will probably share it in a couple of weeks.

TheOrder 03.01.2006 23:35

Tnx for the share i am sure it will help !!!

SL_Sky 04.01.2006 07:02

this is really nice, but you still need the correct hps for it to work...
and those aren't easy to find either...

Firedaemon 04.01.2006 11:01

actually correct hp is very easy to find. Full stats are offered on the Korean Lineage II site as well as sources like the L2WH project. Also, org_hp in the npcdata is in-game hp/1.58. So when the site sources say 15k hp, in the database it would really be 94xx.xx08860759493670886075949367

I use l2wh for most mobs hp because they are the most updated source of info.


All times are GMT. The time now is 15:41.