Elitist Jerks
Register
Blogs
Forums


Go Back   Elitist Jerks » Public Discussion » Public Discussion

Reply
 
LinkBack Thread Tools
Old 03/18/08, 2:12 AM   #256
ishellbulleti
Glass Joe
 
Troll Mage
 
Twisting Nether
So i was looking for a macro or mod to swap people in raid via name and not have to actually drag them, or know their "number" in the raid. I stumbled across this thread

WoW-Europe.com Forums -> Moving people around in a raid via macro?

Heres the code I'm referring to if you wish to not look at the thread.
SLASH_RAIDSWAP1 = "/raidswap";

SlashCmdList["RAIDSWAP"] = function(msg)

   local name1, name2 = string.match(string.lower(msg), "^(.-) (.-)$");

   if name1 == nil or name2 == nil then

      ChatFrame1:AddMessage("Syntax: /raidswap name1 name2");

      return;

   end

   local idx1, idx2 = 0,0;

   for i = 1, GetNumRaidMembers() do

      local name = string.lower(GetRaidRosterInfo(i));

      if name == name1 then

         idx1 = i

      elseif name == name2 then

         idx2 = i

      end

   end

   if idx1 == 0 then

      ChatFrame1:AddMessage("Error, " .. name1 .. " not found in raid")

   elseif idx2 == 0 then

      ChatFrame1:AddMessage("Error, " .. name2 .. " not found in raid")

   else

      SwapRaidSubgroup(idx1, idx2)

   end

end;

Wondering how to implement such a thing, I'm guessing i have to make my own "addon" but attempting to do so i failed.

Any help would be appreciated.

Or if you know of some mod that works to swap people via name, thats fine as well.

Offline
Reply With Quote
Old 03/18/08, 3:30 AM   #257
Jemsky
Von Kaiser
 
Jemsky's Avatar
 
Night Elf Death Knight
 
Bronzebeard (EU)
Originally Posted by Sinzar View Post
Try this:
Snip
Try them both, see if it is what you were looking for.
Thanks for that..however , I was under the impression that castsequence macro command was broken..am I mistaken?

"To bathe a cat takes brute force, perseverance, courage of conviction - and a cat.
The last ingredient is usually hardest to come by."

Offline
Reply With Quote
Old 03/18/08, 9:55 AM   #258
Bnjoe
Glass Joe
 
Gnome Warlock
 
Lightninghoof
macros for SSC

Should I use a macro in SSC for my warlock. I have not used any yet. Will they make my game improve?

Offline
Reply With Quote
Old 03/20/08, 11:22 AM   #259
Sorcerer
Banned
 
Undead Mage
 
Lightning's Blade (EU)
#showtooltip Ice Armor;
/cast [modifier:shift] Ice Armor;
/cast [nomodifier:shift] Frost Armor(rank 1)

Any ideas why this macro is working only partially?
I can cast Ice armor with this macro with shift as modifier but Frost armor isnt buffing me, even though i dont have Icearmor / Frost armor higher rank up on me.

Edit: This one works but i want it like its above. Weird stuff.

#showtooltip Frost Armor;
/cast [modifier:shift] Frost Armor(rank 1);
/cast [nomodifier:shift] Ice armor

Edit2: problem solved. This one works but still wondering why 1st macro doesnt.
#showtooltip Frost Armor(rank 1);
/cast [nomodifier:shift] Frost Armor(rank 1);
/cast [modifier:shift] Ice Armor;

Last edited by Sorcerer : 03/20/08 at 11:33 AM.

Offline
Reply With Quote
Old 03/20/08, 12:50 PM   #260
Thanahtos
Von Kaiser
 
Thanahtos's Avatar
 
Undead Warlock
 
Stormrage
Originally Posted by Sorcerer View Post
#showtooltip Ice Armor;
/cast [modifier:shift] Ice Armor;
/cast [nomodifier:shift] Frost Armor(rank 1)

Any ideas why this macro is working only partially?
I can cast Ice armor with this macro with shift as modifier but Frost armor isnt buffing me, even though i dont have Icearmor / Frost armor higher rank up on me.

Edit: This one works but i want it like its above. Weird stuff.

#showtooltip Frost Armor;
/cast [modifier:shift] Frost Armor(rank 1);
/cast [nomodifier:shift] Ice armor

Edit2: problem solved. This one works but still wondering why 1st macro doesnt.
#showtooltip Frost Armor(rank 1);
/cast [nomodifier:shift] Frost Armor(rank 1);
/cast [modifier:shift] Ice Armor;
I'm not quite sure what you wanted to do with the [nomodifier:shift], do you want it to cast Frost Armor if you're not holding down shift, and cast it if you're holding down any other modifier? Anyhoo, this would be the easiest way:
#showtooltip Ice Armor
/cast [modifier:shift] Frost Armor(rank 1); Ice Armor

Offline
Reply With Quote
Old 03/20/08, 5:04 PM   #261
revoemag
Glass Joe
 
Gnome Warrior
 
Nesingwary
You should probably leave out the trailing semi-colon at the end of macros as they can sometimes lead to unintended consequences.

Offline
Reply With Quote
Old 03/21/08, 12:11 PM   #262
Zorick
Assistant to the Regional Manager
 
Zorick's Avatar
 
Draenei Shaman
 
Thunderlord
Announce delay macros.

I didn't see this posted yet so here is a little tip. You can create a delay in an action (I don't know the limitations, I only use it for reporting things to chat.) by using the Ace2 Library, AceEvent. If you are a user of Ace addons, you should already have this.

I use this functionality to automatically report to my party when the next [Drums of Battle] need to be used. But obviously this can be used for many other things, this is what my macro looks like.

