Post Pacific

Post Pacific (https://postpacific.mmorpg-game.online/index.php)
-   Темы без сохранившегося раздела (https://postpacific.mmorpg-game.online/forumdisplay.php?f=10001)
-   -   [Help] How to convert npc patk, pdef, matk, mdef l2j to l2of (https://postpacific.mmorpg-game.online/showthread.php?t=4828)

nowak2006 15.06.2006 20:38

[Help] How to convert npc patk, pdef, matk, mdef l2j to l2of
 
How could i convert npc attributes patk, pdef, matk, mdef from l2j to l2off? We need to divide by some value? Look this example:

Karik at l2off
Code:

org_hp=24xx.xx818899627       
org_mp=1345.8       
base_physical_attack=7xx.xx0098146369
base_defend=2xx.xx597408024       
base_magic_attack=4xx.xx4627426724
base_magic_defend=2xx.xx8467292763

Karik at l2j
Code:

hp=3862
mp=1494
patk=1444         
pdef=514
matk=760
mdef=381

For HP the value is 1.58. Somebody knows how to convert the others attributes?

Thanks!

Sire 15.06.2006 20:58

org_hp=hp/con_bonus
org_mp=mp/men_bonus
base_physical_attack=patk/(level_modifier*str_bonus)
base_defend=pdef/level_modifier
base_magic_attack=matk/(level_modifier^2*int_bonus^2)
base_magic_defend=mdef/(level_modifier*men_bonus)
level_modifier=(level-11)/100+1
str bonus=1.9
con bonus=1.58
int bonus=0.81
men bonus=1.11

The stat bonuses are based on the default stats for non summon NPCs:
STR 40
DEX 30
CON 43
INT 21
WIT 20
MEN 10

nowak2006 15.06.2006 22:08

Thx very much.. but i have problems with these formulas.. i did not obtain the correct values.. Look the example of the first post.. applying theses formulas you dont get the apropriate values for karik. i tried with many npc's and nothing..

Are you sure about formulas and bonus?

Sire 15.06.2006 22:12

I just pulled from prima guide posted by another guy in forums. They work for me, with the exception of patk sometimes. Perhaps the karik in your server files don't produce the exact same stats? Have you tested.

I know I just redid alot of mobs using these, and tested them all as summons. The stats matched up.

Also, the bonuses you can find in pc_parameter.txt.

nowak2006 15.06.2006 22:32

i will study more about this ^^

Sire, plz help with another thing:
in pc_parameter.txt, str_bonus we have:
attribute_40 = 20
how could you obtain 1.9 of this?

Thx!

Sire 15.06.2006 23:42

because I made a mistake. Use 2.0.

nowak2006 16.06.2006 00:08

I think i understood. Comparing int_bonus with str_bonus, i found the correct value.

int attribute_21 = -19 must use int_bonus = 0.81
str attribute_40 = 20 must use str_bonus = 1.20

With str_bonus = 1.20 i obtained better results.

Thx a lot sire!


All times are GMT. The time now is 21:52.