Download
(11 Kb)
Download
Updated: 06/05/23 08:40 PM
Pictures
File Info
Compatibility:
Necrom (9.0.0)
Updated:06/05/23 08:40 PM
Created:03/04/15 09:18 AM
Monthly downloads:562
Total downloads:232,121
Favorites:420
MD5:
Categories:Utility Mods, UI Media, Miscellaneous
NoAccidentalStealing (+no accidental casting)  Popular! (More than 5000 hits)
Version: 1.13
by: Shinni [More]
This addon prevents you from accidentally stealing an item - like a weapon or bottle next to the merchant.
Stealing becomes possible if one of the following conditions is met:
  1. You are hidden/stealthed.
  2. The "Confirm Stealing"-key is pressed. The keybind can be set via ESC -> Controls -> Confirm Stealing (at the very bottom).
  3. You doubletap the Interaction-key.
The second line of the Interaction-Reticle turns green when one of the conditions is met and stealing becomes possible (see screenshots).

The doubletap timeframe can be set in the addon's menu: ESC -> Settings -> AddOn Settings -> NoAccidentalStealing

This addon can also block you from casting criminal necromancer abilities while out of combat.
To cast criminal abilities while out of combat you must hold the key for a certain duration (the duration can be set in the addon's settings).
1.13
- compatible with the Necrom update
- fixed missing localization in the menu regarding blocked necromancer skills

1.12
- compatible with the Greymoor update

1.11
- compatible with the Scalebreaker update

1.10
- another attempt at fixing LUA errors. This time for non-necromancer characters

1.9
- fixed LUA error when the skill buttons initialize before the addon

1.8
- compatible with Elsweyr update
- added option to block criminal necromancer abilities

1.7
- compatible with the Wrathstone update
- added an option to hide the information below the reticle

1.6
- compatible with the Murkmire update

1.5.16
- compatible with the Wolfhunter update

1.5.15
- compatible with the Summerset update

1.5.14
- compatible with the CwC update

1.5.13
- compatible with the CwC update

1.5.12
- compatible with the HotR update

1.5.11
- added russian localization by Memoraike

1.5.10
- added german localization by TNTKokser

1.5.9
- added french localization by lexo1000

1.5.8
- changed API version for the Morrowind update

1.5.7
- changed API version for the Housing update

1.5.6
- changed API version for the One Tamriel update

1.5.5
- added JP localization by k0ta0uchi.
- updated lib addon menu
- updated API version for the Hist expansion

1.5.4
- changed API version for the DB update

1.5.3
- updated lib stub library and added its path to the toc file

1.5.2
- changed API version for the TG update

1.5.1
- added an addon menu
- opening containers while auto looting owned containers is now optional and can be set in the addon menu

1.5
- when auto looting owned containers is disabled, the container can be opened regardless of the hidden state.

1.4
- changed API version

1.3
- compatible with IC update

1.2
- added doubletap as confirmation

1.1
- added 2nd line to Interaction-Reticle
- stealth enables stealing

1.0
- release
Archived Files (29)
File Name
Version
Size
Uploader
Date
1.12
61kB
Shinni
07/11/20 11:02 AM
1.11
60kB
Shinni
08/15/19 10:49 AM
1.10
60kB
Shinni
06/01/19 03:58 AM
1.9
60kB
Shinni
05/31/19 03:43 PM
1.8
60kB
Shinni
05/31/19 10:51 AM
1.7
53kB
Shinni
03/09/19 05:09 AM
1.6
56kB
Shinni
10/24/18 10:09 AM
1.5.16
47kB
Shinni
08/20/18 12:28 PM
1.5.15
47kB
Shinni
05/27/18 07:13 AM
1.5.14
47kB
Shinni
02/16/18 05:04 PM
1.5.13
47kB
Shinni
12/10/17 09:08 AM
1.5.12
47kB
Shinni
08/14/17 03:10 PM
1.5.11
47kB
Shinni
06/27/17 01:38 PM
1.5.10
46kB
Shinni
05/27/17 11:16 AM
1.5.9
45kB
Shinni
05/24/17 02:13 PM
1.5.8
44kB
Shinni
05/22/17 01:18 PM
1.5.7
44kB
Shinni
02/07/17 12:01 PM
1.5.6
44kB
Shinni
10/05/16 12:04 PM
1.5.5
42kB
Shinni
07/18/16 07:10 AM
1.5.4
39kB
Shinni
05/31/16 04:18 AM
1.5.3
39kB
Shinni
03/11/16 12:07 PM
1.5.2
39kB
Shinni
03/07/16 05:58 PM
1.5.2
39kB
Shinni
03/03/16 08:02 AM
1.5
3kB
Shinni
02/18/16 01:03 PM
1.4
3kB
Shinni
11/07/15 12:53 PM
1.3
3kB
Shinni
09/02/15 02:45 AM
1.2
3kB
Shinni
03/06/15 10:43 AM
1.1
2kB
Shinni
03/04/15 12:11 PM
1.0
2kB
Shinni
03/04/15 09:18 AM


Post A Reply Comment Options
Unread 02/26/24, 05:39 PM  
kalitva

Forum posts: 0
File comments: 10
Uploads: 0
didnt work 3 years ago doesnt work now
Report comment to moderator  
Reply With Quote
Unread 10/17/23, 04:17 PM  
Lykeion
 
Lykeion's Avatar
AddOn Author - Click to view AddOns

Forum posts: 17
File comments: 81
Uploads: 11
A suggestion for no accidental casting

Greetings, thank you for creating this addon, it has helped me a lot!

I have a suggestion for the no accidental casting feature: I want necro to be able to cast skills freely in dungeons, trials, etc. where avoiding criminal behavior is not necessary. Adding a single judgment statement after line 49 of Abilities.lua will do. It would be great if you could make it happen.

Code:
	ZO_PreHook("ZO_ActionBar_CanUseActionSlots", function()
		if IsUnitInCombat("player") then return end
		if IsUnitInDungeon("player") then return end  -- added here
		slotNum = tonumber(debug.traceback():match('keybind = "ACTION_BUTTON_(%d)'))
Many thanks again!
Report comment to moderator  
Reply With Quote
Unread 06/05/23, 04:07 PM  
NeuroticPixels
Addon Addict
 
NeuroticPixels's Avatar
Premium Member

Forum posts: 210
File comments: 864
Uploads: 0
Lua Code:
  1. user:/AddOns/NoAccidentalStealing/NoAccidentalStealing.lua:62: attempt to index a nil value
  2. stack traceback:
  3. user:/AddOns/NoAccidentalStealing/NoAccidentalStealing.lua:62: in function '(main chunk)'
  4. |caaaaaa<Locals> NAS = [table:1]{}, isConfirmed = F, isHidden = F, settings = [table:2]{}, IsStealingAllowed = user:/AddOns/NoAccidentalStealing/NoAccidentalStealing.lua:14, IsInteractionAllowed = user:/AddOns/NoAccidentalStealing/NoAccidentalStealing.lua:19, IsConfirmKeyBound = user:/AddOns/NoAccidentalStealing/NoAccidentalStealing.lua:27, stealInfoControl = ud, SetInfoText = user:/AddOns/NoAccidentalStealing/NoAccidentalStealing.lua:43, UpdateColor = user:/AddOns/NoAccidentalStealing/NoAccidentalStealing.lua:52 </Locals>|r

As others have shown below, the following code in NoAccidentalStealing.lua:
Code:
local  interactionManager = FISHING_MANAGER or INTERACTIVE_WHEEL_MANAGER
SecurePostHook(interactionManager, "StartInteraction", callbackFunc)
needs to be changed to:

Code:
local  interactionManager = FISHING_MANAGER or INTERACTIVE_WHEEL_MANAGER
local oldInteract = interactionManager.StartInteraction
interactionManager.StartInteraction = function(...)
Last edited by NeuroticPixels : 06/05/23 at 04:26 PM.
Report comment to moderator  
Reply With Quote
Unread 06/05/23, 08:32 AM  
mlq88
 
mlq88's Avatar

Forum posts: 0
File comments: 95
Uploads: 0
Can confirm the fix - the line numbers are different for me, but adding the line and replacing the other two worked.
Report comment to moderator  
Reply With Quote
Unread 06/05/23, 06:44 AM  
DinoZavr

Forum posts: 0
File comments: 12
Uploads: 0
UI error fixed

Hi.
After U38 Necrom - the following error is displayed on character login

user:/AddOns/NoAccidentalStealing/NoAccidentalStealing.lua:62: attempt to index a nil value
stack traceback:
user:/AddOns/NoAccidentalStealing/NoAccidentalStealing.lua:62: in function '(main chunk)'


made a replacement Baertram suggested:
line62 local interactionManager = FISHING_MANAGER or INTERACTIVE_WHEEL_MANAGER
line63 local oldInteract = interactionManager.StartInteraction
line64 interactionManager.StartInteraction = function(...)


Tested by stealing in Fargrave. Seems the fix is working fine.

MANY THANKS Baertram !!!
Report comment to moderator  
Reply With Quote
Unread 04/18/23, 04:47 AM  
Baertram
Super Moderator
 
Baertram's Avatar
ESOUI Super Moderator
AddOn Author - Click to view AddOns

Forum posts: 4881
File comments: 5947
Uploads: 78
Hi Shinni,

fix for Necrom PTS (read here about changes: https://www.esoui.com/forums/showthread.php?t=10517)
FISHING_MANAGER was removed, so add an "or INTERACTIVE_WHEEL_MANAGER" to your code where FISHING_MANAGER is currently used
e.g.
Code:
local  interactionManager = FISHING_MANAGER or INTERACTIVE_WHEEL_MANAGER
SecurePostHook(interactionManager, "StartInteraction", callbackFunc)

For NoAccidentalStealing that will be:
\live\AddOns\NoAccidentalStealing\NoAccidentalStealing.lua
Lua Code:
  1. local  interactionManager = FISHING_MANAGER or INTERACTIVE_WHEEL_MANAGER
  2. local oldInteract = interactionManager.StartInteraction
  3. interactionManager.StartInteraction = function(...)
Report comment to moderator  
Reply With Quote
Unread 04/18/23, 04:47 AM  
Baertram
Super Moderator
 
Baertram's Avatar
ESOUI Super Moderator
AddOn Author - Click to view AddOns

Forum posts: 4881
File comments: 5947
Uploads: 78
Re: Re: Re: Re: No Settings for Necromancer are Available

Originally Posted by Vaexar
Originally Posted by FlopsyPrince
Originally Posted by FlopsyPrince
Originally Posted by FlopsyPrince
Necromancer criminal activities are blocked, but I don't see any way to enable them. The settings panel has nothing related to that, only the former stealing entries.

The Controls menu only shows a single "stealing" row.
Any possibility this could get fixed? I hate gimping my necromancers.
Asking again if anyone could prevent casting being hindered optionally per character? This really gimps my necromancer in most play!
Bump for this question. Anyone have an answer?
Read my answer to FlopsyPrince below.
Report comment to moderator  
Reply With Quote
Unread 04/05/23, 01:11 AM  
Vaexar

Forum posts: 0
File comments: 5
Uploads: 0
Re: Re: Re: No Settings for Necromancer are Available

Originally Posted by FlopsyPrince
Originally Posted by FlopsyPrince
Originally Posted by FlopsyPrince
Necromancer criminal activities are blocked, but I don't see any way to enable them. The settings panel has nothing related to that, only the former stealing entries.

The Controls menu only shows a single "stealing" row.
Any possibility this could get fixed? I hate gimping my necromancers.
Asking again if anyone could prevent casting being hindered optionally per character? This really gimps my necromancer in most play!
Bump for this question. Anyone have an answer?
Report comment to moderator  
Reply With Quote
Unread 04/03/23, 04:50 AM  
Baertram
Super Moderator
 
Baertram's Avatar
ESOUI Super Moderator
AddOn Author - Click to view AddOns

Forum posts: 4881
File comments: 5947
Uploads: 78
I think this addon is missing some texts @Shinni?

The slider for the criminal actions got no en nor de etc. texts.
I've added this to the en.lua file:
Code:
L.NAS_ABILITY_HEAD = "Criminal abilities"
L.NAS_ABILITY_TEXT = "Define the criminal ability tap duration. You need to re-press the same ability within this time, to cast it. 0 = Disabled"
L.NAS_ABILITY_SLIDER = "Ability Tap duration"
De:
Code:
L.NAS_ABILITY_HEAD = "Kriminelle Fähigkeiten"
L.NAS_ABILITY_TEXT = "Wähle die Wiederhol-Zeit für Kriminelle Fähigkeiten. Du musst den Skill in dieser Zeit erneut ausführen, damit er aktiviert wird. 0 = Deaktiviert"
L.NAS_ABILITY_SLIDER = "Krim. Fähigkeiten Wiederhol-Zeit"
Hope that matches?


@Flopsy: Change the slider at the bottom to 0 to disable it.
If you want character dependent settings edit the file NoAccidetalStealing.lua at this line, and change it from:
Code:
settings = ZO_SavedVars:New("NAS_SavedVariables", 1, "settings", {delay = 250, criminalPressDuration = 750})
To:

Lua Code:
  1. settings = ZO_SavedVars:NewCharacterIdSettings("NAS_SavedVariables", 1, "settings", {delay = 250, criminalPressDuration = 750})
Report comment to moderator  
Reply With Quote
Unread 11/10/22, 07:33 PM  
FlopsyPrince

Forum posts: 0
File comments: 102
Uploads: 0
Re: Re: No Settings for Necromancer are Available

Originally Posted by FlopsyPrince
Originally Posted by FlopsyPrince
Necromancer criminal activities are blocked, but I don't see any way to enable them. The settings panel has nothing related to that, only the former stealing entries.

The Controls menu only shows a single "stealing" row.
Any possibility this could get fixed? I hate gimping my necromancers.
Asking again if anyone could prevent casting being hindered optionally per character? This really gimps my necromancer in most play!
Report comment to moderator  
Reply With Quote
Unread 08/10/22, 11:44 PM  
FlopsyPrince

Forum posts: 0
File comments: 102
Uploads: 0
Re: No Settings for Necromancer are Available

Originally Posted by FlopsyPrince
Necromancer criminal activities are blocked, but I don't see any way to enable them. The settings panel has nothing related to that, only the former stealing entries.

The Controls menu only shows a single "stealing" row.
Any possibility this could get fixed? I hate gimping my necromancers.
Report comment to moderator  
Reply With Quote
Unread 07/31/22, 02:07 PM  
FlopsyPrince

Forum posts: 0
File comments: 102
Uploads: 0
No Settings for Necromancer are Available

Necromancer criminal activities are blocked, but I don't see any way to enable them. The settings panel has nothing related to that, only the former stealing entries.

The Controls menu only shows a single "stealing" row.
Report comment to moderator  
Reply With Quote
Unread 11/05/21, 02:14 PM  
[Daniel]

Forum posts: 1
File comments: 133
Uploads: 0
Hello, I have used this addon religiously for blocking stealing, and I think it was a great idea to expand that to "criminal activities".

Over time, I am seeing the following quality of life updates may need to be thought about to keep this addon filling its "criminal activity" niche like a champ:
  1. Vampire criminal activity skills are not considered by the addon; only Necro
  2. I think it would be nice to be able to toggle the "criminal skill check" on/off. Whether that be a more advanced auto-toggle that considers whether you are in a town or not (similar to how some mini-map addons scale depending what "zone-type" you are in), or a manual keybind where one can toggle it on their own
Last edited by [Daniel] : 11/05/21 at 02:14 PM.
Report comment to moderator  
Reply With Quote
Unread 10/19/21, 02:02 AM  
BrendanatorX

Forum posts: 0
File comments: 5
Uploads: 0
Exclamation help?

This isn't working for me and I don't know how to fix it, I'm still able to steal even when people are looking and I'm not hidden.

Related addons in my load order are:
NoAccidentalStealing
NTakLootSteal
LimitTickets
Report comment to moderator  
Reply With Quote
Unread 06/04/21, 08:33 PM  
A_Darklore

Forum posts: 0
File comments: 97
Uploads: 0
I just created a Necromancer and couldn't figure why in gamepad mode the abilities were wonky and sometimes didn't activate... then I found THIS as the culprit. Not only is there not an option to disable the feature regarding criminal activity, but even setting it to zero doesn't help because "not compatible with gamepad mode". So basically on my Necromancer this addon has to be completely disabled because that aspect of the addon interferes with gamepad mode switching.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: