Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local MSG_PVP_LOG_DATA = 0x2E0
- function Player:PvPLogData()
- local score_records = 2
- local data = CreatePacket(MSG_PVP_LOG_DATA, 1 + 1 + 4 + 40*score_records)
- data:WriteUByte(1) -- arena = 1, bg = 0
- --- this is for arena
- -- team 1
- data:WriteULong(0) -- ratingLost
- data:WriteULong(0) -- ratingWon
- data:WriteULong(0) -- MatchmakerRating
- -- team 2
- data:WriteULong(0) -- ratingLost
- data:WriteULong(0) -- ratingWon
- data:WriteULong(0) -- MatchmakerRating
- data:WriteString("Test1") -- team name 1
- data:WriteString("Test2") -- team name 2
- ---
- data:WriteUByte(1) -- ended = 1, else = 0
- data:WriteUByte(1) -- winner ID
- data:WriteULong(score_records) -- scoressize
- --- this is for arena
- -- player 1
- data:WriteGUID(self:GetGUID()) -- player guid
- data:WriteULong(1) -- KillingBlows
- data:WriteUByte(0) -- teamId
- data:WriteULong(2) -- DamageDone
- data:WriteULong(3) -- HealingDone
- data:WriteULong(0) -- objectives count
- -- player 2
- data:WriteGUID(self:GetGUID()) -- player guid
- data:WriteULong(1) -- KillingBlows
- data:WriteUByte(1) -- teamId
- data:WriteULong(2) -- DamageDone
- data:WriteULong(3) -- HealingDone
- data:WriteULong(0) -- objectives count
- ---
- -- Template for BG player row
- -- data:WriteGUID(self:GetGUID()) -- player guid
- -- data:WriteULong(1) -- KillingBlows
- -- data:WriteULong(1) -- HonorableKills
- -- data:WriteULong(2) -- Deaths
- -- data:WriteULong(3) -- BonusHonor
- -- data:WriteULong(3) -- DamageDone
- -- data:WriteULong(3) -- HealingDone
- -- data:WriteULong(0) -- objectives count
- self:SendPacket(data)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement