Download
(2 Kb)
Download
Updated: 09/18/14 10:04 AM
Compatibility:
Update 4 (1.4.3)
Update 3 (1.3.3)
Veteran Crypt of Hearts (1.2.3)
Craglorn (1.1)
Live (1.0)
Updated:09/18/14 10:04 AM
Created:04/15/14 06:46 PM
Monthly downloads:34
Total downloads:10,780
Favorites:40
MD5:
Categories:Discontinued & Outdated, RolePlay, Utility Mods
Stow It Auto-Sheather  Popular! (More than 5000 hits)
Version: 1.2.8
by: stjobe [More]
I'm not playing ESO any more, so I won't be updating this addon. Sorry!

Stow It Auto-Sheather
A very simple addon that does one thing and one thing only; sheaths your weapon after you leave combat.

Features
A small delay is implemented to enable animations to finish playing.

Controls
No configuration necessary, just unzip to your addons folder and toggle on/off via the in-game AddOns menu.
1.2.8
* Bumped API version to 100009

1.2.7
* Removed redundant anonymous function creation.
* New API version.

1.2.6
* Maintenance release to comply with new addon terms of use and new API version

1.2.5
* Fixed an error in the XML file that was causing errors on loading.

1.2.4
* Updated API number for Craglorn
* Cleaned up some unneeded local variables

1.2.3
* Removed some redundant code. Final release for this version.

1.2.2
* Brain-fart bug fix.

1.2.1
* Rewrote addon to trigger once on entering combat event, and then run once a second to check if we're out of combat. This should further cut down on processing.

1.2.0
* Rewrote addon to use zo_callLater() instead of a timer; this should mean much less processing (thanks for the tip, Ak0!).

1.1.0
* Delay added before sheathing so animations have a chance to finish playing

1.0.1
* Re-upload with missing xml file included

1.0.0
* Initial release
Optional Files (0)


Archived Files (10)
File Name
Version
Size
Uploader
Date
1.2.7
2kB
stjobe
08/08/14 09:50 AM
1.2.6
2kB
stjobe
06/29/14 05:10 AM
1.2.5
1kB
stjobe
05/23/14 01:29 PM
1.2.4
1kB
stjobe
05/23/14 12:01 AM
1.2.3
1kB
stjobe
04/21/14 05:59 PM
1.2.2
1kB
stjobe
04/21/14 03:51 PM
1.2.1
1kB
stjobe
04/21/14 03:40 PM
1.2.0
1kB
stjobe
04/21/14 03:26 PM
1.1.0
1014B
stjobe
04/16/14 03:24 PM
1.0.1
984B
stjobe
04/15/14 11:16 PM


Post A Reply Comment Options
Unread 04/15/14, 07:16 PM  
JadeKnightblazer

Forum posts: 24
File comments: 38
Uploads: 0
Doesn't seem to be working. Using a 2hder, 1st weapon slot.

The first time I loaded after installing the addon I had a eso crash. Closed the game, reloaded, no crash.

However overall it seems the auto-sheath does not apply. Odd
Report comment to moderator  
Reply With Quote
Unread 04/15/14, 09:00 PM  
pinstripesc

Forum posts: 16
File comments: 156
Uploads: 0
It doesn't seem to be doing anything for me.
Report comment to moderator  
Reply With Quote
Unread 04/15/14, 11:19 PM  
stjobe
 
stjobe's Avatar
AddOn Author - Click to view AddOns

Forum posts: 60
File comments: 101
Uploads: 3
Originally Posted by pinstripesc
It doesn't seem to be doing anything for me.
Originally Posted by JadeKnightblazer
Doesn't seem to be working. Using a 2hder, 1st weapon slot.

The first time I loaded after installing the addon I had a eso crash. Closed the game, reloaded, no crash.

However overall it seems the auto-sheath does not apply. Odd
That's what I get for thinking "I'll upload it before I go to bed"...

The 1.0.0 zip is missing StowIt.xml.

A new version (1.0.1) is uploaded that has all the files needed for the addon to actually do something.
Report comment to moderator  
Reply With Quote
Unread 04/15/14, 11:50 PM  
JadeKnightblazer

Forum posts: 24
File comments: 38
Uploads: 0
Might want to add a delay after combat to the auto-sheathing. 3-5 secs.

