Jump to content

Need some coversion/help.


Hyflex
 Share

Recommended Posts

//IF USING A MOUNT FOLLOW THESE
//Change the constants on lines 138, 142 and 150 to what you'd like
//Put food in slots 1 and 2 charm of return in slot 3
//Under Constants make sure SkillSpam = 0
//IF NOT ON A MOUNT FOLLOW THESE
//Attacks in slots 1 - 5
//HP Pots in slot 6
//MP Pots in slot 7
//Charm of Return in slot 8


Constants
  Mount = 185,132
  MountHalf = 170,130 //Heals when your mounts hp bar is near half
 
  HumanHalf = 170,60  //Heals when your hp bar is near half
  HalfHumanHP = 171,50
  HalfHumanMP = 171,60
  HumanMP = 110,60  //Just below 1/4th MP bar
 
  HPSlotHuman = 570,725
  MPSlot = 615,725
  Slot1 = 327,725
  Slot2 = 375,725
 
  Combat = 439,70
 
  FullBag = 0              //Make this 1 if you want to tele when you have a full load(around 95% weight)
  Weight = 961,468
 
  SkillSpam = 1    //Change skillspam to 1 if you'd like to use skill attacks
  Attack1 = 1              //If SkillSpam = 1 then the bot will press your hotkeys from 1 to 5
  Attack2 = 2              //With a 3 second delay in between
  Attack3 = 3              //If you'd like the bot to spam only your slot 3 attack then you would
  Attack4 = 1            //make every one of the Attack1, Attack2, etc to equal 3
  Attack5 = 2              //otherwise, it will just go in order from 1 to 5
End



Procedure StartAC
  SetActiveWindow Hero OnLine
  Delay 5000
End

Procedure FindAttack
  IsBlue $HalfHumanMP
    IsRed $HalfHumanHP
      IsRed $Combat
        Call Attack
      Else
        Keydown v .5 sec
        delay 50
      End
    Else
      Call HealHumanHP
    End
  Else
    Call HealHumanMP
  End
End

Procedure Attack
  IsRed $Combat
    delay 500
    Keydown a .5 sec
    delay 50
    Keydown a .5 sec
    delay 50
    If $SkillSpam = 1
      Call Rape
    Else
    End
  Else
  End
End

Procedure Rape
  IsRed $Combat
    IsBlue $HalfHumanMP
      IsRed $HalfHumanHP
        Keydown $Attack1 .5 sec
        delay 3000
      Else
        Call HealHumanHP
      End
    Else
      Call HealHumanMP
    End
  Else
    Call FindAttack
  End
  IsRed $Combat
    IsBlue $HalfHumanMP
      IsRed $HalfHumanHP
        Keydown $Attack2 .5 sec
        delay 3000
      Else
        Call HealHumanHP
      End
    Else
      Call HealHumanMP
    End
  Else
    Call FindAttack
  End
  IsRed $Combat
    IsBlue $HalfHumanMP
      IsRed $HalfHumanHP
        Keydown $Attack3 .5 sec
        delay 3000
      Else
        Call HealHumanHP
      End
    Else
      Call HealHumanMP
    End
  Else
    Call FindAttack
  End
  IsRed $Combat
    IsBlue $HalfHumanMP
      IsRed $HalfHumanHP
        Keydown $Attack4 .5 sec
        delay 3000
      Else
        Call HealHumanHP
      End
    Else
      Call HealHumanMP
    End
  Else
    Call FindAttack
  End
  IsRed $Combat
    IsBlue $HalfHumanMP
      IsRed $HalfHumanHP
        Keydown $Attack5 .5 sec
        delay 3000
      Else
        Call HealHumanHP
      End
    Else
      Call HealHumanMP
    End
  Else
    Call FindAttack
  End
End

Procedure Heal
  IsBlack $Mount                        //Change the constant here for what you want to heal
    IsGrey $Slot1                    //Checking for Food
      KeyDown 1 .5 sec             //Healing
      Delay 1000
      IsBlack $Mount                  //Change the constant here aswell
        Call Heal
      Else
      End
    Else
      IsGrey $Slot2
        KeyDown 2 .5 sec            //Healing
        Delay 1000
        IsBlack $Mount             //Change the constant here aswell
          Call Heal
        Else
        End
      Else
        KeyDown 3 .5 sec            //Teleporting back if no food exists
        Pause
      End
    End
  Else
  End
