Advertisement
Guest User

Untitled

a guest
Jun 4th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 2.29 KB | None | 0 0
  1. #include <ButtonConstants.au3>
  2. #include <EditConstants.au3>
  3. #include <GUIConstantsEx.au3>
  4. #include <WindowsConstants.au3>
  5. #include <BotTibia.au3>
  6. #include <Timers.au3>
  7.  
  8. #Region ### START Koda GUI section ### Form=
  9. $Form1 = GUICreate("SlimeTrainer", 245, 179, 903, 365)
  10. $Button1 = GUICtrlCreateButton("Spell Caster", 16, 16, 89, 17)
  11. $Button2 = GUICtrlCreateButton("Anti Idle", 16, 48, 89, 17)
  12. $Button3 = GUICtrlCreateButton("Auto Attack", 16, 80, 89, 17)
  13. $Button4 = GUICtrlCreateButton("Auto Fishing", 16, 112, 89, 17)
  14. $Button5 = GUICtrlCreateButton("Eat Food", 16, 144, 89, 17)
  15. $Button6 = GUICtrlCreateButton("Stop", 139, 17, 89, 17)
  16. $Button7 = GUICtrlCreateButton("Stop", 139, 49, 89, 17)
  17. $Button8 = GUICtrlCreateButton("Stop", 139, 81, 89, 17)
  18. $Button9 = GUICtrlCreateButton("Stop", 139, 113, 89, 17)
  19. $Button10 = GUICtrlCreateButton("Stop", 139, 145, 89, 17)
  20. GUISetState(@SW_SHOW)
  21. #EndRegion ### END Koda GUI section ###
  22.  
  23. While 1
  24.     $nMsg = GUIGetMsg()
  25.     Switch $nMsg
  26.         Case $GUI_EVENT_CLOSE
  27.             Exit
  28.         case $Button1
  29.             guictrlsetstate($Button1,$gui_disable)
  30.             guictrlsetstate($Button6,$gui_enable)
  31.             $id1 = _Timer_SetTimer($form1,500,"spell")
  32.         case $Button2
  33.             guictrlsetstate($Button2, 128)
  34.             guictrlsetstate($Button7,64)
  35.             $id2 = _Timer_SetTimer($form1,220000,"afk")
  36.         case $Button3
  37.             guictrlsetstate($Button3, 128)
  38.             guictrlsetstate($Button8,64)
  39.             $id3 = _Timer_SetTimer($form1,5000,"attack")
  40.         case $Button5
  41.             guictrlsetstate($Button5, 128)
  42.             guictrlsetstate($Button10,64)
  43.             $id5 = _Timer_SetTimer($form1,360000,"food")
  44.  
  45.     EndSwitch
  46. WEnd
  47.  
  48.  
  49. func spell($1,$2,$3,$4)
  50.     if PixelGetColor (3174, 260) = 0x7260FF then
  51.         controlsend("Medivia","","","{f1}")
  52.         controlsend("Medivia","","","{enter}")
  53.     EndIf
  54. EndFunc
  55.  
  56. func attack ($1,$2,$3,$4)
  57.     if PixelGetColor (2276,484) <> 0x490000 Then
  58.         MouseMove (2304,457)
  59.         MouseClick ("right")
  60.     EndIf
  61. EndFunc
  62.  
  63. func food ($1,$2,$3,$4)
  64.     MouseMove (3027, 525)
  65.     MouseClick ("right")
  66.     MouseClick ("right")
  67.     MouseClick ("right")
  68. EndFunc
  69.  
  70. func afk($1,$2,$3,$4)
  71.     controlsend("Medivia","","","{ctrldown}{down}{ctrlup}")
  72.     Sleep (1000)
  73.     controlsend("Medivia","","","{ctrldown}{up}{ctrlup}")
  74.     Sleep (1000)
  75.     controlsend("Medivia","","","{ctrldown}{down}{ctrlup}")
  76.     Sleep (1000)
  77.     controlsend("Medivia","","","{ctrldown}{up}{ctrlup}")
  78.     EndFunc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement