Go to Page... |
Compatibility: | Harrowstorm (5.3.5) Dragonhold (5.2.5) Scalebreaker (5.1.5) Elsweyr (5.0.5) |
Updated: | 04/20/20 08:31 PM |
Created: | 04/20/20 08:31 PM |
Monthly downloads: | 19 |
Total downloads: | 3,131 |
Favorites: | 1 |
MD5: |
Comment Options |
12/16/22, 03:41 PM | |
|
To add a sound to the visual root notification:
Edit the file RootBreak.lua with a text editor and go to line 22 and replace the total function here from OLD: Code:
function RootBreak.TipView(event, tipType) if tipType == RootBreak.rootTip then RootBreak.tipRoot = true else RootBreak.tipRoot = false end if RootBreak.tipRoot ~= RootBreak.inRoot then RootBreak.inRoot = RootBreak.tipRoot RootIndicator:SetHidden(not RootBreak.inRoot) end end Lua Code:
You can choose the sound to play from this list: https://github.com/esoui/esoui/blob/...oundids.lua#L1 -> You need to use the left part e.g. DEFAULT_CLICK and put SOUNDS. in front of it! -> Just enter that sound key as the example shows above into the function PlaySound(SOUNDS.<sound name here>) -> e.g. PlaySound(SOUNDS.DEFAULT_CLICK) You can preview the sounds ingame by using this chat command and pressing the return key. Or if you use the addon pChat you can find a sound slider, which shows you the sound names, at the menu "Chat channel" -> "whisper" -> Sound slider Also the addon FCOUltimateSound provides such a sound slider at the settings menu. Code:
/script PlaySound(SOUNDS.DEFAULT_CLICK) |
|
Baertram |
View Public Profile |
Send a private message to Baertram |
Find More Posts by Baertram |
Add Baertram to Your Buddy List |
Solaris Lorica |
View Public Profile |
Send a private message to Solaris Lorica |
Find More Posts by Solaris Lorica |
Add Solaris Lorica to Your Buddy List |
04/21/20, 02:07 PM | |
|
You can get alist of all the active combat tips like this:
Lua Code:
Could be that dodge is also 19 but it workled with the current setup (at least I saw the dodge info pretty often if I stand in Shadowfen in front of a crocodile). The code actually is pretty easy. Try to read it from the bottom to the top (initialization -> event trigger). Everything esle is about login and auto changing the combat tips to enabled, respecting other addons which disbale this again by accident... and the settings menu (LibAddonMenu2). You should have seen it before my update a few days ago Please be sure to test your changes, also maybe with other client languages (/script SetCVar("language.2", "<2CharISOLang, e.g. de, fr, en>")) before releasing updates. Thanks |
|
Baertram |
View Public Profile |
Send a private message to Baertram |
Find More Posts by Baertram |
Add Baertram to Your Buddy List |
04/21/20, 12:20 PM | ||
|
Thanks for the pointers.
Yeah I guess I was lazy. In the beginning that was my goal, but I had so much trouble finding root state that I got derailed. As it currently is the API does not indicate Root State very clearly, the root state of some skills returns instead as snare, and some others returns as none or magic. Inferring the root state from Active Combat Tip ended up being the only clear cut way of obtaining root state. So I already had a stunBreak AddOn finished and when I figured out rootBreak it became 2 separate AddOns, and I just left it the way it is, because I wanted to work on a fishing addOn next. As for the other addOn Root State, it doesn't do much practically, It just demonstrates a way to clearly define root state because when I searched the AddOns for one that indicates Root State I didn't find anything. Maybe once I merged everything I'll remove it. I'm reading the code for Simple Combat Alerts Revived looks complex I'll have to work through it, I think the purpose of Simple Combat Alerts is a little different from what I was trying to do. My goal was to indicate CC state, and Combat Alerts was just a way for me to get root state out of the game. But yeah add me to the team, I haven't tested it but it seems from the code that the tipId was out of date? I'm pretty sure dodge tipId is 19.
Last edited by Solaris Lorica : 04/21/20 at 12:23 PM.
|
|
|
Solaris Lorica |
View Public Profile |
Send a private message to Solaris Lorica |
Find More Posts by Solaris Lorica |
Add Solaris Lorica to Your Buddy List |
04/21/20, 07:43 AM | ||
Forum posts: 0
File comments: 274
Uploads: 0
|
Agree
|
|
|
sonwon |
View Public Profile |
Send a private message to sonwon |
Send email to sonwon |
Find More Posts by sonwon |
Add sonwon to Your Buddy List |
04/21/20, 06:10 AM | |
|
Don't get me wrong, and in the end it is your decision. You are learning by each addon as well.
But why do you create several addons, 1 for each CC state insead of 1 addon for all of them? Makes it easier to handle and update for yourself, and less cluttered for the users. Root break, root state, stun state, ... Just create 1 addon and add a settings menu: LibAddonMenu-2.0 HowTo -> settings menu Multi language support info via your addon's txt file: https://wiki.esoui.com/Addon_manifest_(.txt)_format#Variable_Expansion In the end it would be something like this: https://www.esoui.com/downloads/info...tsRevived.html If you want to I can add you to the team and you can update this addon. I only revived it so the users are able to use it.
Last edited by Baertram : 04/21/20 at 06:18 AM.
|
|
Baertram |
View Public Profile |
Send a private message to Baertram |
Send email to Baertram |
Find More Posts by Baertram |
Add Baertram to Your Buddy List |