Jump to content

Recommended Posts

Posted (edited)

Hi All!

I'm wanting to make a GUI out of my simple script that I made, however there are few stuff that I need to understand first.

HotKeySet("{End}", "End")
HotKeySet("{Home}", "Start")

While 1
    Sleep(5000)
WEnd

;;heals
Func Start() ; command to start
   
   While 1
  $pixel = PixelSearch (245, 214, 812, 566, 0x8C2A3)
  $Attack = 2
   If Not @error Then
      Send($Attack) ; send attack
      Send($Attack)
      Send($Attack)
   EndIf

Sleep(100)

;;mana

   $pixelmana = PixelSearch (227, 146, 227, 146, 0x000000)
   $mana = 5
   If Not @error Then
      Send ($mana)
      Send ($mana)
      Send ($mana)
   EndIf

Sleep(100)

;;hp

   $pixelhp = PixelSearch (242, 119, 242, 119, 0x000000)
   $hp = 6
   If Not @error Then
      Send ($hp) 
      Send ($hp)
      Send ($hp)
   EndIf
   
WEnd

EndFunc

Func End() ; command to kill
    Exit
 EndFunc

I'm wanting to make a very simple GUI for the script, esp for pixel search functions (location, and colours) also for the $ variables ><

Unsure where to start I'm new to GUIs, thanks before! 

Edited by Irrelixier
  • Moderators
Posted

Irrelixier,

 

  Quote

I know

And yet you posted anyway? Best not do so again as deliberately flouting the rules is something which very rapidly leads to unpleasant events. :naughty:

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

  Reveal hidden contents

 

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...