So I've been using mpmois scripts for a while and rewriting them to fit my needs and started to make simple scripts for my own, to make things simpler. Then I came across the need to make farming stuff easier with my alts (6 clients running simultaniously, pretty time consuming to teleport all 5 to the main location every time...), which could not be "rewrited" since it had no base in mpmois scripts.
Took some time to figure stuff up at AHK, and wrote this simple script that'll make the job a hell of a lot easier :)
What you'll need:
- Alts, of course
- Auto HotKey (google)
- A club, where all alts + main are members of (you probably already have one to transfer all the goodies)
- The character who's leading should appear as online
- The relative co-ordinates of some stuff (will be explained further down)
This script is based on the join feature that exists on club members, hence it won't work in ST's.
The script
The explanationCode:ClubX = 1165
ClubY = 326
TpX = 598
TpY = 377
CoordMode, Mouse, Window
WinGet, l, list, ahk_exe Trove.exe
Loop %l%
{
if (a_index > 1)
{
d := l%a_index%
WinGet, p, PID, ahk_id %d%
WinActivate, ahk_pid %p%
ControlSend, , p, ahk_pid %p%
Sleep 100
MouseClick, left, %ClubX%, %ClubY%, ,4
Sleep 10
MouseClick, left, %TpX%, %TpY%, ,4
Sleep 10
ControlSend, , {ESC}, ahk_pid %p%
}
}
WinGet, p, PID, ahk_id %l1%
WinActivate, ahk_pid %p%
The first 4 variables will hold the X and Y co-ordinates of the click.
Club X and Y are the co-ordinates of the green button arrow that gets you to the club page (see Club arrow attachment)
Tp X and Y are the co-ordonates of the little arrow besides the name of the player in the club page (see Club join attachment)
Once activated, it will skip the current trove window and on each other trove window, will open club menu, go to club page and tp to the player, then return to the first trove window.
*IMPORTANT* Before using the script, change the values to suit your resolution (you can find out the values by pressing Alt+PrtScrn and pasting it to paint and see the co-ordinates down below, or use Window Spy by right clicking an AHK running script and press windows spy)
Thank you
To mpmoi, for inspiring this script (and basically writing the base of it, i just used his scripts to make this :P)
The disclaimer
You shouldn't get banned for it, but if you do - not my fault. Use at your own risk.
Sometimes you can lose connection to the servers when switching worlds, if it happens when the script is running then the one that lost connection won't be tped because it will not be connected :P
My own thoughts
What I do is bind this piece of code to a key in the script file that mpmoi made, MpAntiAfk, since it is always running for me. Easier startup setup.
If you'd like, I've also attached a "stand-alone" script that will bind the teleport to Mousepad1 and killing the script to Mousepad0
Scans (not allowed to post URLs :/) :
virustotal.com/en/file/4ef31f45ba7fa740d1b34c82a9cfff39c0eee7dd3f88a1db75 1aebc0867b5a76/analysis/1489873415/
virusscan.jotti.org/en-US/filescanjob/3cm21xfiwa
r.virscan.org/report/096f9bf3bedb93c874c61db511dec1f6