someone_

Tera gathering bot script

Aug 29th, 2014
594
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ; There are a few requirements for this script to work flawlessly:
  2. ; - The Tera client's resolution has to be 1024×768, 4:3 aspect ratio
  3. ; - UI Scale at 90
  4. ; - The client has to be right in the top left corner
  5. ; - If you are using several clients to gather, make sure you summon them to a gathering node so that they are in one spot and not spread out. This is necessary to avoid getting pulled away with mystic motes.
  6. ; - If you are using several clients to gather, make sure that at least one client is always fully visible.
  7. ; - The colour code "0x281405" down below is my own colour code, which may vary if you use SweetFX or not.
  8. CoordMode, Pixel
  9. Node = Good
  10. Skip = No
  11. Loop
  12. {
  13.     WinGet,tera,list,ahk_class LaunchUnrealUWindowsClient
  14.     Loop, %tera%
  15.     {
  16.         if (Skip == "No")
  17.         {
  18.         WinGetTitle,teratitle, % "ahk_id " tera%A_Index%
  19.             if (teratitle = "TERA")
  20.             {
  21.                 Skip = Yes
  22.                 Sleep 50
  23.                 PixelGetColor, color, 530, 625, slow
  24. ; The colour value is in below. Please adjust for yourself.
  25.                 if (color <> 0x281405)
  26.                 {
  27.                     Node = Bad
  28.                 }
  29.             }
  30.         }
  31.     }
  32.     Skip = No
  33.     if (Node == "Good")
  34.     {
  35.         Loop, %tera%
  36.         {
  37.             WinGetTitle,teratitle, % "ahk_id " tera%A_Index%
  38.             if (teratitle = "TERA")
  39.             {
  40.                 ControlSend,,{f}, % "ahk_id " tera%A_Index%
  41.             }
  42.         }
  43.         Sleep 6000
  44.     }
  45.     Node = Good
  46. }
RAW Paste Data