Go Back   EQEmulator Home > EQEmulator Forums > Support > Support::Windows Servers

Support::Windows Servers Support forum for Windows EQEMu users.

Reply
 
Thread Tools Display Modes
  #1  
Old 07-28-2018, 10:12 AM
kris1
Sarnak
 
Join Date: Jan 2015
Posts: 53
Default Adding a loot table

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
Reply With Quote
  #2  
Old 07-28-2018, 02:18 PM
nilbog
Hill Giant
 
Join Date: Nov 2007
Posts: 197
Default

Quote:
Originally Posted by kris1 View Post
or tell me how to force a repop of the NPC...you can be my friend forever
#repop force
__________________
https://www.project1999.com
Reply With Quote
  #3  
Old 07-28-2018, 06:13 PM
kris1
Sarnak
 
Join Date: Jan 2015
Posts: 53
Default

Thank you!!
Reply With Quote
  #4  
Old 07-28-2018, 06:14 PM
kris1
Sarnak
 
Join Date: Jan 2015
Posts: 53
Default

Well, I was able to test it a few times...and no luck. What the hell am I doing wrong?
Reply With Quote
  #5  
Old 07-28-2018, 07:00 PM
dagulus2
Hill Giant
 
Join Date: Feb 2013
Posts: 220
Default

Quote:
Originally Posted by kris1 View Post
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
Did you add the new lootdrop_id numbers to the actual lootdrop table?
Reply With Quote
  #6  
Old 07-29-2018, 09:27 AM
kris1
Sarnak
 
Join Date: Jan 2015
Posts: 53
Default

So, it appears I did not. I cannot logically make sense of this table. What does it do? it contains no information that is not in the other tables?

bah!!! let's see if this works...Thanks for the insight.
Reply With Quote
  #7  
Old 07-29-2018, 05:16 PM
atrayas
Hill Giant
 
Join Date: Jun 2010
Posts: 105
Default

look at the wiki, under plugins and look at the addloot plugin...its more efficient and faster than the traditional loot drops tables.
Reply With Quote
Reply


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 -4. The time now is 05:43 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3