Post Pacific  

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

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 15.06.2006, 20:38   #1
nowak2006
Архивный участник
 
Join Date: May 2006
Posts: 53
Default [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!
nowak2006 is offline  
Old 15.06.2006, 20:58   #2
Sire
Архивный участник
 
Join Date: Feb 2006
Posts: 87
Default

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
Sire is offline  
Old 15.06.2006, 22:08   #3
nowak2006
Архивный участник
 
Join Date: May 2006
Posts: 53
Default

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?
nowak2006 is offline  
Old 15.06.2006, 22:12   #4
Sire
Архивный участник
 
Join Date: Feb 2006
Posts: 87
Default

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.
Sire is offline  
Old 15.06.2006, 22:32   #5
nowak2006
Архивный участник
 
Join Date: May 2006
Posts: 53
Default

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!
nowak2006 is offline  
Old 15.06.2006, 23:42   #6
Sire
Архивный участник
 
Join Date: Feb 2006
Posts: 87
Default

because I made a mistake. Use 2.0.
Sire is offline  
Old 16.06.2006, 00:08   #7
nowak2006
Архивный участник
 
Join Date: May 2006
Posts: 53
Default

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!
nowak2006 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:37.