The Wiki for Tale 4 is in read-only mode and is available for archival and reference purposes only. Please visit the current Tale 11 Wiki in the meantime.

If you have any issues with this Wiki, please post in #wiki-editing on Discord or contact Brad in-game.

Difference between revisions of "User:Cegaiel/Macros/Fishing"

From A Tale in the Desert
Jump to navigationJump to search
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
<pre>
+
==Fishing (Autohotkey)==
;Ctrl+Alt+F to start macro.
+
It will walk you through with GUI menus, but heres what it will ask:
;Ctrl+P to pause script (ie to click Water icon) and Ctrl+P again to resume
 
;The AHK icon in system tray will turn red while paused.
 
  
^p::Pause
+
1) Enter how many times you want to cast (click the fishing icon)
^!f::
+
<BR>2) It will ask you to hover and middle click your fishing icon
 +
<BR>3) It will now begin fishing and pause 16 seconds between casts
  
  
 +
What makes this better than some other fishing scripts?
  
IfWinExist eGenesis Client
+
*The fishing icon can change positions depending on where you are standing (ie mud, sand, etc).  This script will ask you where the icon is...
{
 
WinActivate
 
  
InputBox, NumPulls, Fishing, Step 1: Enter how many times do you want to cast?
+
*Once it reaches the the number of casts you entered, it will stop.
Location = 1
 
Cycle = 0
 
  
  
Gui, +AlwaysOnTop +ToolWindow
+
<B>New Update 1/19/2010:</b>
Gui, Font, bold
+
*Countdown timer added to GUI bar
Gui, Add, Text, vLocationText, Step 2: Record the location of fishing icon...
+
*Holding F2 down (2 seconds) while waiting on timer will fish immediately (in case lag caused you to fish too early or you paused script)
Gui, Font, norm
 
Gui, Add, Text,, Hover and middle-click (Click mouse-wheel) on the fishing icon
 
Gui, Show
 
  
  
WinGet, GameWinHandle, ID, eGenesis Client
 
loop
 
{
 
  
WinActivate
+
[[User:Cegaiel/Macros/Fishing/Code | Get Code!]]
CoordMode, Mouse, Relative
 
KeyWait, MButton, D
 
KeyWait, MButton
 
MouseGetPos, TestX, TestY, WinHandle
 
if (WinHandle = GameWinHandle)
 
{
 
Gosub, RecordIcon
 
}
 
else
 
{
 
Gui, Destroy
 
break
 
}
 
}
 
return
 
 
 
RecordIcon:
 
MouseGetPos, LocX%Location%, LocY%Location%
 
Gui, Destroy
 
Gui, +AlwaysOnTop +ToolWindow
 
Gui, Font, bold
 
Gui, Add, Text, LocationText, Fishing icon captured, now click OK!
 
Gui, Font, norm
 
Gui, Add, Text,,
 
( LTrim
 
Note:
 
 
 
You can pause fishing at anytime by clicking Ctrl+P
 
Resume, after pausing, with Ctrl+P again.
 
 
 
)
 
 
 
Gui, Add, Button, default gSetLoops, OK
 
Gui, Show
 
return
 
 
 
 
 
SetLoops:
 
Gui, Submit
 
Gui, Destroy
 
Gui, +AlwaysOnTop +ToolWindow
 
Gui, Font, bold
 
Gui, Add, Text, vLocationText, Ready to fish, Good Luck!
 
Gui, Show
 
 
 
Sleep 2000
 
 
 
 
 
 
 
loop, %NumPulls%
 
{
 
 
 
WinActivate, eGenesis Client
 
 
 
LocPosX := LocX%Location%
 
LocPosY := LocY%Location%
 
MouseGetPos, OldMX, OldMY
 
MouseMove, %LocPosX%, %LocPosY%, 0
 
Click, %LocPosX%, %LocPosY%
 
Cycle++
 
GuiControl, Text, LocationText, Casting: %Cycle% of %NumPulls%
 
 
 
MouseMove, %OldMX%, %OldMY%, 0
 
 
 
if Cycle = %NumPulls%
 
{
 
Gui, Destroy
 
Gui, Font, bold
 
Gui, Add, Text, LocationText, Casting: %Cycle% of %NumPulls%
 
Gui, Font, norm
 
Gui, Add, Text,,
 
( LTrim
 
All Done!
 
 
 
Hope you caught lots of fish!
 
 
 
Middle-click on this window to end the script.
 
)
 
Gui, Show
 
 
 
Exit
 
}
 
 
 
;Click the fishing icon every 15 seconds, you can adjust this if you need to...
 
Sleep 15000
 
 
 
 
 
}
 
Gui, Destroy
 
Gui, Add, Text,, Middle-click on this window to end the script.
 
Gui, Show
 
return
 
}
 
</pre>
 

Latest revision as of 00:39, 17 October 2010

Fishing (Autohotkey)

It will walk you through with GUI menus, but heres what it will ask:

1) Enter how many times you want to cast (click the fishing icon)
2) It will ask you to hover and middle click your fishing icon
3) It will now begin fishing and pause 16 seconds between casts


What makes this better than some other fishing scripts?

  • The fishing icon can change positions depending on where you are standing (ie mud, sand, etc). This script will ask you where the icon is...
  • Once it reaches the the number of casts you entered, it will stop.


New Update 1/19/2010:

  • Countdown timer added to GUI bar
  • Holding F2 down (2 seconds) while waiting on timer will fish immediately (in case lag caused you to fish too early or you paused script)


Get Code!