Thread Tools Display Modes
06-01-13, 07:16 AM   #1
Voragaz
A Murloc Raider
Join Date: Nov 2012
Posts: 5
protected functions/secure actionbuttonhandler

Hi!

A while back blizzard made some changes to protected functions, seemingly making the old joinbattlefield() and joinarena() functions unuseable.

My question is if anyone know of a way to work around these limitations, preferably in xml? I'm trying to make a simple addon for auto-queueing random battlegrounds and arenas with the click of an xml-button (i.e <OnClick>functionx;</OnClick> which will point to a lua function holding the queueing macros/commands).

Thanks much in advance!
  Reply With Quote
06-01-13, 12:18 PM   #2
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,327
It depends on how protected the functions are, whether they're just restricted to hardware events or require secure code. I haven't tested these functions as I don't play PvP. I would suggest writing the code out to work off the OnClick handler in case it's just restricted to hardware events. If it doesn't work, I'm afraid it cannot be done as none of the queuing functions are linked to a slash command or applicable SecureActionButton command. As a last ditch effort, you might just have to try using the /click slash command on the button used to join either queue.
__________________
WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)
  Reply With Quote
06-01-13, 09:23 PM   #3
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
I believe the battleground queue/join functions are now completely protected, and cannot be called by addons at all. At the very least, they require a hardware event.

Blizzard made these changes some time back for the express purpose of preventing auto-queueing, so you're unlikely to find a workaround. Even if you do, the moment Blizzard finds out about it they will break it, possibly to the detriment of other addons that aren't doing things Blizzard doesn't want them doing, so you should probably just not try.
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote
06-02-13, 01:08 AM   #4
Resike
A Pyroguard Emberseer
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 1,290
Because the number of bots in battlegrounds is too damn high.

Anyway i think i could make a workaround, but rather not share it.
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » protected functions/secure actionbuttonhandler


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