Friday, January 25, 2008

Amazing Raydz Addon

Yesterday my RL buddy who also plays WOW sent me a link for a World of Warcraft add-on builder which runs inside Microsoft Visual Studio. I have been a software developer for several years now and the thought of building WOW add-ons has always intrigued me, I just have never had the time to really dig in to them. 80% of my time developing is in Microsoft Visual studio so when I found out that there was now a WoW plug in for it, I had to check it out.

I only had about half an hour to mess with the creation of a new add-on before it was time to raid so I whipped up the “Amazing Raydz” add-on. It's really only a "tweeked" version of the tutioral mod but it's sure to be a big hit and one of the top downloads on curse gaming.

Obviously being my first add-on I started with something very simple just to see if I could get it to run in WoW. When World of Warcraft loads up there is a moveable frame on the screen which says “Is Raydz Amazing” and a “Yes” button. I didn’t add a “No” button because it would be a waste of time making it because no one would ever push it. When you push the “yes” button the frame disappears, but I also added the event that every time you switch targets the frame pops back up with new text. The frame is now controlled by this line of code which is found in the “code behind” section of the mod.


RaydzString:SetText("Raydz is more amazing than " .. UnitName("Target"));





So if I clicked on ragnaros (the final boss in the molten core) the add would pop up with. “Raydz is more amazing than Ragnaros” and the button text would be changed to "Thats True". Clicking the “That’s True” button will hide the frame again. Obviously besides the mod reminding you of my amazingness every few seconds it’s very annoying and has to be turned off, it was only created as a test to see if I could make a simple mod.

If you have ever had any interest in learning about creating your own mod’s id suggest learning with this tool since it provides intellesence and has a tutorial in the help section to get you started. It even lets you set a World of Warcraft screen shot as your background so when you develop you have an idea of where you are placing your frame which is really helpful.



Read about it Here. I know I'm going to keep playing with Mod Development. Whats great is that since its in visual studio i can mess with it all day at work and it will look like im doing normal work.

190 comments: