Post Pacific  

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

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 04.04.2006, 14:33   #1
Shraier
Архивный участник
 
Join Date: Feb 2006
Posts: 137
Default NPCdata specifications...

I have some little questions about npcdata. I would like start making C3/4 mobs with drops and stuff, but first I have to resolve an enigma...

Explain me please...

Example...

Quote:
skill_list={@s_animal_weakness}
ok, this is what skills does it use..

Quote:
magic_list={}
What exactly is this "magic_list={}"?

Quote:
max_item=50
What exactly does it mean? Is this only for NPCs (citizens) or for mobs too?

Quote:
str=40 int=21 dex=30 wit=20 con=43
Where can I get these information? Client side or somewhere else?

Quote:
additional_make_multi_list={{{{[adena];7;10;100}};70}}
What are all these numbers - which is quantity, which is chance?
If I'm right, it's "7 adena and you have 10% chance of drop?" but what is 70?

Thanks for your help ^^
Shraier is offline  
Old 04.04.2006, 14:40   #2
alysia
Архивный участник
 
Join Date: Apr 2005
Posts: 151
Default

additional_make_multi_list={{{{[adena];7;10;100}};70}}


it is like 100*70/100= 70% drop chance of the item or an other example


additional_make_multi_list={{{{[adena];7;10;60}};40}}

60*40/100=24% drop chance

calculation of percentage (or whatever it is called)




skill_list={@s_animal_weakness}

look into you skilldata to see what this skill do you can also add other skills to make the mob poison resist / or increase crit damage or any other passiv skill



str=40 int=21 dex=30 wit=20 con=43

dunno


max_item=50

hmm maybe the max item that can be drop by the monster???


magic_list={}

here you can add skills that can be activate through the ai (or?)
alysia is offline  
Old 04.04.2006, 15:07   #3
ANRDaemon
Архивный участник
 
Join Date: Feb 2006
Posts: 158
Default

Quote:
Originally Posted by alysia
max_item=50

hmm maybe the max item that can be drop by the monster???
Or max items, that can be picked up by monster?
ANRDaemon is offline  
Old 04.04.2006, 16:27   #4
vinou
Архивный участник
 
Join Date: Apr 2006
Posts: 14
Default

str=40 int=21 dex=30 wit=20 con=43

Work for monster and citizen but just needed for monsters

str affect Patk, int Matk, dex Atack speed and speed (+ critical) , wit = Magic Speed, con = Hp (+ pdef ? ) , men = MP and Mdef

but dunno if it is really needed because you can set, for example, patk through base_physical_attack=
vinou is offline  
Old 04.04.2006, 18:40   #5
ANRDaemon
Архивный участник
 
Join Date: Feb 2006
Posts: 158
Default

vinou, remeber that You need Critical rate and critical chance high for some monsters.
ANRDaemon is offline  
Old 04.04.2006, 20:15   #6
Shraier
Архивный участник
 
Join Date: Feb 2006
Posts: 137
Default

additional_make_multi_list={{{{[adena];7 ;10;60}};40}}

So, 60 * 40 / 100 = 24% a.k.a. drop chance...

and what about 7 ;10?
Which one is quantity/what's the second one? >.<
Shraier is offline  
Old 04.04.2006, 20:48   #7
Sunrise
Архивный участник
 
Join Date: Mar 2006
Posts: 97
Default

Quote:
Originally Posted by Shraier
additional_make_multi_list={{{{[adena];7 ;10;60}};40}}

So, 60 * 40 / 100 = 24% a.k.a. drop chance...

and what about 7 ;10?
Which one is quantity/what's the second one? >.<
min and max.
Sunrise is offline  
Old 04.04.2006, 21:52   #8
Aikeleer
Архивный участник
 
Join Date: Jun 2005
Posts: 374
Default

The second rate is the dropate of the block. The droptalbe you just stated, adena 60% and then 40% for the block is an incorrect one. It should be {{{{[adena];7 ;10;100}};40}}. Maybe I'll write an explenation of the droptable structure someday, up until now I haven't seen really good handmade droptables so far.
Aikeleer is offline  
Old 06.04.2006, 11:40   #9
Vikruolis
Архивный участник
 
Join Date: Apr 2006
Posts: 4
Default

additional_make_multi_list={{{{[adena];7;10;100}};70}}
70% chance to get adena block drop;
Minimal count of adena will be 7, maximum count will be 10;
If adena block is selected it is 100% to get adena drop.

better example would be this one:
additional_make_multi_list={{{{[adena];99;159;100}};70};{{{[bone_breastplate];1;1;xx.xx24};{[bone_gaiters];1;1;xx.xx76};{[tights_shirt];1;1;xx.xx24};{[tights_pants];1;1;xx.xx76}};0.3071};{{{[animal_skin];1;1;50};{[animal_bone];1;1;50}};7.9964}}

Lets look simple:
Code:
{
  {
    { 
       {[adena];99;159;100}
    };
    70
  };
  {
    {
       {[bone_breastplate];1;1;xx.xx24};
       {[bone_gaiters];1;1;xx.xx76};
       {[tights_shirt];1;1;xx.xx24};
       {[tights_pants];1;1;xx.xx76}
     };
     0.3071
  };
  {
    {
      {[animal_skin];1;1;50};
      {[animal_bone];1;1;50}
     };
     7.9964
   }
}
So there are 3 blocks:
In first only adena, second some shirts and etc., last one skins/bones.
Each block has some probablity number.
Adena = 70%
Shirt = 0.3071%
Skins/bones = 7.9964%
This means the probablity that one item from block will be droped.

Lets analyse shirt block:
{[bone_breastplate];1;1;xx.xx24};
{[bone_gaiters];1;1;xx.xx76};
{[tights_shirt];1;1;xx.xx24};
{[tights_pants];1;1;xx.xx76}

it is made like this:
[internal item name];minimal drop count;maximum drop count;drop probablity in block;

So if for shirt block probability succeseded than it is:
xx.xx24% to drop bone_breastplate
xx.xx76 to drop bone_gaiters
xx.xx24 to drop tights_shirt
xx.xx76 to drop tights_pants
but only one of these items. It works like selection which item to drop.
Final probability is for example for bone_breastplate is:
xx.xx24 * 0.3071 = 5.90934 %
Vikruolis is offline  
Old 06.04.2006, 15:05   #10
Shraier
Архивный участник
 
Join Date: Feb 2006
Posts: 137
Default

Vikruolis: thanks! Your short tutorial explains everything
Shraier is offline  
Old 07.04.2006, 07:25   #11
Vikruolis
Архивный участник
 
Join Date: Apr 2006
Posts: 4
Default

Small mistake in explanation. Final probability calculation is
fin_prob = (block_probability * item_prob) / 100;
So for adena it will be: (70 * 100) / 100 = 70%
for bone_breastplate: (xx.xx24 * 0.3071) / 100 = 0.05909%
Vikruolis is offline  
Old 27.04.2006, 00:37   #12
Shraier
Архивный участник
 
Join Date: Feb 2006
Posts: 137
Default

I don't get where is the difference if I make 1 group or 5 groups (blocks)...

Isn't the drop chance same if I make:

additional_make_multi_list={{{{[animal_skin];1;1;50}};7.9964};{[tights_pants];1;1;xx.xx76}};0.3071}}

//animal_skin = min 1, max 1, (50% (chance to get this item dropped from this block) * 7.9964) /100 = 3.9982% to get it dropped

//tights_pants = min 1, max 1, (xx.xx76% * 0.3071) / 100 = 0.0944% to get it dropped...

or this....