End

Procedure HealHumanHP
  IsRed $HalfHumanHP
  Else
    IsGrey $HPSlotHuman               //Checking for Food
      KeyDown 6 .5 sec             //Healing
      Delay 1000
      IsRed $HalfHumanHP                  //Change the constant here aswell
        Call HealHumanHP
      Else
      End
    Else
      KeyDown 8 .5 sec
      Pause
    End
  End
End

Procedure HealHumanMP
  IsBlue $HalfHumanMP
  Else
    IsGrey $MPSlot
      KeyDown 7 .5 sec
      Delay 1000
      IsBlue $HalfHumanMP
        Call HealHumanMP
      Else
      End
    Else
      KeyDown 8 .5 sec
      Pause
    End
  End
End

Procedure Loot
  If $FullBag = 1
    IsGrey $Weight
      Keydown s .1 sec
      DELAY 100
      Keydown s .1 sec
      DELAY 100
      Keydown s .1 sec
      DELAY 100
      Keydown s .1 sec
      DELAY 100
      Keydown s .1 sec
      DELAY 100
      Keydown s .1 sec
      DELAY 100
    Else
      Keydown 8 .5 sec
      Keydown 3 .5 sec
    End
  Else
    Keydown s .1 sec
    DELAY 100
    Keydown s .1 sec
    DELAY 100
    Keydown s .1 sec
    DELAY 100
    Keydown s .1 sec
    DELAY 100
    Keydown s .1 sec
    DELAY 100
    Keydown s .1 sec
    DELAY 100
  End
End

// Main Program
Call StartAC
While 1=1
  Call FindAttack
  If $SkillSpam = 1
    Call HealHumanHP
    Call HealHumanMP
  Else
    Call Heal
  End
  Call Loot
End

The above code is actool crap. My friend wrote it i need help converting it into autoit3

The below Is what is kinda the same but is auotit3 But there is much missing from the below compared to above. Can i have a dedcated helper to help me out to convert it.

; Key Delay Options
Opt("SendKeyDownDelay", 1)
Opt("SendKeyDelay", 1)
; Key Delay Options End


; Hotkey Settings 
HotKeySet("{END}","Escape")
; Hotkey Settings End


; Main Settings / Constants
$Health = 0XC60000
$CheckHP = 1
$Lotto = 0XC60000
$MANA = 0X0069D6
$GMQUIZ = 0X000000
$Petgelb = 0XB4B400
$Petrot = 0x0B10000
; Main Settings / Constants End

; Pet/Mount Life Checker
While 1
    
      $coord = PixelSearch( 176, 100, 178, 105, $Petrot, 1 )
        If @error Then
    Send("{8 down}")
       Sleep("100")
      Send("{8 up}")
      Sleep("100")
  EndIf
; Pet/Mount Life Checker End


; Characters Attack/Pickup
  $coord = PixelSearch( 426, 59, 429, 63, 0X000000, 1 )
        If @error Then
    Send("{v down}")
        Sleep("100")
    Send("{v up}")
                    Send("{s down}")
                    Send("{s up}")
                    Send("{s down}")
                    Send("{s up}")
        Sleep("100")
    Send("{a down}")
        Sleep("100")
    Send("{a up}")
                    Send("{s down}")
                    Send("{s up}")
                    Send("{s down}")
                    Send("{s up}")
        Sleep("100")
    Send("{a down}")
        Sleep("100")
    Send("{a up}")
                    Send("{s down}")
                    Send("{s up}")
                    Send("{s down}")
                    Send("{s up}")
        Sleep("100")
    Send("{a down}")
        Sleep("100")
    Send("{a up}") 
                    Send("{s down}")
                    Send("{s up}")
                    Send("{s down}")
                    Send("{s up}")
        EndIf

Sleep("1000")
WEnd
; Characters Attack/Pickup End

; Exit Program
Func Escape()
Exit
EndFunc
; Exit Program End
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

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