I've been trying to make a little macro that will help me make sure he doesn't get himself in over his head when he tries to hunt and gets a little too brave. He doesn't like if I load up an autoheal bot, but he doesn't mind if I leave my druid near him on the other computer while I am on raids or grinding.
I'm wanting to make something that I can run on my druid while he plays that will send my main tells and tell me what he's getting ready to attack next. Something along the lines of "Peewee tells you, 'His target is a Dervish Thug'" "Peewee tells you, "He lost his target'" "Peewee tells you, 'His target is A Sand Mummy'" "Peewee tells you, 'He lost his target'" "Peewee tells you, 'His target is Dorn B'Dynn'"
but i am far from being a blackbelt programmer.
I have come up with
/target Myroomie
/assist
if target == 'Myroomie' /return
/tell Jimmy "his target is %t"
/return
Now, the main problem with that is, although it won't send a tell until he actually aquires a target, if he DOES target something, it'll superspam me with that %t in tells.
I guess here i need to setup some kind of "%t becomes targetvariable1", and add a 'if %t == targetvariable1, then /return until %t is either 'Myroomie' (meaning it died and he has no target, where i can set it to /tell Jimmy "He lost his target", or, if %t is NOT == targetvarible1, then mention his NEW target, or... well, that's where I start to get a bit overwhelmed.
I realize that some of the really nice macros like Genbot have all this incorporated into their targetting engines, but, it starts with 52 /call AddCommand lines which branch out into a paragraphs of string variables, followed by 41 declarations, and then i just lose it and walk to the fridge and grab a beer and sit back down again just to become confused more.
I've been checking out the manual, and all the commands themselves seem completely intuitive. I now understand length$'s all the click commands, and starting to understand the /for and a little bit of the /if stuff, but, the declarations and scopes are completely greek to me. I think mainly because all the examples used to explain them use more programming syntax I am not familiar with to start with
Anyone know of a nice little primer on simple things like arrays? I'd love to be able to actually make some helpful macros, but, if I don't understand the basic scripting concepts, I wont be able to make anything more than a '/click combine; /click autoinventory' script.
Thanks in advance, it's never easy to admit you don't know how to do something when you feel you're not stupid, but, it felt good explaining what I was trying to do without sounding like an idiot (i hope!).


