Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Database/World Building

Development::Database/World Building World Building forum, dedicated to the EQEmu MySQL Database. Post partial/complete databases for spawns, items, etc.

Reply
 
Thread Tools Display Modes
  #1  
Old 09-16-2019, 07:18 AM
Thalix's Avatar
Thalix
Sarnak
 
Join Date: Sep 2016
Posts: 91
Default Concept behind loottbles (did I get it right)?

Just to make sure I understood the loot concept (even if I use tools to add loot, I want to understand how it works):

- Create a new record in lootdrop for the Id. The field 'name' doesn't matter.
- Create new record(s) in lootdrop_entries. Here you put the items you want to drop for this lootdrop.
- Create a new record in loottable. You can set coin-loot for this set. Connects the loottable to lootdrop_entries
- Create new record(s) in loottable_entries. Sets the drop chance of this set. Connects the loottable with a specific npc_type.

1. Is that how it works?
2. What about the table 'global_loot'? If I set the field 'skip_global_loot' to 'false' in the table 'npc_type' and set the field 'loottable_id' in 'npc_type', is both used then?
Reply With Quote
  #2  
Old 11-14-2019, 02:35 PM
Riklin
Hill Giant
 
Join Date: May 2003
Location: Tacoma, WA
Posts: 220
Default

I'm also interested in this. Is there some kind of guide, wiki or something that provides details as to how loot work?
Reply With Quote
  #3  
Old 11-14-2019, 03:26 PM
demonstar55
Demi-God
 
Join Date: Apr 2008
Location: MA
Posts: 1,165
Default

global loot is global loot. This is a system they added that has conditional application (used for a lot of tradeskills and defiant for example)

To answer the question about global loot, yes. By default all NPCs check global loot tables.

https://github.com/EQEmu/Server/blob...anager.cpp#L44 I think that explains the rules fairly well. Even if you don't understand C++, it should be pretty easy to understand.
Reply With Quote
Reply

Thread Tools
Display Modes

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 01:39 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