View Full Version : Is this possible?
jbarley
11-07-2004, 06:33 PM
I am new to the WoW add ons so bear with me. From looking through the add-ons I see a couple of add-ons that would work great together. What I would like to do is have 1 add on that will change stance/aspect, toolbar and weapons based on the distance to the target. Is this possible and how hard would it be for someone that has done some coding and is a quick learner? Can anyone give me an tips for how to best accomplish this? I don't mind doing the work, always fun learning new things, I just want to know how difficult this will be.
(Note: I refer to Cosmos mods often)
Well... if you check out TargetDistance, it has code for distance between you and the target.
AutoEquip has code for detecting change of stances and some code for equipping items (note that it uses ThottBot to keep track of where the items are and what they are called et cetera, so I recommend that you dig into MageHand to see how to get names of items and stuff).
Toolbar changing code is trivial - check out ActionButton.lua or other places that deal with action bars.
All in all, I'd say the hardest part is equipping weapons correctly. I have made an AddOn that works for this, but it requires quite a bit of code to work flawlessly in all situations (such as switching weapons, taking offhand weapon into main hand et cetera). Estimated time for this : 12-30 hours of coding, to make it work flawlessly, 1-4 hours to get it to work (all other stuff is kinda easy to do, except trinkets which have some of the same problems as weapons).
Other stuff wouldn't take more than, say, 20 hours at most.
Of course, time to learn lua is not included. :)
Sarf
---
Don't speak about Time, until you have spoken to him.
Anonymous
11-07-2004, 10:08 PM
Thank you. I was hoping I could do this in Cosmos since most of the code is already there. I guess I have some coding ahead of me, and a lot of reading. Hopefully you don't mind me picking your brain from time to time.
Of course I don't mind - it's always fun to help people learn!
Sarf
---
If you only want to go 500 miles, can you begin with a halfstep?
vBulletin® v3.8.0 Beta 1, Copyright ©2000-2008, Jelsoft Enterprises Ltd.