Elitist Jerks
Register
Blogs
Forums


Go Back   Elitist Jerks » Public Discussion » Public Discussion

Reply
 
LinkBack Thread Tools
Old 08/10/06, 1:04 PM   #1
 Hamlet
<Druid Trainer>
 
Hamlet's Avatar
 
Tauren Druid
 
Mal'Ganis
Can I make a macro that casts Fire Ward, except for when I have a debuff on me called "Blizzard," in which case it casts Frost Ward?


United States Offline
Reply With Quote
Old 08/10/06, 1:09 PM   #2
Papajan
Piston Honda
 
Gnome Mage
 
Lightbringer
I think so, although there's a little issue with it - buffs/debuffs are identified by their icons as far as I've seen.

The function to check a debuff - http://www.wowwiki.com/API_UnitDebuff
Some sample code to iterate through target debuffs (good starting point) - http://www.wowwiki.com/Check_Hunter_Mark

Offline
Reply With Quote
Old 08/10/06, 1:51 PM   #3
 Mygore
Bald Bull
 
Mygore's Avatar
 
Tauren Druid
 
Defias Brotherhood (EU)
Try this, hopefully will work:

Download this addon first of all : http://www.curse-gaming.com/en/wow/a...uffactive.html

then try the macro;

/script if (IsBuffActive("Blizzard")) then CastSpellByName("Frost Ward") else CastSpellByname("Fire Ward");end;

try that and see if it works if it doesn't then say and I will try fix it.

England Offline
Reply With Quote
Old 08/10/06, 5:31 PM   #4
Grailyn
Piston Honda
 
Grailyn's Avatar
 
Human Warrior
 
Uther
Hi-JACK but still on the macro topic...

Anyone know how to write a macro that will automatically target a specific raid icon? I could have sworn I saw someone post something that worked like that in the middle some some random thread a few weeks back, but I can't find it now that I need it.


Offline
Reply With Quote
Old 08/15/06, 6:51 AM   #5
Urden
Glass Joe
 
Murloc 
 
Quick question, anyone know how to make a macro to apply a bandage to myself

/target self blah blah, having trouble getting it to work.

Offline
Reply With Quote
Old 08/15/06, 7:26 AM   #6
 Nemesis
Global Warming lets me bike more.
 
Nemesis's Avatar
 
Nemmie
Blood Elf Paladin
 
No WoW Account (EU)
/script SetRaidTarget("target",Icon);


Replace Icon with one of these numbers:

0 = no icon
1 = Yellow 4-point Star
2 = Orange Circle
3 = Purple Diamond
4 = Green Triangle
5 = White Crescent Moon
6 = Blue Square
7 = Red "X" Cross
8 = White Skull

actually i misunderstood, this just paints the icon above your target howver this mod has the functionality you are looking for > http://ui.worldofwar.net/ui.php?id=2765

Originally Posted by Zyla
If you can undo the bra with your teeth, it leaves your hands free for the keyboard.

Belgium Offline
Reply With Quote
Old 08/15/06, 7:57 AM   #7
Mem
King Hippo
 
Mem's Avatar
 
Orc Shaman
 
Blackrock (EU)
Its also possible to create keybinds for targeting the different raid icons via the standard keybinding menu.

Offline
Reply With Quote
Old 08/15/06, 8:05 AM   #8
Christmas
Piston Honda
 
Murloc Warlock
 
Defias Brotherhood (EU)
Originally Posted by Grailyn
Hi-JACK but still on the macro topic...

Anyone know how to write a macro that will automatically target a specific raid icon? I could have sworn I saw someone post something that worked like that in the middle some some random thread a few weeks back, but I can't find it now that I need it.
http://www.wowwiki.com/Interface_Customization_FAQ

Q.Can I target mobs via raid icons? The ones set via the SetRaidTarget() API?

A No, and it is highly doubtful that we ever will. Blizzard explicitly does not want to allow unambiguous saving and restoring of targets programatically.
I don't think you can. You can find out what icon a targeted mob has assigned to it with GetRaidTargetIndex, and set targets with SetRaidTarget.

However, an event is triggered when raid target icons change. RaidTargetUpdate

"RAID_TARGET_UPDATE"
Category: Party,Unit Info
New in 1.11. Fired when a raid target icon is changed or removed. Also fired when player join or leave a party or raid. arg1 is who gets updated.

Note: Does not get triggered if a mob wearing a raid target icon dies (the icon is removed from that mob, however.)
Someone who knows the UI system better than me might be able to use a channel system to allow the raid leader to share info about which mobs he has set targets over to a mod using RaidTargetUpdate, and then if the mobs had unique names the mod could associate icons with names. However, for fights like Garr where you have 8 mobs with identical names, I don't see a way to get a useful /target gold star kind of system. Which is a crying shame.

