From e03493c8611cc35f54699576224b651dd20b7c5e Mon Sep 17 00:00:00 2001 From: Ackis Date: Wed, 12 Nov 2008 21:50:19 +0000 Subject: [PATCH] Ackis Recipe List: - Added manual entries into the dataminer so it's automatic - Added custom DB for special types of recipes - Custom DB added to dataminer to it's regenerated each time - Custom DB flag added to documentation (Acquire type 8) - Added Custom DB to recipe initialization - Regenerate dataminer data - Fixed discovery not displaying (possibly) - Added daily quest info to the dataminer, need to flag the recipes however and rerun the miner - Dry-coded (Compiles with luac -p) --- ARLDataminer.rb | 258 +++++++++++++++++++++++++++++++++++++----- ARLFrame.lua | 55 +++++++-- AckisRecipeList.lua | 11 +- Documentation.lua | 2 + RecipeDB/ARL-Alchemy.lua | 71 ++++++------ RecipeDB/ARL-BlackSmith.lua | 106 ++++++++--------- RecipeDB/ARL-Cook.lua | 35 +++--- RecipeDB/ARL-Enchant.lua | 48 ++++---- RecipeDB/ARL-Engineer.lua | 42 +++---- RecipeDB/ARL-FirstAid.lua | 1 + RecipeDB/ARL-Inscription.lua | 1 + RecipeDB/ARL-Jewelcraft.lua | 13 ++- RecipeDB/ARL-LeatherWork.lua | 88 +++++++------- RecipeDB/ARL-Mob.lua | 118 +++++++++---------- RecipeDB/ARL-Tailor.lua | 66 +++++------ RecipeDB/DB-Manual.lua | 88 -------------- database.xml | 1 + 17 files changed, 581 insertions(+), 423 deletions(-) delete mode 100644 RecipeDB/DB-Manual.lua diff --git a/ARLDataminer.rb b/ARLDataminer.rb index c03a680..cbbd8ee 100644 --- a/ARLDataminer.rb +++ b/ARLDataminer.rb @@ -152,10 +152,73 @@ EOF end +# Creates the faction database + +def create_custom_db() + + puts "Generating Custom file..." + + # Open the reputation file + customlua = File.open("./RecipeDB/ARL-Custom.lua", "w:utf-8") + + # Faction file header + header=< 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} @@ -698,6 +761,7 @@ EOF proflua.print("Discovery, ") flags << 1 << 2 << 12 + acquire << {"type" => 8, "id" => specialcase[details[:spellid]][:type]} flags.delete(3) flags.delete(4) flags.delete(5) @@ -715,6 +779,23 @@ EOF flags << 2 + when "Daily" + + proflua.print("Daily, ") + flags.delete(3) + flags.delete(4) + flags.delete(5) + flags.delete(6) + flags.delete(7) + flags.delete(8) + flags.delete(9) + flags.delete(10) + flags.delete(11) + flags << 1 << 2 + specialcase[details[:spellid]][:type].each do |i| + acquire << {"type" => 8, "id" => i} + end + when "class" proflua.print("SC Class, ") @@ -935,6 +1016,7 @@ EOF puts "Processing #{profession} data complete..." + proflua.puts(manual) proflua.puts "\treturn recipecount\n\nend" proflua.close @@ -1286,8 +1368,27 @@ $debug = true 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]}, + } + cookmanual=< {:id => 12}, - 28580 => {:id => 12}, - 28584 => {:id => 12}, - 28585 => {:id => 12}, - 28582 => {:id => 12}, - 28581 => {:id => 12}, - 28587 => {:id => 12}, - 28588 => {:id => 12}, - 28589 => {:id => 12}, - 28590 => {:id => 12}, - 28591 => {:id => 12}, - 28586 => {:id => 12}, - 41458 => {:id => 12}, - 41500 => {:id => 12}, - 41501 => {:id => 12}, - 41502 => {:id => 12}, - 41503 => {:id => 12}, + 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"}, } - create_profession_db("./RecipeDB/ARL-Alchemy.lua","Alchemy",recipes,maps,"InitAlchemy",alchemy,[2336,6619,11447,17579,22430],alchspeciallist,[53771,53773,53774,53775,53776,53777,53779,53780,53781,53782,53783,53784,53812,53836,53837,53838,53839,53840,53841,53842,53847,53895,53899,53905]) + alchmanual=< {:id => 7, :type => 1}, } + bsmanual=< {:id => 7, :type => 1}, 21144 => {:id => 7, :type => 1}, - 45022 => {: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]}, } - create_profession_db("./RecipeDB/ARL-Cook.lua","Cooking",recipes,maps,"InitCooking",cooking,[30047],cookingspeciallist,[44438, 45547, 45559,45571, 53056]) + cookmanual=< {:id => 7, :type => 1}, 46578 => {:id => 7, :type => 4} } - create_profession_db("./RecipeDB/ARL-Enchant.lua","Enchanting",recipes,maps,"InitEnchanting",enchanting,[22434,28021],enchantingspeciallist,[27958,47672,44558,44613,44632,44633,44634,44635,44636,44637,44638,44645,47898,47899,47901,44582,44584,44588,44589,44590,44591,44592,44595,44596,44597,44598,44612,44613,44616,44621,44623,44625,44629,44630,44631,44529,44555,44556,44528,44524,44513,44483,44484,44488,44489,44492,44494,44496,44497,44500,44506,44508,44509,44510,44575]) + enchantmanual=< {:id => "specialty", :type => 20219}, 30570 => {:id => "specialty", :type => 20219}, } - create_profession_db("./RecipeDB/ARL-Engineer.lua","Engineering",recipes,maps,"InitEngineering",eng,[30343,30342,30349,30561,30549,12722,12720,12900,12719,12904],engspecaillist,[53280,53281]) + engmanual=< {:id => 9}, 43493 => {:id => 9} } - create_profession_db("./RecipeDB/ARL-Jewelcraft.lua","Jewelcrafting",recipes,maps,"InitJewelcrafting",jewelcrafting,[25614,26918,26920,32810],jcspecaillist,(53830..54023).to_a) + jcmanual=< {:id => 7, :type => 1}, 44953 => {:id => 7, :type => 1} } - create_profession_db("./RecipeDB/ARL-LeatherWork.lua","Leatherworking",recipes,maps,"InitLeatherworking",leatherworking,[8195,15141,10550,19106,40000],lwspecaillist,(50935..53690).to_a) + lwmanual=< + -- 1.7.9.5