Shield of FRIENDSHIP and HONOR (House Entering Macro w/ Auto Detect & Ban)

Discussion in 'Project Sanctuary [P'S]' started by maobear, Feb 13, 2018.

  1. maobear

    maobear Member
    UO:R Subscriber
    UO:R Donor

    Joined:
    Jan 31, 2018
    Messages:
    62
    Likes Received:
    44
    Hi all, thought I'd try to give back a little to the community after all help they've given me!!

    This is a lazy man's fool-proof macro for entering your house. Here's how it works:
    • Automatically unlock, open, and relock your front door
    • Gives you a couple seconds to walk in
    • Closes the door
    • Automatically detects hidden
    • On detecting a FOOLISH THIEF, automatically ban them!!
    • ... but BEFORE auto-ban, FIRST let them know that the EYE OF JUSTICE SEES ALL! (trash talk would-be thief)
    • If the house is safe, LET THE WORLD KNOW (so you don't have to look for "nothing hidden" message)

    [​IMG]

    Further notes:
    • You'll need to retarget key-rings/doors in the macro
    • My pauses are all set to 800ms because I live far from the server, you probably want to set this to the same as your Object Delay (More Options in Razor).
    • Because you have no faith in justice, you may want to change the text to "Ahh... I'm home..." or something equally lame.
    • Your key ring will need to be placed above the door so it can be accessed from both sides, or you'll need 2 sets of keys and just retarget in the macro.
    • During the pause given for you to walk inside, don't go too far or the door will not auto-close.
    • Target queue is also cleared before macro starts so no last targets can get in the way.
    Macro Below. I have also included my auto-counter unlock/pickup/drop/lockdown/detect macro below.

    Special thanks to Patek from IRC who helped me trick Razor into making the if(sysMessage) actually work.

    More macros to come. Please contact the BANK OF JUSTICE for all donations.

    Cheers,
    A True Knight of Justice

    Shield of FRIENDSHIP and HONOR Macro
    Code:
    Assistant.Macros.HotKeyAction|1195|
    
    Assistant.Macros.DoubleClickAction|1167720655|5994
    Assistant.Macros.WaitForTargetAction|30
    Assistant.Macros.AbsoluteTargetAction|0|0|1167678826|728|653|5|1701
    Assistant.Macros.DoubleClickAction|1167678826|1701
    Assistant.Macros.DoubleClickAction|1167720655|5994
    Assistant.Macros.WaitForTargetAction|30
    Assistant.Macros.AbsoluteTargetAction|0|0|1167678826|727|654|5|1702
    Assistant.Macros.PauseAction|00:00:02
    Assistant.Macros.DoubleClickAction|1167678826|1702
    Assistant.Macros.IfAction|4|0|you can see nothing hidden
    Assistant.Macros.EndIfAction
    Assistant.Macros.UseSkillAction|14
    Assistant.Macros.WaitForTargetAction|30
    Assistant.Macros.HotKeyAction|1059|
    Assistant.Macros.PauseAction|00:00:00.8000000
    Assistant.Macros.IfAction|4|0|you can see nothing hidden
    Assistant.Macros.SpeechAction|0|52|3|ENU|4|33|51|25|16|The shield of HONOR and FRIENDSHIP is strong!!!
    Assistant.Macros.ElseAction
    Assistant.Macros.HotKeyAction|1195|
    Assistant.Macros.SpeechAction|0|52|3|ENU|0|FOOL!!! Did you think your trickery would work here!?!?
    Assistant.Macros.SpeechAction|0|52|3|ENU|2|17|51|THE EYES OF JUSTICE SEE ALL
    Assistant.Macros.SpeechAction|0|52|3|ENU|2|16|52|I ban thee
    Assistant.Macros.HotKeyAction|1515|
    Assistant.Macros.EndIfAction
    Secondary FREEDOM GUARD Macro
    Code:
    Assistant.Macros.HotKeyAction|1195|
    Assistant.Macros.SpeechAction|0|52|3|ENU|2|16|36|I wish to release this
    Assistant.Macros.PauseAction|00:00:00.8000000
    Assistant.Macros.AbsoluteTargetAction|0|0|1146147258|727|650|5|5736
    Assistant.Macros.LiftAction|1146147258|1|5736
    Assistant.Macros.DropAction|0x449BAC8E|(62, 87, 0)|0
    Assistant.Macros.PauseAction|00:00:02
    Assistant.Macros.LiftAction|1146147258|1|5736
    Assistant.Macros.DropAction|0xFFFFFFFF|(727, 650, 5)|0
    Assistant.Macros.SpeechAction|0|52|3|ENU|2|16|35|I wish to lock this down
    Assistant.Macros.PauseAction|00:00:00.8000000
    Assistant.Macros.AbsoluteTargetAction|0|0|1146147258|727|650|5|5736
    Assistant.Macros.HotKeyAction|0|Play: Detect Hidden On Me
    Last edited: Feb 13, 2018
    Ahirman, Killian, Dr Satan and 7 others like this.
  2. El Horno

    El Horno Well-Known Member
    UO:R Subscriber

    Joined:
    Aug 4, 2014
    Messages:
    3,612
    Likes Received:
    4,899
    Trash talking is a very nice touch. +1
  3. Leopold

    Leopold Well-Known Member
    UO:R Subscriber

    Joined:
    Jul 29, 2017
    Messages:
    675
    Likes Received:
    912
    Nice. I always place a table to stop my character 1 tile in front of the doors in my houses to make sure I don't travel too far inside and "miss" closing and locking the door. That way I can run in side quickly. For the villa, I found that you can make a nice row of tables/counters on the east side and set your macro to the right-side door. It mirrors your table wall on the other side and looks nice.

    Another piece of advice, do NOT put these on a hotkey that you could accidentally hit while fighting players or MOBs. It will screw up your targeting and hang you for a long time and you'll probably end up dying. I use alt+1, alt+2, etc. for these.
    Azerothian likes this.
  4. maobear

    maobear Member
    UO:R Subscriber
    UO:R Donor

    Joined:
    Jan 31, 2018
    Messages:
    62
    Likes Received:
    44
    I also use alt+1 alt+2, etc.

    Recently I've been adding a clear target queue to the beginning of almost all my combat macros because of similar problems. Probably has something to do with the target closest non-friendly + attack last target macro I use.
  5. OptimisticSam

    OptimisticSam Well-Known Member
    UO:R Subscriber

    Joined:
    Dec 17, 2016
    Messages:
    871
    Likes Received:
    884
    Is there a button for "dislike"?!

    Fell victim to a similar macro this past weekend. All the way into the house, through the table wall, bam, some lame auto-ban macro! ;)
    Azerothian and maobear like this.
  6. Swunk

    Swunk Member

    Joined:
    Apr 3, 2014
    Messages:
    39
    Likes Received:
    24
    I have used this almost ever since Razor became a thing.

Share This Page