comparison core.lua @ 29:34e70bd042b1 v1.06

More compatible with GatherMate_Sharing
author Aaron@Aaron-PC
date Mon, 23 Aug 2010 18:12:53 -0500
parents da9bbf7b08c7
children 0ea3ff6465de
comparison
equal deleted inserted replaced
28:da9bbf7b08c7 29:34e70bd042b1
292 292
293 return note.item.." - ("..note.vendor.." ".. factionTag ..")"; 293 return note.item.." - ("..note.vendor.." ".. factionTag ..")";
294 end 294 end
295 295
296 function add_note(x, y, note) 296 function add_note(x, y, note)
297 GatherMate:AddNode(note.map, x / 100, y / 100, "RecipeProfit", get_note_title(note)); 297 local coords = GatherMate:getID(x / 100, y / 100)
298 local zoneID = GatherMate.zoneData[note.map][3]
299 local nodeID = GatherMate.nodeIDs["RecipeProfit"][get_note_title(note, factionTag)]
300 print(coords, zoneID, nodeID)
301 GatherMate:InjectNode(zoneID, coords, "RecipeProfit", nodeID);
298 end 302 end
299 303
300 function get_faction_db() 304 function get_faction_db()
301 local factionAlliance = db.profile.faction == "Alliance" or 305 local factionAlliance = db.profile.faction == "Alliance" or
302 db.profile.faction == "default" and UnitFactionGroup("player") == "Alliance"; 306 db.profile.faction == "default" and UnitFactionGroup("player") == "Alliance";