Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include classMemory.ahk
- #SingleInstance, Force
- SendMode Input
- SetWorkingDir, %A_ScriptDir%
- global ClientPIDs := []
- global MainPID := 0
- global mainX := 0
- global mainY := 0
- global mainZ := 0
- Gui, New, , FollowBots | NanoDragon
- Gui, Font, s12
- Gui, Add, ListView, , Client PID|X |Y |Z |Main |Следовать
- Gui, Add, Button, gStart, Запуск
- Gui, Add, Checkbox, vfollow, Следовать
- Gui, Tab, 2
- Gui, Show, W400 H250 X0 Y0
- return
- start:
- if(%MainPID% == 0) {
- MsgBox, Выберите свой мейн (Num5)
- return
- }
- else {
- WinGet,l,list,ahk_exe Trove.exe
- loop %l%{
- WinGet,pidU,PID,% "ahk_id " l%a_index%
- ClientPIDs.Insert(pidU)
- }
- }
- for index, clientPID in ClientPIDs {
- if(clientPID == MainPID) {
- isMain := "True"
- } else {
- isMain := "False"
- }
- LV_Add("", clientPID, 0, 0, 0, isMain)
- }
- loop{
- for index, clientPID in ClientPIDs {
- GuicontrolGet, follow
- if(follow == "0") {
- follow := "Нет"
- } else {
- follow := "Да"
- }
- if(clientPID == MainPID){
- mainMem := new _ClassMemory("ahk_pid" MainPID, "", hProcessCopy)
- mainX := mainMem.read(mainMem.BaseAddress + 0x00FD6664, "UInt", 0x10, 0x11C, 0xC4, 0x4, 0x60) + 0
- mainY := mainMem.read(mainMem.BaseAddress + 0x00FD6664, "UInt", 0x0, 0x28, 0xC4, 0x4, 0x64) + 0
- mainZ := mainMem.read(mainMem.BaseAddress + 0x00FD6664, "UInt", 0x4, 0x11C, 0xC4, 0x4, 0x68) + 0
- LV_Modify(index, "", , mainX, mainY, mainZ, ,follow)
- LV_ModifyCol(1, 100)
- } else {
- altMem := new _ClassMemory("ahk_pid" clientPID, "", hProcessCopy)
- if(follow == "Да"){
- altMem.write(altMem.BaseAdress + 0x00FD6664, mainX, "UInt", 0x10, 0x11C, 0xC4, 0x4, 0x60) ; Изменение X
- altMem.write(altMem.BaseAdress + 0x00FD6664, mainY, "UInt", 0x0, 0x28, 0xC4, 0x4, 0x64) ; Изменение Y
- altMem.write(altMem.BaseAdress + 0x00FD6664, mainZ, "UInt", 0x4, 0x11C, 0xC4, 0x4, 0x68) ; Изменение Z
- }
- altX := altMem.read(altMem.BaseAddress + 0x00FD6664, "UInt", 0x10, 0x11C, 0xC4, 0x4, 0x60)
- altY := altMem.read(altMem.BaseAddress + 0x00FD6664, "UInt", 0x0, 0x28, 0xC4, 0x4, 0x64)
- altZ := altMem.read(altMem.BaseAddress + 0x00FD6664, "UInt", 0x4, 0x11C, 0xC4, 0x4, 0x68)
- LV_Modify(index, "", , altX, altY, altZ, ,follow)
- LV_ModifyCol(1, 100)
- }
- }
- Sleep, 20
- }
- Numpad5::
- WinGet,pidU,PID, A
- MainPID = %pidU%
- MsgBox, Мейн: %MainPID%
- Return
- F12::
- Reload
- Return
- GuiClose:
- ExitApp
- return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement