Thread Tools Display Modes
06-12-22, 01:57 PM   #1
jlrm365
A Flamescale Wyrmkin
AddOn Author - Click to view addons
Join Date: Oct 2007
Posts: 113
Question make NOT activate?

I have found an addon that does something I like but it functions throughout the game - in open-world and in instances.

It removes auras.

Is there anything I can add around or to the existing addon to make it NOT activate / fire / etc when in any kind of instance (dungeon, raid, pvp, etc)?

The addon author has added "This document may not be reproduced or transmitted in any form, in whole or in part, without the express written permission of" or I'd put an approximation of it here.

Thanks!
  Reply With Quote
06-12-22, 01:59 PM   #2
Kanegasi
A Molten Giant
 
Kanegasi's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2007
Posts: 666
You need to share a link to the addon, or name it so people can search. No one can help you without being able to see the code.
  Reply With Quote
06-12-22, 02:07 PM   #3
jlrm365
A Flamescale Wyrmkin
AddOn Author - Click to view addons
Join Date: Oct 2007
Posts: 113
Originally Posted by Kanegasi View Post
You need to share a link to the addon, or name it so people can search. No one can help you without being able to see the code.
Of course that makes sense.

I'd not encountered the internal request before, so wasn't sure of its scope.

It's a great addon.

CancelAuras
  Reply With Quote
06-12-22, 02:13 PM   #4
Kanegasi
A Molten Giant
 
Kanegasi's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2007
Posts: 666
Open CancelAuras.lua in any text editor.
(You can find this file at World of Warcraft\_retail_\Interface\AddOns\CancelAuras)

Find this part:

Lua Code:
  1. function cancelauras_OnEvent(this, event, ...)
  2.     for i=1, 40 do

Change it to this:

Lua Code:
  1. function cancelauras_OnEvent(this, event, ...)
  2.     if IsInInstance() then return end
  3.     for i=1, 40 do
  Reply With Quote
06-12-22, 02:15 PM   #5
jlrm365
A Flamescale Wyrmkin
AddOn Author - Click to view addons
Join Date: Oct 2007
Posts: 113
Much appreciated.
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » make NOT activate?

Thread Tools
Display Modes

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