[ New messages · Members · Forum rules · Search · RSS ]
  • Page 1 of 1
  • 1
Forum moderator: Heamo_Goblin, Razelle, Thagoras  
Spell Indicators
Heamo_GoblinDate: Sunday, 2024-08-11, 6:11 AM | Message # 1
3
Group: Staff Team
Messages: 78
Reputation: 100
Status: Offline
We've added a customizable spell indicator system with the following options, configured per spell:
Range - Size/area indicator - Casting time indicator
As always I recommend https://jsoneditoronline.org for editing json files.

Features
Range indicator
Color and size can be configured via CastRange and Hue properties
Color and size can be configured via CursorSize, CursorHue, and IsLinear properties
Casting time can be configured via CastTime property in seconds
Options

From Options->TazUO->Misc you can enable to disable this system, and download external configs

⚠️ Make sure when using the download option you 1. Fully trust the source of your file and 2. Use a link that only returns the pure json text

Setup
After logging in once a new file will be created and populated with all spells, unconfigured in Data/Profiles/SpellVisualRange.json
ℹ️ You can remove any spells not desired.
ℹ️ Range, Size and Cast time can be set to 0 if you want to disable any single feature of a specific spell.
ℹ️ All spells are triggered from PowerWords, if those are set up wrong the spell will not trigger correctly.
Open this file using a good JSON editor like https://jsoneditoronline.org and go to town!
ℹ️ You can also place a SpellVisualRange.json inside individual character folders to override the global one. (/Data/Profiles/Account/Server/Char/SpellVisualRange.json)
Example spell configuration

{"ID": 24, "Name": "Wall of Stone", "PowerWords": "In Sanct Ylem", "CursorSize": 2, "CastRange": 0, "Hue": 32, "CursorHue": 10, "MaxDuration": 10, "IsLinear": true, "CastTime": 1.5, "ShowCastRangeDuringCasting": false, "FreezeCharacterWhileCasting": false}

This config will create a linear area where your cursor is, based on the direction of your cursor with a CursorSize of 2, meaning 1 (Cursor tile + 1 = 2) tile away from the cursor tile so this will show a line that is 3 tiles in length.
It's CastRange is set to 0 so we won't see a range indicator, and it's CastTime is 1.5 so it will show a progress bar for 1.5 seconds or until a target appears after casting.
Detailed spell config breakdown
ID -> This is the spell ID built into CUO, it isn't technically used here anymore other than sorting.
Name -> This is the name of the spell, only included for easier identification while editing.
PowerWords -> These are vital and must match what your server sends exactly. You can use this for servers with custom spells. Power words are how this system identifies casting as the client doesn't really know when you are casting.
CursorSize -> This is the side of the indicator that appears where your cursor is. If IsLinear is true it will be a line at your cursor this many tiles away from the cursor. Otherwise it will be a square radius this many tiles away from the cursor.
CastRange -> This is a square radius around the player, it shows up when you get a Target after casting, unless ShowCastRangeDuringCasting is true, then it will show while you are actively casting.
Hue -> The color of the CastRange.
CursorHue -> The color of the CursorSize.
MaxDuration -> The time, in seconds, that all indicators will disappear if, for whatever reason, the system does not register that the spell was cast or canceled.
CastTime -> The time, in seconds, to display the cast progress bar to indicate how much time left until the spell is cast.
FreezeCharacterWhileCasting -> Freeze your character while casting


 
  • Page 1 of 1
  • 1
Search: