Thread Tools Display Modes
08-10-06, 09:43 AM   #1
oreth
A Murloc Raider
Join Date: Mar 2006
Posts: 6
Search Static Array for Match

Ok.. I've been working on and off on a script.

I've gotten to a place where the script is working as intended, but not optimally.

I need to know how to create an array and then search it for a string that matches an input string.

That is... my srcript pops up a button when a buff runs out on you and you have it in your spell book.

This is all fine and dandy when Demon Armor is lost or Shadow Ward... but what about Corruption?

I don't neccessarily want to cast Corruption if it was cast on me.

So, how do I go about doing this?
  Reply With Quote
08-10-06, 11:44 AM   #2
oreth
A Murloc Raider
Join Date: Mar 2006
Posts: 6
Ok.. nevermind.. figured it out.

However.. is there an event that procs when a chest is opened?
  Reply With Quote
08-11-06, 10:46 AM   #3
Esamynn
Featured Artist
Premium Member
Featured
Join Date: Jan 2005
Posts: 395
There is a combat log message that is displayed when you open something, but in the current PTR build it has vanished.

The event is CHAT_MSG_SPELL_SELF_BUFF
The message is supposed to be long the lines of "You perform Opening on %s.", but on the Live servers it is currently "You perform Opening on - No Text %s.".
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Search Static Array for Match


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