Skip to content

Commit 9193e93

Browse files
committed
v1.1.3
1 parent 0198c83 commit 9193e93

15 files changed

Lines changed: 315 additions & 140 deletions

Afk.ahk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ if((trampolineRunning || gardening) && toggle)
8686
gosub, toggleAFK
8787
return
8888
}
89-
WinGet active_id, ID, Toontown Rewritten [BETA]
89+
WinGet active_id, ID, %windowName%
9090
if(toggle)
9191
{
9292
FormatTime, TimeString,, h:mm:ss

Garden.ahk

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,14 +129,15 @@ Numpad9::
129129
checkWindow(byref active_id){
130130
width := 816
131131
height := 639
132-
WinGet id, ID, Toontown Rewritten [BETA]
132+
outputDebug, windowName %windowName%
133+
WinGet id, ID, %windowName%
133134
active_id := id
134-
IfWinExist, Toontown Rewritten [BETA]
135+
IfWinExist %windowName%
135136
{
136137
WinActivate ; use the window found above
137138
WinGetPos,winX,winY,curWidth,curHeight
138139
if(curWidth != width || curHeight != height)
139-
WinMove, Toontown Rewritten [BETA], , , , width, height
140+
WinMove, %windowName%, , , , width, height
140141
return true
141142
}
142143
else{

Gui.ahk

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ if(enableFeatureAFK || enableFeatureTrampoline || enableFeatureGarden)
135135
{
136136
Gui, TTRTools:Add, Edit, h16 x+3 w35 vtimeAFK gSave number, %iniAFKMins%
137137
Gui, TTRTools:Add, UpDown, vtimeAFKUD Range1-11, %iniAFKMins%
138+
sendJS("updateValue('#interval','" . %iniAFKMins% . "');")
138139
}
139140
}
140141
if(enableFeatureGarden)
@@ -159,6 +160,7 @@ if(enableFeatureAFK || enableFeatureTrampoline || enableFeatureGarden)
159160
{
160161
Gui, TTRTools:Add, Edit, h16 x+0 w30 vtimesToWater gSave number, %iniTimesToWater%
161162
Gui, TTRTools:Add, UpDown, vtimesToWaterUD Range0-5, %iniTimesToWater%
163+
sendJS("updateValue('#water','" . %iniTimesToWater% . "');")
162164
}
163165
}
164166
}
@@ -179,7 +181,9 @@ if(enableFeatureAFK || enableFeatureTrampoline)
179181
vGraph := XGraph( vGraphv, 0x688443, 5, "0,0,0,0", 0x649e90,1 )
180182
}
181183
Gui, TTRTools:Show,, TTR Tools
182-
184+
if(!enableFeatureTrampoline){
185+
sendJS("disableFeature('ttab')")
186+
}
183187
;if AFK label is created in current file (ie: if included in TTR-Tools)
184188
AfkLabel = Afk
185189
if(enableFeatureAFK)
@@ -279,6 +283,10 @@ IniWrite, %repeat%, %ini%,Trampoline, repeat
279283
IniWrite, %timeAFK%, %ini%, AFK, afkMins
280284
IniWrite, %timesToWater%, %ini%, Garden, timesToWater
281285
IniWrite, %replant%, %ini%, Garden, replant
286+
/* doesn't seem to work */
287+
/*sendJS("updateValue('#water','" . %iniTimesToWater% . "');")
288+
sendJS("updateValue('interval','" . %timeAFK% . "');")
289+
*/
282290
; end config.ahk update
283291

284292
if(enableFeatureAFK)
@@ -335,9 +343,7 @@ helpGuiEscape:
335343
helpGuiClose:
336344
Gui , help:Destroy
337345
return
338-
/*
346+
339347
TTRToolsGuiClose: ;close Gui to Exit
340-
TTRToolsGuiEscape: ;press Esc to Exit
341348
ExitApp
342-
return
343-
*/
349+
return

README.html