/p Drums of Battle used. Next in 30 seconds.
/use Drums of Battle
/in 30 /p Use next Drums of Battle now.

Offline
Reply With Quote
Old 03/21/08, 6:49 PM   #263
Jarlyn
Don Flamenco
 
N/A
Undead Mage
 
No WoW Account
Apologies if this has been asked elsewhere, quick scan of this thread didn't reveal anything.

I have 2 [Carved Witch Doctor's Stick], a normal one with a +12 spell damage gem, and another with a +10 int gem I use for Evocation. It's clearly possible to distinguish between items of the same name via a mod (closetgnome, itemrack, et al), but I was curious if it could be done in a macro. I don't like using mods to do it for me because they love to switch things at inopportune times (triggering a GCD), so I'm wondering if anyone has any experience in this regards?

United States Offline
Reply With Quote
Old 03/22/08, 11:12 PM   #264
Baerbel
Glass Joe
 
Undead Rogue
 
Mannoroth (EU)
Regarding my Drums of Battle macro on the previous page:

First i want to thank Sinzar and Zorick for your suggestions.

@Sinzar: I made a new folder "drumsofbattle", created a drumsofbattle.lua with your code and a drumsofbattle.toc
When i start wow and click on addons at the character screen it is listed there.
However, when i try to use a macro in game like /run BaerbelThrottledMsg("test")
i get the following error mesage: [string "BaerbelThrottledMsg("test")"]:1: attempt to call a global 'BaerbelThrottledMsg' (a nil value)
and after clicking it several times: [string "BaerbelThrottledMsg("test")"]:1: unfinished string near '<eof>'

There is no message appearing in the chat window. I tested this while i was in a 10 man raid and had 2-4 other party members. Sadly i have pretty much no knowledge about creating wow addons, so i dont know how to fix this, so perhaps you could help me again?

@Zorick: The /in 30 /p msg seems to work nicely, thanks.


Ideally i would like to combine the 2 suggestions, would that be possible?
#showtooltip
/run BaerbelThrottledMsg("Using Drums of Battle, next one in 30 secs")
/use Drums of Battle
/in 30 /run BaerbelThrottledMsg("Drums of Battle expired, use next one")

Offline
Reply With Quote
Old 03/22/08, 11:40 PM   #265
Sinzar
Von Kaiser
 
Sinzar's Avatar
 
Human Death Knight
 
Greymane
Code I posted should work fine! I'm guessing you maybe created the .toc wrong, so anyway I made and uploaded it for you
http://www.lunarisguild.org/sinzar/m...msofbattle.zip

And yes, this should work fine:
#showtooltip
/run BaerbelThrottledMsg("Using Drums of Battle, next one in 30 secs")
/use Drums of Battle
/in 30 /run BaerbelThrottledMsg("Drums of Battle expired, use next one")

Offline
Reply With Quote
Old 03/23/08, 12:08 AM   #266
Baerbel
Glass Joe
 
Undead Rogue
 
Mannoroth (EU)
Again thanks for your help, tested it and it is working like a charm now

Offline
Reply With Quote
Old 03/23/08, 12:31 AM   #267
hypetech
Don Flamenco
 
hypetech's Avatar
 
Draenei Mage
 
Elune
Originally Posted by Jarlyn View Post
Apologies if this has been asked elsewhere, quick scan of this thread didn't reveal anything.

I have 2 [Carved Witch Doctor's Stick], a normal one with a +12 spell damage gem, and another with a +10 int gem I use for Evocation. It's clearly possible to distinguish between items of the same name via a mod (closetgnome, itemrack, et al), but I was curious if it could be done in a macro. I don't like using mods to do it for me because they love to switch things at inopportune times (triggering a GCD), so I'm wondering if anyone has any experience in this regards?
I believe the only way to do this would be to use an assigned bag slot, but I don't know the specifics.

Offline
Reply With Quote
Old 03/23/08, 6:05 PM   #268
badMonkey
Von Kaiser
 
badMonkey's Avatar
 
Night Elf Rogue
 
Tirion (EU)
Originally Posted by Jarlyn View Post
Apologies if this has been asked elsewhere, quick scan of this thread didn't reveal anything.

I have 2 [Carved Witch Doctor's Stick], a normal one with a +12 spell damage gem, and another with a +10 int gem I use for Evocation. It's clearly possible to distinguish between items of the same name via a mod (closetgnome, itemrack, et al), but I was curious if it could be done in a macro. I don't like using mods to do it for me because they love to switch things at inopportune times (triggering a GCD), so I'm wondering if anyone has any experience in this regards?
Yes, assigning a specific bag slot seems to be the only possibility, see this page for further information.

Offline
Reply With Quote
Old 03/23/08, 6:22 PM   #269
badMonkey
Von Kaiser
 
badMonkey's Avatar
 
Night Elf Rogue
 
Tirion (EU)
Originally Posted by ishellbulleti View Post
/run UIErrorsFrame:Hide();
You may delete this line and download ErrorMonster, in order to avoid spam-lags (dunno if this happens, but it manages with one line less)

Offline
Reply With Quote
Old 03/25/08, 10:58 PM   #270
Sodsleep
Glass Joe
 
Undead Priest
 
Staghelm
With 2.4 being out now, anyone know if there are toggles we can put in macros for detailed loot info and the automatic passing of loot?

Thanks.

Offline
Reply With Quote
Reply

Go Back   Elitist Jerks » Public Discussion » Public Discussion

Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Warlock] 5 v 5 Macro help Cronjob Player vs. Player 13 09/08/07 6:38 AM
Need help with a macro. Iol User Interface and AddOns 5 08/10/07 3:36 PM
Macro Fun KGBAgent185 Public Discussion 16 11/05/05 1:24 PM