Help with a simple mod
Im trying to create a simple mod to say random phrases when the paladin redemption spell is cast. This is mostly for practice as its my first time trying to make a mod. However I t just doesn't work. I get no errors, but when I cast it doesn't say anything.
This is what I have so far: Code:
------------------------------------------------------------------------------------ - The first error I think it may be is the start of the UI tag in the XML file. I copied it from a very old tutorial and Im not sure if its too out of date to work. - The second error it may be is when the OnEvent() function is called. Im not sure if the argument in "SPELLCAST_START" is "Redemption(Rank 5)" or not. Anyway I'm stumped. Any help would be appreciated. |
I don't have the time to look through that right now, but check www.wowwiki.com. You can read up on the events there to see if their correct ;)
edit: just glancing through it (this isn't the problem, just an improvment), you don't need to declare that table every time you cast the spall. You can just declare it in the OnLoad event ;) Edit2: Just realized, you used Spellcast_Start. For some reason, Spellcast_Start does not trigger on instant cast spells Edit3: See http://www.wowwiki.com/HOWTO:_Detect...nt_Cast_Spells It's a slightly more project than you thought at first :/ Maybe try a non-instant cast spell to begin with? |
Thanks for the reply. The event page on wowwiki is actually where I looked up the event. However it only says that the argument is the name of the spell, but it doesn't specify or give an example.
update: I started playing around with the script and realized that the OnLoad() function wasn't even being called. I think that the XML isnt even being loaded at all. I don't know if this has to do with the 1.12 patch or if I called the XML file wrong in the TOC document. |
If you get this working please let me know. This is EXACTLY the mod I have been looking for. Everyone told me to use Battlecry, but it has too many variables and doesn't seem to work without having a target selected first (when using rez spells).
Could you perhaps make this work with the Priest's Resurrection spell as well? |
All times are GMT -6. The time now is 08:29 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI