- UID
- 110093
- 帖子
- 398
- 主題
- 398
- 精華
- 0
- 積分
- 391
- 楓幣
- 4131
- 威望
- 391
- 存款
- 0
- 贊助金額
- 0
- 推廣
- 0
- GP
- 405
- 閱讀權限
- 30
- 性別
- 保密
- 在線時間
- 6 小時
- 註冊時間
- 2015-8-12
- 最後登入
- 2015-9-5
|
F4 離開腳本
F5 暫停腳本
低於30% 觸發 ~
AutoIt工具腳本介紹:
http://crazy.molerat.net/learner/cpuroom/net/reading.php?filename=100100995837.dov
腳本原始:- 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
複製代碼
|
|