[MACRO] Switch, need help please! menu

User Tag List

Results 1 to 6 of 6
  1. #1
    Nyarly's Avatar ★ Elder ★ Lorekeeper of Exploration
    Reputation
    1090
    Join Date
    Aug 2007
    Posts
    1,650
    Thanks G/R
    367/314
    Trade Feedback
    0 (0%)
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    [MACRO] Switch, need help please!

    I would like to make a switch macro.
    What i mean is :
    First time i click on it => cast Spell 1
    Seconde time => Spell 2

    I think that nomodifier can help with this but i can't find anything i can check that will change at every use.

    To be clearer it's for a warlock macro that must do :

    First use : Fel armor
    Seconde use : Demon Armor
    Third use : Fel armor
    ...

    Is there anyway to save a variable until deconnection?
    So i could do somethink like:
    Code:
    If local var == 1 /cast Fel armor; var = 2;
    else /cast Demon armor; var = 1;
    I know i can't check if one armor is on to cast the other one but there must be some way to do it :/


    Anything comes in mind ?
    Thanks.



    Edit : i just saw
    Code:
    /console Sound_EnableSFX 1
    If there's any way to check the value of something like this, it would be possible to make such macro (and switching it every time). Would be better with something less annoying than sound off/sound on.
    I really don't know how to use theses things, i need help ^^

    Edit 2 : actually, is it possible to make a new variable with /console ?
    Like /console myvar 1 ?

    Edit 3 (last one i promise) : With SetCVar maybe ?
    I'm very noobish with the /console thing :/
    Last edited by Nyarly; 04-14-2011 at 04:31 PM.

    [MACRO] Switch, need help please!
  2. #2
    Anonie's Avatar Knight-Lieutenant
    Reputation
    58
    Join Date
    Nov 2010
    Posts
    281
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Did you try castsequence? I use it for my druid's swipe/thrash macro with a 6 second cd to reset it back to swipe. maybe it'll work for you like you want it without the timer.

  3. #3
    Nyarly's Avatar ★ Elder ★ Lorekeeper of Exploration
    Reputation
    1090
    Join Date
    Aug 2007
    Posts
    1,650
    Thanks G/R
    367/314
    Trade Feedback
    0 (0%)
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Hm i don't think castsequence can do it, this macro must cast only one spell per use. (or i've misunderstood you :/)

  4. #4
    razer86's Avatar Contributor Authenticator enabled
    Reputation
    176
    Join Date
    Aug 2009
    Posts
    179
    Thanks G/R
    36/31
    Trade Feedback
    1 (100%)
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    /castsequence options resetcondition spelllist

    options
    Cast options to modify the cast. These are the same as cast, see that page for details.
    resetcondition
    If you wish to specify a condition to reset the list, you may do so here. Format is "reset=" followed by the reset condition, more than one condition may be set, see below.
    spelllist
    List of spells, separated by comma

    Reset Conditions

    When using more than one condition "/" should be used between the functions.

    <number> - The number of seconds since the last click
    target - You changed target
    combat - You entered or exited combat
    alt - Alt was pressed
    shift - Shift was pressed
    ctrl - Ctrl was pressed

    So, you could use something like:
    Reset the sequence when you enter combat (first click = Fel Armor, 2nd click = Demon Armor, unless you enter combat, which will reset the sequence back to Fel Armor)
    /castsequence reset=combat Fel Armor, Demon Armor

    or for a timed reset
    Reset back to Fel Armor 10 seconds after the first click
    /castsequence reset=10 Fel Armor, Demon Armor

    or just toggle
    Cast Fel Armor on first click, Cast Demon Armor on 2nd click
    /castsequence Fel Armor, Demon Armor

  5. #5
    Nyarly's Avatar ★ Elder ★ Lorekeeper of Exploration
    Reputation
    1090
    Join Date
    Aug 2007
    Posts
    1,650
    Thanks G/R
    367/314
    Trade Feedback
    0 (0%)
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Oh shi-
    I'm dumb, thanks for this, i thought castsequence was casting every spell in the list with just one click :/


    So i made this before i read your post :

    Code:
    /script RegisterCVar("testvar","0");
    /script y=tonumber(GetCVar("testvar"))
    /run if (y==0) then SendChatMessage("0","GUILD"); 
                           SetCVar("testvar","1"); 
                    else SendChatMessage("1","GUILD"); 
                           SetCVar("testvar","0"); 
                    end;
    And it works. It sends 0 the first time, 1 the second, 0 the third, ....
    But it won't work with "cast Fel Armor" instead of "SendChatMessage("testlol","GUILD")".
    I know my problem is solved (and thanks again +rep for both of you) but by curiosity, is it possible to cast spells within a /run or /script command ? (with cast or with Click or something like that ?)
    Last edited by Nyarly; 04-15-2011 at 08:28 AM.

  6. #6
    Anonie's Avatar Knight-Lieutenant
    Reputation
    58
    Join Date
    Nov 2010
    Posts
    281
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Dunno, I haven't ever tried to use /run or /script commands besides to print the time lost proto's mount drop to my chat, insane achievement to keep progress, certain music/sound from the game or something like that. Personally, I think that it is a limitation that blizz puts in there on purpose to make it so that it is not possible to automate the game. /scripts are powerful enough where they can automate certain class/spec's rotations if it can use abilities, and blizz definitely does not want people to be able to build macros to allow someone to spam press one button over and over again.

    Edit: To cast "every spell in the list with just one click", as you put it. You would need all the spells (except the last one) to NOT trigger GCD. Just list them one after another like:
    /cast Arcane Power
    /use Talisman of Resurgence
    /cast Icy Veins (this was during lk, so arcane mages could use this as well as arcane power)
    /cast Mirror Image
    That's my mage's WTFPWNT macro. Most racial/class dps/survival cd abilities don't trigger a GCD. Such as barkskin, cloak of shadow, icy veins, some trinkets, Arcane Power, Lifebloom and Frenzied Regeneration, Survival Instincts, Barkskin. BUT vendetta and hero/time/lust/best-thingee does proc GCD, so stick those at the end of the macro.
    Last edited by Anonie; 04-18-2011 at 11:20 PM.

Similar Threads

  1. [Macro} request, need help please. Prot warrior macro
    By macronoob in forum WoW UI, Macros and Talent Specs
    Replies: 3
    Last Post: 06-04-2012, 04:04 AM
  2. Need help please?
    By andrew619 in forum WoW ME Questions and Requests
    Replies: 4
    Last Post: 08-12-2007, 05:46 PM
  3. Need Help, Please Read!
    By Fenarth in forum World of Warcraft General
    Replies: 5
    Last Post: 08-12-2007, 10:57 AM
  4. i need help please
    By pewpewlazerz in forum World of Warcraft General
    Replies: 4
    Last Post: 07-15-2007, 12:42 PM
  5. Well, i need help please.
    By Airisus in forum WoW ME Questions and Requests
    Replies: 2
    Last Post: 01-14-2007, 03:27 PM
All times are GMT -5. The time now is 10:17 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search