AutoHotkey Community

It is currently May 27th, 2012, 7:59 am

All times are UTC [ DST ]




Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 77 posts ]  Go to page 1, 2, 3, 4, 5, 6  Next
Author Message
PostPosted: May 10th, 2004, 1:34 am 
This is an autofisher for Runescape classic (now Runescape 2, I need to update for the new version of Runescape). Replace USERNAME with your name, and PASSWORD for your password which appear in multiple locations of the code. Start at the log in screen in 1024/768, no extra toolbars (i.e. google toolbar) and other instructions in my code. I was keeping all of my autos secret but I haven't used them in a while, tell me if you like them. RUNESCAPE CLASSIC REMEMBER...

I made this custom for myself, but if you follow my instructions you should be able to figure it out.

Code:
;Runescape Autofish/Autologon
;by Areaman

;START IN 1024 by 768 RESOLUTION, FULL WINDOWED MODE WITH THE
;GAME AT THE NOT LOGGED IN SCREEN

;Logs in to Runescape with the user/pass by clicking and typing
;Wait until after jagex window pops up to do anything, this
;will automatically close it
;TURN OFF CHAT AND BLOCK ALL TRADES, DUELS, AND PM's!!!!

Login:

Sleep, 5000
LeftClick, 559, 540
Sleep, 1000
LeftClick, 441, 509
Sleep, 250
Send, USERNAME
Sleep, 250
Send, {ENTER}
Sleep, 250
Send, Password
Sleep, 500
LeftClick, 695, 499
Sleep, 8000
LeftClick, 580, 483
Sleep, 1000
SetEnv, end, 0
SetEnv, logcount, 1
SetEnv, error1, 0

Goto, GetPos

;Move mouse to bottom left of fishing spot and rest there, then top right
;It will ghost directions in the chat type window

GetPos:

Send, 5 seconds to bottom left
Sleep, 5000
MouseGetPos, xpos1, ypos1
SetEnv, xpos2, %xpos1%
SetEnv, ypos2, %ypos1%
SetEnv, xmid, 0
SetEnv, ymid, 0

Send, {BACKSPACE 25}

Send, 5 seconds to top right
Sleep, 5000
MouseGetPos, xpos, ypos
SetEnv, xpos3, %xpos%
SetEnv, ypos3, %ypos%
Send, {BACKSPACE 25}
;tempx = 50
SetEnv, tempx, %xpos1%
;tempx2 = 150
SetEnv, tempx2, %xpos%
;tempx2 = 100, or difference between left x and right x
EnvSub, tempx2, %tempx%
;tempx2 is divided by 2 to get median
EnvDiv, tempx2, 2
;xmid was 0, now 50 as it is set to left x
EnvAdd, xmid, %xpos1%
;50 is added to 50 (left x) to get middle of 2, 100
EnvAdd, xmid, %tempx2%
;tempy = 50, or top y
SetEnv, tempy, %ypos%
;tempy2 = 150, or bottom y
SetEnv, tempy2, %ypos1%
;tempy2 = 100 as 150-50=100, or difference between y's
EnvSub, tempy2, %tempy%
;tempy2 divided by 2 to get median, or 50
EnvDiv, tempy2, 2
;50 added to top y, as adding moves it downward, to reach median, or 100
EnvAdd, tempy, %tempy2%
;ymid becomes 100, or median
SetEnv, ymid, %tempy%


Send, Starting in 2 seconds
Sleep, 2000
Send, {BS 21}

Goto, Start2

;Rightclicks and cages lobbies, then moves mouse a little to compensate
;the window shift that jagex uses to stop macros

;After a set amount of times it will stop, as the window shift will
;be too great to continue safely. Increase times if you want but be
;careful as to what might happen by itself. this automatically logs
;you out.

Logout:

Sleep, 250
MouseMove, 583, 269
Sleep, 250
LeftClick, 612, 532
IfGreaterOrEqual, logcount, 9, Exit
Goto, Login2

Login2:

Sleep, 5000
LeftClick, 559, 540
Sleep, 1000
LeftClick, 441, 509
Sleep, 250
Send, USERNAME
Sleep, 250
Send, {ENTER}
Sleep, 250
Send, PASSWORD
Sleep, 500
Send, {ENTER}
Sleep, 8000
LeftClick, 580, 483
Sleep, 1000
SetEnv, end, 0
Send, {BS 10}
Send, %logcount%................
EnvAdd, logcount, 1
SetEnv, error1, 0
SetEnv, xpos1, %xpos2%
SetEnv, ypos1, %ypos2%
SetEnv, xpos, %xpos3%
SetEnv, xpos, %xpos3%

Goto, Start2

Start2:

IfGreater, end, 25, Goto, Logout
Send, {BS 2}
Send, %end%
Goto, Start

Start:
MouseMove, %xpos1%, %ypos1%
PixelGetColor, color, 276, 261
IfEqual, color, 16776960, Goto, Clicking
IfGreater, error1, 50, GoSub, Restart
IfGreater, xpos1, %xpos%, GoSub, Xfix
IfLess, ypos1, %ypos%, GoSub, Yfix
EnvAdd, xpos1, 2
EnvSub, ypos1, 2
Goto, Start

Start1:
MouseMove, %xpos1%, %ypos1%
PixelGetColor, color, 276, 261
IfEqual, color, 16776960, Goto, Clicking
IfGreater, error1, 50, GoSub, Restart
IfLess, ypos1, %ypos%, GoSub, Yfix1
EnvSub, ypos1, 2
Goto, Start1

