WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   AddOn Help/Support (https://www.wowinterface.com/forums/forumdisplay.php?f=3)
-   -   make NOT activate? (https://www.wowinterface.com/forums/showthread.php?t=59148)

jlrm365 06-12-22 01:57 PM

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!

Kanegasi 06-12-22 01:59 PM

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.

jlrm365 06-12-22 02:07 PM

Quote:

Originally Posted by Kanegasi (Post 340700)
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

Kanegasi 06-12-22 02:13 PM

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

jlrm365 06-12-22 02:15 PM

Much appreciated.


All times are GMT -6. The time now is 11:38 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI