Important Message

You are browsing the archived Lancers Reactor forums. You cannot register or login.
The content may be outdated and links may not be functional.


To get the latest in Freelancer news, mods, modding and downloads, go to
The-Starport

**Tutorial** - Increasing NPC drop rates for items

Here you find the different tutorials on editing and MODing Freelancer

Post Tue Jan 20, 2004 9:33 am

**Tutorial** - Increasing NPC drop rates for items

How can i increase the chance of getting and item from i ship i just destroyed?

Edited by - Chips on 10/31/2004 3:54:43 PM

Post Tue Jan 20, 2004 4:22 pm

ohh - nice question. The file you are looking for is called the looprops.ini file in the missions folder in the data folder.

Here is an example of what is in there....

[mLootProps
nickname = commodity_boron
drop_properties = 100, 0, 3333, 1, 150, 150

[mLootProps
nickname = commodity_silver
drop_properties = 100, 0, 5185, 1, 150, 150

[mLootProps
nickname = commodity_gold
drop_properties = 100, 0, 7870, 1, 150, 150

PLease note that these commodities are descending in VALUE here, but also note that most numbers are identical. This is cause they are commodities. Note that one set of numbers does change though, the middle one (well, okay, the middle left one). Note the higher the number, the more valuable. Of course - you will know this as "HIgher number = less likely to drop"

Now - below are weapons.........

[mLootProps
nickname = gd_bh_gun01_mark01
drop_properties = 8, 8000, 8000, 0, 2, 1

[mLootProps
nickname = gd_bh_gun01_mark02
drop_properties = 8, 25396, 25396, 0, 2, 1

[mLootProps
nickname = gd_bh_gun01_mark03
drop_properties = 8, 105206, 105206, 0, 2, 1

[mLootProps
nickname = gd_bh_gun01_mark04
drop_properties = 8, 211397, 211397, 0, 2, 1

[mLootProps
nickname = gd_bh_gun01_mark05
drop_properties = 8, 378331, 378331, 0, 2, 1

[mLootProps
nickname = gd_bh_gun01_mark06
drop_properties = 8, 646965, 646965, 0, 2, 1

Note again that a set of double numbers change each time now? They also get bigger - same idea here.............as the mark06 gun is a class nine, wherease the peashooter class 1 gun is the mark01 item. This is to do with rank drop. If you made them all the same low level one, if you could destroy a bounty hunter hammerhead carrying the high level guns when only level 5, you would still pick up some guns.

Now - this is ONLY corresponding to stuff they are carrying on them in cargo or equipped. So, for non-equipped stuff - they do this:

[PhantomLoot
nickname = ge_s_repair_01
toughness_range = 19, 100
percent_chance = 12
num_to_drop = 6, 10

[PhantomLoot
nickname = ge_s_battery_01
toughness_range = 0, 1
percent_chance = 36
num_to_drop = 1, 1

[PhantomLoot
nickname = ge_s_battery_01
toughness_range = 2, 2
percent_chance = 43
num_to_drop = 1, 1

[PhantomLoot
nickname = ge_s_battery_01
toughness_range = 3, 3
percent_chance = 38
num_to_drop = 1, 1

note here you have the nickname (its also commodites too - check further down file), the toughness range - could be just one level (rank 1 npc, or rank 19) or it could be for the whole range (but then you cannot vary the odds).
The percentage chance is the chance in percent of this item being dropped by the NPC at said level. Num to drop is how many get dispatched when the npc is......erm.......dispatched!!


Hope that helps

Have fun

Chips


Edited by - Chips on 1/20/2004 4:25:14 PM

Post Thu Jan 22, 2004 5:42 pm

Thank you.

Post Mon Aug 06, 2007 1:50 am

A question.About Nomads - they drop special_nomad guns not so often.How can i increase drop chance?

Original lootprops.ini entry:

[mLootProps
nickname = special_nomad_gun01
drop_properties = 10, 646965, 646965, 0, 2, 1

[mLootProps
nickname = special_nomad_gun02
drop_properties = 10, 646965, 646965, 0, 2, 1

Please help.Thank you.

Post Mon Aug 06, 2007 1:55 pm

As per the tut provided above:


PLease note that these commodities are descending in VALUE here, but also note that most numbers are identical. This is cause they are commodities. Note that one set of numbers does change though, the middle one (well, okay, the middle left one). Note the higher the number, the more valuable. Of course - you will know this as "HIgher number = less likely to drop"


Chngeing this to a lower value would make it drop more frequently.

Requiem: A Total FL Conversion Mod .

Post Mon Aug 06, 2007 2:17 pm

Thank you.

Post Tue Aug 07, 2007 3:44 am

No, that's not right. Let's have a look at the entry again.

drop_properties = 10, 646965, 646965, 0, 2, 1

The first number is the chance in percent. Set it to 100 and they will always drop the weapon as long as your level is high enough. The level you must have is defined by the next two numbers. They say how much your equipment, ship etc. must be worth in order to let the nomads drop the gun.

Hope that helps.

Post Tue Aug 07, 2007 3:53 am

>They say how much your equipment, ship etc. must be worth in order to let the nomads drop the gun.

Very interesting, thx.
Never thought it coud just be a credit worth value.

Post Tue Aug 07, 2007 7:53 am

Well, I'm not definately sure about that because I was too lazy to test it, but I think credits are most obvious.

Edit: Found this in ptough.ini:
ptough_graph_pt = 646965, 28
I think this proves my guess.

Edited by - Flamebird on 8/7/2007 5:33:03 PM

Post Tue Aug 07, 2007 8:04 am

Thanks will try both options.

Post Wed Aug 08, 2007 1:45 am

Thats an error on my part, sorry - when I wrote this 3 years back, I thought it was obvious it was numerical worth value (the 6459999 etc).

Classic case of someone assuming everyone immediately understood what's going on in files.

This is to do with rank drop. If you made them all the same low level one, if you could destroy a bounty hunter hammerhead carrying the high level guns when only level 5, you would still pick up some guns.


Which is what that part is about

Edited by - Chips on 8/8/2007 2:46:20 AM

Return to Freelancer Editing Tutorial Forum