Transport Defender Auto Hotkey Turret Script

Transport Defender Automation

Transport Defender on Kongregate is an interesting idle game but it has one annoyance and that is the main turret. The main turret will take most of the upgrades in automatic turret upgrade unless you disable it via the configs in which case it will become the weakest turret.

A solution that makes it useful is to have a script that moves the mouse up and down slowly over time for you so that turret behaves similar to the other auto turrets. The advantage to a script that does this is that you don’t have to move the mouse up and down.

I have created a script that does this and further it autoclicks in the targetting window to ensure that overdrive is always active! I’ve set the movement range resoluton to 100 over 4 seconds which gives a even spread of main turret fire. By moving the mouse closer to the main turret you can cover the entire field and if you move the mouse closer to the right edge you can tighten the field of fire which is useful for the bosses.

Ahk Verticle Swipe

Put the following code in an .ahk file to be used with AutoHotkey. I’ve set the macro CTRL+T to both activate and deactivate the action. And the macro CTRL+WIN+S will suspend the script in case it gives problems.

As an added bonus I’ve added the macro ALT-SPACE to truly activate all the skills the game provides as the default SPACE key only activates skills two through eight (2-8) and not one thru 0 (1-0) as it should or says it does.

Automatic Transport Defender Turret
 
  1. !T::
  2. autoVertSwiper()
  3. autoClicker2()
  4. return
  5. autoVertSwiper() {
  6.       static vertSwiper
  7.       
  8.       vertSwiper := !vertSwiper
  9.       
  10.       upDown := vertSwiper ? 4 : "off"
  11.       
  12.       SetTimer, vertSwipeit1, %upDown%
  13.       
  14.       return
  15.       
  16.       vertSwipeit1:
  17.       
  18.        mousemove, 0, 100, 50, R
  19.        mousemove, 0, -100, 50, R
  20.       
  21.       return
  22. }
  23. autoClicker2(){
  24. static Toggler2
  25.       
  26. Toggler2 := !Toggler2
  27. TPer2 := Toggler2 ? autoClickerInterval : "off"
  28. SetTimer, Click1, %TPer2%
  29. SetTimer, Click2, %TPer2%
  30. SetTimer, Click3, %TPer2%
  31. SetTimer, Click4, %TPer2%
  32. SetTimer, Click5, %TPer2%
  33. return
  34. Click1:
  35. Click2:
  36. Click3:
  37. Click4:
  38. Click5:
  39.             Click
  40. return
  41. }
  42. autoSwiperInterval := 0.01
  43. ^#s::suspend
  44. !space::
  45. send, 0123456789
  46. return
Positive SSL
PHP Code Snippets Powered By : XYZScripts.com
"
%d bloggers like this: