07-19-2010, 11:37 AM
I have seen a few requests for a lightning trapsin script, and configured the old sorc script to use a trap assassin. You may want to mess around with the "Timeout_Attack" delay to prevent it from taking too long, but it is up to the user. Any questions or comments, feel free to post or pm me
[VARS]
;=============================================================================
;Lightning Trap Assassin Script for Eldritch, Pindle, and Shenk
;=============================================================================
;==============================================================================
; Skill Hotkeys
;==============================================================================
@TP_Scroll_Key = F6 ;Town Portal Key
@Teleport_Key = F3 ; Teleport Skill Key
@LS_Key = F1 ; Lightning Sentry Skill Key
@Blade_Shield_Key = F4 ; Blade Skill Key (put a blank if you dont have)
@Fade_Key = F5 ; Fade Skill Key (put a blank if you dont have)
@Battle_Commands_Key = F7 ; Battle Commands Skill Key (leave blank if you dont have)
@Battle_Orders_Key = F8 ; Battle Orders Skill Key (leave blank if you dont have)
;==============================================================================
; Delay Settings
;==============================================================================
@Timeout_Attack = 5000 ;Delay for the Assassin to wait for traps to kill
@Random_Delay_Before_Eldritch = 100,200 ; <mini>,<maxi> TOWN random delay (ms.)
@Random_Delay_Before_Pindle = 100,200 ; <mini>,<maxi> TOWN random delay (ms.)
@Wait_End_Of_Teleport_Delay = 1200 ; Delay before retry to teleport (ms.)
@Timeout_Eldritch_Pre_Attack = 4000 ; Maximum primary attack time on Eldritch (ms.)
@Timeout_Shenk_Pre_Attack = 4000 ; Maximum primary attack time on Shenk (ms.)
@Timeout_Pindle_Pre_Attack = 4000 ; Maximum primary attack time on Pindle (ms.)
@Timeout_Eldritch_Attack = 20000 ; Maximum main attack time on Eldritch (ms.)
@Timeout_Shenk_Attack = 20000 ; Maximum main attack time on Shenk (ms.)
@Timeout_Pindle_Attack = 20000 ; Maximum main attack time on Pindle (ms.)
@Pre-Cast_Random_Delay = 300,400 ; Random Delay when casting CTA or Pre-Cast (ms.)
@Attack_Loop_Delay = 100 ; Tweak it to change attacks loop/cast speed (ms.)
@Key_Push_Delay = 100 ; Delay to let the Skills appears at right click (ms.)
@WP_Menu_Delay = 400 ; Delay x2 to wait the WP menu appears at screen.
;==============================================================================
;============================================================
; LS Sin MAIN, The MAIN will call these sequences in order:
;============================================================
[MAIN]
LS_Sin_Town_Pre_Cast, 0
LS_Sin_Town_GoTo_PindleTP, 0
LS_Sin_Will_Use_Cta_OutTown, 0 ; If you dont use CTA comment this sequence with " ; "
LS_Sin_GoTo_Pindle, 0
LS_Sin_Pre_Attack_Pindle, @Timeout_Pindle_Pre_Attack
LS_Sin_Attack_Pindle, @Timeout_Pindle_Attack
LS_Sin_Pindle_Pickit, 0
LS_Sin_BackA5Town, 0
LS_Sin_Town_Goto_Eldritch_Wp, 0
LS_Sin_Will_Use_Cta_OutTown, 0 ; If you dont use CTA comment this sequence with " ; "
LS_Sin_GoTo_Eldritch, 0
LS_Sin_Pre_Attack_Eldritch, @Timeout_Eldritch_Pre_Attack
LS_Sin_Attack_Eldritch, @Timeout_Eldritch_Attack
LS_Sin_Eldritch_Pickit, 0
LS_Sin_FromEldritchGoToShenk, 0
LS_Sin_Pre_Attack_Shenk, @Timeout_Shenk_Pre_Attack
LS_Sin_Attack_Shenk, @Timeout_Shenk_Attack
LS_Sin_Shenk_Corpse_teleport,0
LS_Sin_Attack_Shenk, @Timeout_Shenk_Attack
LS_Sin_Shenk_Pickit, 0
LS_Sin_BackA5Town, 0
; And below all the sequences called above, not necessary in order:
;=====================================
; LS Sin Precast Before Entering Portal
;=====================================
[LS_Sin_Town_Pre_Cast]
SR(@Random_Delay_Before_Eldritch)
K(@Blade_Shield_Key)
S(@Key_Push_Delay)
RC(400,60)
SR(@Pre-Cast_Random_Delay)
K(@Fade_Key)
S(@Key_Push_Delay)
RC(400,60)
SR(@Pre-Cast_Random_Delay)
EXIT
;==============
; Go to Pindle TP
;==============
[LS_Sin_Town_GoTo_PindleTP]
FUNC:A5WPtoATP
;==============
; Teleport to Pindle
;==============
[LS_Sin_GoTo_Pindle]
K(@Teleport_Key)
S(@Key_Push_Delay)
BRC(400,-310)
WEOT(@Wait_End_Of_Teleport_Delay)
RC(735,35)
WEOT(@Wait_End_Of_Teleport_Delay)
BRC(600,-30)
WEOT(@Wait_End_Of_Teleport_Delay)
K(@LS_Key)
S(@Key_Push_Delay)
EXIT
;=================================
; PindleSkin Cast Traps
;=================================
[LS_Sin_Pre_Attack_Pindle]
K(@LS_Key)
RC(600,156)
S(@Key_Push_Delay)
RC(600,156)
S(@Key_Push_Delay)
RC(600,156)
S(@Key_Push_Delay)
RC(600,156)
S(@Key_Push_Delay)
RC(600,156)
S(@Key_Push_Delay)
CLM
CML
CMDEAD
CTOE.
;=====================
; Pindle Wait For Monsters To Die
;=====================
[LS_Sin_Attack_Pindle]
K(@Teleport_Key)
S(@Timeout_Attack)
CLM
CML
CMDEAD
CTOE.
;===============
; Pindle Pickit
;===============
[LS_Sin_Pindle_Pickit]
S(300)
K(@Teleport_Key)
S(@Key_Push_Delay)
RC(560,190)
WEOT(@Wait_End_Of_Teleport_Delay)
CLM
CML
S(200)
PICKIT(600)
EXIT
;=============
; BackToTownA5
;=============
[LS_Sin_BackA5Town]
K(@TP_Scroll_Key)
S(@Key_Push_Delay)
FUNC:TOWNTP ; Return to town using tp
FUNC:A5TownPoint ; Check items at malah, merc status, stash, repair etc... And go to A5 Town WP.
EXIT
;==============================================
; LS Sin Goto Frigid Highlands (Eldritch WP)
;==============================================
[LS_Sin_Town_Goto_Eldritch_Wp]
FUNC:A5EWP ; This function will go from A5 Town WP to Eldritch WayPoint.
EXIT
;===============
; Optional: CTA
;===============
[LS_Sin_Will_Use_Cta_OutTown]
S(@WP_Menu_Delay)
SWITCH1 ; Internal SWITCH1 command (Switch to secondary gear).
K(@Battle_Commands_Key)
S(@Key_Push_Delay)
RC(500,60)
SR(@Pre-Cast_Random_Delay)
RC(500,60)
SR(@Pre-Cast_Random_Delay)
K(@Battle_Orders_Key)
S(@Key_Push_Delay)
RC(500,60)
S(@Pre-Cast_Random_Delay)
SWITCH2 ; Internal SWITCH1 command (Switch back to primary gear).
EXIT
;================
; Teleport To Eldritch
;================
[LS_Sin_GoTo_Eldritch]
K(@Teleport_Key)
S(@Key_Push_Delay)
BRC(155,-60)
WEOT(@Wait_End_Of_Teleport_Delay)
CLM
CML
BRC(70,-330)
WEOT(@Wait_End_Of_Teleport_Delay)
CLM
CML
K(@LS_Key)
S(@Key_Push_Delay)
EXIT
;=====================================
; Eldritch Cast Traps
;=====================================
[LS_Sin_Pre_Attack_Eldritch]
K(@LS_Key)
RCD(395,80)
S(@Key_Push_Delay)
RCD(395,80)
S(@Key_Push_Delay)
RCD(395,80)
S(@Key_Push_Delay)
RCD(395,80)
S(@Key_Push_Delay)
RCD(395,80)
S(@Key_Push_Delay)
CLM
CML
CMDEAD
CTOE
;=============================
; Eldritch Wait For Monsters To Die
;=============================
[LS_Sin_Attack_Eldritch]
K(@Teleport_Key)
S(@Timeout_Attack)
CLM
CML
CMDEAD
CTOE.
;=================
; Eldritch Pickit
;=================
[LS_Sin_Eldritch_Pickit]
S(300)
K(@Teleport_Key)
S(@Key_Push_Delay)
RC(440, 140)
WEOT(@Wait_End_Of_Teleport_Delay)
CLM
CML
S(200)
PICKIT(600)
EXIT
;=================
; Teleport To Shenk
;=================
[LS_Sin_FromEldritchGoToShenk]
RC(430, 510)
WEOT(@Wait_End_Of_Teleport_Delay)
CLM
CML
RC(430, 510)
WEOT(@Wait_End_Of_Teleport_Delay)
CLM
CML
RC(430, 510)
WEOT(@Wait_End_Of_Teleport_Delay)
CLM
CML
BRC(300,140)
WEOT(@Wait_End_Of_Teleport_Delay)
CLM
CML
BRC(690,330)
WEOT(@Wait_End_Of_Teleport_Delay)
CLM
CML
BRC(650,260)
WEOT(@Wait_End_Of_Teleport_Delay)
CLM
CML
BRC(360,350)
WEOT(@Wait_End_Of_Teleport_Delay)
CLM
CML
RC(747,545)
WEOT(@Wait_End_Of_Teleport_Delay)
CLM
CML
EXIT
;=====================================
; Shenk Cast Traps
;=====================================
[LS_Sin_Pre_Attack_Shenk]
K(@LS_Key)
RC(532,394)
S(@Key_Push_Delay)
RC(532,394)
S(@Key_Push_Delay)
RC(532,394)
S(@Key_Push_Delay)
RC(532,394)
S(@Key_Push_Delay)
RC(532,394)
S(@Key_Push_Delay)
CLM
CML
CMDEAD
CTOE
;=============================
; Shenk Wait For Monsters To Die
;=============================
[LS_Sin_Attack_Shenk]
K(@Teleport_Key)
S(@Timeout_Attack)
CLM
CML
CMDEAD
CTOE.
;=============================================
; Shenk Pickit
;=============================================
[LS_Sin_Shenk_Pickit]
CLM
CML
S(200)
PICKIT(600)
EXIT
;=============
; BackToTownA5
;=============
[LS_Sin_BackA5Town]
K(@TP_Scroll_Key)
S(@Key_Push_Delay)
FUNC:TOWNTP ; Return to town using tp
FUNC:A5TownPoint ; Check items at malah, merc status, stash, repair etc... And go to A5 Town WP.
EXIT
[VARS]
;=============================================================================
;Lightning Trap Assassin Script for Eldritch, Pindle, and Shenk
;=============================================================================
;==============================================================================
; Skill Hotkeys
;==============================================================================
@TP_Scroll_Key = F6 ;Town Portal Key
@Teleport_Key = F3 ; Teleport Skill Key
@LS_Key = F1 ; Lightning Sentry Skill Key
@Blade_Shield_Key = F4 ; Blade Skill Key (put a blank if you dont have)
@Fade_Key = F5 ; Fade Skill Key (put a blank if you dont have)
@Battle_Commands_Key = F7 ; Battle Commands Skill Key (leave blank if you dont have)
@Battle_Orders_Key = F8 ; Battle Orders Skill Key (leave blank if you dont have)
;==============================================================================
; Delay Settings
;==============================================================================
@Timeout_Attack = 5000 ;Delay for the Assassin to wait for traps to kill
@Random_Delay_Before_Eldritch = 100,200 ; <mini>,<maxi> TOWN random delay (ms.)
@Random_Delay_Before_Pindle = 100,200 ; <mini>,<maxi> TOWN random delay (ms.)
@Wait_End_Of_Teleport_Delay = 1200 ; Delay before retry to teleport (ms.)
@Timeout_Eldritch_Pre_Attack = 4000 ; Maximum primary attack time on Eldritch (ms.)
@Timeout_Shenk_Pre_Attack = 4000 ; Maximum primary attack time on Shenk (ms.)
@Timeout_Pindle_Pre_Attack = 4000 ; Maximum primary attack time on Pindle (ms.)
@Timeout_Eldritch_Attack = 20000 ; Maximum main attack time on Eldritch (ms.)
@Timeout_Shenk_Attack = 20000 ; Maximum main attack time on Shenk (ms.)
@Timeout_Pindle_Attack = 20000 ; Maximum main attack time on Pindle (ms.)
@Pre-Cast_Random_Delay = 300,400 ; Random Delay when casting CTA or Pre-Cast (ms.)
@Attack_Loop_Delay = 100 ; Tweak it to change attacks loop/cast speed (ms.)
@Key_Push_Delay = 100 ; Delay to let the Skills appears at right click (ms.)
@WP_Menu_Delay = 400 ; Delay x2 to wait the WP menu appears at screen.
;==============================================================================
;============================================================
; LS Sin MAIN, The MAIN will call these sequences in order:
;============================================================
[MAIN]
LS_Sin_Town_Pre_Cast, 0
LS_Sin_Town_GoTo_PindleTP, 0
LS_Sin_Will_Use_Cta_OutTown, 0 ; If you dont use CTA comment this sequence with " ; "
LS_Sin_GoTo_Pindle, 0
LS_Sin_Pre_Attack_Pindle, @Timeout_Pindle_Pre_Attack
LS_Sin_Attack_Pindle, @Timeout_Pindle_Attack
LS_Sin_Pindle_Pickit, 0
LS_Sin_BackA5Town, 0
LS_Sin_Town_Goto_Eldritch_Wp, 0
LS_Sin_Will_Use_Cta_OutTown, 0 ; If you dont use CTA comment this sequence with " ; "
LS_Sin_GoTo_Eldritch, 0
LS_Sin_Pre_Attack_Eldritch, @Timeout_Eldritch_Pre_Attack
LS_Sin_Attack_Eldritch, @Timeout_Eldritch_Attack
LS_Sin_Eldritch_Pickit, 0
LS_Sin_FromEldritchGoToShenk, 0
LS_Sin_Pre_Attack_Shenk, @Timeout_Shenk_Pre_Attack
LS_Sin_Attack_Shenk, @Timeout_Shenk_Attack
LS_Sin_Shenk_Corpse_teleport,0
LS_Sin_Attack_Shenk, @Timeout_Shenk_Attack
LS_Sin_Shenk_Pickit, 0
LS_Sin_BackA5Town, 0
; And below all the sequences called above, not necessary in order:
;=====================================
; LS Sin Precast Before Entering Portal
;=====================================
[LS_Sin_Town_Pre_Cast]
SR(@Random_Delay_Before_Eldritch)
K(@Blade_Shield_Key)
S(@Key_Push_Delay)
RC(400,60)
SR(@Pre-Cast_Random_Delay)
K(@Fade_Key)
S(@Key_Push_Delay)
RC(400,60)
SR(@Pre-Cast_Random_Delay)
EXIT
;==============
; Go to Pindle TP
;==============
[LS_Sin_Town_GoTo_PindleTP]
FUNC:A5WPtoATP
;==============
; Teleport to Pindle
;==============
[LS_Sin_GoTo_Pindle]
K(@Teleport_Key)
S(@Key_Push_Delay)
BRC(400,-310)
WEOT(@Wait_End_Of_Teleport_Delay)
RC(735,35)
WEOT(@Wait_End_Of_Teleport_Delay)
BRC(600,-30)
WEOT(@Wait_End_Of_Teleport_Delay)
K(@LS_Key)
S(@Key_Push_Delay)
EXIT
;=================================
; PindleSkin Cast Traps
;=================================
[LS_Sin_Pre_Attack_Pindle]
K(@LS_Key)
RC(600,156)
S(@Key_Push_Delay)
RC(600,156)
S(@Key_Push_Delay)
RC(600,156)
S(@Key_Push_Delay)
RC(600,156)
S(@Key_Push_Delay)
RC(600,156)
S(@Key_Push_Delay)
CLM
CML
CMDEAD
CTOE.
;=====================
; Pindle Wait For Monsters To Die
;=====================
[LS_Sin_Attack_Pindle]
K(@Teleport_Key)
S(@Timeout_Attack)
CLM
CML
CMDEAD
CTOE.
;===============
; Pindle Pickit
;===============
[LS_Sin_Pindle_Pickit]
S(300)
K(@Teleport_Key)
S(@Key_Push_Delay)
RC(560,190)
WEOT(@Wait_End_Of_Teleport_Delay)
CLM
CML
S(200)
PICKIT(600)
EXIT
;=============
; BackToTownA5
;=============
[LS_Sin_BackA5Town]
K(@TP_Scroll_Key)
S(@Key_Push_Delay)
FUNC:TOWNTP ; Return to town using tp
FUNC:A5TownPoint ; Check items at malah, merc status, stash, repair etc... And go to A5 Town WP.
EXIT
;==============================================
; LS Sin Goto Frigid Highlands (Eldritch WP)
;==============================================
[LS_Sin_Town_Goto_Eldritch_Wp]
FUNC:A5EWP ; This function will go from A5 Town WP to Eldritch WayPoint.
EXIT
;===============
; Optional: CTA
;===============
[LS_Sin_Will_Use_Cta_OutTown]
S(@WP_Menu_Delay)
SWITCH1 ; Internal SWITCH1 command (Switch to secondary gear).
K(@Battle_Commands_Key)
S(@Key_Push_Delay)
RC(500,60)
SR(@Pre-Cast_Random_Delay)
RC(500,60)
SR(@Pre-Cast_Random_Delay)
K(@Battle_Orders_Key)
S(@Key_Push_Delay)
RC(500,60)
S(@Pre-Cast_Random_Delay)
SWITCH2 ; Internal SWITCH1 command (Switch back to primary gear).
EXIT
;================
; Teleport To Eldritch
;================
[LS_Sin_GoTo_Eldritch]
K(@Teleport_Key)
S(@Key_Push_Delay)
BRC(155,-60)
WEOT(@Wait_End_Of_Teleport_Delay)
CLM
CML
BRC(70,-330)
WEOT(@Wait_End_Of_Teleport_Delay)
CLM
CML
K(@LS_Key)
S(@Key_Push_Delay)
EXIT
;=====================================
; Eldritch Cast Traps
;=====================================
[LS_Sin_Pre_Attack_Eldritch]
K(@LS_Key)
RCD(395,80)
S(@Key_Push_Delay)
RCD(395,80)
S(@Key_Push_Delay)
RCD(395,80)
S(@Key_Push_Delay)
RCD(395,80)
S(@Key_Push_Delay)
RCD(395,80)
S(@Key_Push_Delay)
CLM
CML
CMDEAD
CTOE
;=============================
; Eldritch Wait For Monsters To Die
;=============================
[LS_Sin_Attack_Eldritch]
K(@Teleport_Key)
S(@Timeout_Attack)
CLM
CML
CMDEAD
CTOE.
;=================
; Eldritch Pickit
;=================
[LS_Sin_Eldritch_Pickit]
S(300)
K(@Teleport_Key)
S(@Key_Push_Delay)
RC(440, 140)
WEOT(@Wait_End_Of_Teleport_Delay)
CLM
CML
S(200)
PICKIT(600)
EXIT
;=================
; Teleport To Shenk
;=================
[LS_Sin_FromEldritchGoToShenk]
RC(430, 510)
WEOT(@Wait_End_Of_Teleport_Delay)
CLM
CML
RC(430, 510)
WEOT(@Wait_End_Of_Teleport_Delay)
CLM
CML
RC(430, 510)
WEOT(@Wait_End_Of_Teleport_Delay)
CLM
CML
BRC(300,140)
WEOT(@Wait_End_Of_Teleport_Delay)
CLM
CML
BRC(690,330)
WEOT(@Wait_End_Of_Teleport_Delay)
CLM
CML
BRC(650,260)
WEOT(@Wait_End_Of_Teleport_Delay)
CLM
CML
BRC(360,350)
WEOT(@Wait_End_Of_Teleport_Delay)
CLM
CML
RC(747,545)
WEOT(@Wait_End_Of_Teleport_Delay)
CLM
CML
EXIT
;=====================================
; Shenk Cast Traps
;=====================================
[LS_Sin_Pre_Attack_Shenk]
K(@LS_Key)
RC(532,394)
S(@Key_Push_Delay)
RC(532,394)
S(@Key_Push_Delay)
RC(532,394)
S(@Key_Push_Delay)
RC(532,394)
S(@Key_Push_Delay)
RC(532,394)
S(@Key_Push_Delay)
CLM
CML
CMDEAD
CTOE
;=============================
; Shenk Wait For Monsters To Die
;=============================
[LS_Sin_Attack_Shenk]
K(@Teleport_Key)
S(@Timeout_Attack)
CLM
CML
CMDEAD
CTOE.
;=============================================
; Shenk Pickit
;=============================================
[LS_Sin_Shenk_Pickit]
CLM
CML
S(200)
PICKIT(600)
EXIT
;=============
; BackToTownA5
;=============
[LS_Sin_BackA5Town]
K(@TP_Scroll_Key)
S(@Key_Push_Delay)
FUNC:TOWNTP ; Return to town using tp
FUNC:A5TownPoint ; Check items at malah, merc status, stash, repair etc... And go to A5 Town WP.
EXIT