Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела

Notices

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
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  
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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:20.