Download
(47 Kb)
Download
Updated: 03/06/18 08:03 PM
Compatibility:
Morrowind (3.0)
Updated:03/06/18 08:03 PM
Created:06/09/16 12:38 AM
Monthly downloads:89
Total downloads:17,564
Favorites:52
MD5:
Innocent Blade of Woe (and Vampire Feed)  Popular! (More than 5000 hits)
Version: 1.24
by: dorrino [More]
Version 1.2. Major revision. (thanks Coolio_Wolfus for the feedback!) Now if you have "Prevent Attacking Innocents" on and still managed to get in a fight with one, you will be able to fight back without manually turning "Prevent Attacking Innocents" off.

In order to be able to hit an innocent while having "Prevent Attacking Innocents" on you'll need:

1. You both need to be in combat.
2. You can not be crouching.
3. You need to directly target him with your reticle.

Please report any problems.


Description

A very simple addon that turns off "Prevent Attacking Innocents" if you have "Blade of Woe" or "Vampire Feed" synergy popup on your screen and turns if back on otherwise.

If you have "Prevent Attacking Innocents" manually turned off the addon has no effect.

The options to disable addon separately for "Blade of Wow" and "Vampire Feed" are provided. If both are off - the addon is disabled.

The reason why i created this addon was that i prefer to play with "Prevent Attacking Innocents" on to avoid randomly hitting something in the middle of a city and turning it on and off just for Blade of Woe (or using a keybind) felt like too much hustle.


Enjoy!

Notes:
  • The addon allows to attack innocents using ANY kind of ability, not just Blade of Woe/Vampire Feed, while the popup is on the screen.

  • Vampire Feed has been added, but NOT tested. Please report any problems with it.

If you like this addon, please check out my other addons Zone Name Alert and Poison Tracker. Thank you!
1.24 - added compatibility fix for Lui

1.23 - api bump for Morrowind patch

1.21 - API bump and LibAddonMenu update.

1.2
Major revision. Added retaliation against innocents:)

1.11
Slight rewrite of the code. Using synergy event instead of prehook to avoid any possible conflicts.

1.1
Added Vampire Feed. Reworked options.

1.01
Now this addon will work with ESO clients in any language.
Archived Files (7)
File Name
Version
Size
Uploader
Date
1.23
47kB
dorrino
05/22/17 10:47 AM
1.21
41kB
dorrino
08/02/16 01:03 AM
1.2
37kB
dorrino
06/15/16 12:42 AM
1.11
36kB
dorrino
06/09/16 05:05 PM
1.1
36kB
dorrino
06/09/16 01:33 PM
1.01
36kB
dorrino
06/09/16 09:24 AM
1.0
36kB
dorrino
06/09/16 12:38 AM


Post A Reply Comment Options
Unread 03/09/23, 03:28 PM  
ckr

Forum posts: 0
File comments: 18
Uploads: 0
Now causing issues with other addons

I really do love this addon, but I just noticed that when it's active, and I'm in the Settings/Addons selection and I try and click on ANY of the buttons to change what an Addon does, innocent blade of woe throws an error and blocks the change from happening. So I had to go and disable IBOW so I could make changes to other addons. This is the first time I've ever seen it do this.
Report comment to moderator  
Reply With Quote
Unread 03/03/23, 05:03 PM  
Kenza
AddOn Author - Click to view AddOns

Forum posts: 31
File comments: 175
Uploads: 1
Note to future self, or anyone else wanting to use this... Out of date LibStub needs to be removed.

Delete lib folders, they're not needed.

In the .txt change:
## DependsOn: LibAddonMenu-2.0


In the .lua change:

local LAM = LibStub("LibAddonMenu-2.0")

to

local LAM2 = LibAddonMenu2

Fixed and safe to use now!
Thank you for the wonderful addon~
Report comment to moderator  
Reply With Quote
Unread 10/18/21, 07:54 PM  
BrendanatorX

Forum posts: 0
File comments: 5
Uploads: 0
Exclamation Libs folder may break other mods

I'm not sure exactly how this works or if I have the right information here but assuming the Libs folder just contains the libs addons and not anything specific to this mod, it would be great if you could remove those libs folders as they are separately downloadable here and I've just discovered that they cause other mods which require the up to date version of those mods to not work as there is duplicate libs and wrong file locations.
Last edited by BrendanatorX : 10/18/21 at 07:57 PM.
Report comment to moderator  
Reply With Quote
Unread 06/14/21, 05:03 PM  
NeuroticPixels
Addon Addict
 
NeuroticPixels's Avatar
Premium Member

Forum posts: 210
File comments: 864
Uploads: 0
I've had a weird experience with this addon lately. Perhaps since the new chapter released.
I've had to go into the settings and toggle off & on "innocent blade of woe" for the addon to work as intended.
Before I did that, whenever I tried to use the blade of woe, I would still get the error message that I had "prevent attacking innocents" turned on. And then I'd have to use the keybind to turn it off so i could use the blade of woe. lol. It was very irritating.
But after I've reset the addon's settings by toggling them off and back on, I don't seem to be having that issue anymore.
Maybe some kind of extra check needs to be added to the addon now? IDK.

Edit: Just FYI, I don't use LUI Extended or whatever addon people were talking about in the comments before.
Last edited by NeuroticPixels : 06/14/21 at 05:05 PM.
Report comment to moderator  
Reply With Quote
Unread 05/26/20, 02:17 PM  
HowellQagan
 
HowellQagan's Avatar

Forum posts: 11
File comments: 437
Uploads: 0
Check out Vampire's Woe addon, not sure if I understand your request but it might be useful for you. (I use both of these addons)
Originally Posted by Zinival
This works perfectly. Thank you for sharing.

Would you please consider adding a slash command for toggling the vampire feed option? That way we could easily type in something like /feed instead of having to go into addon settings when we want to feed. If you don't have time or don't want to do it, feel free to ignore the request. It's a very minor inconvenience, and this addon makes the whole process so much more convenient already. Thanks again! <3
Report comment to moderator  
Reply With Quote
Unread 05/09/20, 05:53 AM  
Zinival
AddOn Author - Click to view AddOns

Forum posts: 4
File comments: 53
Uploads: 4
This works perfectly. Thank you for sharing.

Would you please consider adding a slash command for toggling the vampire feed option? That way we could easily type in something like /feed instead of having to go into addon settings when we want to feed. If you don't have time or don't want to do it, feel free to ignore the request. It's a very minor inconvenience, and this addon makes the whole process so much more convenient already. Thanks again! <3
Report comment to moderator  
Reply With Quote
Unread 04/20/20, 03:45 PM  
HowellQagan
 
HowellQagan's Avatar

Forum posts: 11
File comments: 437
Uploads: 0
PTS patchnotes:

The “Prevent Attacking Innocents” option no longer prevents you from fighting back against NPCs who attack after witnessing a crime.
Who wants to bet it's gonna break this addon?
Report comment to moderator  
Reply With Quote
Unread 03/07/18, 08:01 PM  
dorrino
AddOn Author - Click to view AddOns

Forum posts: 50
File comments: 203
Uploads: 10
Originally Posted by ArtOfShred
Originally Posted by dorrino
I've updated the addon, but you should think about a workaround, just in case. Somebody else might rely on filenames as a quite unique identifier here.

I tested only Blade of Woe and only in english client. Knowing zos some ability names might be different from the synergy name for whatever reason. Filename is more reliable.

ps. Sorry for being a bit harsh on you with my remark there, but errors like this are almost impossible to detect on my end. People reported the addon didn't work for them, while it worked perfectly for me
No worries, no offense taken there - heavy-handed coding decisions that potentially impact other addon authors are fairly subject to negative criticism!

I just got off work and after taking a look, it appears I can hook: ZO_Synergy:OnSynergyAbilityChanged() and that has the same effect without breaking the previous version of your addon. You can revert the update if you want. I hooked the other function a long time ago and missed that there was a better way to do it.
That would be the best solution Cheers!
Report comment to moderator  
Reply With Quote
Unread 03/06/18, 09:01 PM  
ArtOfShred
 
ArtOfShred's Avatar
AddOn Author - Click to view AddOns

Forum posts: 103
File comments: 792
Uploads: 2
Originally Posted by dorrino
I've updated the addon, but you should think about a workaround, just in case. Somebody else might rely on filenames as a quite unique identifier here.

I tested only Blade of Woe and only in english client. Knowing zos some ability names might be different from the synergy name for whatever reason. Filename is more reliable.

ps. Sorry for being a bit harsh on you with my remark there, but errors like this are almost impossible to detect on my end. People reported the addon didn't work for them, while it worked perfectly for me
No worries, no offense taken there - heavy-handed coding decisions that potentially impact other addon authors are fairly subject to negative criticism!

I just got off work and after taking a look, it appears I can hook: ZO_Synergy:OnSynergyAbilityChanged() and that has the same effect without breaking the previous version of your addon. You can revert the update if you want. I hooked the other function a long time ago and missed that there was a better way to do it.
Last edited by ArtOfShred : 03/06/18 at 09:20 PM.
Report comment to moderator  
Reply With Quote
Unread 03/06/18, 08:04 PM  
dorrino
AddOn Author - Click to view AddOns

Forum posts: 50
File comments: 203
Uploads: 10
Originally Posted by ArtOfShred
Originally Posted by dorrino
They prehooked the function that returns synergy filenames and changed the names according to their needs?

Quality coding.

Thank you for figuring this out
Changes icon files only - I didn't really anticipate comparison by icon but when I added this I also forgot theres no id's for synergies. Doh.
The idea is to have support to add unique icons for Synergy abilities (and I changed Blade of Woe because it always bothered me that the icon didn't match up with passive icon).
I don't suppose I could convince you to compare using name instead with GetAbilityName(78219) for Blade of WoE and GetAbilityName(33152) for Feed? Or if you wouldn't mind just plugging in the additional icon conditional?

If not I'll figure something out to fix it.

Originally Posted by ZoLatKam
Now, when can those users of the mod that aren't comfortable with directly editing .lua code expect an update?
It's not dorrino's responsibility to fix this. If he wants to make a small change for me that would be great but its my issue to resolve ultimately. I'm sorry this caused an issue for you guys using both addons. Was my oversight and heavyhandedness with what I'm doing in LUI.
Yep, no ids, so it's either the filename or the name via GetAbilityName. Both are contingent on ZOS not messing with either, so technically there shouldn't be a problem to change my code to add the comparison by ability names.

I've updated the addon, but you should think about a workaround, just in case. Somebody else might rely on filenames as a quite unique identifier here.

I tested only Blade of Woe and only in english client. Knowing zos some ability names might be different from the synergy name for whatever reason. Filename is more reliable.

ps. Sorry for being a bit harsh on you with my remark there, but errors like this are almost impossible to detect on my end. People reported the addon didn't work for them, while it worked perfectly for me
Report comment to moderator  
Reply With Quote
Unread 03/06/18, 05:19 PM  
ArtOfShred
 
ArtOfShred's Avatar
AddOn Author - Click to view AddOns

Forum posts: 103
File comments: 792
Uploads: 2
Originally Posted by dorrino
They prehooked the function that returns synergy filenames and changed the names according to their needs?

Quality coding.

Thank you for figuring this out
Changes icon files only - I didn't really anticipate comparison by icon but when I added this I also forgot theres no id's for synergies. Doh.
The idea is to have support to add unique icons for Synergy abilities (and I changed Blade of Woe because it always bothered me that the icon didn't match up with passive icon).
I don't suppose I could convince you to compare using name instead with GetAbilityName(78219) for Blade of WoE and GetAbilityName(33152) for Feed? Or if you wouldn't mind just plugging in the additional icon conditional?

If not I'll figure something out to fix it.

Originally Posted by ZoLatKam
Now, when can those users of the mod that aren't comfortable with directly editing .lua code expect an update?
It's not dorrino's responsibility to fix this. If he wants to make a small change for me that would be great but its my issue to resolve ultimately. I'm sorry this caused an issue for you guys using both addons. Was my oversight and heavyhandedness with what I'm doing in LUI.
Last edited by ArtOfShred : 03/06/18 at 05:34 PM.
Report comment to moderator  
Reply With Quote
Unread 03/06/18, 08:15 AM  
dorrino
AddOn Author - Click to view AddOns

Forum posts: 50
File comments: 203
Uploads: 10
Re: Update?

Originally Posted by ZoLatKam
Fantastic that Cool7 found a fix!

I can confirm that changing the code, provided by Cool7, in the InnocentBladeOfWoe.lua file (lines 78 - 81 for me) does restore the expected functionality of the mod.

Now, when can those users of the mod that aren't comfortable with directly editing .lua code expect an update?
As Cool7 found out, this is a problem with Lui specifically. Please ask them to fix their code.
Report comment to moderator  
Reply With Quote
Unread 03/04/18, 06:08 PM  
ZoLatKam
 
ZoLatKam's Avatar

Forum posts: 3
File comments: 143
Uploads: 0
Update?

Fantastic that Cool7 found a fix!

I can confirm that changing the code, provided by Cool7, in the InnocentBladeOfWoe.lua file (lines 78 - 81 for me) does restore the expected functionality of the mod.

Now, when can those users of the mod that aren't comfortable with directly editing .lua code expect an update?
Report comment to moderator  
Reply With Quote
Unread 02/24/18, 12:36 AM  
dorrino
AddOn Author - Click to view AddOns

Forum posts: 50
File comments: 203
Uploads: 10
Originally Posted by Cool7
Found problem. It's Lui extened caused issue.
Lui changed blade of woe synery file to something different. I changed function like below, and now it's working fine.

Code:
function IBOW:IsValidSynergy(synergyFile)
	return 	(((synergyFile:find("_darkbrotherhood_003") or (synergyFile:find("_darkbrotherhood_blade_of_woe"))) and IBOW.savedVariables.useBladeOfWoe) or 
			(synergyFile:find("ability_vampire_002") and IBOW.savedVariables.useVampireFeed))
end
They prehooked the function that returns synergy filenames and changed the names according to their needs?

Quality coding.

Thank you for figuring this out
Last edited by dorrino : 02/24/18 at 12:37 AM.
Report comment to moderator  
Reply With Quote
Unread 02/23/18, 09:15 PM  
joshmiller83
AddOn Super User
 
joshmiller83's Avatar
Premium Member

Forum posts: 70
File comments: 243
Uploads: 0
Thank you! That seemed to fix my issue as well!

Originally Posted by Cool7
Found problem. It's Lui extened caused issue.
Lui changed blade of woe synery file to something different. I changed function like below, and now it's working fine.

Code:
function IBOW:IsValidSynergy(synergyFile)
	return 	(((synergyFile:find("_darkbrotherhood_003") or (synergyFile:find("_darkbrotherhood_blade_of_woe"))) and IBOW.savedVariables.useBladeOfWoe) or 
			(synergyFile:find("ability_vampire_002") and IBOW.savedVariables.useVampireFeed))
end
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: