Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

Razor Macros for Imagine Nation
#4


REQUIREMENTS
1. a metal box with a key
2. lockpicks
3. one lockpick in your backpack
4. a supply container for lockpicks


SETUP

A. Razor checks if the box is locked by checking two types of Last System Message. If unlocked, it locks the box.

1. You have to retarget the key to the box. Twice - for every time of Last System Message.
2. You have to retarget the box you're going to lock. Twice - for every time of Last System Message.

B. Razor checks if there are lockpicks in your backpack and restocks them, if there are none.

1. You must have [lockpick%s% (14FC)] in your Restock-1 agent.
2. You have to retarget your supply container.
3. You must also have [lockpicks] in counters.xml:

[HTML]
Lockpick
lkp 5372
-1
[/HTML]

C. Razor checks if there lockpicks in your backpack, and if there are, it tries to lockpick the box.

1. You must have at least one lockpick in your backpack, and you have to retarget it.
2. You have to retarget the box you're going to lockpick.


CODE:

Code:
!Loop
//
// LOCKING THE BOX
//
Assistant.Macros.IfAction|4|0|The lock quickly
Assistant.Macros.PauseAction|00:00:00.7000000
[COLOR="#40E0D0"]// retarget the key
Assistant.Macros.DoubleClickAction|1097808492|4110[/COLOR]
Assistant.Macros.WaitForTargetAction|10
[COLOR="#40E0D0"]// retarget the box
Assistant.Macros.AbsoluteTargetAction|0|0|1097808491|2912|988|7|3712[/COLOR]
Assistant.Macros.PauseAction|00:00:01
Assistant.Macros.EndIfAction
Assistant.Macros.IfAction|4|0|This does not appear
Assistant.Macros.PauseAction|00:00:00.7000000
[COLOR="#40E0D0"]// retarget the key
Assistant.Macros.DoubleClickAction|1097808492|4110[/COLOR]
Assistant.Macros.WaitForTargetAction|10
[COLOR="#40E0D0"]// retarget the box
Assistant.Macros.AbsoluteTargetAction|0|0|1097808491|2912|988|7|3712[/COLOR]
Assistant.Macros.PauseAction|00:00:01
Assistant.Macros.EndIfAction
//
// RESTOCKING LOCKPICKS
//
Assistant.Macros.IfAction|50|0|1|Lockpick
Assistant.Macros.PauseAction|00:00:00.7000000
Assistant.Macros.HotKeyAction|0|Restock Agent-1
Assistant.Macros.WaitForTargetAction|10
[COLOR="#40E0D0"]// retarget the supply container
Assistant.Macros.AbsoluteTargetAction|0|0|1098055490|2912|987|6|3644[/COLOR]
Assistant.Macros.PauseAction|00:00:01
Assistant.Macros.EndIfAction
//
// LOCKPICKING THE BOX
//
Assistant.Macros.IfAction|50|1|2|Lockpick
Assistant.Macros.PauseAction|00:00:00.7000000
[COLOR="#40E0D0"]// retarget the lockpick in your backpack
Assistant.Macros.DoubleClickAction|1098068013|5372[/COLOR]
Assistant.Macros.WaitForTargetAction|10
[COLOR="#40E0D0"]// retarget the locked box
Assistant.Macros.AbsoluteTargetAction|0|0|1097808491|2912|988|7|3712[/COLOR]
Assistant.Macros.PauseAction|00:00:05
Assistant.Macros.EndIfAction


Messages In This Thread
Razor Macros for Imagine Nation - by Elia - 04-07-2012, 11:04 AM
Razor Macros for Imagine Nation - by Elia - 04-07-2012, 11:07 AM
Razor Macros for Imagine Nation - by Elia - 04-07-2012, 11:16 AM
Razor Macros for Imagine Nation - by Elia - 04-07-2012, 11:18 AM
Razor Macros for Imagine Nation - by Elia - 04-07-2012, 11:20 AM
Razor Macros for Imagine Nation - by tranith - 04-08-2012, 09:07 PM
Razor Macros for Imagine Nation - by Elia - 04-08-2012, 09:48 PM
Razor Macros for Imagine Nation - by tranith - 04-08-2012, 10:02 PM
Razor Macros for Imagine Nation - by Elia - 04-08-2012, 10:16 PM
Razor Macros for Imagine Nation - by Elia - 04-08-2012, 11:18 PM
Razor Macros for Imagine Nation - by tranith - 04-08-2012, 11:18 PM
Razor Macros for Imagine Nation - by tranith - 04-08-2012, 11:20 PM
Razor Macros for Imagine Nation - by tranith - 04-08-2012, 11:21 PM
Razor Macros for Imagine Nation - by Elia - 04-08-2012, 11:25 PM
Razor Macros for Imagine Nation - by tranith - 04-09-2012, 12:07 AM
Razor Macros for Imagine Nation - by Elia - 04-09-2012, 05:18 PM
Razor Macros for Imagine Nation - by tranith - 04-08-2012, 11:13 PM

Forum Jump:


Users browsing this thread: 4 Guest(s)