Jump to content

Wow Event Handler


Narache

Recommended Posts

Hello, is there any interface to register to Wow event via  

FrameScript_SignalEventHandler  

Im planning to do a "quest recorder" bot base and so I will need to register to some events (Quest accepted, completed ect ect...)

It is possible to implement and can be very usefull (even for plugins, fight classes ect...) depending on how your IPC work, i hope it can be feasable!

Link to comment
Share on other sites

Hello, wait next update and use code like:

           EventsLuaWithArgs.OnEventsLuaWithArgs += delegate(LuaEventsId id, List<string> args)
           {
               if (id == LuaEventsId.QUEST_ACCEPTED && args.Count == 2) // http://wow.gamepedia.com/Events/Q#QUEST_ACCEPTED
               {
                   var title = Lua.LuaDoString<string>("local title = GetQuestLogTitle(" + args[0] + "); return title;");
                   Logging.WriteDebug("Quest accepted: '" + title + "' (id=" + args[1] + ")");
               }
               else if (id == LuaEventsId.QUEST_REMOVED && args.Count == 1) // http://wow.gamepedia.com/Events/Q#QUEST_REMOVED
               {
                   Logging.WriteDebug("Quest removed: id=" + args[0]);
               }
               // ...
           };

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...