Thread Tools Display Modes
01-07-07, 05:59 AM   #1
tatsudoshi
A Deviate Faerie Dragon
 
tatsudoshi's Avatar
Join Date: Jan 2007
Posts: 15
Question Newbie: Get XP recieved on kill?

Hi it's the newbie again

Which API function can tell me how much XP the players gets on a kill?

Many thanks for the help
  Reply With Quote
01-07-07, 09:54 AM   #2
shouryuu
A Chromatic Dragonspawn
 
shouryuu's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2005
Posts: 150
When you kill a mob that gives you XP, the following event is triggered (http://www.wowwiki.com/Events/Player)

CHAT_MSG_COMBAT_XP_GAIN

The argument is the chat message you receive: " You gain XXXX experience", so all you have to do is parse the XXXX out.
  Reply With Quote
01-07-07, 10:02 AM   #3
tatsudoshi
A Deviate Faerie Dragon
 
tatsudoshi's Avatar
Join Date: Jan 2007
Posts: 15
Ah okay.

I thourght there was a function or something.

Thanks for the help dude
  Reply With Quote
01-07-07, 12:45 PM   #4
tatsudoshi
A Deviate Faerie Dragon
 
tatsudoshi's Avatar
Join Date: Jan 2007
Posts: 15
Nm, figured it out

Last edited by tatsudoshi : 01-07-07 at 01:03 PM.
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » Newbie: Get XP recieved on kill?

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off