Forum > Serverside Modding
Loot tables not working
(1/2) > >>
Kobiesan:
I have an item that when opened contains two loot entries. The first entry has a 90% chance to drop a certain item and the other entry has a 10% chance to drop a different item from a list in reference_loot_template. However, for some reason it's not working.
My referenced loot entries have chances on their own so it would be 10% on top of maybe a 30% chance within that reference. But, for some reason, sometimes when my item is opened, it contains either nothing, one of the 90% items, or both a 90% and 10% item.
None of them have groupids in either item_loot_template or reference_loot_template.
Here's a picture of my item_loot_template entries:
Here's a picture of the reference_loot_template entries:
Supora:
Did you set up a GroupId in loot_template?
Makpptfox:
I never use 0 as a GroupID, set 1 for both of your references, it should fix the problem of looting both of the row instead of one.
I don't really get why you would have nothing in it tho, since the reference is a total of 100%.. Try again with 1 as GroupID too, because I don't see anything wrong in your tables beside of that.
Kobiesan:
--- Quote from: Makpptfox on October 03, 2017, 01:45:44 pm ---I never use 0 as a GroupID, set 1 for both of your references, it should fix the problem of looting both of the row instead of one.
I don't really get why you would have nothing in it tho, since the reference is a total of 100%.. Try again with 1 as GroupID too, because I don't see anything wrong in your tables beside of that.
--- End quote ---
Okay I changed the item_loot_template to this:
and now there's no more duplicates BUT whenever the drop lands on the 10%, nothing is inside. It's completely empty.
Amaroth:
First of all, 0 GroupID for loots is fine in many cases. It only means "no group" - which means that more than 1 out of items in group can drop at once (or none can drop as well). And thats what you don't want in this particular case, yes. What happens at the moment is that in 10% of cases references are used, which have up to 26% to drop. 26/10 = 2.6%.
So there is only up to 2.6% of anything from references dropping, the rest what remains to 10% is quite high chance that NOTHING will drop. Because of groupID=0 which says "none, one, or multiple can drop at once". Set groupID to 1 in references, too.
Navigation
[0] Message Index
[#] Next page
|