Wowpedia
Advertisement

API functions in this category are protected. There are different measures of protection:

Note: *** ForceTaint_Strong *** means it was called from a /run script, and is replaced by the addon name if applicable.

PROTECTED

  • API functions which cannot be called by insecure code. These are only available to Blizzard code.
Error: AddOn *** ForceTaint_Strong *** attempted to call a forbidden function (JumpOrAscendStart()) from a tainted execution path.
This does not work:
/run JumpOrAscendStart()


NOCOMBAT

  • API functions which cannot be called in combat by insecure code.
Note: AddOn *** ForceTaint_Strong *** attempted to call a protected function (CreateMacro()) during combat lockdown.
This does not work while in combat:
/run CreateMacro("test", 136243)


HW

  • API functions which require a hardware event (e.g. the user clicking a button).
Warning: AddOn *** ForceTaint_Strong *** attempted to call a protected function (SetCurrentTitle()) which may require interaction.
This does not work:
/run C_Timer.After(0, function() SetCurrentTitle(47) end)

NOSCRIPT

  • API functions which cannot be called directly from a macro or /run script.
Warning: AddOn *** ForceTaint_Strong *** attempted to call a protected function (PlaceBid()) which may require interaction.
This does not work, and also bricks the AH in the process:
/run C_AuctionHouse.SearchForFavorites({})
Putting it inside a function in an addon and then calling it manually works:
function Example() -- /run Example()
	C_AuctionHouse.SearchForFavorites({})
end

Pages in category "API functions/Protected"

The following 158 pages are in this category, out of 158 total.

A

Advertisement