The Kingdom of Ernor

The Kingdom of Ernor
 
HomeFAQSearchMemberlistUsergroupsRegisterLog in

Share | 
 

 THAT SHIT DON'T WORK

View previous topic View next topic Go down 
AuthorMessage
Issor

avatar

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

PostSubject: THAT SHIT DON'T WORK   Tue 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
View user profile
 
THAT SHIT DON'T WORK
View previous topic View next topic Back to top 
Page 1 of 1
 Similar topics
-
» Take a UFC fighter to work contest.
» It's Your Work of Art Contest *read location restrictions*
» Has Anyone Gotten Chrome Driver to Work with Windows 7?
» How do we run 10 cases out of 100 in TestNG frame work
» Does Keppra work?

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