![]() |
[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 Code:
hp=3862Thanks! |
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 |
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? |
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. |
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! |
because I made a mistake. Use 2.0.
|
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. |