WoWInterface SVN mikma

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /DeathNote
    from Rev 458 to Rev 459
    Reverse comparison

Rev 458 → Rev 459

DeathNote.lua
48,11 → 48,20
elseif minievent == "UNIT_DIED" and lastdamage then
local playername = UnitName("player")
if select(2,...) == playername then
print("DeathNote: "..lastdamage.." killed you. Adding in the list.")
local playerexists = false
local playername = UnitName("player")
local zonename = GetZoneText()
local note = "Killed "..playername.." in "..zonename
table.insert(DeathNoteDB[realmName],{lastdamage,note})
for k,v in pairs(DeathNoteDB[realmName]) do
if v[1] == lastdamage then
v[2] = note
playerexists = true
end
end
if not playerexists then
print("DeathNote: "..lastdamage.." killed you. Adding in the list.")
table.insert(DeathNoteDB[realmName],{lastdamage,note})
end
if DeathNoteDB.noteshare and GetNumPartyMembers() > 1 then
SendAddonMessage("DEATHNOTE",lastdamage.."|"..note,"PARTY")
end
62,10 → 71,19
end
 
function f:CHAT_MSG_ADDON(self,prefix,message,channel,name)
local playerexists = false
if DeathNoteDB.notereceive and prefix == "DEATHNOTE" then
print("DeathNote: Received message from "..name)
local name,note = string.split("|",message)
table.insert(DeathNoteDB[realmName],{name,note})
for k,v in pairs(DeathNoteDB[realmName]) do
if v[1] == name then
v[2] = note
playerexists = true
end
end
if not playerexists then
print("DeathNote: Received message from "..name)
table.insert(DeathNoteDB[realmName],{name,note})
end
end
end
 
DeathNote.toc
3,7 → 3,7
## Title: DeathNote
## Notes: Prepares hostile players for their death.
## SavedVariables: DeathNoteDB
## Version: 1.0
## Version: 1.1
 
TooltipSpacerLine.lua
DeathNote.lua
\ No newline at end of file