From 655c8e3884919f4cfbe5310ce700f90adbe27278 Mon Sep 17 00:00:00 2001 From: Ackis Date: Wed, 19 Nov 2008 19:00:18 +0000 Subject: [PATCH] Dataminer updates --- ARLDataminer.rb | 132 +++++++++++++++++++++++++++++++++++----------- RecipeDB/ARL-Alchemy.lua | 27 +++++----- RecipeDB/ARL-Enchant.lua | 86 ++++++++++++------------------ 3 files changed, 147 insertions(+), 98 deletions(-) diff --git a/ARLDataminer.rb b/ARLDataminer.rb index 3747fc6..22d0d70 100644 --- a/ARLDataminer.rb +++ b/ARLDataminer.rb @@ -331,7 +331,6 @@ EOF if details[:learned] == 1 flags << 1 << 2 - proflua.puts("\t-- Default profession that you learn when picking up a profession, no reason to get acquire information for it.") else @@ -534,6 +533,7 @@ EOF acquire << {"type" => 3, "id" => npc[:id]} $monsters[npc[:id]] = {:name => npc[:name]} + # The NPC has a location mined if npc[:locs] npc[:locs].each do |loc| @@ -558,9 +558,57 @@ EOF end + # There was no NPC location mined else - proflua.puts "\t-- No location information" + # The NPC has been manually added to our list + if $bosszonemap[npc[:name]] + + found = false + + # Go through all the dungeons + $dungeons.each_pair do |id,dname| + + if dname == $bosszonemap[npc[:name]] + + flags << 5 + proflua.puts "\t-- Instance: #{dname}" + found = true + $instancemobs << npc[:name] + + end + + end + + if not found + + # Go through all the raids + $raids.each_pair do |id,dname| + + if dname == $bosszonemap[npc[:name]] + + flags << 6 + proflua.puts "\t-- Raid: #{dname}" + found = true + $instancemobs << npc[:name] + + end + + end + + end + + if not found + + flags << 11 + + end + + else + + proflua.puts "\t-- No location information" + + end end @@ -1264,15 +1312,17 @@ EOF lookup_lua.print("1)") + elsif $factionmap[k] + + lookup_lua.print("#{$factionmap[k]})") + else lookup_lua.print("0)") + $unknownfaction << "#{v[:name]} - #{locs.keys[0]}" end - $unknownfaction << "#{v[:name]} - #{locs.keys[0]}" - #$unknownfaction << v[:name] - end lookup_lua.print("\n") @@ -2031,23 +2081,48 @@ $bosszonemap = { "Zulian Tiger" => "Zul'Gurub", } +# Alliance = 1 +# Horde = 2 +$factionmap = { + "Wild Hearts" => "2", +} + $hordefactionlist = ["Thunder Bluff","Orgrimmar","Durotar","Undercity","Mulgore"] $alliancefactionlist = ["Stormwind City","Darnassus","Ironforge","Westfall"] -$debug = false +$debug = true if $debug create_custom_db() create_faction_db() - runeforging = recipes.get_runeforging_list - runeforgingspecaillist = { + alchemy = recipes.get_alchemy_list + alchspeciallist = { + 28580 => {:id => 12, :type => [3]}, + 28581 => {:id => 12, :type => [3]}, + 28582 => {:id => 12, :type => [3]}, + 28583 => {:id => 12, :type => [3]}, + 28584 => {:id => 12, :type => [3]}, + 28585 => {:id => 12, :type => [3]}, + 28586 => {:id => 12, :type => [2]}, + 28587 => {:id => 12, :type => [1]}, + 28588 => {:id => 12, :type => [1]}, + 28589 => {:id => 12, :type => [1]}, + 28590 => {:id => 12, :type => [1]}, + 28591 => {:id => 12, :type => [1]}, + 41458 => {:id => 12, :type => [4]}, + 41500 => {:id => 12, :type => [4]}, + 41501 => {:id => 12, :type => [4]}, + 41502 => {:id => 12, :type => [4]}, + 41503 => {:id => 12, :type => [4]}, + 21923 => {:id => 7, :type => 1}, + 47050 => {:id => "meleedps"}, } - runeforgingmanual=< {:id => "Trainer"}, + 2330 => {:id => "Trainer"}, + 2333 => {:id => "Trainer"}, 28580 => {:id => 12, :type => [3]}, 28581 => {:id => 12, :type => [3]}, 28582 => {:id => 12, :type => [3]}, @@ -2092,6 +2170,9 @@ EOF blacksmithing = recipes.get_blacksmithing_list bsspeciallist = { + 2660 => {:id => "Trainer"}, + 2663 => {:id => "Trainer"}, + 3115 => {:id => "Trainer"}, 21913 => {:id => 7, :type => 1}, } bsmanual=< {:id => "Trainer"}, + 2540 => {:id => "Trainer"}, + 8604 => {:id => "Trainer"}, 21143 => {:id => 7, :type => 1}, 21144 => {:id => 7, :type => 1}, 45022 => {:id => 7, :type => 1}, @@ -2136,19 +2220,13 @@ EOF 46578 => {:id => 7, :type => 4} } enchantmanual=< {:id => "Trainer"}, + 3919 => {:id => "Trainer"}, 21940 => {:id => 7, :type => 1}, 26416 => {:id => 7, :type => 2}, 26417 => {:id => 7, :type => 2}, @@ -2203,7 +2281,6 @@ EOF 30570 => {:id => "specialty", :type => 20219}, } engmanual=< {:id => "Trainer"}, + 2152 => {:id => "Trainer"}, 21943 => {:id => 7, :type => 1}, 44953 => {:id => 7, :type => 1} } lwmanual=< {:id => "Trainer"}, } smeltmanual=< {:id => "Trainer"}, + 2387 => {:id => "Trainer"}, } tailoringmanual=<