1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Greetings Guest!!

    In order to combat SPAM on the forums, all users are required to have a minimum of 2 posts before they can submit links in any post or thread.

    Dismiss Notice

[Tech Help] Script/Macro for adding someone to the Ignore List?

Discussion in 'UO Enhanced Client Discussion' started by hawkeye_pike, Dec 4, 2010.

  1. hawkeye_pike

    hawkeye_pike Babbling Loonie
    Stratics Veteran

    Joined:
    May 15, 2008
    Messages:
    2,466
    Likes Received:
    11
    Is there a way to make a macro that brings up a targeting cursor so I can add someone to my ignore list, without the hassle of going through the options menu?
     
  2. Pinco

    Pinco UOEC Modder
    Stratics Veteran Stratics Legend

    Joined:
    Jul 25, 2005
    Messages:
    5,675
    Likes Received:
    865
    It will be in the next version of my UI :)
     
  3. hawkeye_pike

    hawkeye_pike Babbling Loonie
    Stratics Veteran

    Joined:
    May 15, 2008
    Messages:
    2,466
    Likes Received:
    11
    Nice! However, I don't want to use the whole UI, I'd just need the script so I can put it into a macro.
     
  4. Decors

    Decors UOEC Modder
    Stratics Veteran

    Joined:
    Jul 19, 2009
    Messages:
    93
    Likes Received:
    1
    Try this but it will pop settings window a split second.
    You need 3 command actions.

    Usage: target player. Then hit the macro.

    Code:
    script local tid=WindowData.CurrentTarget.TargetId AddPlayerToIgnoreList(tid,towstring(WindowData.MobileName[tid].MobName))
    script SettingsWindow.OnOkayButton()
    script for i,v in pairs(WindowData.IgnoreNameList) do Debug.PrintToChat(L" "..i..L" "..towstring(v)) end
    
     
  5. hawkeye_pike

    hawkeye_pike Babbling Loonie
    Stratics Veteran

    Joined:
    May 15, 2008
    Messages:
    2,466
    Likes Received:
    11
    Ah thanks, this works quite well!