Hopefully someone better than me will come and disprove me now, and I can work on my LazyLock mod.

Offline
Reply With Quote
Old 08/15/06, 8:16 AM   #9
Malan
Mike Tyson
 
Malan's Avatar
 
Malan
Tauren Shaman
 
No WoW Account
Originally Posted by Grailyn
Hi-JACK but still on the macro topic...

Anyone know how to write a macro that will automatically target a specific raid icon? I could have sworn I saw someone post something that worked like that in the middle some some random thread a few weeks back, but I can't find it now that I need it.
You can grab a mod called BananaBar off curse gaming. The catch though is that someone else has to already be targeting the mob/char with that raid icon - its how bliz limited automatic targeting I guess.

United States Offline
Reply With Quote
Old 08/15/06, 9:57 AM   #10
Axelrod
Von Kaiser
 
Troll Hunter
 
Mannoroth
Yeah, there is currently no function in the game to target a mob with a specific raid icon. However, there are addons available which find unique ways of doing this. There are ones which cycle through and assist off players whom are already targetting the specified mob, ones which cycle through each mob until the specified mob is found (even less reliable), ones which have you hover your mouse over a group of mobs until the specified mob is found (more manual), etc. Of course, none of these will give you 100% results.

To me, the best system so far is to have CT_RaidAssist's Main Tank's Target window be incorporated with raid icons. We have warriors and one or two pullers set up on it (usually as main assists on targetting) and with this, we usually have a wide array of targets to choose from. If I find it impossible to click on a certain mob, I'll just click on an MTT.

Offline
Reply With Quote
Old 08/15/06, 10:00 AM   #11
 frmorrison
Protector
 
frmorrison's Avatar
 
Ashstrike
Human Paladin
 
No WoW Account
Originally Posted by Urden
Quick question, anyone know how to make a macro to apply a bandage to myself

/target self blah blah, having trouble getting it to work.
If you get the mod called UseByName, it adds functionality to your macros.

Then you can make a macro:

/usebyname Heavy Runecloth Bandage
/target your chacter's name

Then you could optionally add /script ClearTarget(); after the 2nd line so you untarget yourself.

United States Offline
Reply With Quote
Old 08/15/06, 10:03 AM   #12
RoboStac
Don Flamenco
 
Tauren Druid
 
<XW>
Neptulon (EU)
You'd want to target yourself first - else you could be targeting a friendly player in bandaging range and bandage them. Also, /script TargetLastTarget() might be a better idea.

Great Britain Offline
Reply With Quote
Old 08/15/06, 10:09 AM   #13
 frmorrison
Protector
 
frmorrison's Avatar
 
Ashstrike
Human Paladin
 
No WoW Account
Originally Posted by RoboStac
You'd want to target yourself first - else you could be targeting a friendly player in bandaging range and bandage them. Also, /script TargetLastTarget() might be a better idea.
I like my macro to be able to bandaid friendly targets ;).

Yeah, TargetLastTarget is a better idea.

United States Offline
Reply With Quote
Old 08/15/06, 10:11 AM   #14
Malan
Mike Tyson
 
Malan's Avatar
 
Malan
Tauren Shaman
 
No WoW Account
Originally Posted by Urden
Quick question, anyone know how to make a macro to apply a bandage to myself

/target self blah blah, having trouble getting it to work.
Grab OmaTriage from Curse, auto finds bandaids in your inventory and bandages yourself (can't be applied to others with this addon) and doesn't lose your current target to do so.
http://www.curse-gaming.com/en/wow/a...ma-triage.html

United States Offline
Reply With Quote
Old 08/15/06, 10:17 AM   #15
Axelrod
Von Kaiser
 
Troll Hunter
 
Mannoroth
/cast UseContainerItem(#, #); (For #'s, go here)
/script if SpellIsTargeting() then TargetUnit("player"); end;

This would probably be what you're looking for if you don't want to install any addons. If you're already targetting another player, it will bandage that player. If you're targetting an enemy or no one, it will bandage yourself.

Offline
Reply With Quote
Reply

Go Back   Elitist Jerks » Public Discussion » Public Discussion

Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Quick question Lylena The Dung Heap 6 12/04/06 11:07 PM
Quick Macro Help :) Whiplash Public Discussion 8 08/21/06 9:37 AM
Question about Thaddius lag, requesting an event macro. Vhad Public Discussion 2 08/15/06 5:03 PM