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:Viscis"

From A Tale in the Desert
Jump to navigationJump to search
m
 
(72 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
__TOC__
 
__TOC__
  
== Macros ==
+
== Brief ==
==== Brief ====
+
 
For all my macros I use [[ACTools]] which is a easy to use program once you've had a little practice. With all of my templates you will need to make some small ajustments based on your computer.
+
All my macros are programmed in ACTools which requires very little experience to use. You will however need to configure a few things so its best if you read up below on how to record mouse locations. Other information such as how each of the commands work will '''not''' be added. This page is simple a place for others to obtain my work.
 +
 
 +
All of my code is free for anyone to download, change, use. It is nice however if you republish or alter my code that a link back is provided to the original here.
  
'''Whilst using any macro that requires movement (grass, flax, etc) you must close chat down ingame and have movement keys enabled for it to work correctly.'''
+
=== Versions ===
  
The ATITD window must also have focus the whole time you are macroing because keyboard inputs are sent directly. Each macro has a 10 second delay from when you hit start so that you can correctly focus the window and position yourself.
+
Only the most up-to-date version of my macros will be available here. The reason I will be adding version numbers is so that when updates are made you can easily see if you are using the latest version.
  
==== Configuration (Mouse) ====
+
=== Difficulty ===
For any of my macros to work correctly with your system you will need to configure the location of certain icons / menus using ACTools. For example see the pictures below.
 
  
[[Image:Fill_jugs.jpg]]
+
Macros are also labelled with a difficulty to configure level: Basic --> Medium --> Advanced
[[Image:Max.jpg]]
 
  
Both of these images show the area where your mouse should be when trying to get a mouse location for ACTools. With ACTools in focus hover over the location requests (max button, jugs/grass/clay icon and press '''CTRL-M'''. This will record the location of the mouse to your macro.
+
=== Download ===
 +
AC Tools can be downloaded [http://www.actool.net/ here].
  
==== Configuration (Delay/Keydown) ====
+
=== Help ===
Time values are recoreded in milliseconds. Therefore 1000 in the macro is approximatly 1 second of real time.
 
  
<pre>
+
Everything provided here is "as it comes" meaning little or no support is available if you can't get it to work yourself. All macros come pre-configured for a 1280x1024 size screen (non-widescreen) with the ATITD window maximized.
Delay 1000
 
</pre>
 
  
The above code therefore delays the program for 1 second, either to allow movement or just to prevent error due to server lagg. Sometimes you may need to alter delays in order to achieve better efficence or simply because of location differences.
+
If you have a problem which you cannot resolve or a request for a new macro then please leave a message on my [[User_Talk:Viscis|discussion]] page.
  
<pre>
+
'''Please refrain from contacting me in-game with problems/issues but thank you's are always welcome.'''
Keydown {UP} 10000
 
</pre>
 
  
The Keydown command can also carry a delay component. This above command is equivilent to holding down the Up Arrow key for 10 seconds. Obviously you may need to change this depending on how far you must run for certain resources to become available.
+
== Configuration ==
  
=== Flint ===
+
=== General ===
This macro assumes that you are standing near water and there is a clay patch infront of you. This is slighty more advance and requires some configuration based on user preference.
+
AC Tools requires the following conditions to be able to run commands correctly.
  
You need to configure; The fill jugs with water location, the max button location, the distance in seconds from water to a clay patch, the number of jugs you are carrying and depending on your game window scale the menu for dropping items (see my quick guide to menu macroing [[here]])
+
* The ATITD window must be in focus for the duration of the macro
 +
* The chat window within ATITD must be minimized.
 +
* The mouse must not be moved whist the macro is running
 +
* After doing the following you must re-configure all mouse positions:
 +
** Change the screen resolution
 +
** Change the ATITD game window size
  
Please note you will need to start with empty jugs for this to work correctly.
 
  
<pre>
+
=== Mouse ===
delay 10000 // Wait 10 seconds
+
Mouse positioning is all about screen size. If your screen runs in 1024x768 the mouse position of the grass icon will be different to someone running in 1280x1024. For this reason a certain amount of configuration is required in order to use any of my macros.
  
MousePos 256, 59 // Fill jugs with water icon location
+
When configuring a mouse position simply have the ACTools windows focused and press '''CTRL-M''' whilst hovering over the item you wish to record the location for. See the image below for an example. Any location within the red square would be acceptable.
LeftClick
 
Delay 1000
 
MousePos 648, 539 // Max button location
 
LeftClick
 
Delay 1000
 
  
KeyDown {UP} 5000 // Walk forward so that I am in the clay patch (5000 is 5 seconds of holding down forward)
+
[[Image:Fill_jugs.jpg]]
Delay 5000 // Same delay as above for walking time
 
  
loop 500 // Repeat x
 
  
loop 22 // Number of jugs you have in your inventory divided by 2
+
=== Delay/Keydown ===
loop 1
+
Time values are recorded in milliseconds. Therefore 1000 in the macro is approximatly 1 second of real time. Sometimes delays are added in the program to allow for lagg or a task (like picking up grass requires around 2 seconds of time). Delays are also used to calculate distance within the macro. For example holding the up key for 1 second moves the character a distance equal to 1 second.
KeyDown {UP}
 
delay 1500
 
MousePos 128, 117 // Clay Icon location
 
LeftClick
 
end
 
  
loop 1
+
<pre>
KeyDown {DOWN}
+
Delay 1000 // 1 second
delay 1500
+
KeyDown {UP} 1000 // Press UP key for 1 second
MousePos 128, 117 // Clay Icon location
+
</pre>
LeftClick
 
end
 
end
 
  
KeyDown {DOWN} 3500 // Run back to the water
+
Most people will not need to configure delays, but if you are having problems with lagg you may wish to increase the delays. As a side note '''all''' my programs start with a 10 second delay to allow you to tab to the ATITD window and align your screen.
Delay 5000
 
  
// Drop clay
+
== Macros ==
// This works on the theory of the relative positioning of menus. If you open a menu at mouse x,y the next level of the sub-menu will appear and x+1,y+1 always.
 
MousePos 644, 524 // open menu here
 
Delay 500
 
Keys {ESC}
 
Delay 500
 
MousePos 737, 480 // select drop
 
Leftclick
 
Delay 500
 
MousePos 765, 456 // clay
 
Leftclick
 
Delay 500
 
MousePos 648, 539 // max
 
Leftclick
 
Delay 500
 
  
MousePos 240, 80 // refill jugs
+
=== Limestone ===
LeftClick
+
''v0.01'' - Easy
Delay 1000
 
MousePos 648, 539 // max button
 
LeftClick
 
Delay 1000
 
  
KeyDown {UP} 5000
+
Harvests limestone each time the edncurance timer is refreshed.
Delay 5000
 
MousePos 128, 117
 
leftclick
 
  
end
+
Configuration:
 +
* Limestone icon mouse location
  
</pre>
+
Notes:
 +
* Take some chisels
  
=== Grass ===
 
Another simple macro, run forwards, run backwards harvesting grass. The running forward and backwards parts and encapsulated because other functions can be added such as dropping grass into a chest.
 
  
<pre>
+
[[User:Viscis/Limestone|Get the Code!]]
delay 10000
 
  
loop 249 // change if you have 498 slots etc
 
  
loop 1
+
----
KeyDown {UP} 500
 
MousePos 124, 80
 
LeftClick
 
delay 3000
 
end
 
  
loop 1
+
=== Grass ===
KeyDown {DOWN} 500
+
''v0.01'' - Easy
LeftClick
 
delay 3000
 
end
 
  
// Add chest drop here
+
This macro causes your avatar to run forwards and backwards between two positions collecting grass.
  
end
+
Configuration:
</pre>
+
* Grass Icon mouse location
  
=== Wood ===
+
Notes:
For this to work correctly find a bunch of high yield trees and turn off the auto harvest wood feature. Select each of the trees near you and pin the windows. Then record the mouse location of each of the pinned windows and hit start. As a side note you can add in extra things to do whilst your waiting for the trees to refresh (pick grass, dirt etc)
+
* Position your character on grass!
  
<pre>
 
delay 10000
 
  
loop 50 // Number of times to harvest the trees
+
[[User:Viscis/Grass|Get the Code!]]
  
//tree one
 
MousePos 487, 825 // Change these locations to the pinned windows
 
leftclick
 
delay 500
 
leftclick // clicked twice to refresh the window
 
delay 2500
 
  
//tree two
+
----
MousePos 561, 732
 
leftclick
 
delay 500
 
leftclick
 
delay 2500
 
  
//tree three
+
=== Wood ===
MousePos 499, 649
+
''v0.01'' - Medium
leftclick
 
delay 500
 
leftclick
 
delay 2500
 
  
//tree four
+
This macro gathers wood from trees in a small area by abusing the fact your avatar will automatically run to each of the trees when click.
MousePos 553, 564
 
leftclick
 
delay 500
 
leftclick
 
delay 2500
 
  
// tree five
+
Configuration:
MousePos 537, 483
+
*Turn on auto-gather wood
leftclick
+
*Pin each tree window to the screen and record the mouse locations
delay 500
 
leftclick
 
delay 2500
 
  
//tree six
+
Notes:
MousePos 547, 397
+
*You may wish to gather grass in between pulls to maximize efficiency (this hasn't been coded yet but its on my todo list)
leftclick
+
*Find a bunch of high yield trees to maximize this macro
delay 500
 
leftclick
 
delay 2500
 
  
//tree seven
 
MousePos 549, 304
 
leftclick
 
delay 500
 
leftclick
 
delay 2500
 
  
delay 50000 // wait 60 secs for wood to refresh
+
[[User:Viscis/Wood|Get the Code!]]
  
end
 
  
</pre>
+
----
  
 
=== Flax ===
 
=== Flax ===
 +
 +
==== Planting ====
 +
''v0.01'' - Medium
 +
 
This is probably my favorite macro as it allows flax to be layed in perfect beds of 10, 20 or 200. For best results align your character North before starting the macro.
 
This is probably my favorite macro as it allows flax to be layed in perfect beds of 10, 20 or 200. For best results align your character North before starting the macro.
  
Line 205: Line 127:
 
So when A = 5 and B = 2 you will create a square of 6 x 4 flax (20 flax)
 
So when A = 5 and B = 2 you will create a square of 6 x 4 flax (20 flax)
  
<pre>
 
delay 10000
 
//MousePos 1092, 120 // Flax seeds (pinned to screen)
 
LeftClick
 
  
loop 2 //this one controls how many rows (n*2) (B)
+
[[User:Viscis/Flax|Get the Code!]]
 +
 
 +
 
 +
==== Seeding (Incomplete) ====
 +
''v0.03'' - Advanced
 +
 
 +
This is the initial code for harvesting flax seeds from a bed. It does not work 100% correctly but does manage to harvest seeds from a bed you plant. The ideal conditions are below.
 +
*1280x1024 screen size
 +
*F5 camera fully zoomed out
 +
*Flax plant pinned to screen with mouse hovered over
 +
*Character facing exacly N, S, E or W with camera angle 0 degrees from that rotation
 +
 
 +
Some user input is still required but i am hoping to resolve this soon. I have also made the leap to procedures and constants to make my work more user friendly. Feel free to mess with the constants in order to change size/dimensions or timings rather than having to edit each line of code.
  
loop 5 //this one controls how many in a line (n+1) (A)
 
  KeyDown {UP} 300
 
  Delay 1000
 
  Leftclick
 
end
 
  
KeyDown {RIGHT} 300
+
[[User:Viscis/AutoFlax|Get the Code!]]
Delay 1000
 
Leftclick
 
//this one controls how many in a line (n+1)
 
loop 5 //this one controls how many in a line (n+1) (A)
 
Keydown {DOWN} 300
 
Delay 1000
 
Leftclick
 
end
 
  
KeyDown {RIGHT} 300
 
Delay 1000
 
Leftclick
 
  
end
+
==== Harvesting (Incomplete) ====
</pre>
+
''v0.01'' - Advanced
  
=== Limestone ===
+
Coming soon!
This is perhaps the simplest macro to run as all that is required to click the limestone icon every time your endurance is refreshed. You will need to configure the location of the limestone icon and position your character on some limestone.
 
  
<pre>
 
delay 10000 // 10 second delay
 
MousePos 116, 103 // Change this to the location of the limestone icon
 
  
loop 10000 // Run this x times
+
----
  
loop 3
+
=== Flint ===
delay 1000
+
''v0.01'' -- Advanced
leftclick
 
end
 
  
delay 95000
+
This macro assumes that you are standing near water and there is a clay patch infront of you.
  
end
+
Configuration:
</pre>
+
* Fill jugs mouse position
 +
* Max button position
 +
* Distance in seconds from water to clay (i.e. run forward distance)
 +
* As above but to return to the body of water
 +
* The number of jugs you are carrying
  
=== AutoFlax ===
+
Notes:
Coming shortly...
+
*You may also need to re-create the menu mouse locations in order to drop clay correctly.
 +
*Please note you will need to start with empty jugs for this to work correctly.
  
=== Chest Drop ===
 
If you keep the chest window open and stay within range (i.e. when harvesting some wood build a chest close by) select the "browse" button and select the item you will be depositing. Then simple add into the macro a mouse position for the "1000" button and a left click to drop each cycle.
 
  
== Public Facilities ==
+
[[User:Viscis/Flint|Get the Code!]]
'''DWMS Public Facilities currently provided for the people of Sinai.'''
 
  
Location - 3300, 4300
+
=== Bricks ===
 +
''v0.01'''
  
* Charcoal Heath x2
+
[[User:Viscis/Bricks|Get the Code!]]
* Bullet Furnace x2
 
* Carpentry Shop
 
* Rock Saw
 
* Mason's Bench
 
* Pottery Wheel x2
 
* Students Forge
 
* Carpentry Shop (/w Vice Bench)
 

Latest revision as of 01:36, 16 January 2009

Brief

All my macros are programmed in ACTools which requires very little experience to use. You will however need to configure a few things so its best if you read up below on how to record mouse locations. Other information such as how each of the commands work will not be added. This page is simple a place for others to obtain my work.

All of my code is free for anyone to download, change, use. It is nice however if you republish or alter my code that a link back is provided to the original here.

Versions

Only the most up-to-date version of my macros will be available here. The reason I will be adding version numbers is so that when updates are made you can easily see if you are using the latest version.

Difficulty

Macros are also labelled with a difficulty to configure level: Basic --> Medium --> Advanced

Download

AC Tools can be downloaded here.

Help

Everything provided here is "as it comes" meaning little or no support is available if you can't get it to work yourself. All macros come pre-configured for a 1280x1024 size screen (non-widescreen) with the ATITD window maximized.

If you have a problem which you cannot resolve or a request for a new macro then please leave a message on my discussion page.

Please refrain from contacting me in-game with problems/issues but thank you's are always welcome.

Configuration

General

AC Tools requires the following conditions to be able to run commands correctly.

  • The ATITD window must be in focus for the duration of the macro
  • The chat window within ATITD must be minimized.
  • The mouse must not be moved whist the macro is running
  • After doing the following you must re-configure all mouse positions:
    • Change the screen resolution
    • Change the ATITD game window size


Mouse

Mouse positioning is all about screen size. If your screen runs in 1024x768 the mouse position of the grass icon will be different to someone running in 1280x1024. For this reason a certain amount of configuration is required in order to use any of my macros.

When configuring a mouse position simply have the ACTools windows focused and press CTRL-M whilst hovering over the item you wish to record the location for. See the image below for an example. Any location within the red square would be acceptable.

Fill jugs.jpg


Delay/Keydown

Time values are recorded in milliseconds. Therefore 1000 in the macro is approximatly 1 second of real time. Sometimes delays are added in the program to allow for lagg or a task (like picking up grass requires around 2 seconds of time). Delays are also used to calculate distance within the macro. For example holding the up key for 1 second moves the character a distance equal to 1 second.

Delay 1000 // 1 second
KeyDown {UP} 1000 // Press UP key for 1 second

Most people will not need to configure delays, but if you are having problems with lagg you may wish to increase the delays. As a side note all my programs start with a 10 second delay to allow you to tab to the ATITD window and align your screen.

Macros

Limestone

v0.01 - Easy

Harvests limestone each time the edncurance timer is refreshed.

Configuration:

  • Limestone icon mouse location

Notes:

  • Take some chisels


Get the Code!



Grass

v0.01 - Easy

This macro causes your avatar to run forwards and backwards between two positions collecting grass.

Configuration:

  • Grass Icon mouse location

Notes:

  • Position your character on grass!


Get the Code!



Wood

v0.01 - Medium

This macro gathers wood from trees in a small area by abusing the fact your avatar will automatically run to each of the trees when click.

Configuration:

  • Turn on auto-gather wood
  • Pin each tree window to the screen and record the mouse locations

Notes:

  • You may wish to gather grass in between pulls to maximize efficiency (this hasn't been coded yet but its on my todo list)
  • Find a bunch of high yield trees to maximize this macro


Get the Code!



Flax

Planting

v0.01 - Medium

This is probably my favorite macro as it allows flax to be layed in perfect beds of 10, 20 or 200. For best results align your character North before starting the macro.

There are two loops, one controls rows and one controls flax per row. I have labeled them A and B in the code.

A will always be +1 higher than the value you set (set BOTH loop values identically) so for example

 loop 5 

will lay 6 flax per row. Because each loop consists of a up and down component B is always *2 number of rows. For example

 loop 2 

will create 4 rows of flax.

So when A = 5 and B = 2 you will create a square of 6 x 4 flax (20 flax)


Get the Code!


Seeding (Incomplete)

v0.03 - Advanced

This is the initial code for harvesting flax seeds from a bed. It does not work 100% correctly but does manage to harvest seeds from a bed you plant. The ideal conditions are below.

  • 1280x1024 screen size
  • F5 camera fully zoomed out
  • Flax plant pinned to screen with mouse hovered over
  • Character facing exacly N, S, E or W with camera angle 0 degrees from that rotation

Some user input is still required but i am hoping to resolve this soon. I have also made the leap to procedures and constants to make my work more user friendly. Feel free to mess with the constants in order to change size/dimensions or timings rather than having to edit each line of code.


Get the Code!


Harvesting (Incomplete)

v0.01 - Advanced

Coming soon!



Flint

v0.01 -- Advanced

This macro assumes that you are standing near water and there is a clay patch infront of you.

Configuration:

  • Fill jugs mouse position
  • Max button position
  • Distance in seconds from water to clay (i.e. run forward distance)
  • As above but to return to the body of water
  • The number of jugs you are carrying

Notes:

  • You may also need to re-create the menu mouse locations in order to drop clay correctly.
  • Please note you will need to start with empty jugs for this to work correctly.


Get the Code!

Bricks

v0.01'

Get the Code!