Advertisement
Guest User

Untitled

a guest
Jun 5th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 3.00 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. #include <Misc.au3>
  8.  
  9. #Region ### START Koda GUI section ### Form=
  10. $Form1 = GUICreate("SlimeTrainer", 245, 179, 903, 365)
  11. $Button1 = GUICtrlCreateButton("Spell Caster", 16, 16, 89, 17)
  12. $Button2 = GUICtrlCreateButton("Anti Idle", 16, 48, 89, 17)
  13. $Button3 = GUICtrlCreateButton("Auto Attack", 16, 80, 89, 17)
  14. $Button4 = GUICtrlCreateButton("Alarm", 16, 112, 89, 17)
  15. $Button5 = GUICtrlCreateButton("Eat Food", 16, 144, 89, 17)
  16. $Button6 = GUICtrlCreateButton("Stop", 139, 17, 89, 17)
  17. $Button7 = GUICtrlCreateButton("Stop", 139, 49, 89, 17)
  18. $Button8 = GUICtrlCreateButton("Stop", 139, 81, 89, 17)
  19. $Button9 = GUICtrlCreateButton("Stop", 139, 113, 89, 17)
  20. $Button10 = GUICtrlCreateButton("Stop", 139, 145, 89, 17)
  21. GUISetState(@SW_SHOW)
  22. #EndRegion ### END Koda GUI section ###
  23.  
  24. While 1
  25.     $nMsg = GUIGetMsg()
  26.     Switch $nMsg
  27.         Case $GUI_EVENT_CLOSE
  28.             Exit
  29.         case $Button1
  30.             guictrlsetstate($Button1,$gui_disable)
  31.             guictrlsetstate($Button6,$gui_enable)
  32.             $id1 = _Timer_SetTimer($form1,500,"spell")
  33.         case $Button2
  34.             guictrlsetstate($Button2, 128)
  35.             guictrlsetstate($Button7,64)
  36.             $id2 = _Timer_SetTimer($form1,220000,"afk")
  37.         case $Button3
  38.             guictrlsetstate($Button3, 128)
  39.             guictrlsetstate($Button8,64)
  40.             $id3 = _Timer_SetTimer($form1,5000,"attack")
  41.         case $Button4
  42.             guictrlsetstate($Button4, 128)
  43.             guictrlsetstate($Button9,64)
  44.             $id4 = _Timer_SetTimer($form1,1000,"alarm")
  45.         case $Button5
  46.             guictrlsetstate($Button5, 128)
  47.             guictrlsetstate($Button10,64)
  48.             $id5 = _Timer_SetTimer($form1,144000,"food")
  49.  
  50.     EndSwitch
  51. WEnd
  52.  
  53.  
  54. func spell($1,$2,$3,$4, $5)
  55.     if PixelGetColor (3174, 260) = 0x7260FF then
  56.         $StartPos = MouseGetPos()
  57.         MouseMove (3027, 525, 0)
  58.         MouseClick ("right")
  59.         controlsend("Medivia","","","{f1}")
  60.         controlsend("Medivia","","","{enter}")
  61.         MouseMove ($StartPos [0], $StartPos [1], 0)
  62.         MouseClick ("left")
  63.  
  64.     EndIf
  65. EndFunc
  66.  
  67. func attack ($1,$2,$3,$4, $5)
  68.     if PixelGetColor (2276,484) <> 0x490000 Then
  69.         $StartPos = MouseGetPos()
  70.         MouseMove (2304,457,0)
  71.         MouseClick ("right")
  72.         MouseMove ($StartPos [0], $StartPos [1], 0)
  73.         MouseClick ("left")
  74.     EndIf
  75. EndFunc
  76.  
  77. func food ($1,$2,$3,$4, $5)
  78.     $StartPos = MouseGetPos()
  79.     MouseMove (3027, 525, 0)
  80.     MouseClick ("right")
  81.     MouseClick ("right")
  82.     MouseClick ("right")
  83.     MouseMove ($StartPos [0], $StartPos [1], 0)
  84.     MouseClick ("left")
  85. EndFunc
  86.  
  87. func afk($1,$2,$3,$4, $5)
  88.     controlsend("Medivia","","","{ctrldown}{down}{ctrlup}")
  89.     Sleep (1000)
  90.     controlsend("Medivia","","","{ctrldown}{up}{ctrlup}")
  91.     Sleep (1000)
  92.     controlsend("Medivia","","","{ctrldown}{down}{ctrlup}")
  93.     Sleep (1000)
  94.     controlsend("Medivia","","","{ctrldown}{up}{ctrlup}")
  95.     EndFunc
  96.  
  97. func alarm($1,$2,$3,$4, $5)
  98.     if PixelGetColor (2017,983) <> 0xFFFF00 Or PixelGetColor (2465, 571) <> 0x020000 Then
  99.         SoundPlay ("C:\Users\AREK\Music\alarm.wav", 0)
  100.         Sleep (300000)
  101.     EndIf
  102. EndFunc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement