• This is a read only backup of the old Emudevs forum. If you want to have anything removed, please message me on Discord: KittyKaev

[SOLVED] Max loot for npcs

Status
Not open for further replies.

DndTheTroll

Respected Member
Hello guys,

How to make a specific creature drop maximum 3 items of type armor and 1 items of type weapons by quality legendary



Thank you!
 
Last edited:

ToxicDev

Banned
erm well to add loot to the creatures drops. Well the way loot works is you add items you want to drop from a creature to the table creature_loot_template by item id and npc entry id. Hope that helps. If you meant something else please explain in more detail what you want.
 

DndTheTroll

Respected Member
erm well to add loot to the creatures drops. Well the way loot works is you add items you want to drop from a creature to the table creature_loot_template by item id and npc entry id. Hope that helps. If you meant something else please explain in more detail what you want.

No i don't mean that i mean to make specified Npc Drop maximum 3 items
 

Tommy

Founder
No i don't mean that i mean to make specified Npc Drop maximum 3 items

I'm not following this. If you want an npc to drop specific items of your choice, you'd use the loot table. Unless you're asking for something that can be coded once the creature dies, but that would be pointless. :p
 

ToxicDev

Banned
I'm not following this. If you want an npc to drop specific items of your choice, you'd use the loot table. Unless you're asking for something that can be coded once the creature dies, but that would be pointless. :p

Thats what im thinking i mean you could make it give players nearby a item or items upon its death but it wouldn't be a loot table type thing its be just plain additem. Anyway as he said it would be pointless.
 

AlexeWarr

Epic Member
It means, like wotlk supports max 16 items in the loot store, he want also if the npc has in the loot table 50 items, and drop rate is 100x , not to show more than 3 items in the loot window to a specified npc
 

Tommy

Founder
It means, like wotlk supports max 16 items in the loot store, he want also if the npc has in the loot table 50 items, and drop rate is 100x , not to show more than 3 items in the loot window to a specified npc

Would have to be a core edit to do that. :/
 

DndTheTroll

Respected Member
It means, like wotlk supports max 16 items in the loot store, he want also if the npc has in the loot table 50 items, and drop rate is 100x , not to show more than 3 items in the loot window to a specified npc

Exactly what i mean

- - - Updated - - -

Would have to be a core edit to do that. :/

i know its a core edit but i want to know where i should edit and how this work?
 

Parranoia

Insane Member
This can easily be done using reference loot tables. It can get quite messy and confusing, but once you understand how they work it can be such a blessing.

Basically what you will need to do is make one reference loot entry containing armors and one containing the weapons. There is also a way to make all of the drops equal chance so that it will only drop one piece of gear. (No more, no less).

Now you add these reference loot tables to the creature's loot. You can specify how many times each "group" tries to grab loot from. So you could have the armor "group" go 3 times and the weapon one only once. I really couldn't word this properly, but try reading through the link and you might better understand.

Reference: http://collab.kpsn.org/display/tc/Loot+template+tc2
 
Last edited:

Tommy

Founder
This can easily be done using reference loot tables. It can get quite messy and confusing, but once you understand how they work it can be such a blessing.

Basically what you will need to do is make one reference loot entry containing armors and one containing the weapons. There is also a way to make all of the drops equal chance so that it will only drop one piece of gear. (No more, no less).

Now you add these reference loot tables to the creature's loot. You can specify how many times each "group" tries to grab loot from. So you could have the armor "group" go 3 times and the weapon one only once. I really couldn't word this properly, but try reading through the link and you might better understand.

Reference: http://collab.kpsn.org/display/tc/Loot+template+tc2

Indeed! This was established in a previous thread (different user): http://emudevs.com/showthread.php/362-Loot-Refference


~ Marking as solved.
 
Status
Not open for further replies.
Top