-
Notifications
You must be signed in to change notification settings - Fork 6
/
index.html
220 lines (218 loc) · 17.4 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<!--Import Google Icon Font-->
<link href="http://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<!--Import materialize.css-->
<link type="text/css" rel="stylesheet" href="assets/css/materialize.css"/>
<link type="text/css" rel="stylesheet" href="assets/css/main.css" />
<link type="text/css" rel="stylesheet" href="assets/css/github-markdown.css" />
<!--Let browser know website is optimized for mobile-->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0"/>
<title>TTR-Tools</title>
</head>
<nav class="nav-extended">
<div class="nav-wrapper">
<a href="#" class="brand-logo">TTR Tools</a>
<ul class="right show-on-large">
<li><a href="mobile.html"><i class="material-icons">more_vert</i></a></li>
</ul>
<span class="right hide-on-med-and-down"> </span>
<ul class="tabs tabs-transparent tabs-fixed-width" style="height:auto;" id="tabs">
<li class="tab" id="maintab"><a href="#main" class="active">Readme</a></li>
<li class="tab" id="atab"><a href="#afk">Anti-AFK</a><div class="switch" data-tooltip="Enable with ALT+SHIFT+1, Disable with ALT+SHIFT+1"><label>Off<input type="checkbox" id="afk-switch" disabled><span class="lever"></span>On</label></div></li>
<li class="tab" id="ttab"><a href="#trampoline">Trampoline Bot</a><div class="switch" data-tooltip="Enable with ALT+SHIFT+2, Disable with ALT+SHIFT+3"><label>Off<input type="checkbox" id="trampoline-switch" disabled><span class="lever"></span>On</label></div></li>
<li class="tab" id="gtab"><a href="#garden">Gardening Bot</a><div class="switch" data-tooltip="Enable with ALT+SHIFT+4, Disable with ALT+SHIFT+5"><label>Off<input type="checkbox" id="garden-switch" disabled><span class="lever"></span>On</label></div></li>
<li class="tab" id="tptab"><a href="#tp">Fast Teleport</a></li>
<li class="tab"><a href="#fishing">Fishing Bot Guide</a></li>
</ul>
</div>
</nav>
<div id="main">
<div class="container row markdown-body" style="margin-top:10px;">
<h1 id="toontown-rewritten-tools">Toontown Rewritten Tools</h1>
TTR-Tools is a Toontown Rewritten AutoHotKey helper. Currently has Anti-AFK, Garden Bot, Teleport macros (no hack), and Toonfest/party Trampoline bot that maxes every time and can repeat hands-free (~3200 tokens/hr) <a href="https://github.com/thezoid/TTR-Tools/releases">Download the latest release.</a>
<p align="center">
<img src="http://i.imgur.com/HpzGcPy.png" alt="TTRT Icon"/> <br/><img src="http://i.imgur.com/OkXosgP.png" alt="TTR Tools Snapshot"/><br/> Old GUI Eventually to be phased out:<br/> <img src="https://i.imgur.com/YHKErJt.png" alt="Old GUI"/>
</p>
<p align="center">
<p align="center">
<a href="https://www.youtube.com/watch?v=nyd5mGpnBXA">Watch Overview Video</a>
</p>
<p align="center">
<a href="https://www.youtube.com/watch?v=nyd5mGpnBXA"><img src="https://img.youtube.com/vi/nyd5mGpnBXA/0.jpg" alt="TTR-Tools Overview Video"/></a>
</p>
</p>
<p><a href="https://www.facebook.com/ttrtools/">Official Facebook Page</a></p>
<h2 id="features">Features</h2>
<p><strong>The GUI is powered by <a href="https://github.com/joedf/Webapp.ahk">joedf's Webapp.ahk</a>. It lets an HTML page to act as the GUI, to make the bot much prettier. There may be some bugs when using it. YMMV please report any bugs in the issues section of this repo.</strong></p>
<p>There is a config file installed to %appdata%-Tools.ini which will store your settings, but will overwrite itself each update. You can even change the name of the window now with the windowName property. With this it TTR-Tools will unofficially be capable of running on most TTO source games.</p>
<ul>
<li><strong>Anti-AFK:</strong> Enable/disable by ALT+SHIFT+1. The Anti AFK will run even when TTR isn't focused. So you can continue to use your computer. As the AFK is on, the lower graph will show you how often it is ticking the Anti AFK. Every 6 seconds the graph will update, and when the AFK ticks it will spike up for one plot. The Anti-AFK can not be enabled while the trampoline is on. Use the 'Repeat' option to leave the bot on (more info below).
<ul>
<li><p><strong>Settings:</strong></p></li>
<li><p><em>AFK Time (mins)</em>: You can also set the minutes between each Anti-AFK tick. (ie: 2 mins never sleeping) The toon will log out after 12 minutes (2 mins to sleep, 10 mins to log out once sleeping) so the max AFK tick time is 11 minutes.</p></li>
</ul></li>
<li><strong>Gardening Bot:</strong> This feature is a work in progress (initial features released in v1.0.4, first full auto prototype in 1.1.0) There are multiple features in this gardening helper suite. Firstly, there is auto-garden which will garden all of your plants, replanting if specified and watering a specified amount of time. Alternately, there is the macro-garden which will garden a specific flower on numpad press (1-5). All modes will use the max amount of beans you can plant with except the final mode, the watering can trainer, which uses one jellybean to water, replant, then repeat. Please help me out by reporting any bugs you see into the issue section on this github repository.
<ul>
<li><strong>Modes:</strong>
<ul>
<li><em>Auto-Garden</em>:
<ul>
<li>Controls: CTRL+ALT+4 to start, CTRL+ALT+5 to stop. PAUSE/Break to pause/unpause</li>
<li>Description: Only start this at the spawn point for the estate (teleport to estate, don't move, and press the hotkey). It should work most times, if it fails beyond repair, stop it and use macro gardening to finish.</li>
</ul></li>
<li><em>Macro-Garden</em>:
<ul>
<li>Controls: (Enable numlock) NUMPAD 1 through 5. PAUSE/Break to pause/unpause</li>
<li>Description: If the auto-garden isn't working out for you, or you just want to plant a specific flower, you can do the movement manually and select which flower you'd like to plant (1-5) with numpad number keys. Using numpad will ALWAYS pick a plant if there's something already in the pot. and the bot will select the beans and click plant if it is sure that it has selected the right amount of beans (mostly always this works).</li>
</ul></li>
<li><em>Watering Can Trainer</em>:
<ul>
<li>Controls: Numpad DOT (This is a period " . " key. Usually in between zero / enter on the numpad) to enable. PAUSE/Break to pause/unpause ALT+SHIFT+5 to disable.</li>
<li>Description: This mode will train your watering can by repeatedly and indefinitely planting a one-jellybean dummy plant and then water the plant the number of times set in the "Times to Water (0-5)" setting. This will drain your jellybeans if you leave it running too long.</li>
</ul></li>
</ul></li>
<li><p><strong>Settings:</strong></p>
<ul>
<li><em>Pick+Replant</em>: This option, when enabled, will authenticate the bot to pick plants. There is no reliable way to tell if the plants are grown or not, so just tick this option when the flowers are grown. Otherwise, you can uncheck it and it will just water plants that are already in a pot.</li>
</ul></li>
<li><em>Times to Water</em>: Based on your water bucket skill, this is useful to either save time or get the most skill out of watering.</li>
</ul></li>
<li><strong>Fast Teleport:</strong> A simple little input will appear when you press F5. As long as you have teleport access and can open your schticker book (it doesn't matter if it's already open, either), you won't have to take your hands off the keyboard to teleport anywhere you are able to. Hit F5, the program should be able to identify which area you are trying to go to. For example, "ddl, dream, dreamland, and Donald's Dreamland" would all teleport you to to Donald's Dreamland. Please make an issue on github if you find any flaws or issues with this small addition.
<ul>
<li><p><strong>Settings:</strong></p></li>
<li><p>Currently no settings you can change, but feel free to change anything in Teleport.ahk, then compile TTRTools.ahk</p></li>
</ul></li>
<li><strong>Trampoline Bot:</strong> Currently disabled due to no trampolines being in TTR. You can enable it in %appdata%-Tools.ini. Once enabled You can run it with ALT+SHIFT+2, and stop by ALT+SHIFT+3. This is really the main feature of the program so far. I had a prototype working in a few hours, but kept developing the bot to be shiny because it's fun. It will graph the duration of each jump, to see how smoothly the bot is running. Make sure you keep TTR focused (don't tab out) while this bot is running or it won't find the pixels needed (limitation of AutoHotKey).
<ul>
<li><p><strong>Settings:</strong></p></li>
<li><p><em>Repeat Trampoline</em>: This will let you leave the bot open and walk away as the bot racks up roughly 3200 tokens per hour. It will click away the window that pops up at the end of the trampoline game, walk backwards into the trampoline, then attempt to click the play button (given ping allows, if not then no big deal just wait for it to count down).</p></li>
</ul></li>
</ul>
<h2 id="upcoming-features">Upcoming features</h2>
<ul>
<li><p><strong>Gardening Bot:</strong> I plan on making it more reliable.</p></li>
<li><p><strong>(Potential) Gag queue:</strong> I had an idea for ease of use in cog battles. While waiting to pick a gag, you could tell the bot which gag you're going to pick, before the gag screen pops up. The bot would wait, select the gag and cog, and you can lay back or get some snacks or something.</p></li>
<li><p><strong>(Potential)Fast gag restock:</strong> It may be possible to have a hotkey to buy all the gags you would like in a specific priority. This could automatically buy gags that you intend to hold the max amount of, I see no good way to restock to a specific number besides the max without some elaborate pixel searching which would probably prove to be fairly unreliable. But It's an idea I could work on if I ever feel like it.</p></li>
</ul>
<h2 id="bugs">Bugs</h2>
<ul>
<li><p><strong>Known</strong></p>
<ul>
<li>(minor) - Sometimes the garden skill level detection gets the max beans you can plant wrong, and you end up losing skill. Only have witnessed this 4 times.</li>
</ul></li>
</ul>
<p>If you are having issues getting this working well or would like to report any issues please refer to the <a href="https://github.com/thezoid/TTR-Tools/issues">issue tracker on github.</a></p>
<h2 id="compiling">Compiling</h2>
<p>Requires AutoHotKey, pandoc to convert readme.md to html (see line 11 of Gui.ahk). To compile with the icon, use the "Convert .ahk to .exe" utility in the AutoHotKey installation. For debugging I like to use <a href="http://fincs.ahk4.net/scite4ahk/">SciTE4AutoHotkey</a></p>
<h2 id="disclaimer">Disclaimer</h2>
<p>You may get banned for using this. Although somewhat harmless, some may consider that it gives an 'unfair advantage'. Read the <a href="https://www.toontownrewritten.com/terms">TTR Guidelines to Being Toontastically Toon Enough</a>. I bet TTR could try and detect if a tool like this is running. I've not gotten banned but if this tool becomes popular then TTR's security team will probably look into this.</p>
</div>
</div>
<div id="afk">
<canvas id="afk-chart" width="700" height="100"></canvas>
<div class="console-container">
<pre id="afk-console" class="console">Anti AFK events will be logged here.</pre>
</div>
<div class="container row">
<div class="s12 card-panel" style="margin-bottom:0px;">
Enable/disable by CTRL+ALT+SHIFT+1. The Anti AFK will run even when TTR isn't focused. So you can continue to use your computer. As the AFK is on, the lower graph will show you how often it is ticking the Anti AFK. Every so often the graph in the old gui will update, and when the AFK ticks it will spike up for one plot. The Anti-AFK can not be enabled while the trampoline is on. Use the 'Repeat' option to leave the bot on (more info below).
</div>
</div>
<div class="container row">
<div class="col s12 center">
<h5 style="line-height:1;">AFK Bot Settings</h5>
<p class="range-field">
<label for="interval">Interval</label>
<input type="range" id="interval" name="interval" min="1" max="12" />
</p>
</div>
</div>
</div>
<div id="trampoline">
<canvas id="updating-chart" width="700" height="100"></canvas>
<div class="console-container">
<pre id="trampoline-console" class="console">Trampoline will graph when running, and events will be logged here.</pre>
</div>
<div class="container row">
<div class="col s12 center card-panel">
<p>The Trampoline bot is fairly straightforward. Hop on a toonfest trampoline on a barren district, press play and hit ALT+SHIFT+2. If repeat is on then it will automatically rerun the bot and get you thousands of tokens/hr.</p>
<h5 style="line-height:1;">Trampoline Bot Settings</h5>
<input type="checkbox" checked id="repeat" name="repeat" />
<label for="repeat">Repeat (full auto)</label>
<br/><br/>
</div>
</div>
</div>
<div id="garden">
<div class="console-container" style="margin-top:auto;">
<pre id="garden-console" class="console">Gardening events will be logged here.</pre>
</div>
<div class="container row">
<div class="s12 card-panel" style="margin-bottom:0px;">
<p>If your toon falls off course while the bot is running, press the Pause/break button (next to print screen and scroll lock), walk up to a pot and center your toon facing it, then hit the Pause/break button again. You can tell that it is paused because the taskbar icon will look different.
</p><p>If you don't want to run the experimental full auto-garden, then just walk up to a planter and press the numpad keys 1-5 (make sure num-lock is on). The numbers correspond wich each fo the 5 possible flowers, crafted at your skill level.
</p><p>There is also a watering can trainer, though it will slowly deplete 1 jellybean per the amount of times you set to water. Use it by pressing the . (period/decimal) key on the numpad with numlock on
</p>
<div class="center card-panel" style="background:rgba(0,0,0,0.1)">
<h5 style="line-height:1;">Garden Bot Settings</h5>
<input type="checkbox" checked id="replant" name="replant" />
<label for="replant">Pick & Replant. Otherwise just water and move on.</label>
<p class="range-field">
<label for="water">How many times should plants be watered? (Adjust based on water bucket skill)</label>
<input type="range" id="water" name="water" min="0" max="5" />
</p>
</div>
</div>
</div>
</div>
<div id="tp">
<div class="container row">
<div class="card-panel">
<h4 class="card-title">Fast Teleport</h4>
<p>Instead of having to pick your hand off the the keyboard and over to the mouse to teleport to a playground, you can now just hit F5 and type in the playground that you want to teleport to (as long as you have teleport access).</p>
<p><i>Valid Destinations:</i>Chip & Dale's Acorn Acres, Bossbot HQ, Cashbot HQ, Donald's Dock, Donald's Dreamland, Daisy Gardens, Estate, Goofy Speedway, Lawbot HQ, Minnie's Melodyland, Back to Playground, Sellbot HQ, Toontown Central.
<p>You can also abbreviate, ie: aa, bbhq, cbhq, dd, ddl, dg, e, gs, lbhq, mml, p, sbhq, ttc. Alternately, phrases like 'dream', or 'gardens' or 'minnie' work too.</p>
</div>
</div>
</div>
<div id="fishing">
<div class="container row">
<div class="card-panel">
<h4 class="card-title">Fishing Bot Guide</h4>
<p>There is an existing fishing bot/auto fish that works pretty well for Toontown Rewritten. It uses pixel searching just like TTR-Tools. I noticed that it's probably not faster than fishing yourself, but it does relieve you of repetitiveness. If you get problems while trying to compile it, try installing <a href="https://www.visualstudio.com/downloads/" target="_blank">Visual Studio.</a></p>
<a href="https://github.com/kpreisser/MouseClickSimulator" target="_blank" class="btn red lighten-1">Check it out on GitHub</a>
<img src="http://i.imgur.com/87Q01W7.png" alt="TTR Mouse Click Simulator"/>
</div>
</div>
</div>
<footer class="page-footer orange">
<div class="container">
<div class="row">
<div class="col s12 console-container"><pre class="console" id="error-console">--Begin Javascript Error Console--</pre></div>
<div class="col l3 s12">
<h5 class="white-text">Settings</h5>
<ul>
<li><a id="config" href="#">Open Config</a></li>
</ul>
</div>
</div>
</div>
<div class="footer-copyright">
<div class="container">
Made by <a href="http://github.com/thezoid/" target="_blank" class="orange-text text-lighten-3">thezoid</a> Powered by <a class="orange-text text-lighten-3" href="http://materializecss.com" target="_blank">Materialize</a> and <a class="orange-text text-lighten-3" href="https://github.com/joedf/Webapp.ahk" target="_blank">Webapp.ahk</a>
</div>
</div>
</footer>
<!--Import jQuery before materialize.js-->
<script type="text/javascript" src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
<script type="text/javascript" src="assets/js/materialize.min.js"></script>
<script type="text/javascript" src="assets/js/chart.js"></script>
<script type="text/javascript" src="assets/js/app.js"></script>
<script type="text/javascript">
</script>
</body>
</html>