![]() |
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:
Quote:
Quote:
Quote:
Quote:
If I'm right, it's "7 adena and you have 10% chance of drop?" but what is 70? Thanks for your help ^^ |
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?) |
Quote:
|
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, remeber that You need Critical rate and critical chance high for some monsters.
|
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? >.< |
Quote:
|
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.
|
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:
{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: thanks! Your short tutorial explains everything :)
|
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% |
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? |
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. |
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 ^^ |
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.
|
aha... so it's impossible to to create group / item drop chance like official, even if we have info for drop (last chance)? =/
|
What do you think about this version? Every item is in its own group...
Quote:
|
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 }{}[][}[}[][][}{}{}{}[}{]{]?
|
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?
|
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/ |
Can someone help me figure out how to calculate exp, sp, and hp?
|
| All times are GMT. The time now is 22:56. |