Lines changed: 20 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<h1 id="toontown-rewritten-tools">Toontown Rewritten Tools</h1>
2-
TTR-Tools is a Toontown Rewritten AutoHotKey helper. Currently has Anti-AFK and Toonfest 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>
2+
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>
33
<p align="center">
44
<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"/>
55
</p>
@@ -13,26 +13,22 @@ <h1 id="toontown-rewritten-tools">Toontown Rewritten Tools</h1>
1313
</p>
1414
<p><a href="https://www.facebook.com/ttrtools/">Official Facebook Page</a></p>
1515
<h2 id="features">Features</h2>
16-
<p><strong>There is a new GUI powered by <a href="https://github.com/joedf/Webapp.ahk">joedf's Webapp.ahk</a>. It will make the bot much prettier, but it's still in beta, and there may be crashes when using it. YMMV please report any bugs in the issues section of this repo.</strong></p>
16+
<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>
17+
<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>
1718
<ul>
18-
<li><strong>Anti-AFK:</strong> 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 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).
19+
<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).
1920
<ul>
2021
<li><p><strong>Settings:</strong></p></li>
2122
<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>
2223
</ul></li>
23-
<li><strong>Trampoline Bot:</strong> Enable by CTRL+ALT+SHIFT+2, Disable by CTRL+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).
24-
<ul>
25-
<li><p><strong>Settings:</strong></p></li>
26-
<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>
27-
</ul></li>
2824
<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.
2925
<ul>
3026
<li><strong>Modes:</strong>
3127
<ul>
3228
<li><em>Auto-Garden</em>:
3329
<ul>
3430
<li>Controls: CTRL+ALT+4 to start, CTRL+ALT+5 to stop. PAUSE/Break to pause/unpause</li>
35-
<li>Description: Only start this at the spawn point for the estate (teleport to estate, don't move, and press the hotkey)</li>
31+
<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>
3632
</ul></li>
3733
<li><em>Macro-Garden</em>:
3834
<ul>
@@ -45,9 +41,21 @@ <h2 id="features">Features</h2>
4541
<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 &quot;Times to Water (0-5)&quot; setting. This will drain your jellybeans if you leave it running too long.</li>
4642
</ul></li>
4743
</ul></li>
48-
<li><p><strong>Settings:</strong></p></li>
44+
<li><p><strong>Settings:</strong></p>
45+
<ul>
4946
<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>
50-
<li><p><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.</p></li>
47+
</ul></li>
48+
<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>
49+
</ul></li>
50+
<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, &quot;ddl, dream, dreamland, and Donald's Dreamland&quot; 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.
51+
<ul>
52+
<li><p><strong>Settings:</strong></p></li>
53+
<li><p>Currently no settings you can change, but feel free to change anything in Teleport.ahk, then compile TTRTools.ahk</p></li>
54+
</ul></li>
55+
<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).
56+
<ul>
57+
<li><p><strong>Settings:</strong></p></li>
58+
<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>
5159
</ul></li>
5260
</ul>
5361
<h2 id="upcoming-features">Upcoming features</h2>
@@ -60,8 +68,7 @@ <h2 id="bugs">Bugs</h2>
6068
<ul>
6169
<li><p><strong>Known</strong></p>
6270
<ul>
63-
<li><p>(major) - In 1.0.4 the default config was not properly set, so it will ask to update every time unless you change the version in the config.ini from 1.0.3 to 1.0.4.</p></li>
64-
<li><p>(minor) - in 1.1.0, the beta web gui sometimes throws a ton of javascript errors. Although the webapp behaves as intended, I'm unsure as to why this is happening, as it's hard to debug without a javascript console, especially since this error being picked up in the js error log console at the bottom of the page is giving some very vague information. I may have fixed this in 1.1.1, but I'm not absolutely positive yet.</p></li>
71+
<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>
6572
</ul></li>
6673
</ul>
6774
<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>

0 commit comments

Comments
 (0)