additional_make_multi_list={{{{[animal_skin];1;1;50};{[tights_pants];1;1;1.18}};7.9964}

//animal_skin is still same...

//I put tights_pants in animal_skin's block and changet its drop chance (tight's one)... so it is

//tights_pants = min 1, max 1, (1.18 % *7.9964) / 100 = 0.0943% to get a drop...

Where's the point to make more blocks/groups? Isn't it the same if I make 15x blocks/groups or just one?
Shraier is offline  
Old 27.04.2006, 01:07   #13
ANRDaemon
Архивный участник
 
Join Date: Feb 2006
Posts: 158
Default

Differance is simple: Monster probably drop one item from each block.

In Your example:
1. additional_make_multi_list={{{{[animal_skin];1;1;50}};7.9964};{[tights_pants];1;1;xx.xx76}};0.3071}}
You have probability for askin OR pants to be dropped, but not both.
2. additional_make_multi_list={{{{[animal_skin];1;1;50};{[tights_pants];1;1;1.18}};7.9964}
Your monster can drop askin AND pants at the same time.

Just remember an example for Adena and other items: - You almost always have adena from monsters, but sometimes You have additional tasty drops. IN ADDITION to Adena.
ANRDaemon is offline  
Old 29.04.2006, 12:47   #14
Shraier
Архивный участник
 
Join Date: Feb 2006
Posts: 137
Default

ok, I get it...

and what about... If I make:

1. additional_make_multi_list={{{{[animal_skin];1;1;0.01}};100}}

this will mean: 100% drop of this group, but 0.01 % for animal_skin => 0.01 to get it dropped?

2. additional_make_multi_list={{{{[animal_skin];1;1;15}};}}
Without group's chance.. ? Will it consider only "item" drop chance?
In this example 15 % ?

Thanks for your answers ^^
Shraier is offline  
Old 30.04.2006, 17:41   #15
Arshen
Архивный участник
 
Join Date: Mar 2006
Posts: 111
Default

i forgot to add the last value at the end, and the items never droped... so i think that you need to add the last number.
Arshen is offline  
Old 30.04.2006, 21:31   #16
Shraier
Архивный участник
 
Join Date: Feb 2006
Posts: 137
Default

aha... so it's impossible to to create group / item drop chance like official, even if we have info for drop (last chance)? =/
Shraier is offline  
Old 24.05.2006, 19:59   #17
Shraier
Архивный участник
 
Join Date: Feb 2006
Posts: 137
Default

What do you think about this version? Every item is in its own group...

Quote:
[judge_of_marsh]corpse_make_list={{[sealed_dark_crystal_leather_mail_pattern];1;2;4.934};{[sealed_tallum_leather_mail_pattern];1;1;4.934};{[rp_soulshot_a];1;1;0.52}} additional_make_list={} additional_make_multi_list={{{{[adena];4230;8830;100}};100};{{{[animal_bone];1;1;100}};37.5};{{{[animal_skin];1;1;100}};37.5};{{{[enria];1;1;100}};0.66};{{{[leather];1;1;100}};6.25};{{{[crafted_leather];1;1;100}};0.836};{{{[earing_of_black_ore_piece];1;1;100}};1.099};{{{[ring_of_black_ore_gemstone];1;1;100}};1.47};{{{[necklace_of_black_ore_beads];1;1;100}};0.594};{{{[greater_magic_haste_potion];1;1;100}};1.056};{{{[earing_of_black_ore];1;1;100}};0.039};{{{[ring_of_black_ore];1;1;100}};0.056};{{{[necklace_of_black_ore];1;1;100}};0.0186}}
Shraier is offline  
Old 18.06.2006, 00:05   #18
kgptzac
Архивный участник
 
Join Date: Jan 2006
Posts: 363
Default

well suppose if we get the drop list of a c4 mob in l2wh, tehre's no information for the drop block, it's just easier to put everything in additional_make_list since all l2wh listing is the final rates, right? so we can skip those extra }{}[][}[}[][][}{}{}{}[}{]{]?
kgptzac is offline  
Old 18.06.2006, 01:32   #19
MelkorTheStrong
Архивный участник
 
Join Date: Mar 2006
Posts: 135
Default

So...additional_make_multi_list is for group percentages? and...what, additional_make_list is same as spoil, you define the percentage and that's it?
MelkorTheStrong is offline  
Old 19.06.2006, 13:56   #20
_xor_
Архивный участник
 
Join Date: Jun 2006
Posts: 22
Default

I can add, that from one block can drop only one item.
And summ of all chances in one block must be <= 100.
If summ = 1xx.xx1, than no items will be dropped from this block.

We can write:
additional_make_multi_list={{{{[animal_skin];1;1;0.01}};100}}
And we will have chance 0.01% of drop animal_skin.
And xx.xx% of drop nothing )

additional_make_multi_list={{{{[animal_skin];1;1;15}};}}
- it is just call an error in npcdata ))

2Shraier:
If you dont want to have mind sex with this, take additional_make_list.
One item in one block, syntax like in the corpse_make_list.
But in that way we have chance of drop all items
OR you can write/get script/program, that calculate chance for block and chance for item.

Some time ago i wrote a scritpt, which created drop from drop info on one site.
Schema:
All chances from one block summs in variable X.
Then chances of items divided on this variable (chance = chance/X).
Then i cut off all after six number after dot (was 5,555555555, and now 5,555555).
With this i can be sure, that summ of chances in block <= 100.
Usually it is near 99,999999.
Now i write block and write X, as chance of block.

For example:
X = 0
item chance
adena 3 (X = X + adena = 0 + 3 = 3)
boots 4 (X = 3 + 4 = 7)
sword 2 (X = 7 + 2 = 9)
helmet 1 (X = 9 + 1 = 10)
summ, X = 10.

Then,
adena = 3/X = 0,3
boots = 0,4
sword = 0,2
helmet = 0,1

i forgot one thing - need to multiply to 100 all chances )
adena = 0,3 * 100 = 30
e.t.c.

and we get {adena:30 ; boots:40 ; sword:20 ; helmet:10}:10

I take simple numbers.
But this work with any numbers.

Better, if this do script/program )
I wrote script on PERL.
If anyone need him, PM me.

/rus/
кароче все так, как я написал)
/rus/
_xor_ is offline  
Old 24.07.2006, 15:53   #21
armedmonkey
Архивный участник
 
Join Date: Jul 2006
Posts: 14
Default

Can someone help me figure out how to calculate exp, sp, and hp?
armedmonkey 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 20:55.