I'm currently using ajackalope's NightfallProc UI, a very basic UI that plays a sound when my warlock's Nightfall ability Procs. I prefer this UI to Necrosis since Necrosis often crashes on me for some reason and I dont really like/need all of the functionality of it.
If possible, I would like to create another mod that has the same functionality of NightfallProc but instead plays a sound when my Soulstone expires. I was wondering if anyone could tell me how to mod the code from the NightfallProc UI to do the same thing for SoulStone expiring?
The LUA from NightfallProc is very short and listed below:
DEFAULT_CHAT_FRAME:AddMessage("NightfallProc Version 1 loaded.");
if (arg1 == "You gain Shadow Trance.") then
I thought all I would have to do is replace the quoted text in arg1 with the text that is displayed when the Soulstone expires, but I am either entering the wrong text phrase or something because I cannot get it to work.
if string.find(arg1,"Soulstone expired") then
If you use string.find you can use partial matches. Not sure if "Soulstone expired" will work. It will pick up other warlock's soulstones expiring also. To capture only yours you would need to keep track of who you cast it on and then match the expire message to their names.