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/Grass"

From A Tale in the Desert
Jump to navigationJump to search
(New page: <pre> ; grass collector ^p::Pause ^!g:: ;This script collects grass in a small area. It will click/walk different in a circle around where you are standing. ;Make sure you have plenty of ...)
 
Line 1: Line 1:
<pre>
+
==Grass (Autohotkey)==
; grass collector
+
Start script with Ctrl+Alt+G
^p::Pause
 
^!g::
 
  
;This script collects grass in a small area. It will click/walk different in a circle around where you are standing.
+
Enter amount of grass to collect. Walks around in a circle and collects grass without moving too far from where you started.  Great to get your [[Rhythmic_Strength | Rhythmic Strength]] skill up.  The reason this is a zip file is because it contains a .png image of the grass icon that needs to be in the same directory as the script.
;Make sure you have plenty of grass around you!
 
;Lock screen (Alt+L) and use F6 camera angle and zoom in about medium.
 
;Make sure you are Walking Slow (Esc, Emote..., Gait: Walking)
 
;Make sure that What Do I Do Now? icon (top left (Clipboard with notebook on it) is gone (Uncheck Utility, Interface)
 
  
 +
Note recently IE downloads somtimes show the zip file as being corrupt.  If you try to download and it shows the zip file as corrupt, then you will need to download and install [http://mozilla.org  Firefox] to download correctly. Or, you can manually get the code and download the image, below.
  
;Ctrl+Alt+G to enter the amount of grass to collect.
 
;Ctrl+p to Pause script
 
  
shades:="*90"
+
[http://www.atitd.org/wiki/tale4/images/2/2d/Grass.zip Download Zip File] (Script + Grass icon image)
  
IfWinExist eGenesis Client
+
-OR-
{
 
WinActivate
 
WinGetPos,,, winWidth, winHeight
 
minorOffset = 70
 
majorOffset = 100
 
winXCenter := winWidth / 2
 
winYCenter := ((winHeight - 22) / 2) + 32
 
winXLeft := winXCenter - minorOffset
 
winXFarLeft := winXCenter - majorOffset
 
winXRight := winXCenter + minorOffset
 
winXFarRight := winXCenter + majorOffset
 
winYUp := winYCenter - minorOffset
 
winYFarUp := winYCenter - majorOffset
 
winYDown := winYCenter + minorOffset
 
winYFarDown := winYCenter + majorOffset
 
circleMove = 0
 
 
Gui, +AlwaysOnTop +ToolWindow
 
Gui, Add, Text,, How many grass cycles?
 
Gui, Add, Edit, Number vNumGrass
 
Gui, Add, Button, default gGrassCommit, OK
 
Gui, Show
 
return
 
 
GrassCommit:
 
Gui, Submit
 
Gui, Destroy
 
GrassCycle = 0
 
Gui, +AlwaysOnTop +ToolWindow
 
Gui, Font, bold
 
Gui, Add, Text, vGrassCycleText, Cycle %NumGrass% of %NumGrass%
 
Gui, Font, norm
 
Gui, Show
 
GuiControl, Text, GrassCycleText, Cycle %GrassCycle% of %NumGrass%
 
WinActivate, eGenesis Client
 
CoordMode, Mouse, Relative
 
loop, %NumGrass%
 
{
 
if circleMove = 0
 
{
 
MouseClick, left, %winXCenter%, %winYFarUp%
 
circleMove++
 
}
 
else if circleMove = 1
 
{
 
MouseClick, left, %winXRight%, %winYUp%
 
circleMove++
 
}
 
else if circleMove = 2
 
{
 
MouseClick, left, %winXFarRight%, %winYCenter%
 
circleMove++
 
}
 
else if circleMove = 3
 
{
 
MouseClick, left, %winXRight%, %winYDown%
 
circleMove++
 
}
 
else if circleMove = 4
 
{
 
MouseClick, left, %winXCenter%, %winYFarDown%
 
circleMove++
 
}
 
else if circleMove = 5
 
{
 
MouseClick, left, %winXLeft%, %winYDown%
 
circleMove++
 
}
 
else if circleMove = 6
 
{
 
MouseClick, left, %winXFarLeft%, %winYCenter%
 
circleMove++
 
}
 
else if circleMove = 7
 
{
 
MouseClick, left, %winXLeft%, %winYUp%
 
circleMove = 0
 
}
 
loop
 
{
 
;PixelSearch, Px, Py, 0, 0, 91, 74, 0xB46E6C
 
  
ImageSearch, Px, Py, 92 , 61, 576, 150, %shades% Grass_icon.png
+
[[User:Cegaiel/Macros/Grass/Code | Get Code!]] -AND- [[Media:Grass_icon.png | Get Grass Image]] (Right click the link and choose Save Target As...)
;Sleep, 1000
+
 
if ErrorLevel = 0
+
<b>Note:</b> The .png file needs to be in same directory as the script.
{
 
GrassCycle++
 
GuiControl, Text, GrassCycleText, Cycle %GrassCycle% of %NumGrass%
 
;MouseClick, left, 91, 74
 
MouseClick, left, Px, Py
 
Sleep, 250
 
break
 
}
 
}
 
}
 
Gui, Destroy
 
return
 
}
 
return
 
</pre>
 

Revision as of 19:08, 14 January 2010

Grass (Autohotkey)

Start script with Ctrl+Alt+G

Enter amount of grass to collect. Walks around in a circle and collects grass without moving too far from where you started. Great to get your Rhythmic Strength skill up. The reason this is a zip file is because it contains a .png image of the grass icon that needs to be in the same directory as the script.

Note recently IE downloads somtimes show the zip file as being corrupt. If you try to download and it shows the zip file as corrupt, then you will need to download and install Firefox to download correctly. Or, you can manually get the code and download the image, below.


Download Zip File (Script + Grass icon image)

-OR-

Get Code! -AND- Get Grass Image (Right click the link and choose Save Target As...)

Note: The .png file needs to be in same directory as the script.