#Lay on Hands amount healed chat announcer

95 messages · Page 1 of 1 (latest)

forest needle
#

this weakaura that i found announces in party chat when i heal someone with lay on hands (among other things), any idea how i can also make it show the amount healed at the end of the message? so it would be: "i healed X with lay on hands for Y amount"

https://wago.io/88DTzFtxr (it's a classic cataclysm weakaura but it works perfectly fine for retail)

Announces spell successes for powerful raid cooldowns used by your raid or party. now you can see who fat fingered that

wise agate
#

mouseover the textbox to see all options.

fossil delta
#

!dynamictext

untold swallowBOT
#

The dynamic text codes window shows all available text codes.
Clicking a text code will insert it directly into the text area.
When you need to immediately follow a text replacement with more text (without a space between) you may shift+click any text code to insert them in the curly brackets format, like: %{2.p}seconds

wise agate
#

no one likes your ugly commands!

forest needle
#

i did and i tried a bunch of them but the ones i used didn't work for me. which code should i be looking for?

fossil delta
#

if you don't see the option for healing done or something similar then you would need to add a trigger that has that info

wise agate
#

what are the options?

#

and what is the trigger?

#

starting with something old is in this case harder than not

forest needle
wise agate
#

being successfull in a cast doestn mean you healed something

#

you want to event for healing

forest needle
#

and those are the text options, assuming that's what you meant

#

so that would be custom > event > and then i'd have to make a custom trigger?

wise agate
#

no, its still a combatlog trigger

fossil delta
#

yeah that CLEU SPELL_CAST_SUCCESS doesn't have the healing amount info You need CLEU SPELL_HEAL

#

!cleu

wise agate
#

cleu just means combatlog. there is no code involved at any point

fossil delta
#
Warcraft Wiki

Fires for Combat Log events such as a player casting a spell or an NPC taking damage.

COMBAT_LOG_EVENT only reflects the filtered events in the combat log window
COMBAT_LOG_EVENT_UNFILTERED (CLEU) is unfiltered, making it preferred for use by addons.
Both events have identical parameters. The event payload is returned from CombatLogGetCurrentEv...

forest needle
wise agate
#

yes

forest needle
#

done. so now which code am i supposed to add to the text message to make the amount healed show?

fossil delta
#

it should be on that list now

#

check again

gilded plank
#

IIRC it's just %amount. Check it.

forest needle
#

ohh right. i didnt think it works this way

#

yeah its 1.amount, i just clicked on the option and it automatically put in the text

wise agate
#

text replacements depend on the trigger

forest needle
#

okay it works perfectly, thanks 😄

but one last thing, is it possible to consolidate the number and make it shorter? let's say we make it 2 or 3 digits instead of 6?

wise agate
#

see the format options

fossil delta
#

there are formatting options

#

!⚙️

untold swallowBOT
#

Click the gear icon to see the extra settings

wise agate
#

no one likes your ugly commands!

fossil delta
#

!spaten

untold swallowBOT
#

💩

wise agate
#

point proven!

forest needle
#

okay everything seems to be working, thanks for the help guys

#

peepoSalute ❤️

forest needle
#

sorry to pump this but one last thing lol, my lay on hands always heals for 10m and that's what the weakaura always shows--can i make it show the actual healing and exclude the overhealed amount?

wise agate
#

!cleu how does the event look. (you still dont need coding knowledge)

untold swallowBOT
#

https://warcraft.wiki.gg/wiki/COMBAT_LOG_EVENT

function(event, timestamp, subEvent, hideCaster, sourceGUID, sourceName, sourceFlags, sourceRaidFlags, destGUID, destName, destFlags, destRaidFlags, ...)

You can use this Aura, https://wago.io/CLEU-IN-ETRACE (works fine in all game versions, not just retail), to add the detailed info into the Etrace tool.
For more info on Events and Etrace see #pins message

forest needle
#

im a bit lost, is this what you mean by event?

wise agate
#

no, you can use etrace(witht he aura attached) to look at whats happening in the game

forest needle
#

i see what you mean. i installed the weakaura and did /etrace

#

there are many lines that keeps adding up in the event log every time i cast a spell or mouseover anything

#

should i cast lay on hands and post screenshot of the event log window?

wise agate
#

you should cast lay on hands, and find the event of it in the list

forest needle
#

okay i did cast it and this is what i got

gilded plank
#

No, that's missing the relevant combat log events.

forest needle
#

i assume this "combat_log_event..etc" is what we are looking for

this line only shows when i cast flash of light or some random spell, but it doesn't show when i cast lay on hands for some reason

gilded plank
#

That is quite literally impossible.

#

Considering that you do have a combat log trigger for LoH in your existing aura, and it works as you said.

#

If the combat log trigger works, then there's gonna be a combat log event.

forest needle
#

okay i think it did work

gilded plank
#

Hover over 315 pls and post the sidebox it shows here

#

The spell heal event for LoH

wise agate
#

i never saw that they are numbered

forest needle
#

here you go sir 🙂

gilded plank
#

Arg 15 is the amount it healed in total for, arg 16 is the amount of overheal out of that.

The amount it "actually" healed for isn't included, so you'd have to do math for that yourself.
As in: amount minus overheal = actual heal (so in this case 0)

#

With purely the built in trigger you can't do that.

#

You'd have to do some custom code no matter what.

You said this is for announcing in party chat right? Where do you announce, probably via actions -> on show -> chat message?

forest needle
#

i see

#

yes that is correct, and the message type is set to "bg>raid>party>say"

#

also thats another thing, the WA doesnt work when im not in party even though it's set announce in /say

#

but thats besides the point

gilded plank
#

You can't automate messages to /s and /y outside of instances with add-ons.

#

Limitation by Blizzard, to prevent spam etc.

#

Even tells you with a little warning in the actions tab.

forest needle
#

ah fair enough

#

right i didnt notice that

gilded plank
#

Anyways, just remove that actions -> on show -> chat message stuff.

Instead make it actions -> on show -> custom
And enter this:

if aura_env.state and aura_env.state.destName then
  local heal = aura_env.state.amount and aura_env.state.overheal and aura_env.state.amount - aura_env.state.overheal or 0
  
  SendChatMessage("My Lay on Hands healed " .. aura_env.state.destName .. " for " .. heal, "PARTY")
end
#

Do note that I'm not at my PC, idk if the entry in the state table for the overheal is literally called overheal. If it isn't, this won't work.

But I can check later when I'm at the PC if that's the case.

wise agate
#

you can do %c in a chat message

gilded plank
#

Oh true

forest needle
#

appreciate the help mate. no worries, there's no rush

so this is what im getting now after putting the custom code you gave me

wise agate
#

0 is not a good value to test it with.

gilded plank
#

Yeah then the overheal amount isn't called overheal internally ig. I can't tell you what it's called rn.

forest needle
#

all good

wise agate
#

can you mouseover the textbox for the text replacements?

forest needle
#

i will test %c in 2 minutes, loh is on CD now lol

wise agate
#

c needs still code

#

and the window with the text replacements well tell the name we need

#

or well, guffin needs

forest needle
wise agate
#

ing

#

overhealing

#
function()
  return aura_env.state.amount - aura_env.state.overhealing
end

i left out the guarding. you can now use the %c the same way as you used %amount. enter that code in the textbox that appears

fossil delta
#

might be inaccurate with healing aborbs

#

not sure how that info comes through

forest needle
#

brilliant, thanks

now im getting two messages, do i need to remove the custom code i initially used to remove the second message that is giving me 0?

#

two messages for a single loh usage

#

okay removing the custom code seems to be working, the second line isn't showing anymore