Atm it looks very odd having your weapon sheath even before the hostile mob plays its death animation.
Report comment to moderator  
Reply With Quote
Unread 04/16/14, 02:57 AM  
stjobe
 
stjobe's Avatar
AddOn Author - Click to view AddOns

Forum posts: 60
File comments: 101
Uploads: 3
Originally Posted by JadeKnightblazer
Might want to add a delay after combat to the auto-sheathing. 3-5 secs.

Atm it looks very odd having your weapon sheath even before the hostile mob plays its death animation.
At the moment, if you attack a 1 HP critter it sheaths your weapon after 3 seconds or so, but if you're in combat with a regular mob it sheaths your weapon the instant you leave combat (probably because those seconds are spent in actual combat and not looking at a one-shotted critter).

It's not completely trivial to add a delay though - the API fires an event on entering combat, but not on leaving it, so I have to use that event to set a flag that the weapon should be sheathed once combat stops, and then check an API method whether the player is in combat to be set to "no" to actually trigger the draw/sheath toggle (there's no "sheath weapon" method, just a toggle between drawn and sheathed).

So I'm looking at adding a timer that starts when the API method returns that the player is not in combat and not trigger the draw/sheath toggle until that timer runs out - although that will mean that you'll auto-draw your weapon if you sheath it manually while the timer is running...

AFAIK there's no API call or event to check whether the weapons are drawn or not.
Report comment to moderator  
Reply With Quote
Unread 04/16/14, 08:27 AM  
Wolfhammer

Forum posts: 0
File comments: 2
Uploads: 0
Not to piss on your parade but the option to auto sheathe weapon is in the stock settings...

Report comment to moderator  
Reply With Quote
Unread 04/16/14, 02:00 PM  
UniKazar

Forum posts: 0
File comments: 2
Uploads: 0
Not working as intended

I have reloaded this add on several times, it refuses to stow after combat and I do wait several minutes after I am done killing the mob and nothing happens. I would really like for this to work and keep this add on! What else can I do to make it work?
Report comment to moderator  
Reply With Quote
Unread 04/16/14, 02:06 PM  
stjobe
 
stjobe's Avatar
AddOn Author - Click to view AddOns

Forum posts: 60
File comments: 101
Uploads: 3
Originally Posted by Wolfhammer
the option to auto sheathe weapon is in the stock settings...
Er, no it isn't.
Report comment to moderator  
Reply With Quote
Unread 04/16/14, 02:12 PM  
stjobe
 
stjobe's Avatar
AddOn Author - Click to view AddOns

Forum posts: 60
File comments: 101
Uploads: 3
Re: Not working as intended

Originally Posted by UniKazar
I have reloaded this add on several times, it refuses to stow after combat and I do wait several minutes after I am done killing the mob and nothing happens. I would really like for this to work and keep this add on! What else can I do to make it work?
Be sure you download version 1.0.1, version 1.0.0 doesn't do anything (in fact, I think I'll just remove it from the downloads).

Other than that, the only thing you should need to do is make sure it is enabled (ESC - Add-Ons - Stow It should have a check mark in the box).

Edit: Try the new version, 1.1.0
I've rewritten the check for whether we are in combat or not and added a small timer so you don't sheath before animations have stopped playing (I think that was what was causing your issue).
Last edited by stjobe : 04/16/14 at 03:29 PM.
Report comment to moderator  
Reply With Quote
Unread 04/16/14, 03:41 PM  
JadeKnightblazer

Forum posts: 24
File comments: 38
Uploads: 0
You Nailed it with the delay ^_-
Feels natural now.
-Great Job!
Last edited by JadeKnightblazer : 04/16/14 at 03:42 PM.
Report comment to moderator  
Reply With Quote
Unread 04/17/14, 12:40 AM  
UniKazar

Forum posts: 0
File comments: 2
Uploads: 0
Re: Re: Not working as intended

Originally Posted by stjobe
Originally Posted by UniKazar
I have reloaded this add on several times, it refuses to stow after combat and I do wait several minutes after I am done killing the mob and nothing happens. I would really like for this to work and keep this add on! What else can I do to make it work?
Be sure you download version 1.0.1, version 1.0.0 doesn't do anything (in fact, I think I'll just remove it from the downloads).

