TheLimnogist Acheivement
How do I find an event that determines whether or not a character is fishing?
I've found the following: if( IsFishingLoot() ) then PlaySound("FISHING REEL IN"); LootFramePortraitOverlay:SetTexture("Interface\\LootFrame\\FishingLoot-Icon"); end Is that the best way? What I'm trying to do is determine if a fish that is caught will be in the Limnologist Achievement. For a test I made a toc file like this: ## Interface: 50001 ## Title: TheLimnologist ## Author: Mike Hoy ## Dependencies: ## OptDeps: ## SavedVariables: TheLimnologist.lua and the lua file: TheLimnologist.lua: if ( IsFishingLoot() ) then print("Test") end I checked into it further and tried to find an event that I can listen for and then run the if statement but I'm not finding anything. Also the "Test" does not show up in the chat window when the loot window comes up after fishing. |
LOOT_OPENED fires when you open a loot window, and LOOT_CLOSED fires when you close it.
See also: http://www.wowpedia.org/Events/Loot#LOOT_CLOSED http://www.wowpedia.org/World_of_War...Loot_Functions |
Quote:
|
All times are GMT -6. The time now is 03:27 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI