Thread Tools Display Modes
Prev Previous Post   Next Post Next
02-26-06, 01:48 PM   #1
chippewa
A Fallenroot Satyr
Join Date: Aug 2005
Posts: 21
Help Modding A Current UI

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:


function NightfallProc_onLoad()
this:RegisterEvent("CHAT_MSG_SPELL_PERIODIC_SELF_BUFFS");
DEFAULT_CHAT_FRAME:AddMessage("NightfallProc Version 1 loaded.");
end

function NightfallProc_onEvent(event)
if (arg1 == "You gain Shadow Trance.") then
DEFAULT_CHAT_FRAME:AddMessage("Nightfall!");
PlaySoundFile("Interface\\AddOns\\NightfallProc\\cpi.wav");
end;
end



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.

Any suggestions?

Last edited by chippewa : 04-12-06 at 03:58 PM.
  Reply With Quote
 

WoWInterface » Developer Discussions » General Authoring Discussion » Help Modding A Current UI

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off