killermonkey99@47: --[[--))--))--))--))--))--))--))--))--))--))--))--))--))--))--))--))--))--))--)) killermonkey99@47: killermonkey99@47: RecipeProfit by -[@project-author@]- killermonkey99@47: killermonkey99@47: Rev: @project-revision@ killermonkey99@47: Updated: @file-date-iso@ killermonkey99@47: killermonkey99@47: --))--))--))--))--))--))--))--))--))--))--))--))--))--))--))--))--))--))--))--)) killermonkey99@47: killermonkey99@47: URL: killermonkey99@47: http://www.wrathguides.com/ killermonkey99@47: killermonkey99@47: License: killermonkey99@47: This file is a part of "RecipeProfit for GatherMate." killermonkey99@47: killermonkey99@47: This program is free software; you can redistribute it and/or killermonkey99@47: modify it under the terms of the GNU General Public License killermonkey99@47: as published by the Free Software Foundation, either version 3 killermonkey99@47: of the License, or (at your option) any later version. killermonkey99@47: killermonkey99@47: This program is distributed in the hope that it will be useful, killermonkey99@47: but WITHOUT ANY WARRANTY; without even the implied warranty of killermonkey99@47: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the killermonkey99@47: GNU General Public License for more details. killermonkey99@47: killermonkey99@47: You should have received a copy of the GNU General Public License killermonkey99@47: along with Foobar. If not, see . killermonkey99@47: killermonkey99@47: Note: killermonkey99@47: This program's source code is specifically designed to work with killermonkey99@47: World of Warcraft's interpreted AddOn system. killermonkey99@47: killermonkey99@47: You have an implicit license to use this program with these facilities killermonkey99@47: since that is it's designated purpose as per: killermonkey99@47: http://www.fsf.org/licensing/licenses/gpl-faq.html#InterpreterIncompat killermonkey99@47: killermonkey99@47: --]]--))--))--))--))--))--))--))--))--))--))--))--))--))--))--))--))--))--))--)) killermonkey99@47: killermonkey99@47: killermonkey99@47: RECIPEPROFIT_location_cache = { killermonkey99@47: killermonkey99@47: } killermonkey99@47: killermonkey99@47: --[[ killermonkey99@47: Replaces the X and Y coordinates in the coordinate cached database. killermonkey99@47: ]--] killermonkey99@47: local function fix_coords(note, cdb) killermonkey99@47: for name, coord in pairs(cdb) do killermonkey99@47: if(note.vendor == name) then killermonkey99@47: note.x = coord.x * 100 killermonkey99@47: note.y = coord.y * 100 killermonkey99@47: end killermonkey99@47: end killermonkey99@47: end killermonkey99@47: killermonkey99@47: --[--[ killermonkey99@47: Overwrites RECIPEPROFIT_alliance and RECIPEPROFIT_horde dbs. killermonkey99@47: ]--] killermonkey99@47: do killermonkey99@47: for _, note in pairs(RECIPEPROFIT_alliance) do killermonkey99@47: fix_coords(note, RECIPEPROFIT_location_cache) killermonkey99@47: end killermonkey99@47: killermonkey99@47: for _, note in pairs(RECIPEPROFIT_horde) do killermonkey99@47: fix_coords(note, RECIPEPROFIT_location_cache) killermonkey99@47: end killermonkey99@47: end killermonkey99@47: ]]