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
  3. Greetings Guest, Having Login Issues? Check this thread!
    Dismiss Notice
  4. Hail Guest!,
    Please take a moment to read this post reminding you all of the importance of Account Security.
    Dismiss Notice
  5. Author Wes Locher has teamed up with Stratics for a giveaway of his new book Braving Britannia. This book explores the history and impact of Ultima Online and includes interviews from current and past dev team members as well as many UO and Stratics community members. Click here for more details!
    Dismiss Notice

MACRO: Cycle Through Organizers

Discussion in 'Reference Library' started by LowdownandShifty, Jun 23, 2014.

  1. LowdownandShifty

    LowdownandShifty Journeyman

    Nov 19, 2013
    Likes Received:
    I wrote the following macro for my fisher. After fishing I wanted to store my catch but trash the boots. I created an organizer to do both, setting the default container on them to my fish box and trash can respectively. This macro allows me to click a button and cycle through the current active organizer. It displays the selected organizer overhead (visible only to you according to @Pinco). Add each line to a "Code" action in a new macro.

    script Organizer.ActiveOrganizer = (Organizer.ActiveOrganizer +1)%Organizer.Organizers+1
    script CustomSettings.SaveWString( "myOrg", L""..(Organizer.Organizers_Desc[Organizer.ActiveOrganizer]) )
    script SendChat( ChatSettings.Channels[ SystemData.ChatLogFilters.SYSTEM ], CustomSettings.LoadWString("myOrg") )
    You could modify it to cycle through specific organizers to serve different purposes, too. I hope this is helpful!