Page 1 of 5 123 ... LastLast
Results 1 to 15 of 66
  1. #1
    mpmoi's Avatar
    Join Date
    Aug 2015
    Gender
    male
    Location
    Here there
    Posts
    788
    Reputation
    26
    Thanks
    4,401
    My Mood
    Drunk

    Arrow mpBattlearena v1.5 : Pvp afk. Now throwing skills

    Hey guys !

    I just updated my battle arena afk bot !
    This bot is Afking in battle arena. Prevents logout and restarts a game everytime one ends.
    It enables you earn XP and eventually get battle box.
    You can be banned, I'm not responsible, use at your own risks.


    Requierments :
    AutoHotKey (last version I guess)

    Keys functions :
    numpad1 : start/stop on active window
    numpad2 : Change moving mode (unmoving, ZQSD, WASD)
    numpad3 : Get restart button position
    numpad4 : Exit app

    How it works ?
    Download and start the script as administrator
    Start as many trove as you want and put it in windowed, low quality (for performance issues). Also set up your keys for attacking, and throwing spells at F2 F3 F4 and F5 (Attack on F2) if you are not using the unmoving version (set those up as secondary hotkeys, CF Screenshot).
    Now enter a battle arena.
    Select which mode you want by pressing numpad3 (I suggest keeping on "unmoving" until you have activated all your window)
    You can press numpad1 while you are in-game to start the bot. You should be now able to leave the window
    Once it's done you should be able to afk!
    Press numpad1 again to stop it on the active window

    What if....? :
    -This is not clicking the restart button at the scoreboard.
    Click on the trove window, point at the restart button with your mouse and press numpad3, then press YES. It sould update the button positions. I highly recommand restarting the script after.

    -It restarted a game but it get stuck at "Waiting for players".
    This is a game issue, I can't help with it

    How do you get this ?
    Download the attachment or copy and paste the source code in a text file then rename it to .ahk

    /!\The window must be active !
    THIS MUST BE STARTED AS ADMINISTRATOR

     





     

    Code:
    V1.0 (3,606b):
    Initial release
    
    V1.1 (2,746b)(unreleased):
    Reduced mouse usage
    Moved from 3 files to 1
    Added key changes in-game
    More precise tooltip
    
    V1.2 (3,477b):
    Reduced mouse usage
    Multiple account supports
    Less pixel check
    option to get pixel color
    Using GUI[
    
    V1.3 (3,446b):
    Option to get pixel location
    No longer using loop !
    Using different timers for GUI update, Pixels checks and controls sends
    Less memory usage
    
    
    V1.3.1 (3,702b):
    Corrected bug about pixel updating
    Changed ini saving
    Added an error message if using teamviewer
    
    V1.4 (3,786b):
    Added a tooltip on adding and removal of window
    Added a tooltip on move mode changing
    Now using the same key to activate and deactivate a window
    Added a window-name checker
    Puts back the mouse at it's previous position after clicking
    No longer checking pixel color
    Increased checking time to 30s (may be changed)
    
    V1.5 (4,140b):
    Better unmoving mode
    Now throwing skills
    Better clicking algorithm


     

    Code:
    #Persistent
    
    Pids := Object()
    
    global mode = 0
    global X = 421
    global Y = 328
    global iniFile := A_ScriptDir . "/config.ini"
    
    if (FileExist(iniFile)){
    	IniRead, X, %iniFile%, Global, X
    	IniRead, Y, %iniFile%, Global, Y
    }
    
    Process, Exist, TeamViewer.exe
      If (ErrorLevel)
        Msgbox, "Teamviewer is currenly running. This is a known program to cause issues with the bot. Please close it or disable quick connect feature. If issues still happen try to uninstall it."
    
    Gui, Add, Text,, mpBattleArena v1.5`n`nKeys :`nNumpad1 to start/pause`nNumpad2 to change moving mode`nNumpad3 to update positions`nNumpad4 to exit`n`nActive accunts count :
    Gui, Add, Text, vCount w200
    Gui, Add, Text,, Moving mode :
    Gui, Add, Text, vMode w200
    Gui, Add, Text,, Positions :
    Gui, Add, Text, vPos w200
    Gui -Resize -MinimizeBox
    Gui, Show,,mpBattleArena
    
    SetTimer, SendControls, 750
    SetTimer, UpdateGui, 250
    SetTimer, Click, 30000
    return
    
    numpad1::
    	WinGet, APID, PID, A
    	WinGetTitle, winTitle, ahk_pid %APID%
    	if (winTitle = "Trove"){
    		found = 0
    		for i, p in Pids
    			if (p=APID)
    				found=1
    		if (found!=1){
    			Pids.Insert(APID)
    			ToolTip, %APID% Now active
    			SetTimer, RemoveToolTip, 5000
    		}else{
    			newPids := Object()
    			for i, p in Pids
    				if (p!=APID)
    					newPids.Insert(p)
    			Pids := newPids
    			ToolTip, %APID% Now inactive
    			SetTimer, RemoveToolTip, 5000
    		}
    	}else{
    		Msgbox, %winTitle% is not a valid Trove window
    	}
    	return
    
    numpad2::
    	mode := Mod(mode+1, 3)
    	if (mode = 0)
    		ToolTip, Unmoving mode activated
    	if (mode = 1)
    		ToolTip, ZQSD mode activated
    	if (mode = 2)
    		ToolTip, WASD mode activated
    	SetTimer, RemoveToolTip, 5000
    	return
    
    numpad3::
    	MouseGetPos, theX, theY
    	MsgBox, 4,, Update positions to X : %theX%, Y = %theY% ?
    	IfMsgBox Yes
    		{
    		X = %theX%
    		Y = %theY%
    		SaveIni()
    	}
    	return
    
    numpad4::
    	SaveIni()
    	ExitApp
    
    SendControls:
    	for i, pid in Pids{
    		Random, r, 99, 999
    		Sleep, %r%
    		if (mode>0){
    			Random, r, 1, 5
    			if (r=1){
    				if (mode=1)
    					ControlSend, , {z down}, ahk_pid %PID%
    				else
    					ControlSend, , {w down}, ahk_pid %PID%
    			}else if (r=2){
    				if (mode=1)
    					ControlSend, , {q down}, ahk_pid %PID%
    				else
    					ControlSend, , {w down}, ahk_pid %PID%
    			}else if (r=3){
    				ControlSend, , {s down}, ahk_pid %PID%
    			}else if (r=4){
    				ControlSend, , {d down}, ahk_pid %PID%
    			}else if (r=5){
    				ControlSend, , {space}, ahk_pid %PID%
    			}
    			
    			Random, r, 1, 6
    			if (r=1){
    				if (mode=1)
    					ControlSend, , {z up}, ahk_pid %PID%
    				else
    					ControlSend, , {w up}, ahk_pid %PID%
    			}else if (r=2){
    				if (mode=1)
    					ControlSend, , {q up}, ahk_pid %PID%
    				else
    					ControlSend, , {a up}, ahk_pid %PID%
    			}else if (r=3){
    				ControlSend, , {s up}, ahk_pid %PID%
    			}else if (r=4){
    				ControlSend, , {d up}, ahk_pid %PID%
    			}
    			
    			Random, r, 1, 6
    			if (r=1){
    				ControlSend, , {F2 down}, ahk_pid %PID%
    			}else if (r=2){
    				ControlSend, , {F2 up}, ahk_pid %PID%
    			}else if (r=3){
    				ControlSend, , {F3 down}, ahk_pid %PID%
    				ControlSend, , {F3 up}, ahk_pid %PID%
    			}else if (r=4){
    				ControlSend, , {F4 down}, ahk_pid %PID%
    				ControlSend, , {F4 up}, ahk_pid %PID%
    			}else if (r=5){
    				ControlSend, , {F5 down}, ahk_pid %PID%
    				ControlSend, , {F5 up}, ahk_pid %PID%
    			}
    		}
    	}
    	return
    
    Click:
    	MouseGetPos, theX, theY
    	WinGet, temp, PID, A
    	for i, pID in Pids{
    		WinActivate, ahk_pid %pID%
    		WinMove,ahk_pid %pID%,,0,0,576,432
    		WinWaitActive, ahk_pid %pID%
    		MouseMove, X, Y
    		ControlClick, x%X% y%Y%, ahk_pid %PID%
    	}
    	WinActivate, ahk_pid %temp%
    	MouseMove, theX, theY
    	return
    
    UpdateGui:
    	clients := Pids.MaxIndex()
    	GuiControl,, Count, %clients%
    	GuiControl,, Pos, X=%X% Y=%Y%
    	if (mode=0)
    		GuiControl,, Mode, Unmoving
    	if (mode=1)
    		GuiControl,, Mode, ZQSD
    	if (mode=2)
    		GuiControl,, Mode, WASD
    	return
    
    RemoveToolTip:
    	SetTimer, RemoveToolTip, Off
    	ToolTip
    	return
    
    GuiClose:
    	SaveIni()
    	ExitApp
    
    SaveIni(){
    	IniWrite, %X%, %iniFile%, Global, X
    	IniWrite, %Y%, %iniFile%, Global, Y
    }


     

    Quote Originally Posted by chopchop75 View Post
    /joinworld bouncy


    Known bugs :

    Special thanks :
    @reppin who helped me alot with optimising my code

    Virus scans :
    https://www.virustotal.com/en/file/c...is/1450266003/
    https://virusscan.jotti.org/fr-FR/fi...job/2osko12r66


    If you don't want to wait for approval you get the code under the source code spoiler and paste it in a file then rename it in .ahk.

    NOTE : Old thread can be closed (outdated tool)
    <b>Downloadable Files</b> Downloadable Files

  2. The Following 109 Users Say Thank You to mpmoi For This Useful Post:

    aanime06 (04-12-2016),Aggro Asian (04-10-2016),Akatohs (04-10-2016),andresgan (08-24-2016),andrew0192012 (12-23-2015),Aneka (03-12-2016),AOztas2 (08-03-2017),AquaAndrew (10-12-2016),Arthuis (09-23-2016),aunman (12-19-2015),axan666 (07-31-2016),b12345blue (10-21-2016),bakb99 (10-09-2016),BangBang111 (12-19-2015),bastispasti (07-24-2017),bloodeye161 (01-01-2016),BonFire225 (10-16-2016),bonjuanss (06-07-2016),brightdan (12-24-2015),Brinquedopuro (11-16-2016),Cameron9456 (01-23-2016),chaosf1re (12-26-2015),ChikenFlul (03-21-2016),chopchop75 (12-16-2015),conte1234 (01-21-2018),CronusAztec (11-09-2017),cubux (01-11-2016),D1wid15 (07-04-2016),Dagreatray (12-16-2015),darklekiller (03-18-2016),darksnow1113 (04-05-2016),Dartser (06-01-2016),davyhartje (02-20-2016),Diabeticx (02-24-2016),DreemCakes420 (03-09-2016),edgarbb (12-18-2015),enamodrak (03-15-2016),exiiik (12-22-2015),Fabulous Penguin (01-08-2016),fastus (01-24-2016),Fin412 (08-17-2017),firerik (04-21-2016),florian973 (03-17-2016),Flux4Skins (06-05-2016),Fpereirinha (12-04-2016),Frostlord (09-06-2016),GmenPro (12-17-2015),golddiamond2541 (08-04-2017),GoldTreck (12-03-2016),gumdramon (01-02-2018),Heavy1 (04-03-2016),hideandrun (04-10-2016),iArhelay (04-11-2016),IICyRuSII (12-18-2015),ikuk0 (09-25-2017),jamiex98 (02-18-2016),jbkillerdk999 (01-24-2016),kianator66 (01-22-2016),killyouups (12-21-2015),Klitgaard (09-28-2016),KryosZ (04-20-2016),ktlavsko (12-16-2015),leos222 (06-04-2016),leuris5 (02-03-2017),lolcird (07-15-2016),loling123456 (03-26-2016),lolsokekman (08-17-2016),m321m (02-15-2016),Mashirolol (10-09-2016),matheussemler (01-22-2016),MJohansson (03-13-2016),mx01 (07-03-2016),na350337 (05-08-2016),ninjafox44 (01-23-2016),NoliQ (04-14-2016),PedroFSJ (06-05-2016),powercoque (01-04-2016),q1247319041 (07-23-2017),q792952733 (01-29-2016),quyetchien97 (02-18-2016),redtoxiic (09-25-2020),ruritanian (07-26-2016),salih2222 (11-01-2016),samkung123 (02-28-2016),Scruffy2004 (12-28-2016),sd543 (03-19-2016),Shaunpro (02-21-2016),shuan420 (04-10-2016),BattleEye (08-30-2016),slashcombo (05-25-2016),Souik (12-26-2015),Spitt (10-06-2016),termineitor28 (12-20-2015),thefoxiest (06-13-2016),ThePotatoSpaceman (01-15-2016),TheSquareNati (04-17-2017),tintin1590 (01-07-2016),Titan-[Z] (12-17-2015),titiojapa (07-08-2017),tqlxquanz (03-05-2016),trovian (02-17-2016),Umasou (03-14-2016),UnderRoath (01-09-2016),vhmercenario (10-09-2016),waga71111 (02-21-2016),Windoge 10 (05-27-2016),xghostranger (02-18-2016),yodenny (02-25-2016),Zhaeva (11-29-2016)

  3. #2
    chopchop75's Avatar
    Join Date
    Aug 2015
    Gender
    male
    Posts
    64
    Reputation
    10
    Thanks
    9
    no one has been using the bouncy afk pvp arena today. not sure why, unless the patch has really hit afk pvp'ing in a big way. i cant see how it would affect the bouncy setup though, since it grabs the flag and returns it
    Last edited by chopchop75; 12-16-2015 at 06:02 AM.

  4. #3
    mpmoi's Avatar
    Join Date
    Aug 2015
    Gender
    male
    Location
    Here there
    Posts
    788
    Reputation
    26
    Thanks
    4,401
    My Mood
    Drunk
    I guess you should wait for other to use the bot or just advertise for the map Ingame

  5. #4
    chopchop75's Avatar
    Join Date
    Aug 2015
    Gender
    male
    Posts
    64
    Reputation
    10
    Thanks
    9
    since it isnt my clubworld, i dont feel comfortable advertising it in game....guess i should though

    edit: anyone know of any other afk pvp clubworlds they can share here ?
    Last edited by chopchop75; 12-16-2015 at 06:25 PM.

  6. #5
    mpmoi's Avatar
    Join Date
    Aug 2015
    Gender
    male
    Location
    Here there
    Posts
    788
    Reputation
    26
    Thanks
    4,401
    My Mood
    Drunk
    Feel free to copy the main idea on your own club world

  7. #6
    chopchop75's Avatar
    Join Date
    Aug 2015
    Gender
    male
    Posts
    64
    Reputation
    10
    Thanks
    9
    only person in my clubworld is me, and thats how i like. have spoken to someone else, who likes finding glitches and ways to circumvent the game, an told them how the afk bounce setup works....and they are going to try and make it better for their club. if he does it, i wil share the idea here

  8. #7
    mpmoi's Avatar
    Join Date
    Aug 2015
    Gender
    male
    Location
    Here there
    Posts
    788
    Reputation
    26
    Thanks
    4,401
    My Mood
    Drunk
    As you wanr

  9. #8
    Yemiez's Avatar
    Join Date
    Jun 2012
    Gender
    male
    Location
    Sweden
    Posts
    2,566
    Reputation
    731
    Thanks
    16,281
    My Mood
    Devilish
    Just source code, approved!

  10. #9
    mpmoi's Avatar
    Join Date
    Aug 2015
    Gender
    male
    Location
    Here there
    Posts
    788
    Reputation
    26
    Thanks
    4,401
    My Mood
    Drunk
    Nice thanks !

  11. #10
    ThuyDez's Avatar
    Join Date
    Apr 2012
    Gender
    male
    Posts
    23
    Reputation
    10
    Thanks
    1
    My Mood
    Bored
    bouncy is empty because people were posting it in global and people started using /testarena to forcibly prevent randoms from doing the afk thing for rewards, to prevent it becoming more widely known.

  12. #11
    chopchop75's Avatar
    Join Date
    Aug 2015
    Gender
    male
    Posts
    64
    Reputation
    10
    Thanks
    9
    that sucks...i enjoyed bouncy

  13. #12
    fdxguy's Avatar
    Join Date
    Jul 2013
    Gender
    male
    Posts
    12
    Reputation
    10
    Thanks
    0
    My Mood
    Lurking
    so how do we afk xp farm now?

  14. #13
    mpmoi's Avatar
    Join Date
    Aug 2015
    Gender
    male
    Location
    Here there
    Posts
    788
    Reputation
    26
    Thanks
    4,401
    My Mood
    Drunk
    You will still be earning some xp(50%)
    Moreover you may pray for getting a random kill and earn more.
    There are also club arenas made on purpose for afking

  15. #14
    Bomberzz's Avatar
    Join Date
    Oct 2015
    Gender
    male
    Posts
    57
    Reputation
    10
    Thanks
    465
    forums. trovegame.com/showthread.php?85014-New-type-of-farming

  16. #15
    chopchop75's Avatar
    Join Date
    Aug 2015
    Gender
    male
    Posts
    64
    Reputation
    10
    Thanks
    9
    /joinworld the awesome people

    just do not afk pvp with alts there

Page 1 of 5 123 ... LastLast

Similar Threads

  1. [Outdated] mpBattlearena v1.4 : Pvp afk and stuff
    By mpmoi in forum Trove Hacks & Cheats
    Replies: 17
    Last Post: 12-16-2015, 02:56 AM
  2. Replies: 1
    Last Post: 01-29-2012, 10:47 AM
  3. Takeing requsts, I now have free time, and good editing skills :D
    By hellohigoodbye in forum Combat Arms Mod Discussion
    Replies: 51
    Last Post: 12-22-2009, 03:10 AM
  4. Replies: 10
    Last Post: 04-17-2009, 04:45 PM

Tags for this Thread