comparison Degaine.lua @ 41:a478b8a44b9e v1.0beta9

Add QUEST_PROGRESS event
author contrebasse
date Sun, 16 Jan 2011 00:17:23 +0100
parents 2f955a56c2ca
children 3fbe79addc87
comparison
equal deleted inserted replaced
40:3e07cd033f1e 41:a478b8a44b9e
110 return not wasGossipOpened 110 return not wasGossipOpened
111 else 111 else
112 return isGossipClosed 112 return isGossipClosed
113 end 113 end
114 end, 114 end,
115 QUEST_PROGRESS = true,
115 BANKFRAME_OPENED = true, --function() return GossipFrame:IsShown() end, 116 BANKFRAME_OPENED = true, --function() return GossipFrame:IsShown() end,
116 AUCTION_HOUSE_SHOW = true, 117 AUCTION_HOUSE_SHOW = true,
117 } 118 }
118 local events1player = { -- the first arg is "player" 119 local events1player = { -- the first arg is "player"
119 UNIT_SPELLCAST_FAILED = true, 120 UNIT_SPELLCAST_FAILED = true,
250 --------------------------------------------------------------- 251 ---------------------------------------------------------------
251 -- Event/hooks functions 252 -- Event/hooks functions
252 --------------------------------------------------------------- 253 ---------------------------------------------------------------
253 local Degaine_OnEvent = function(self,event, arg1, arg2, _, _, arg5, ...) 254 local Degaine_OnEvent = function(self,event, arg1, arg2, _, _, arg5, ...)
254 --@debug@ 255 --@debug@
255 --if debug then 256 if debug then
256 --DEFAULT_CHAT_FRAME:AddMessage(event) 257 DEFAULT_CHAT_FRAME:AddMessage(event)
257 --if arg1 then DEFAULT_CHAT_FRAME:AddMessage("arg1 = "..arg1) end 258 if arg1 then DEFAULT_CHAT_FRAME:AddMessage("arg1 = "..arg1) end
258 --if arg2 then DEFAULT_CHAT_FRAME:AddMessage("arg2 = "..arg2) end 259 if arg2 then DEFAULT_CHAT_FRAME:AddMessage("arg2 = "..arg2) end
259 --end 260 end
260 --@end-debug@ 261 --@end-debug@
261 262
262 --[[ IsMounted() renvoie toujours false ici, on doit passer par OnUpdate 263 --[[ IsMounted() renvoie toujours false ici, on doit passer par OnUpdate
263 if event=="UNIT_AURA" then 264 if event=="UNIT_AURA" then
264 if arg1=="player" then 265 if arg1=="player" then