kris1
07-28-2018, 10:12 AM
This seemed kinda self explanatory...but I'm having some trouble...What am I missing?
okay...So I made a custom item. And I'm trying to get 2 of these items to drop every time the target npc is killed.
I found my NPC's "loottable_id" field in the "npc_types" table.
I went to "loottable_entries" and found 4 corresponding "lootdrop_id" rows.
I tracked down each of the 4 "lootdrop_ids" in the "lootdrop_entries" table, where I added a new line, with a new "lootdrop_id" and I added the proper "item_id" for my custom item. I set the "chance" field for "100". the "multiplier" field for "1". I left the "equip_item", "disable_chance", and "minlevel" fields at "0", and the "item_charges" field at "1", the same as the other lootdrop_entries for this npc.
Then back in the "loottable_entries" table, I added a 5th line of my npc's "loottable_id", I added my new corresponding "lootdrop_id", set "multiplier" to "1", "droplimit" to "2", "mindrop" to "2", and "probability" to "100".
I would have thought that was it. I restarted my server, and went to test the kill, and my new loot table did not show up.
What I think happened is that the NPC (in this case Lord Nagafen) was already up, and what he had on him was already decided...and that my assumption that resetting the server would repop him was incorrect. And since the nature of Lord Nagafen is that he doesn't repop very soon, and I am too unfamiliar with the GM commands to make him repop...
SOOOOooo...if anyone can either confirm my suspicions about the Lord Nagafen that was already up not possessing my new loot table regardless of server restart, or tell me where I went wrong in my loot table values, or tell me how to force a repop of the NPC...you can be my friend forever :)
Or if you want to tell me anything else...LOL
okay...So I made a custom item. And I'm trying to get 2 of these items to drop every time the target npc is killed.
I found my NPC's "loottable_id" field in the "npc_types" table.
I went to "loottable_entries" and found 4 corresponding "lootdrop_id" rows.
I tracked down each of the 4 "lootdrop_ids" in the "lootdrop_entries" table, where I added a new line, with a new "lootdrop_id" and I added the proper "item_id" for my custom item. I set the "chance" field for "100". the "multiplier" field for "1". I left the "equip_item", "disable_chance", and "minlevel" fields at "0", and the "item_charges" field at "1", the same as the other lootdrop_entries for this npc.
Then back in the "loottable_entries" table, I added a 5th line of my npc's "loottable_id", I added my new corresponding "lootdrop_id", set "multiplier" to "1", "droplimit" to "2", "mindrop" to "2", and "probability" to "100".
I would have thought that was it. I restarted my server, and went to test the kill, and my new loot table did not show up.
What I think happened is that the NPC (in this case Lord Nagafen) was already up, and what he had on him was already decided...and that my assumption that resetting the server would repop him was incorrect. And since the nature of Lord Nagafen is that he doesn't repop very soon, and I am too unfamiliar with the GM commands to make him repop...
SOOOOooo...if anyone can either confirm my suspicions about the Lord Nagafen that was already up not possessing my new loot table regardless of server restart, or tell me where I went wrong in my loot table values, or tell me how to force a repop of the NPC...you can be my friend forever :)
Or if you want to tell me anything else...LOL