Start3:
MouseMove, %xpos1%, %ypos1%
PixelGetColor, color, 276, 261
IfEqual, color, 16776960, Goto, Clicking
IfGreater, error1, 50, GoSub, Restart
IfGreater, xpos1, %xpos%, GoSub, Xfix1
EnvAdd, xpos1, 2
Goto, Start3

Start4:
MouseMove, %xpos1%, %ypos1%
PixelGetColor, color, 276, 261
IfEqual, color, 16776960, Goto, Clicking
IfGreater, error1, 50, GoSub, Restart
IfGreater, xpos1, %xpos%, GoSub, Xfix2
IfGreater, ypos1, %ypos2%, GoSub, Yfix2
EnvAdd, xpos1, 2
EnvAdd, ypos1, 2
Goto, Start4

Clicking:
RightClick, %xpos1%, %ypos1%
EnvAdd, ypos1, 45
EnvSub, xpos1, 10
Random, output, 100, 200
Sleep, %output%
LeftClick, %xpos1%, %ypos1%
Random, output, 4000, 5500
Sleep, %output%
EnvSub, ypos1, 45
EnvAdd, xpos1, 10
EnvAdd, end, 1
Random, output, 1,4
IfLessOrEqual, output, 2, EnvAdd, xpos1, 1
Goto, Start2

Xfix:
SetEnv, xpos1, %xmid%
SetEnv, ypos1, %ypos2%
EnvAdd, error1, 1
Goto, Start1

Yfix:
SetEnv, ypos1, %ypos2%
SetEnv, xpos1, %xmid%
EnvAdd, error1, 1
Goto, Start1

Yfix1:
SetEnv, ypos1, %ymid%
SetEnv, xpos1, %xpos2%
EnvAdd, error1, 1
Goto, Start3

Xfix1:
SetEnv, ypos1, %ypos%
SetEnv, xpos1, %xpos2%
EnvAdd, error1, 1
Goto, Start4

Xfix2:
SetEnv, xpos1, %xpos2%
SetEnv, ypos1, %ypos2%
EnvAdd, error1, 1
Goto, Start

Yfix2:
SetEnv, ypos1, %ypos2%
SetEnv, xpos1, %xpos2%
EnvAdd, error1, 1
Goto, Start

Restart:
SetEnv, error1, 0
SetEnv, end, 26
SetEnv, xpos1, %xpos2%
Send, {BS 25}
Goto, Start2


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: May 10th, 2004, 1:38 am 
LOL, oops. RS Classic apparantnly is not ready yet, and these will not work on RS2, so either admire my code or save it for when RS classic is released. If you guys want the upgraded code for RS2 tell me, when I have time I'll convert it.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: May 10th, 2004, 2:29 am 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
Well, if I run low on virtual fish, I know where to find more :)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 10th, 2004, 9:58 pm 
Offline

Joined: April 5th, 2004, 7:24 pm
Posts: 98
Location: Connecticut USA
http://www.runescape.com/

There are currently 22886 people playing.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 15th, 2004, 6:00 am 
Would like to see a RS2 version, things have changed quite a bit since RSC.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: October 2nd, 2004, 7:27 pm 
Offline
User avatar

Joined: August 11th, 2004, 1:47 am
Posts: 5347
Location: UK
Cool, I have a few RS hacks. Nice to see that other ppl play RS here :D

_________________
GitHubScriptsIronAHK Contact by email not private message.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 2nd, 2004, 10:46 pm 
Yeah, RS Classic has changed so much since I posted that script, I doubt it works anymore. But I have tons of new scripts for RS2 and RSC that I wrote, but you're not going to get those. Sorry...


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: October 2nd, 2004, 11:11 pm 
Offline
User avatar

Joined: August 11th, 2004, 1:47 am
Posts: 5347
Location: UK
I have made quite a few scripts already for RS2. Could you list the programs you made?

_________________
GitHubScriptsIronAHK Contact by email not private message.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 20th, 2004, 4:29 am 
Offline

Joined: September 10th, 2004, 6:47 am
Posts: 9
i am wondering, does rs2 or rs1 uses nprotect? can this game be minimised? i am trying to do an auto right click for a game priston tale but i cant get it to work ingame. any advise?

_________________
I've got a purple apple.
One of its kind.
First of its kind.
Do you want to see?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 9th, 2006, 7:24 am 
i want a autofisher :oops: were do i get one from :?:


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: March 9th, 2006, 4:51 pm 
Titan, i play Runescape too. Can u show me some of ur scripts please? :-)


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: April 2nd, 2006, 8:12 pm 
voodoo wrote:
Would like to see a RS2 version, things have changed quite a bit since RSC.
no!!!!!!!!!!!!!!!!


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: April 3rd, 2006, 2:28 am 
Offline

Joined: April 29th, 2005, 12:14 am
Posts: 84
Location: Maryland
PurpleApple wrote:
i am wondering, does rs2 or rs1 uses nprotect? can this game be minimised? i am trying to do an auto right click for a game priston tale but i cant get it to work ingame. any advise?


Neither (it's a java based game playable thru an internet browser). And you can't minimize it though you can minimize the internet browser containing it.

_________________
"I thought what I'd do was I'd pretend I was one of those deaf-mutes" ~ Laughing Man - GITS:SAC


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 16th, 2006, 8:07 pm 
Anyone have any scripts for macros (that work)?


Report this post
Top
  
Reply with quote  
 Post subject: AUTO-FISHER!
PostPosted: July 27th, 2006, 11:07 pm 
DUDE IM NOT MEMBER ON THIS BUT W/E
I REALLY NEED A AUTO FISHER HOW DO I GET ONE 4 FREE AND WHERE!!!!!!!!!!!


Report this post
Top
  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 77 posts ]  Go to page 1, 2, 3, 4, 5, 6  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: Cristi® and 11 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group