Skip to content

Commit

Permalink
Add new profession spells for scraping
Browse files Browse the repository at this point in the history
  • Loading branch information
p3lim committed Jul 6, 2024
1 parent ded416d commit 84f3bef
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 0 deletions.
17 changes: 17 additions & 0 deletions scripts/crushable.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,27 @@
itemSparse = CSVReader(open('dbc/itemsparse.csv', 'r'))
itemSalvageLoot = CSVReader(open('dbc/itemsalvageloot.csv', 'r'))

# 2nd field in ItemSalvageLoot.db2 gives us the item that can be prospected
# 3rd field in ItemSalvageLoot.db2 gives us the ItemSalvageID used to prospect the item
# 1st field in ItemSalvage.db2 matches the ItemSalvageID from ItemSalvageLoot
# 2nd field in ItemSalvage.db2 gives us the SkillLineID for Jewelcrafting
# 6th field in SkillLine.db2 matches the SkillLineID from ItemSalvage
# 5th/1st field in SkillLine.db2 gives us the profession name
# 17th field in SkillLineAbility.db2 matches the SkillLineID from ItemSalvage
# 6th field in SkillLineAbility.db2 gives us the SpellID for the crushing spell, but also a lot of other spells
# 36th field in SpellEffect.db2 matches SpellID from SkillLineAbility
# 26th field in SpellEffect.db2 matches ItemSalvageID from ItemSalvage

# tl;dr:
# 1. find the spellID for crushing on wowhead
# 2. match that against the spellID field in SpellEffect.db2
# 3. find "EffectMiscValue[0]" - this is the ItemSalvageID

recipeSpellIDs = {
# ItemSalvageID = SpellID
46: 395696, # Dragon Isles Crushing
50: 404740, # Cataclysm Crushing
70: 434020, # Algari Crushing
}

# iterate through ItemSalvageLoot for items that can be crushed
Expand Down
6 changes: 6 additions & 0 deletions scripts/millable.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@
# 36th field in SpellEffect.db2 matches SpellID from SkillLineAbility
# 26th field in SpellEffect.db2 matches ItemSalvageID from ItemSalvage

# tl;dr:
# 1. find the spellID for milling on wowhead
# 2. match that against the spellID field in SpellEffect.db2
# 3. find "EffectMiscValue[0]" - this is the ItemSalvageID

recipeSpellIDs = {
# ItemSalvageID = SpellID
13: 382981, # Dragon Isles Milling
Expand All @@ -28,6 +33,7 @@
20: 382990, # Northrend Milling
21: 382991, # Outland Milling
22: 382994, # Classic Milling
67: 444181, # Khaz Algar Milling
}

# iterate through ItemSalvageLoot for items that can be milled
Expand Down
6 changes: 6 additions & 0 deletions scripts/prospectable.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@
# 36th field in SpellEffect.db2 matches SpellID from SkillLineAbility
# 26th field in SpellEffect.db2 matches ItemSalvageID from ItemSalvage

# tl;dr:
# 1. find the spellID for prospecting on wowhead
# 2. match that against the spellID field in SpellEffect.db2
# 3. find "EffectMiscValue[0]" - this is the ItemSalvageID

recipeSpellIDs = {
# ItemSalvageID = SpellID
1: 325248, # Shadowlands Prospecting
Expand All @@ -27,6 +32,7 @@
10: 382979, # Northrend Prospecting
11: 382980, # Outland Prospecting
12: 382995, # Classic Prospecting
69: 434018, # Algari Prospecting
}

# iterate through ItemSalvageLoot for items that can be prospected
Expand Down
1 change: 1 addition & 0 deletions scripts/scrappable.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
recipeSpellIDs = {
# ItemSalvageID = SpellID
35: 382374, # Rummage Through Scrap
89: 447311, # Pilfer Through Parts
}

# iterate through ItemSalvageLoot for items that can be scrapped
Expand Down

0 comments on commit 84f3bef

Please sign in to comment.