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.
|