View Single Post
08-19-23, 11:46 AM   #2
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,894
You've probably left the party (automatically removed by the game) before the SendMessage is processed.

Try the following to whisper yourself when you do a /reload (or logout but...).
Change the target character name to your logged in character.

Lua Code:
  1. local Frame = CreateFrame("frame")
  2. Frame:SetScript("OnEvent", function(this, event, ...)
  3.     SendChatMessage("Bye!", "WHISPER", nil, "YourCharacter")
  4.   end
  5. end)
  6. Frame:RegisterEvent("PLAYER_LEAVING_WORLD")
It should show the message when you've entered the world after /reload
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.

Last edited by Fizzlemizz : 08-19-23 at 12:23 PM.
  Reply With Quote