comparison AskMrRobot-Serializer/AskMrRobot-Serializer.lua @ 65:e638168c3395 v25

fixed some other 6.2 bugs, added italian translation
author yellowfive
date Fri, 26 Jun 2015 10:42:36 -0700
parents f1d5827dbde0
children 932885bb1a6f
comparison
equal deleted inserted replaced
64:ce1746d16d67 65:e638168c3395
1 -- AskMrRobot-Serializer will serialize and communicate character data between users. 1 -- AskMrRobot-Serializer will serialize and communicate character data between users.
2 -- This is used primarily to associate character information to logs uploaded to askmrrobot.com. 2 -- This is used primarily to associate character information to logs uploaded to askmrrobot.com.
3 3
4 local MAJOR, MINOR = "AskMrRobot-Serializer", 24 4 local MAJOR, MINOR = "AskMrRobot-Serializer", 25
5 local Amr, oldminor = LibStub:NewLibrary(MAJOR, MINOR) 5 local Amr, oldminor = LibStub:NewLibrary(MAJOR, MINOR)
6 6
7 if not Amr then return end -- already loaded by something else 7 if not Amr then return end -- already loaded by something else
8 8
9 -- event and comm used for player snapshotting on entering combat 9 -- event and comm used for player snapshotting on entering combat
594 item.enchantId = tonumber(parts[2]) 594 item.enchantId = tonumber(parts[2])
595 item.gemIds = { tonumber(parts[3]), tonumber(parts[4]), tonumber(parts[5]), tonumber(parts[6]) } 595 item.gemIds = { tonumber(parts[3]), tonumber(parts[4]), tonumber(parts[5]), tonumber(parts[6]) }
596 item.suffixId = math.abs(tonumber(parts[7])) -- convert suffix to positive number, that's what we use in our code 596 item.suffixId = math.abs(tonumber(parts[7])) -- convert suffix to positive number, that's what we use in our code
597 --item.uniqueId = tonumber(parts[8]) 597 --item.uniqueId = tonumber(parts[8])
598 --item.level = tonumber(parts[9]) 598 --item.level = tonumber(parts[9])
599 -- part 10 is unknown atm
599 item.upgradeId = tonumber(parts[11]) 600 item.upgradeId = tonumber(parts[11])
600 --item.difficultyId = tonumber(parts[12]) 601 --item.difficultyId = tonumber(parts[12])
601 602
602 local numBonuses = tonumber(parts[13]) 603 local numBonuses = tonumber(parts[13])
603 if numBonuses and numBonuses > 0 then 604 if numBonuses and numBonuses > 0 then