Other than that, the only thing you should need to do is make sure it is enabled (ESC - Add-Ons - Stow It should have a check mark in the box).

Edit: Try the new version, 1.1.0
I've rewritten the check for whether we are in combat or not and added a small timer so you don't sheath before animations have stopped playing (I think that was what was causing your issue).
I have done all this, downloaded your newer file, make sure it is checked in the Add On section and logged in, went into combat and still does not work for me. So I am back to square one, guess it just doesnt work for me, thanks for replying but it looks like I will have to just delete it and go back to how I was doing it before. I was so excited to find this yesterday too. LOL ah well! Have a good day.
Report comment to moderator  
Reply With Quote
Unread 04/17/14, 01:22 AM  
stjobe
 
stjobe's Avatar
AddOn Author - Click to view AddOns

Forum posts: 60
File comments: 101
Uploads: 3
Re: Re: Re: Not working as intended

Originally Posted by UniKazar
I have done all this, downloaded your newer file, make sure it is checked in the Add On section and logged in, went into combat and still does not work for me. So I am back to square one, guess it just doesnt work for me, thanks for replying but it looks like I will have to just delete it and go back to how I was doing it before. I was so excited to find this yesterday too. LOL ah well! Have a good day.
Please do this:
  1. Go to your AddOn folder (should be something like C:\Users\<yourUserName>\Documents\Elder Scrolls Online\<live or liveeu>\AddOns) and delete the StowIt folder.
  2. Re-download the addon (version 1.1.0) and unzip it into the above folder. This creates a new StowIt folder.
  3. Make sure there's three files in the new StowIt folder; StowIt.txt, StowIt.lua, StowIt.xml.
  4. Start the game, log into a character, hit ESC - Add-Ons and verify that there's a check mark in the box next to Stow It.
  5. Find a 1 HP critter (a rat, a sheep, a lizard, or something similar) and kill it with a single basic attack.
  6. Wait 10 seconds (after the critter dies, you're in combat for roughly five seconds before the timer starts). You should then see your character sheath its weapon(s).
  7. You can also find a regular mob and kill it; in that case you should see your character sheath its weapon(s) shortly after the mob dies (as there's no extra delay here, you exit combat the instant the mob dies and the timer starts then and runs for a short bit).
There's no reason the addon shouldn't work for you; it doesn't do anything but listen to an event that fires on entering combat, sets a flag and then checks another flag to see when you leave combat. When this happens, a timer starts running and when that timer is done, the addon toggles the draw/sheath togggle.
Report comment to moderator  
Reply With Quote
Unread 04/17/14, 11:47 PM  
Ak0
AddOn Author - Click to view AddOns

Forum posts: 20
File comments: 13
Uploads: 4
Hey there, I would recommend staying away from OnUpdate as much as possible. As Seerah mentioned in a forum post, if your game runs at 30fps, your function is running 30 times per second.

What I would recommend is that you replace the OnUpdate counter with this simple function.
Code:
zo_callLater()
It takes two arguments, a function and a delay in milliseconds.

A example:
Code:
zo_callLater(function() TogglePlayerWield() end, 2000)
That would run TogglePlayerWield() after 2 seconds.

Besides that, it's a great AddOn, thanks!
Report comment to moderator  
Reply With Quote
Unread 04/21/14, 03:40 PM  
stjobe
 
stjobe's Avatar
AddOn Author - Click to view AddOns

Forum posts: 60
File comments: 101
Uploads: 3
Originally Posted by Ak0
What I would recommend is that you replace the OnUpdate counter with this simple function.
Code:
zo_callLater()
[...]
Besides that, it's a great AddOn, thanks!
Thank you, and thank you for the tip; I've rewritten the addon to take advantage of that function. It now triggers on entering combat, checks once a second if you've left combat, and if you have it sheaths your weapons a second and a half later.
Report comment to moderator  
Reply With Quote
Unread 04/21/14, 05:49 PM  
pinstripesc

Forum posts: 16
File comments: 156
Uploads: 0
Just dropping a thanks, happy to see this out there!
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump:

Support AddOn Development!

You have just downloaded by the author . If you like this AddOn why not consider supporting the author? This author has set up a donation account. Donations ensure that authors can continue to develop useful tools for everyone.