Mercurial > wow > wowdb-profiler
comparison Main.lua @ 88:5da0e8da22de
Detect and record Flight Master NPCs.
| author | James D. Callahan III <jcallahan@curse.com> |
|---|---|
| date | Mon, 27 Aug 2012 14:37:17 -0500 |
| parents | 2ab6c802b485 |
| children | 09b6773252ad |
comparison
equal
deleted
inserted
replaced
| 87:2ab6c802b485 | 88:5da0e8da22de |
|---|---|
| 61 PET_BAR_UPDATE = true, | 61 PET_BAR_UPDATE = true, |
| 62 PLAYER_TARGET_CHANGED = true, | 62 PLAYER_TARGET_CHANGED = true, |
| 63 QUEST_COMPLETE = true, | 63 QUEST_COMPLETE = true, |
| 64 QUEST_DETAIL = true, | 64 QUEST_DETAIL = true, |
| 65 QUEST_LOG_UPDATE = true, | 65 QUEST_LOG_UPDATE = true, |
| 66 TAXIMAP_OPENED = true, | |
| 66 TRAINER_SHOW = true, | 67 TRAINER_SHOW = true, |
| 67 UNIT_QUEST_LOG_CHANGED = true, | 68 UNIT_QUEST_LOG_CHANGED = true, |
| 68 UNIT_SPELLCAST_FAILED = "HandleSpellFailure", | 69 UNIT_SPELLCAST_FAILED = "HandleSpellFailure", |
| 69 UNIT_SPELLCAST_FAILED_QUIET = "HandleSpellFailure", | 70 UNIT_SPELLCAST_FAILED_QUIET = "HandleSpellFailure", |
| 70 UNIT_SPELLCAST_INTERRUPTED = "HandleSpellFailure", | 71 UNIT_SPELLCAST_INTERRUPTED = "HandleSpellFailure", |
| 1290 end | 1291 end |
| 1291 self:RegisterEvent("QUEST_LOG_UPDATE") | 1292 self:RegisterEvent("QUEST_LOG_UPDATE") |
| 1292 end | 1293 end |
| 1293 | 1294 |
| 1294 | 1295 |
| 1296 function WDP:TAXIMAP_OPENED(event_name) | |
| 1297 local unit_type, unit_idnum = ParseGUID(_G.UnitGUID("target")) | |
| 1298 local npc = NPCEntry(unit_idnum) | |
| 1299 | |
| 1300 if not npc then | |
| 1301 return | |
| 1302 end | |
| 1303 npc.flight_master = true | |
| 1304 end | |
| 1305 | |
| 1306 | |
| 1295 function WDP:TRAINER_SHOW() | 1307 function WDP:TRAINER_SHOW() |
| 1296 local unit_type, unit_idnum = ParseGUID(_G.UnitGUID("target")) | 1308 local unit_type, unit_idnum = ParseGUID(_G.UnitGUID("target")) |
| 1297 local npc = NPCEntry(unit_idnum) | 1309 local npc = NPCEntry(unit_idnum) |
| 1298 | 1310 |
| 1299 if not npc then | 1311 if not npc then |
