Post Pacific

Post Pacific (https://postpacific.mmorpg-game.online/index.php)
-   Lineage 2 Help (https://postpacific.mmorpg-game.online/forumdisplay.php?f=37)
-   -   ≈ NPCdata specifications... (https://postpacific.mmorpg-game.online/showthread.php?t=3899)

Shraier 04.04.2006 14:33

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 ^^

alysia 04.04.2006 14:40

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?)

ANRDaemon 04.04.2006 15:07

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?

vinou 04.04.2006 16:27

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=

ANRDaemon 04.04.2006 18:40

vinou, remeber that You need Critical rate and critical chance high for some monsters.

Shraier 04.04.2006 20:15

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? >.<

Sunrise 04.04.2006 20:48

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.

Aikeleer 04.04.2006 21:52

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.

Vikruolis 06.04.2006 11:40

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 %

Shraier 06.04.2006 15:05

Vikruolis: thanks! Your short tutorial explains everything :)

Vikruolis 07.04.2006 07:25

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%

Shraier 27.04.2006 00:37

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?

ANRDaemon 27.04.2006 01:07

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.

Shraier 29.04.2006 12:47

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 ^^

Arshen 30.04.2006 17:41

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.

Shraier 30.04.2006 21:31

aha... so it's impossible to to create group / item drop chance like official, even if we have info for drop (last chance)? =/

Shraier 24.05.2006 19:59

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}}


kgptzac 18.06.2006 00:05

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 }{}[][}[}[][][}{}{}{}[}{]{]?

MelkorTheStrong 18.06.2006 01:32

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?

_xor_ 19.06.2006 13:56

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/

armedmonkey 24.07.2006 15:53

Can someone help me figure out how to calculate exp, sp, and hp?


All times are GMT. The time now is 22:56.