Quickly Find Items in Loot Tables Based on Quality

Azayaka

Allelujah
Administrator
Azayaka Rep
3
0
0
Rep
9
Azayaka Vouches
0
0
0
Vouches
0
Posts
329
Likes
225
2 YEARS
2 YEARS OF SERVICE
LEVEL 55 41 XP
Hey everyone,

Just dropping by to share a quick tip for those tinkering with WoW Emulation. I'm currently tinkering on a repack that I might share later on. Here's a little something that's been saving me time when hunting for items in dungeons: Knowing the entry range of creatures. Take RFC for example, where most common NPCs fall between 11318 to 11324. By querying these creatures and connecting them to the item_template table, you can easily find out what items they carry.

SQL:
SELECT clt.*, it.*
FROM `creature_loot_template` clt
JOIN `item_template` it ON clt.`Item` = it.`entry`
WHERE clt.`entry` BETWEEN 11318 AND 11324
AND it.`Quality` = 0;
#junk is 0, common is 1, uncommon is 2, rare is 3, epic is 4

Here is the result for this query:
1716359364882.png

I know a lot of people do wow emulation as a hobby and may not have a lot of SQL knowledge so I hope this helps.
 
Liked By 2 members :

Sylian

Banned
banned
Rep
2
0
0
Rep
10
Vouches
0
0
0
Vouches
0
Posts
86
Likes
202
Bits
2 YEARS
2 YEARS OF SERVICE
LEVEL 28 56 XP
Nice share!
Will use this tip for finding stuff in the database faster, since having to find everything on your own is hell.
 

3,532

1,283

9,608

431

Top