self.PLAYER_ENTERING_WORLD = nil |
end |
|
local maxmessages = 30 |
|
local function clearmessages() |
local screenheight = floor(UIParent:GetHeight()/75)+1 |
for tablenumber=1,3 do |
for idx=screenheight,#PssstDB[tablenumber] do |
table.remove(PssstDB[tablenumber],idx) |
end |
end |
end |
|
function Pssst:CHAT_MSG_WHISPER(self,arg1,arg2) |
if PssstDB.afk then Pssst.DO.text = "New Message!" end |
local screenheight = floor(UIParent:GetHeight()/75)+1 |
table.insert(PssstDB[1],1,{date("%X"),Rot13(arg2),Rot13(arg1),"From"}) |
if #PssstDB[1] == 11 then table.remove(PssstDB[1],11) end |
clearmessages() |
end |
|
function Pssst:CHAT_MSG_WHISPER_INFORM(self,arg1,arg2) |
local screenheight = floor(UIParent:GetHeight()/75)+1 |
table.insert(PssstDB[1],1,{date("%X"),Rot13(arg2),Rot13(arg1),"To"}) |
if #PssstDB[1] == 11 then table.remove(PssstDB[1],11) end |
clearmessages() |
end |
|
function Pssst:CHAT_MSG_GUILD(self,arg1,arg2) |
local screenheight = floor(UIParent:GetHeight()/75)+1 |
table.insert(PssstDB[3],1,{date("%X"),Rot13(arg2),Rot13(arg1)}) |
if #PssstDB[3] == 11 then table.remove(PssstDB[3],11) end |
clearmessages() |
end |
|
function Pssst:CHAT_MSG_PARTY(self,arg1,arg2) |
local screenheight = floor(UIParent:GetHeight()/75)+1 |
table.insert(PssstDB[2],1,{date("%X"),Rot13(arg2),Rot13(arg1)}) |
if #PssstDB[2] == 11 then table.remove(PssstDB[2],11) end |
clearmessages() |
end |