Auto Loot Script (AutoNexusScript

Posts 1–15 of 31 · Page 1 of 3
Auto Loot Script (AutoNexusScript
Press Q to loot and have fun!
Edit: this is now faster and more accurate.
Code:
#NoEnv
#SingleInstance force
SendMode Input
SetWorkingDir %A_ScriptDir%

SetKeyDelay 0
SetMouseDelay 0
SetTitleMatchMode 2

Suspend on
GroupAdd rotmg, Realm of the Mad God
GroupAdd rotmg, realmofthemadgod
GroupAdd rotmg, AGCLoader
GroupAdd rotmg, Play Realm of the Mad God
GroupAdd rotmg, SwiffOutRunner
GroupAdd rotmg, Adobe Flash Player 10
GroupAdd rotmg, Adobe Flash Player 11
GroupAdd rotmg, fla
WinNotActive()

WinActive()
{
	Suspend Off
	WinWaitNotActive ahk_group rotmg
	{
		WinNotActive()
	}
}
WinNotActive()
{
	Suspend on
	WinWaitActive ahk_group rotmg
	{
		WinActive()
	}
}

;Auto loot :D
Q::
SendMode Event
MouseGetPos, mousePosX, mousePosY
WinGetPos, , , winSizeX, winSizeY, A
ImageSearch, imageLocX, imageLocY, 0, 0, %winSizeX%, %winSizeY%, img\searchimage.png
imageLocX += 0
imageLocY -= 70
Xinc = 640
Yinc = 635
{
	
	{
		MouseMove, imageLocX + Xinc, imageLocY + Yinc
		SendEvent {LButton Down}
		MouseMove, imageLocX + Xinc + 3, imageLocY + Yinc + 3
		Sleep 60
		MouseMove, imageLocX + Xinc, imageLocY + Yinc - 30
		SendEvent {LButton Up}
		Sleep 1
		Xinc += 50
	}
}
MouseMove, mousePosX, mousePosY
Return
Change the X and Y if you are not using flashplayer
Note: this is not for nexus use. the bots are way faster then this script.
Thank you this works perfectly
How do i use something like this? sorry im new
Quote Originally Posted by demondied1 View Post
How do i use something like this? sorry im new
Download autohotkey
Create a new notepad document or autohotkey script
Load the script using autohotkey
your last thread was fine, not sure why you made a new thread?
the title was messed up im a person that likes to be organized :3 wrong title with a script was messy
So you open the flashplayer, and go and walk past a bag and press q to pick it up immediately?
Quote Originally Posted by MasterFart View Post
So you open the flashplayer, and go and walk past a bag and press q to pick it up immediately?
i made it so if you are in glands and you are under fire you can quickly loot something and get out of there... but it might work in drop parties....i dont think it would work well in nexus due to looter bots
and yes if you are running and u happen to cross by a loot bag with lets say ...a def in it...if you press q at the right moment it should pick it up just like odom's autoloot
i'm using chrome how am i suppose to change this?
and it says H not S.
Quote Originally Posted by undd View Post
i'm using chrome how am i suppose to change this?
and it says H not S.
you would have to change the Xinc and the Yinc to match your browser's game (right click the script in the taskbar and press window spy it might help you)

---------- Post added at 11:45 PM ---------- Previous post was at 11:27 PM ----------

wow just realized i still messed up on the title...
What does do. Can u die or are you an god?
Quote Originally Posted by realmmadgod View Post
What does do. Can u die or are you an god?
"Auto Loot Script (AutoNexusScript)" You think this out
Quote Originally Posted by dg123 View Post
Press Q to loot and have fun!
Code:
#NoEnv
#SingleInstance force
SendMode Input
SetWorkingDir %A_ScriptDir%

SetKeyDelay 0
SetMouseDelay 0
SetTitleMatchMode 2

Suspend on
GroupAdd rotmg, Realm of the Mad God
GroupAdd rotmg, realmofthemadgod
GroupAdd rotmg, AGCLoader
GroupAdd rotmg, Play Realm of the Mad God
GroupAdd rotmg, SwiffOutRunner
GroupAdd rotmg, Adobe Flash Player 10
GroupAdd rotmg, Adobe Flash Player 11
GroupAdd rotmg, fla
WinNotActive()

WinActive()
{
	Suspend Off
	WinWaitNotActive ahk_group rotmg
	{
		WinNotActive()
	}
}
WinNotActive()
{
	Suspend on
	WinWaitActive ahk_group rotmg
	{
		WinActive()
	}
}

;Auto loot :D
Q::
SendMode Event
MouseGetPos, mousePosX, mousePosY
WinGetPos, , , winSizeX, winSizeY, A
ImageSearch, imageLocX, imageLocY, 0, 0, %winSizeX%, %winSizeY%, img\searchimage.png
imageLocX += 0
imageLocY -= 70
Xinc = 640
Yinc = 640
{
	
	{
		MouseMove, imageLocX + Xinc, imageLocY + Yinc
		SendEvent {LButton Down}
		MouseMove, imageLocX + Xinc + 3, imageLocY + Yinc + 3
		Sleep 55
		MouseMove, imageLocX + Xinc, imageLocY + Yinc - 30
		SendEvent {LButton Up}
		Sleep 55
		Xinc += 50
	}
}
MouseMove, mousePosX, mousePosY
Return
Change the X and Y if you are not using flashplayer
Note: this is not for nexus use. the bots are way faster then this script.
Useless with Fullscreen and if you have your window maximized....
Quote Originally Posted by Omnipotent View Post
Useless with Fullscreen and if you have your window maximized....
you can easily change the X and Y coordinates

---------- Post added at 11:28 AM ---------- Previous post was at 11:26 AM ----------

Quote Originally Posted by Royce View Post


"Auto Loot Script (AutoNexusScript)" You think this out
Yeah messed up on the title it was supposed to be AutolootScript (autohotkey Script) lol :3
Posts 1–15 of 31 · Page 1 of 3

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?