![]() |
|
|||||||
|
|
Thread Tools | Search this Thread | Display Modes |
|
|
#1 |
|
Архивный участник
Join Date: May 2006
Posts: 53
|
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 Code:
hp=3862 mp=1494 patk=1444 pdef=514 matk=760 mdef=381 Thanks! |
|
|
|
|
#2 |
|
Архивный участник
Join Date: Feb 2006
Posts: 87
|
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 |
|
|
|
|
#3 |
|
Архивный участник
Join Date: May 2006
Posts: 53
|
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? |
|
|
|
|
#4 |
|
Архивный участник
Join Date: Feb 2006
Posts: 87
|
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. |
|
|
|
|
#5 |
|
Архивный участник
Join Date: May 2006
Posts: 53
|
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! |
|
|
|
|
#6 |
|
Архивный участник
Join Date: Feb 2006
Posts: 87
|
because I made a mistake. Use 2.0.
|
|
|
|
|
#7 |
|
Архивный участник
Join Date: May 2006
Posts: 53
|
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! |
|
|
|
|