|
Post by Vithigar on Jan 16, 2006 22:03:59 GMT -5
Purpose: To automatically invite players in a BG, avoiding the annoyance of waiting for someone to make a group... I present.... BGAutoRaid! Table of contents.XMLTHE CODE!To try it out, these need to go into Interface\AddOns\BGAutoRaid\ in the World of Warcraft directory. Be warned, it's still... in development.
|
|
|
Post by Buring:NotThePoor! on Jan 16, 2006 23:28:29 GMT -5
hey vith if u need it done i can make all that crap in to en install exe or a zip that will put every thing in the right folder, but you should know how to do that if not yer getting it in class tomorrow morning
|
|
|
Post by Vithigar on Jan 17, 2006 7:31:15 GMT -5
Just realized part of the trouble I was having... and it's retarded. UnitInRaid() doesn't accept name as input, it accepts "unit". "unit" cannot refer to a target by name, but rather by it's relation to you. (target, mouseover, party/raid member x, etc.) Looks like I'm going to have to make it target everyone one by one if I want to test if they're already in the group or not... it might be easier to find a way to just suppress the "target is already in a group" message. God damn blizzard's API.
|
|
|
Post by Vithigar on Jan 17, 2006 7:38:41 GMT -5
TargetByName(raidName); if UnitInRaid("target") then code block end
That should do it. Also, there're those damn quotation marks again, which I have come to realize denote a "unit" rather than a literal... wtf.
|
|
|
Post by Buring:NotThePoor! on Jan 17, 2006 8:14:14 GMT -5
i like pie
|
|
|
Post by Vithigar on Jan 17, 2006 8:42:27 GMT -5
Heh, you should've been on TS last night when Aph and I were talking about this. Dread was there too, and interjected with "Wow, all of a sudden I feel really stupid..."
I would like to make some part of the script recognize when a person joins a game in progress and automatically invite them, but there isn't any (documented) event announced when a player enters a battleground. To that end, I'm going to have to whip up some code that just spams me with the event names of everything that's happening and see what pops up. Yay.
Also, pie is good.
|
|
|
Post by Buring:NotThePoor! on Jan 17, 2006 8:45:09 GMT -5
to bad i was i work :/
theres gotta be an event that can trigger something, after all u get the little yellow msg "so and so just join the battle"
|
|
|
Post by Aphramzo on Jan 17, 2006 8:48:20 GMT -5
I would imagine if Damage Meters can screen scrape and get all the damage info from the little box, there is a way you could get that info when someone joins the battle.
Also, peanut butter pie is the best.
|
|
Prune/Jak
Legacy of the Void Officer
60 Warrior / 60 Rogue
Posts: 368
|
Post by Prune/Jak on Jan 29, 2006 0:11:22 GMT -5
|
|