WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Lua/XML Help (https://www.wowinterface.com/forums/forumdisplay.php?f=16)
-   -   TheLimnogist Acheivement (https://www.wowinterface.com/forums/showthread.php?t=44329)

diocode 09-12-12 06:36 PM

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.

Phanx 09-12-12 06:38 PM

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

diocode 09-12-12 10:40 PM

Quote:

Originally Posted by Phanx (Post 263734)
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

Thanks for the help.


All times are GMT -6. The time now is 03:27 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI