WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Lua/XML Help (https://www.wowinterface.com/forums/forumdisplay.php?f=16)
-   -   Detecting in Game Text (SCT) (https://www.wowinterface.com/forums/showthread.php?t=42665)

jabjab 02-20-12 07:44 PM

Detecting in Game Text (SCT)
 
Hello,

I have been writing some scripts for some games, I am trying to find a method of detecting text in game. The text I am looking for is scrolling combat text.

I was wondering if it was possible?

Thankyou.

Seerah 02-20-12 11:06 PM

Your post is very vague, but... Anything that appears in the scrolling combat text is also in the combat log. So, the information can be gathered by listening to the appropriate event/filters.

zork 02-22-12 06:39 AM

There are two options.

Listen to the chat event and take the string to do stuff accordingly.
http://code.google.com/p/rothui/sour...ote/rEmote.lua

Second option is using hookSecureFunc on CombatText_AddMessage and making it call another function.
lua Code:
  1. hooksecurefunc("CombatText_AddMessage", myFunc)

myFunc will have all the CombatText_AddMessage parameters.

http://wowprogramming.com/docs/api/hooksecurefunc


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

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