Mercurial > wow > recipeprofit
comparison location_cache.lua @ 17:22686cb65c51
Cached NPCs functioning. No data submission yet. Own data has been added to Location cache. Major Refactor of Core.lua :)
| author | Aaron@Aaron-PC |
|---|---|
| date | Mon, 16 Aug 2010 23:07:50 -0500 |
| parents | |
| children | 6cdb9377585b |
comparison
equal
deleted
inserted
replaced
| 16:8a18dd9f2cec | 17:22686cb65c51 |
|---|---|
| 1 --[[--))--))--))--))--))--))--))--))--))--))--))--))--))--))--))--))--))--))--)) | |
| 2 | |
| 3 RecipeProfit by -[@project-author@]- | |
| 4 | |
| 5 Rev: @project-revision@ | |
| 6 Updated: @file-date-iso@ | |
| 7 | |
| 8 --))--))--))--))--))--))--))--))--))--))--))--))--))--))--))--))--))--))--))--)) | |
| 9 | |
| 10 http://www.wrathguides.com/ | |
| 11 | |
| 12 --]]--))--))--))--))--))--))--))--))--))--))--))--))--))--))--))--))--))--))--)) | |
| 13 | |
| 14 --[[ | |
| 15 This file contains location fix overrides for data. | |
| 16 ]] | |
| 17 RECIPEPROFIT_location_cache = { | |
| 18 ["Aaron Hollman"] = { | |
| 19 ["y"] = 0.7215260863304138, | |
| 20 ["x"] = 0.6404642462730408, | |
| 21 }, | |
| 22 ["Madame Ruby"] = { | |
| 23 ["y"] = 0.7101468443870544, | |
| 24 ["x"] = 0.6331429481506348, | |
| 25 }, | |
| 26 ["Endora Moorehead"] = { | |
| 27 ["y"] = 0.5554489493370056, | |
| 28 ["x"] = 0.386496365070343, | |
| 29 }, | |
| 30 ["Larana Drome"] = { | |
| 31 ["y"] = 0.3669505119323731, | |
| 32 ["x"] = 0.41370689868927, | |
| 33 }, | |
| 34 ["Wind Trader Lathrai"] = { | |
| 35 ["y"] = 0.3077846765518189, | |
| 36 ["x"] = 0.7226132750511169, | |
| 37 }, | |
| 38 ["Eiin"] = { | |
| 39 ["y"] = 0.6892650127410889, | |
| 40 ["x"] = 0.6627683639526367, | |
| 41 }, | |
| 42 ["Bryan Landers"] = { | |
| 43 ["y"] = 0.245055764913559, | |
| 44 ["x"] = 0.3892331123352051, | |
| 45 }, | |
| 46 ["Fyldan"] = { | |
| 47 ["y"] = 0.215785413980484, | |
| 48 ["x"] = 0.4854764640331268, | |
| 49 }, | |
| 50 ["Ulthir"] = { | |
| 51 ["y"] = 0.2445829063653946, | |
| 52 ["x"] = 0.5585364103317261, | |
| 53 }, | |
| 54 } | |
| 55 | |
| 56 local function fix_coords(note) | |
| 57 for name, coord in pairs(RECIPEPROFIT_location_cache) do | |
| 58 if(note.vendor == name) then | |
| 59 note.x = coord.x * 100 | |
| 60 note.y = coord.y * 100 | |
| 61 end | |
| 62 end | |
| 63 end | |
| 64 | |
| 65 --[[ | |
| 66 Overwrites RECIPEPROFIT_alliance and RECIPEPROFIT_horde dbs. | |
| 67 ]] | |
| 68 for _, note in pairs(RECIPEPROFIT_alliance) do | |
| 69 fix_coords(note) | |
| 70 end | |
| 71 | |
| 72 for _, note in pairs(RECIPEPROFIT_horde) do | |
| 73 fix_coords(note) | |
| 74 end |
