View Single Post
10-12-12, 09:37 AM   #8
Jarod24
A Theradrim Guardian
AddOn Author - Click to view addons
Join Date: Jul 2012
Posts: 66
Welcome to the fold Steve.
I myself use wowprogramming.com, WoWWiki, WoWInterface, Curseforge and of corse google.

Yes there are limitations of what you can do in the game. For example events can not make the player automatically cast spells etc. These can only be done by actions initiated by the player (keyboard or mouseclick).


If you are simply interested in finding someting that is already created then you should look at my addon called IfThen: http://www.wowinterface.com/download...11-IfThen.html
It has a IDE and fully documented API to write simple IF-statements to react to events ingame, just like you mentioned in your example.

A quick example of the addon's syntax.
Code:
OnEvent("Buff") AND HasBuff("Heroism") OR HasBuff("Time Warp") THEN Print("!!!==Heroism || Time Warp==!!!");
__________________
Author of IfThen, Links in Chat

Last edited by Jarod24 : 10-12-12 at 09:53 AM. Reason: typoos
  Reply With Quote