Results 1 to 9 of 9
  1. #1
    hollow36rus's Avatar
    Join Date
    Nov 2012
    Gender
    male
    Posts
    36
    Reputation
    10
    Thanks
    124
    My Mood
    Devilish

    Lightbulb AutoHeal via AutoIT [not pixelsearch]

    It is activated when health falls below 30%
    [F4] - Exit script
    [F5] - Pause script

    Actual 31.08.2015

    Code:
    #RequireAdmin
    
    #include <StaticConstants.au3>
    #include <WindowsConstants.au3>
    #include "NomadMemory.au3"
    #include <TrayConstants.au3>
    
    
    Global $PID
    Global $cHP = 0x00B196F4
    Global $mHP = 0x00B1BFB4
    Global $Paused
    While 1
    	TrayCreateItem("Trove - AutoHeal tool")
    	$PID = WinGetProcess("Trove", "")
    	HotKeySet("{f4}", Halt)
    	HotKeySet("{f5}", PauseScript)
    	NextS()
    WEnd
    
    Func NextS()
    	While 1
    		Refresh()
    		Sleep(1000)
    	WEnd
    
    EndFunc   ;==>NextS
    
    Func Refresh()
    	$MEMID = _memoryopen($PID)
    	$sModule = 'trove.exe'
    
    	$MaxHPBase = _memoryread(_MemoryModuleGetBaseAddress($PID, $sModule) + $mHP, $MEMID, 'dword')
    	$mhpb = _memoryread($MaxHPBase + 0x48, $MEMID, 'dword')
    	$mhpb = _memoryread($mhpb + 0x208, $MEMID, 'dword')
    	$mhpb = _memoryread($mhpb + 0x8, $MEMID, 'dword')
    	$mhpb = _memoryread($mhpb + 0xb8, $MEMID, 'dword')
    
    	$CurrentHPBase = _memoryread(_MemoryModuleGetBaseAddress($PID, $sModule) + $cHP, $MEMID, 'dword')
    	$chpb = _memoryread($CurrentHPBase + 0x0, $MEMID, 'dword')
    	$chpb = _memoryread($chpb + 0x10, $MEMID, 'dword')
    	$chpb = _memoryread($chpb + 0x168, $MEMID, 'dword')
    	$chpb = _memoryread($chpb + 0x3c, $MEMID, 'Float')
    
    	If ($chpb*100/$mhpb < 30) Then
    		ControlSend("Trove", "", "", "Q")
    
    	EndIf
    EndFunc   ;==>Refresh
    
    Func Halt()
    	Exit
    EndFunc   ;==>Halt
    
    Func PauseScript()
    	$Paused = Not $Paused
    	While $Paused
    		Sleep(450)
    		ToolTip('AutoHeal is "Paused"', 0, 0)
    	WEnd
    	ToolTip("")
    EndFunc   ;==>PauseScript
    <b>Downloadable Files</b> Downloadable Files
    Last edited by hollow36rus; 08-31-2015 at 02:35 PM. Reason: Added simple description

  2. The Following 12 Users Say Thank You to hollow36rus For This Useful Post:

    Covalescence (09-01-2015),Destructeurdu45 (08-31-2015),fajartedy622 (09-01-2015),hwd (09-01-2015),InfiniteSynteX (08-31-2015),mariqn002 (09-05-2015),minefwd (09-04-2015),nexusjuan (08-31-2015),nigagamer (08-31-2015),shadow00f (08-31-2015),trolletroro (09-25-2015),Xerts (08-31-2015)

  3. #2
    dfgaerhaedtrhearhrh's Avatar
    Join Date
    Oct 2011
    Gender
    male
    Posts
    14
    Reputation
    10
    Thanks
    0
    My Mood
    Cynical
    Thanks for this! But will it keep trying if I run out? Just a question
    Last edited by dfgaerhaedtrhearhrh; 08-31-2015 at 03:21 PM. Reason: Nevermind

  4. #3
    InfiniteSynteX's Avatar
    Join Date
    Dec 2013
    Gender
    male
    Posts
    120
    Reputation
    10
    Thanks
    18
    My Mood
    Stressed
    Quote Originally Posted by kirby193 View Post
    Sorry, but, can you explain WHAT it does? I'm assuming its just an auto Q thing but I'm still new to this so I don't know. Thanks!
    So to start off, when your HP in trove is full which is the big red ball it is 100% full, then when the big red ball starts to decrease it will become 90% then 75% until 0% then you are considered dead. What this bot does is when your HP is below 30% which is when the big red ball is below half it will take in a potion.

  5. The Following User Says Thank You to InfiniteSynteX For This Useful Post:

    hollow36rus (08-31-2015)

  6. #4
    Yemiez's Avatar
    Join Date
    Jun 2012
    Gender
    male
    Location
    Sweden
    Posts
    2,566
    Reputation
    731
    Thanks
    16,281
    My Mood
    Devilish
    Just source files.

    /Apprvoved

  7. #5
    alexhsc's Avatar
    Join Date
    Jan 2015
    Gender
    male
    Posts
    5
    Reputation
    10
    Thanks
    0
    Hi bro, How To instal this ?

    I wait your Reply, Thank's

  8. #6
    hollow36rus's Avatar
    Join Date
    Nov 2012
    Gender
    male
    Posts
    36
    Reputation
    10
    Thanks
    124
    My Mood
    Devilish
    Quote Originally Posted by alexhsc View Post
    Hi bro, How To instal this ?

    I wait your Reply, Thank's
    You need to download AutoIT (autoitscrip*****m)
    Then right-click on the file AutoHP.au3 --> "Run Script"

  9. #7
    VouchHeart's Avatar
    Join Date
    Aug 2015
    Gender
    male
    Posts
    5
    Reputation
    10
    Thanks
    0
    Thanks. pretty cool.

  10. #8
    hwd's Avatar
    Join Date
    Aug 2015
    Gender
    male
    Posts
    14
    Reputation
    10
    Thanks
    4
    Hey hollow36rus,

    awesome work!

    I have two little questions

    Could you add a function to hook to a PID instead of the process name?
    I have a couple of open Trove windows (fishing) and are playing at the same time.

    What about to read the PID of the active window when the Script is activated?
    After search i found a post on the AutoIt-Forum: https://www.autoitscrip*****m/forum/t...comment=743159
    I can't try it (because I'm at work) but it look like you only have to change the line where you gather the PID.

    Code:
    --- $PID = WinGetProcess("Trove", "")
    +++ $PID = WinGetProcess("[active]", "")
    Will try it when I`m back home.

    Secondly i see it uses memory reading.
    What about updates to Trove.
    Will the update change the location of the information about actual HP like the pointers for fishbites?

    Again: awesome work!
    Thank you!

  11. The Following User Says Thank You to hwd For This Useful Post:

    hollow36rus (09-01-2015)

  12. #9
    hollow36rus's Avatar
    Join Date
    Nov 2012
    Gender
    male
    Posts
    36
    Reputation
    10
    Thanks
    124
    My Mood
    Devilish
    Alas, updating the game resulted for pointers changing.
    Soon update

    [PATCHED]
    Last edited by hollow36rus; 09-01-2015 at 01:39 PM.

Similar Threads

  1. BUYING ROTMG ACCOUNTS VIA PAYPAL NOT GOING FIRST
    By Vshorty140 in forum Realm of the Mad God Selling / Trading / Buying
    Replies: 5
    Last Post: 04-12-2013, 01:19 PM
  2. [WTB] Great Major 3rd class!!!!!! (Open for trading, or selling via AP [Not farmed + proof]
    By teets_ in forum Alliance of Valiant Arms (AVA) Selling / Trading / Buying
    Replies: 14
    Last Post: 01-12-2013, 10:10 AM
  3. [Solved] Suggestion why not make an AUTOIT FORUM?
    By acedia in forum Suggestions, Requests & General Help
    Replies: 2
    Last Post: 08-07-2012, 01:59 PM
  4. [Help Request] AUTOIT is not working on my laptop!
    By matikaukau2 in forum Vindictus Help
    Replies: 6
    Last Post: 02-25-2012, 07:54 PM
  5. [Help] AutoIt PixelSearch Help
    By Njowils in forum Other Programming
    Replies: 0
    Last Post: 07-16-2011, 04:43 PM