Thread Tools Display Modes
02-20-12, 07:44 PM   #1
jabjab
A Kobold Labourer
Join Date: Feb 2012
Posts: 1
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.
  Reply With Quote
02-20-12, 11:06 PM   #2
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
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.
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote
02-22-12, 06:39 AM   #3
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 1,740
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
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Detecting in Game Text (SCT)


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