Played Killed Target Event?
I've looked through the wiki and other sites, I can't seem to find an event that fires when the player kills its target.
Is there one? If not, what would be an alternative? |
http://www.wowwiki.com/API_COMBAT_LO...ecial_Events_2
I cant remember if it includes you even if not in a party, but it definately wont work on other players in a raid, only party members |
Quote:
|
I'm sorry for the double post and the late reply - only just got to testing this. This doesn't appear to work. I'm new with events and don't fully understand how they're used in WoWLUA.
Here's my code - Foo.lua Code:
if event == "PARTY_KILL" then Code:
SLASH_HUNT1 = "/hunt" Code:
<Frame name="Foo_Frame"> Code:
## Interface: |
Foo.lua
Code:
function Foo_OnLoad(self) Code:
<Frame name="Foo_Frame"> Code:
## Interface: |
Don't forget to actually check that you're the one killing (source guid/name)
|
Is this contained in a function, or is it really in the file body?
Code:
if event == "PARTY_KILL" then |
If you're gonna use XML you should start and end the file with
Code:
<Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/ SendChatMessage() which will actually send a message to the server for everyone to see to print() or DEFAULT_CHAT_FRAME:AddMessage() or ChatFrame1:AddMessage() which only you will be able to see. |
|
All times are GMT -6. The time now is 02:01 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI