The Kingdom of Ernor
Would you like to react to this message? Create an account in a few clicks or log in to continue.

The Kingdom of Ernor

The Kingdom of Ernor
 
HomeLatest imagesSearchRegisterLog in

 

 THAT SHIT DON'T WORK

Go down 
AuthorMessage
Issor

Issor


Posts : 12
Join date : 2008-08-10
Age : 31
Location : Maryland

THAT SHIT DON'T WORK Empty
PostSubject: THAT SHIT DON'T WORK   THAT SHIT DON'T WORK Icon_minitimeTue Aug 12, 2008 12:52 am

function LastWhispered:OnEnable()
-- Called when the addon is enabled
self:RegisterEvent("CHAT_MSG_WHISPER")
end

function LastWhispered:CHAT_MSG_WHISPER()
self:Print("test")
-- i'm assuming arg2 is name of the last guy who whispered you
if (self.db.profile.whisper1=="") then
self.db.profile.whisper1 = arg2
self:Print(arg2)
-- if whisper1 is nothing then set it to last guy who whispered me; end if statement (and thus the function)
elseif (self.db.profile.whisper2=="") then
self.db.profile.whisper2 = arg2
self:Print(arg2)
-- if whisper1 is set but whisper2 is not then set it to last guy who whispered me; end if statement (and thus the function)
elseif (self.db.profile.whisper3=="") then
self.db.profile.whisper3 = arg2
self:Print(arg2)
elseif (self.db.profile.whisper1~=arg2) then
self.db.profile.whisper1 = arg2
self:Print(arg2)
elseif (self.db.profile.whisper2~=arg2) then
self.db.profile.whisper2 = arg2
self:Print(arg2)
elseif (self.db.profile.whisper3~=arg2) then
self.db.profile.whisper3=arg2
self:Print(arg2)
end
end
Back to top Go down
 
THAT SHIT DON'T WORK
Back to top 
Page 1 of 1
 Similar topics
-
» Forks for noobs! (Beginner shit)

Permissions in this forum:You cannot reply to topics in this forum
The Kingdom of Ernor :: More interesting things than gaming :: Technical-
Jump to: