From 747e73aef97c23d2640c255768e8b9317bdec742 Mon Sep 17 00:00:00 2001 From: ackis Date: Thu, 13 Nov 2008 22:33:17 +0000 Subject: [PATCH] WotLK recipes, inscription an d runeforging added (dataminer regeneration on new wowdb, not tested ingame but compiles aka compiles wit luac -p --- ARLDataminer.rb | 129 +- Documentation.lua | 1 + Locals/LocalStrings-enUS.lua | 993 ++++++++++++++ RecipeDB/ARL-Alchemy.lua | 1011 +++++++++----- RecipeDB/ARL-BlackSmith.lua | 1947 +++++++++++++++++++-------- RecipeDB/ARL-Cook.lua | 599 +++++++-- RecipeDB/ARL-Enchant.lua | 1212 ++++++++++------- RecipeDB/ARL-Engineer.lua | 935 ++++++++----- RecipeDB/ARL-FirstAid.lua | 37 +- RecipeDB/ARL-Inscription.lua | 3032 +++++++++++++++++++++++++++++++++++++++++- RecipeDB/ARL-Jewelcraft.lua | 2737 ++++++++++++++++++++++++-------------- RecipeDB/ARL-LeatherWork.lua | 2506 +++------------------------------- RecipeDB/ARL-Mob.lua | 772 ++++++----- RecipeDB/ARL-Quest.lua | 147 +- RecipeDB/ARL-Reputation.lua | 14 + RecipeDB/ARL-RuneForge.lua | 2 + RecipeDB/ARL-Smelt.lua | 59 +- RecipeDB/ARL-Tailor.lua | 1853 ++++++++++++++++++-------- RecipeDB/ARL-Trainer.lua | 564 ++++---- RecipeDB/ARL-Vendor.lua | 583 ++++---- 20 files changed, 12193 insertions(+), 6940 deletions(-) diff --git a/ARLDataminer.rb b/ARLDataminer.rb index 2aef911..52f2c81 100644 --- a/ARLDataminer.rb +++ b/ARLDataminer.rb @@ -106,6 +106,7 @@ EOF "Sporeggar" => 113, "The Violet Eye" => 114, "Argent Crusade" => 115, + "Horde Expedition" => 130, "Frenzyheart Tribe" => 116, "Knights of the Ebon Blade" => 117, "Kirin Tor" => 118, @@ -120,12 +121,15 @@ EOF "The Hand of Vengeance" => 127, "The Taunka" => 128, "Warsong Offensive" => 129, + "Alliance Vanguard" => 131, } # Get the list of reputations factions = WoWDBFactions.new - $reps = factions.get_faction_list + $reps = factions.get_faction_list + #$reps["Horde Expedition"] = {:id => 1052} + $reps["Alliance Vanguard"] = {:id => 1037} # Parse the list and add the info to the file and a reputations look up file $reps.keys.sort_by {|key| @@ -218,7 +222,7 @@ end # Creates a database file for the specific recipe # TODO: Optimize the code for this function -def create_profession_db(file,profession,db,maps,funcstub,recipes,ignorerecipe,specialcase,wrathignore,manual) +def create_profession_db(file,profession,db,maps,funcstub,recipes,ignorerecipe,specialcase,manual) factionlevels = {"Neutral" => 0,"Friendly" => 1,"Honored" => 2,"Revered" => 3,"Exalted" => 4} classes = {"Deathknight" => 21,"Druid" => 22,"Hunter" => 23,"Mage"=> 24,"Paladin"=>25,"Priest"=>26,"Shaman"=>27,"Rogue"=> 28,"Warlock"=>29,"Warrior"=>30} @@ -265,7 +269,6 @@ Auto-generated using ARLDataminer.rb Entries to this file will be overwritten #{recipes.length} found from data mining. #{ignorerecipe.length} ignored. -#{wrathignore.length} WotLK ignored. ************************************************************************ @@ -761,7 +764,9 @@ EOF proflua.print("Discovery, ") flags << 1 << 2 << 12 - acquire << {"type" => 8, "id" => specialcase[details[:spellid]][:type]} + specialcase[details[:spellid]][:type].each do |i| + acquire << {"type" => 8, "id" => i} + end flags.delete(3) flags.delete(4) flags.delete(5) @@ -889,7 +894,7 @@ EOF proflua.puts "\n\t-- Item Stats: #{details[:item_stats]}\n" - if ignorerecipe.include?(details[:spellid]) or wrathignore.include?(details[:spellid]) + if ignorerecipe.include?(details[:spellid]) proflua.print("\t--") @@ -901,7 +906,7 @@ EOF proflua.puts "recipecount = recipecount + 1" - if ignorerecipe.include?(details[:spellid]) or wrathignore.include?(details[:spellid]) + if ignorerecipe.include?(details[:spellid]) proflua.print("\t--") @@ -911,35 +916,48 @@ EOF end -# TODO: Make it so that if a certain parameter is blank, add a default value of nil into it and a comment so that it compiles properly - if details[:specialty] + proflua.print("self:addTradeSkill(RecipeDB, #{details[:spellid]}, ") - proflua.puts "-- Recipe Specialty of #{details[:specialty]}" - proflua.print("\t") + # If we have a skill which it's learned at, we'll use it, if not use 1 + if details[:learned] - if details[:produces] + proflua.print("#{details[:learned]}, ") - proflua.puts "self:addTradeSkill(RecipeDB, #{details[:spellid]}, #{details[:learned]}, #{details[:produces].first}, #{details[:rarity]}, #{$proftable[profession]}, #{details[:specialty]})" + else - else + proflua.print("1, ") - # This trade skill entry does not produce anything (ie: enchanting) so we nil the item ID and set the rarity to be 1 (common). - proflua.puts "self:addTradeSkill(RecipeDB, #{details[:spellid]}, #{details[:learned]}, nil, 1, #{$proftable[profession]}, #{details[:specialty]})" + end - end + if details[:produces] + + proflua.print("#{details[:produces].first}, ") else - if details[:produces] + proflua.print("nil, ") - proflua.puts "self:addTradeSkill(RecipeDB, #{details[:spellid]}, #{details[:learned]}, #{details[:produces].first}, #{details[:rarity]}, #{$proftable[profession]})" + end - else + if details[:rarity] - # This trade skill entry does not produce anything (ie: enchanting) so we nil the item ID and set the rarity to be 1 (common). - proflua.puts "self:addTradeSkill(RecipeDB, #{details[:spellid]}, #{details[:learned]}, nil, 1, #{$proftable[profession]})" + proflua.print("#{details[:rarity]}, ") - end + else + + proflua.print("1, ") + + end + + proflua.print("#{$proftable[profession]}") + + if details[:specialty] + + proflua.print(", #{details[:specialty]}) -- Speciality\n") + + else + + proflua.print(")\n") end @@ -954,7 +972,7 @@ EOF else - if ignorerecipe.include?(details[:spellid]) or wrathignore.include?(details[:spellid]) + if ignorerecipe.include?(details[:spellid]) proflua.print("\t--") @@ -981,7 +999,7 @@ EOF temp = [] - for id in %w(5 7 3 4 1 2 6) + for id in %w(5 7 3 4 1 2 6 8) for entry in acquiredordered.select { |entry| entry["type"] == id.to_i } @@ -993,7 +1011,7 @@ EOF temp.flatten! - if ignorerecipe.include?(details[:spellid]) or wrathignore.include?(details[:spellid]) + if ignorerecipe.include?(details[:spellid]) proflua.print("\t--") @@ -1364,30 +1382,39 @@ $vendors[15165][:faction] = 3 $quests[2756] = {:name => "The Old Ways"} $quests[2756][:faction] = 2 -$debug = true +$debug = false if $debug create_custom_db() create_faction_db() - cooking = recipes.get_cooking_list - cookingspeciallist = { - 21143 => {:id => 7, :type => 1}, - 21144 => {:id => 7, :type => 1}, - 45022 => {:id => 7, :type => 1}, - 43772 => {:id => "Daily", :type => [5]}, - 43765 => {:id => "Daily", :type => [5]}, - 43761 => {:id => "Daily", :type => [6]}, - 43707 => {:id => "Daily", :type => [6]}, - 43758 => {:id => "Daily", :type => [5,6]}, - 43779 => {:id => "Daily", :type => [5,6]}, - 45695 => {:id => "Daily", :type => [7]}, + 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"}, } - cookmanual=<