RunMacroText breakline problem menu

Shout-Out

User Tag List

Results 1 to 7 of 7
  1. #1
    Nesox's Avatar ★ Elder ★
    Reputation
    1280
    Join Date
    Mar 2007
    Posts
    1,238
    Thanks G/R
    0/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    RunMacroText breakline problem

    I'm trying to run this macro, but i cant seem to get it working.
    it's no adding the breaklines correctly. Any idea how wow would parse breaklines used in a macro? tried with \n & Environment.NewLine

    Code:
    /use Crystallized Fire 
    /use Crystallized Air 
    /use Crystallized Water 
    /use Crystallized Shadow 
    /use Crystallized Earth 
    /use Crystallized Life 
    /cast Swift Green Wind Rider
    Code:
    if(UseCrystallized)
    {
        string macro =
            string.Format(
                "RunMacroText(\"/use Crystallized Fire\n /use Crystallized Air\n /use Crystallized Water\n /use Crystallized Shadow\n /use Crystallized Earth\n /use Crystallized Life\n /cast {0}\")", 
                MountName);
    
        Lua.DoString(macro);    
    }

    RunMacroText breakline problem
  2. #2
    wraithZX's Avatar Active Member
    Reputation
    43
    Join Date
    May 2007
    Posts
    122
    Thanks G/R
    0/1
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Tried \r\n ?
    My macro file has \r\n line endings, so I dunno if that's something that's specific to the execution...

  3. #3
    lanman92's Avatar Active Member
    Reputation
    50
    Join Date
    Mar 2007
    Posts
    1,033
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    OR, you could make it a /script or /run and just do UseItem(..) CastSpellByName(...).

  4. #4
    Nesox's Avatar ★ Elder ★
    Reputation
    1280
    Join Date
    Mar 2007
    Posts
    1,238
    Thanks G/R
    0/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i'll try \r\n
    @lanman92 i looked for a function like that but i couldnt find any..
    There's UseContainerItem but then you need the bagid and slotid

  5. #5
    Gorzul's Avatar Member
    Reputation
    8
    Join Date
    May 2009
    Posts
    19
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Nesox View Post
    i'll try \r\n
    @lanman92 i looked for a function like that but i couldnt find any..
    There's UseContainerItem but then you need the bagid and slotid
    Use UseItemByName("ItemName")

  6. #6
    Nesox's Avatar ★ Elder ★
    Reputation
    1280
    Join Date
    Mar 2007
    Posts
    1,238
    Thanks G/R
    0/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Gorzul View Post
    Use UseItemByName("ItemName")
    Oh lol that worked thx

  7. #7
    lanman92's Avatar Active Member
    Reputation
    50
    Join Date
    Mar 2007
    Posts
    1,033
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    All of the /whatever commands are pretty much macros in themselves i think. /emote = /script DoEmote()...

Similar Threads

  1. Problem with CE.
    By Eldretch in forum World of Warcraft General
    Replies: 1
    Last Post: 08-08-2006, 06:49 PM
  2. realm list problem
    By robtuner in forum World of Warcraft General
    Replies: 2
    Last Post: 07-21-2006, 09:08 AM
  3. I have problem with BHW 3.0
    By sunrize1 in forum World of Warcraft General
    Replies: 1
    Last Post: 07-17-2006, 08:49 AM
  4. wow emu problem
    By bezike in forum World of Warcraft General
    Replies: 0
    Last Post: 07-09-2006, 04:45 PM
  5. Site problems
    By Shanaar in forum Community Chat
    Replies: 10
    Last Post: 05-14-2006, 01:15 AM
All times are GMT -5. The time now is 05:24 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search