Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #cs
- features:
- energy management
- one button attack, excluding backstab and project
- auto steroids and taunt
- restealth after/between combat
- auto potion
- auto vanish, with conditional cc break and dot cleanse
- auto backstab for pve
- keep sprint on
- destealth on mount and meditate
- automatic interrupt selection, including proximity based knockback
- reticle for targeting by center screen
- resolve protection for cc
- slash doesnt open ticket
- #ce
- global $x=0
- global $interrupt=0
- global $hotkeytoggle=1
- global $typing=0
- global $togglehotkeys=0
- global $executerange=0
- global $modetoggle=1
- global $windowchanged=0
- global $potency=0
- global $snapsafety=1001
- global $snapsafety2=1001
- global $vanishing=0
- ;start client if it isnt open yet
- if not winexists("Star Wars: The Old Republic") Then
- run("C:\Program Files (x86)\Electronic Arts\BioWare\Star Wars-The Old Republic\launcher.exe","C:\Program Files (x86)\Electronic Arts\BioWare\Star Wars-The Old Republic",@SW_MAXIMIZE)
- winwait("Star Wars: The Old Republic")
- Else
- winactivate("Star Wars: The Old Republic")
- winwait("Star Wars: The Old Republic")
- endif
- sethotkeys()
- hotkeyset("^!x","quit")
- func mainattack();r button
- if $x==0 then
- $x=1
- ;stealth if out of combat, stealth, and not in huttball
- $combat=pixelgetcolor(604,1028)
- if $combat==4244982 or $combat==5097466 then
- $stealthgem=pixelgetcolor(1257,1123)
- if $stealthgem<>2198197 Then
- $huttball=pixelgetcolor(1777,881)
- if $huttball<>9756923 then
- send("7");stealth
- endif
- endif
- Else
- ;steroids and taunt if enemy hp higher than 30%, in combat, not stealthed, and pvp mode
- if $modetoggle==1 then
- $stealthgem=pixelgetcolor(1257,1123)
- if $stealthgem<>2198197 Then
- $executerange=pixelgetcolor(1211,981)
- if $executerange==12976128 Then
- send("h");battle readiness
- send("{F7}");relic
- send("{F8}");relic
- send("{F3}");adrenal
- send("{F1}");taunt
- endif
- endif
- endif
- endif
- ;if energy is below 30, blackout and saber strike
- $forcethresh30=pixelgetcolor(704,999)
- if $forcethresh30<>11825186 then
- $blackout=pixelgetcolor(824,1066)
- if $blackout==6511962 Then
- send("y");blackout
- endif
- send("v");saber strike
- Else
- ;do attack chain
- ;check if enemy hp is in execute range
- $executerange=pixelgetcolor(1211,981)
- if $executerange<>12976128 Then
- send("b");spinning strike
- endif
- ;if pve mode, force breach
- if $modetoggle==2 Then
- clearhotkeys()
- send("g");force breach
- sethotkeys()
- Else
- $potency=pixelgetcolor(988,1064)
- if $potency<>16777215 then
- clearhotkeys()
- send("g");force breach
- sethotkeys()
- endif
- endif
- ;check for backstab if pve mode
- if $modetoggle==2 then
- $backstabtext=pixelgetcolor(10,285)
- if $backstabtext==7395067 Then
- $forcethresh50=pixelgetcolor(750,999)
- if $forcethresh50<>11825186 then
- send("a");backstab
- Else
- clearhotkeys()
- send("r");clairvoyant strike
- sethotkeys()
- EndIf
- Else
- clearhotkeys()
- send("r");clairvoyant strike
- sethotkeys()
- endif
- else
- clearhotkeys()
- send("r");clairvoyant strike
- sethotkeys()
- endif
- ;if pve mode, force breach
- if $modetoggle==2 Then
- clearhotkeys()
- send("g");force breach
- sethotkeys()
- Else
- if $potency<>16777215 then
- clearhotkeys()
- send("g");force breach
- sethotkeys()
- endif
- endif
- ;check if enemy hp is in execute range
- if $executerange<>12976128 Then
- send("b");spinning strike
- endif
- endif
- $x=0
- endif
- endfunc
- func project();t button
- if $x=0 Then
- $x=1
- ;stealth if out of combat, stealth, and not in huttball. taunt if in combat and pvp mode
- $combat=pixelgetcolor(604,1028)
- if $combat==4244982 then
- $stealthgem=pixelgetcolor(1257,1123)
- if $stealthgem<>2198197 Then
- $huttball=pixelgetcolor(1777,881)
- if $huttball<>9756923 then
- send("7");stealth
- endif
- endif
- Else
- if $modetoggle==1 then
- send("{F1}");taunt
- endif
- endif
- ;if energy is below 30, blackout and saber strike
- $forcethresh30=pixelgetcolor(704,999)
- if $forcethresh30<>11825186 then
- $blackout=pixelgetcolor(824,1066)
- if $blackout==6511962 Then
- send("y");blackout
- endif
- send("v");saber strike
- else
- ;check enemy hp for steroids, and do project
- if $modetoggle==1 then
- $executerange=pixelgetcolor(1211,981)
- if $executerange==12976128 Then
- send("h");battle readiness
- send("{F6}");force potency
- send("{F7}");relic
- send("{F8}");relic
- send("{F3}");adremal
- endif
- endif
- clearhotkeys()
- send("t");project
- sethotkeys()
- endif
- $x=0
- endif
- EndFunc
- ;if pvp, check for mind snap cooldown and range, if not, check enemy resolve and do a different one
- ;mind snap will not be activated within 1000ms of any of the other interrupts to avoid overlap due to mind snap being off global cooldown
- func interrupt();F10
- if $interrupt==0 Then
- $interrupt=1
- if $modetoggle==1 then
- $snapcd=pixelgetcolor(880,1123)
- if $snapcd==1050624 then
- $snapsafetydiff2=timerdiff($snapsafety2)
- if $snapsafetydiff2>1000 then
- $snapsafety=timerinit()
- clearhotkeys()
- send("{F2}");mind snap
- sethotkeys()
- endif
- Else
- $snapsafetydiff=timerdiff($snapsafety)
- if $snapsafetydiff>1000 then
- $resolve=pixelgetcolor(1425,1035)
- if $resolve<>14737145 Then
- $snapsafety2=timerinit()
- clearhotkeys()
- send("w");low slash
- $waverange=pixelgetcolor(863,1026)
- if $waverange<>458752 then
- send("{DOWN}");force wave
- endif
- send("q");force stun
- if $waverange<>458752 then
- send("{DOWN}");force wave
- endif
- send("w");low slash
- sethotkeys()
- endif
- endif
- EndIf
- Else
- clearhotkeys()
- send("{F2}");mindsnap
- sethotkeys()
- endif
- $interrupt=0
- endif
- endfunc
- ;destealth and mount if out of combat
- func mount();shift t
- $combat=pixelgetcolor(604,1028)
- if $combat==4244982 or $combat==5097466 then
- $stealthgem=pixelgetcolor(1257,1123)
- if $stealthgem==2198197 Then
- send("7");stealth
- EndIf
- EndIf
- send("9");mount
- endfunc
- ;destealth and mount if out of combat
- func meditate();shift t
- $combat=pixelgetcolor(604,1028)
- if $combat==4244982 or $combat==5097466 then
- $stealthgem=pixelgetcolor(1257,1123)
- if $stealthgem==2198197 Then
- send("7");stealth
- EndIf
- EndIf
- send("0");mount
- endfunc
- ;resolve check for sap
- func sap()
- $resolve=pixelgetcolor(1425,1035)
- if $resolve<>14737145 Then
- clearhotkeys()
- send("3")
- sethotkeys()
- endif
- EndFunc
- ;resolve check for stun
- func stun()
- $resolve=pixelgetcolor(1425,1035)
- if $resolve<>14737145 Then
- clearhotkeys()
- send("q")
- sethotkeys()
- endif
- EndFunc
- ;resolve check for slash
- func slash()
- $resolve=pixelgetcolor(1425,1035)
- if $resolve<>14737145 Then
- clearhotkeys()
- send("w")
- sethotkeys()
- endif
- endfunc
- func sethotkeys()
- hotkeyset("r","mainattack")
- hotkeyset("t","project")
- hotkeyset("{ENTER}","togglehotkeys")
- hotkeyset("+{ENTER}","togglehotkeys")
- hotkeyset("^r","typingtoggle")
- hotkeyset("^t","modetoggle")
- hotkeyset("+t","mount")
- hotkeyset("+c","meditate")
- hotkeyset("3","sap")
- hotkeyset("q","stun")
- hotkeyset("w","slash")
- hotkeyset("{F10}","interrupt")
- EndFunc
- func clearhotkeys()
- hotkeyset("r")
- hotkeyset("t")
- hotkeyset("+t")
- hotkeyset("+c")
- hotkeyset("3")
- hotkeyset("q")
- hotkeyset("w")
- hotkeyset("{F10}")
- endfunc
- ;toggles hotkeys off when typing or in a different window
- func togglehotkeys();enter or shift enter
- if $togglehotkeys==0 then
- $togglehotkeys=1
- if winactive("Star Wars: The Old Republic") and $x==0 Then
- if $hotkeytoggle==1 Then
- $typing=1
- clearhotkeys()
- hotkeyset("{ENTER}")
- hotkeyset("+{ENTER}")
- send("{ENTER}")
- hotkeyset("{ENTER}","togglehotkeys")
- hotkeyset("+{ENTER}","togglehotkeys")
- $hotkeytoggle=0
- Else
- $typing=0
- hotkeyset("{ENTER}")
- hotkeyset("+{ENTER}")
- send("{ENTER}")
- sethotkeys()
- $hotkeytoggle=1
- endif
- endif
- $togglehotkeys=0
- endif
- endfunc
- ;manual hotkey toggle
- func typingtoggle();ctrl r
- if $typing==0 Then
- $typing=1
- clearhotkeys()
- $hotkeytoggle=0
- tooltip("hotkeys off")
- sleep(750)
- tooltip("")
- Else
- $typing=0
- sethotkeys()
- $hotkeytoggle=1
- tooltip("hotkeys on")
- sleep(750)
- tooltip("")
- endif
- endfunc
- ;toggles taunt, steroids, and auto force breach for pve and pvp
- func modetoggle();ctrl t
- if $modetoggle==1 Then
- $modetoggle=2
- tooltip("pve mode")
- sleep(750)
- tooltip("")
- Else
- $modetoggle=1
- tooltip("pvp mode")
- sleep(750)
- tooltip("")
- endif
- endfunc
- ;overwrite gm ticket hotkey
- func donothing();\ button
- ;don't open a ticket...
- endfunc
- ;close script
- func quit();control alt x
- Exit
- endfunc
- ;constant background loop
- while True
- if winactive("Star Wars: The Old Republic") Then
- ;hotkeys on if window active and not typing
- if $windowchanged==0 then
- hotkeyset("{ENTER}","togglehotkeys")
- hotkeyset("+{ENTER}","togglehotkeys")
- hotkeyset("^r","typingtoggle")
- hotkeyset("^t","modetoggle")
- hotkeyset("\","donothing")
- if $typing==0 and $x==0 then
- sethotkeys()
- $hotkeytoggle=1
- endif
- ;target reticle
- SplashImageOn ( "", "E:\stuff from C drive\Misc Documents\AutoIt\Nodinator3000\reticle.bmp" , 30 , 6 , 945 , 500 , 1 )
- $windowchanged=1
- endif
- ;auto potion if low hp, potion is ready, in combat, not stealthed, and alive
- $potthresh=pixelgetcolor(770,982);x value is thresh slider, 670 minimum
- if $potthresh<>12976128 then
- $potcd=pixelgetcolor(1151,1066)
- if $potcd==2176049 then
- $combat=pixelgetcolor(604,1028)
- if $combat<>4244982 and $combat<>5097466 Then
- $stealthgem=pixelgetcolor(1257,1126)
- if $stealthgem<>7075839 and $typing==0 Then
- $alivecheck=pixelgetcolor(633,991)
- if $alivecheck==11199997 or $alivecheck==9951991 then
- send("{F11}");medpac
- EndIf
- EndIf
- EndIf
- EndIf
- EndIf
- sleep(100)
- ;auto vanish
- $vanished=timerdiff($vanishing)
- if $vanished>1500 and $vanished<5000 Then
- $x=0
- tooltip("")
- endif
- $lowesthpthresh=pixelgetcolor(685,982);lowest is 665
- if $lowesthpthresh<>12976128 Then
- $combat=pixelgetcolor(604,1028)
- if $combat==12215661 and $combat<>5097466 Then
- $vanishcd=pixelgetcolor(662,1064)
- if $vanishcd==4346136 or $vanishcd==1251335 then
- $huttball=pixelgetcolor(1777,881)
- if $huttball<>9756923 then
- $alivecheck=pixelgetcolor(633,991)
- if $alivecheck==11199997 or $alivecheck==9951991 then
- if $typing==0 then
- if $vanishcd==4346136 then
- send("c");resilience
- send("z");cloak of shadows
- tooltip("OH SHIT")
- $x=1
- $vanishing=timerinit()
- Else
- if $vanishcd==1251335 then
- $stealthgem=pixelgetcolor(1257,1126)
- if $stealthgem<>7075839 Then
- send("u");force of will
- send("c");resilience
- send("z");cloak of shadows
- tooltip("OH SHIT")
- $x=1
- $vanishing=timerinit()
- endif
- endif
- endif
- endif
- EndIf
- EndIf
- EndIf
- EndIf
- EndIf
- sleep(100)
- ;keep sprint on
- $sprintgem=pixelgetcolor(51,890)
- if $sprintgem<>2198197 and $sprintgem<>7958605 and $sprintgem<>8287053 Then
- $alivecheck=pixelgetcolor(633,991)
- if $typing==0 and $alivecheck==11199997 or $alivecheck==9951991 then
- send("8");sprint
- endif
- endif
- sleep(100)
- else;window inactive
- ;hotkeys off if window inactive
- if $windowchanged==1 then
- clearhotkeys()
- hotkeyset("{ENTER}")
- hotkeyset("+{ENTER}")
- hotkeyset("^r")
- hotkeyset("^t")
- hotkeyset("\")
- $hotkeytoggle=0
- splashoff()
- $windowchanged=0
- endif
- EndIf
- ;close script if swtor closes
- if not winexists("Star Wars: The Old Republic") Then
- Exit
- endif
- wend
Add Comment
Please, Sign In to add comment