Mercurial > wow > wowdb-profiler
comparison Main.lua @ 462:94e59c64a328
Initial Patch 7.0 support. All super obvious errors fixed, but probably many minor ones remain.
author | MMOSimca <MMOSimca@gmail.com> |
---|---|
date | Tue, 01 Dec 2015 19:33:30 -0500 |
parents | 9f1d3224d316 |
children | 1136b1bc88a1 |
comparison
equal
deleted
inserted
replaced
461:0b9c096d84d9 | 462:94e59c64a328 |
---|---|
1020 | 1020 |
1021 if item_string then | 1021 if item_string then |
1022 local item_results = { (":"):split(item_string) } | 1022 local item_results = { (":"):split(item_string) } |
1023 | 1023 |
1024 local suffix_id = tonumber(item_results[8]) or 0 | 1024 local suffix_id = tonumber(item_results[8]) or 0 |
1025 local unique_id = item_results[9] or 0 | 1025 local unique_id = tonumber(item_results[9]) or 0 |
1026 --local level = tonumber(item_results[10]) | 1026 --local level = tonumber(item_results[10]) |
1027 --local specialization_id = tonumber(item_results[11]) | 1027 --local specialization_id = tonumber(item_results[11]) |
1028 --local unknown_upgrade_related_id = tonumber(item_results[12]) | 1028 --local unknown_upgrade_related_id = tonumber(item_results[12]) |
1029 local instance_difficulty_id = tonumber(item_results[13]) or 0 | 1029 local instance_difficulty_id = tonumber(item_results[13]) or 0 |
1030 local num_bonus_ids = tonumber(item_results[14]) or 0 | 1030 local num_bonus_ids = tonumber(item_results[14]) or 0 |
1031 -- upgrade_id is optional since 6.2! can probably be detected using unknown_upgrade_related_id, but it's just as easy to check like this | 1031 -- upgrade_id is optional since 6.2! can probably be detected using unknown_upgrade_related_id, but it's just as easy to check like this |
1032 local upgrade_id = tonumber(item_results[15 + num_bonus_ids]) or 0 | 1032 local upgrade_id = tonumber(item_results[15 + num_bonus_ids]) or 0 |
1033 | |
1034 -- LEGION | |
1035 if private.isLegion then | |
1036 local unkItemField1 = tonumber(item_results[16 + num_bonus_ids]) or 0 | |
1037 local unkItemField2 = tonumber(item_results[17 + num_bonus_ids]) or 0 | |
1038 if unkItemField1 > 0 then Debug("unkItemField1 is non-zero, specifically %d.", unkItemField1) end | |
1039 if unkItemField2 > 0 then Debug("unkItemField2 is non-zero, specifically %d.", unkItemField2) end | |
1040 end | |
1033 | 1041 |
1034 -- If there is anything special (non-zero) for this item then we need to make note of everything | 1042 -- If there is anything special (non-zero) for this item then we need to make note of everything |
1035 if math.max(suffix_id, instance_difficulty_id, num_bonus_ids, upgrade_id) ~= 0 then | 1043 if math.max(suffix_id, instance_difficulty_id, num_bonus_ids, upgrade_id) ~= 0 then |
1036 item = DBEntry("items", item_id) | 1044 item = DBEntry("items", item_id) |
1037 item.suffix_id = suffix_id | 1045 item.suffix_id = suffix_id |
1188 | 1196 |
1189 do | 1197 do |
1190 local COORD_MAX = 5 | 1198 local COORD_MAX = 5 |
1191 | 1199 |
1192 function WDP:UpdateTargetLocation() | 1200 function WDP:UpdateTargetLocation() |
1193 if currently_drunk or not _G.UnitExists("target") or _G.UnitPlayerControlled("target") or (_G.UnitIsTapped("target") and not _G.UnitIsDead("target")) then | 1201 -- LEGION supported here |
1202 if currently_drunk or not _G.UnitExists("target") or _G.UnitPlayerControlled("target") or not _G.UnitIsDead("target") then | |
1194 return | 1203 return |
1195 end | 1204 end |
1196 | 1205 |
1197 for index = 1, 4 do | 1206 for index = 1, 4 do |
1198 if not _G.CheckInteractDistance("target", index) then | 1207 if not _G.CheckInteractDistance("target", index) then |