The Wiki for Tale 6 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.
User:TeaAira/Macros
constants
MouseX = 0 MouseY = 0 XOrig = 0 YOrig = 0 looping = 0 wait4Timer = 2400 //6000 //10000 //23000 //15250 add2Wait = 3000 reduceWait = 500
end
SetConst MouseX = {MouseX}
SetConst MouseY = {MouseY}
MousePos 1196, 295 Delay 100 RightClick MousePos 1196, 295 Delay 100
while $CheckforLostFocus = 0
Call GoPick
End
MousePos 100, 100 Delay 100 Stop
Procedure GoPick
SetConst XOrig = {mousex}
SetConst YOrig = {mousey}
MousePos $MouseX, $MouseY
Delay 100
Rightclick
Delay 50
// uh oh, dialog about being to tired
IsObject ToTired at 700, 535
// ok button
MousePos 700, 535
Compute $wait4Timer = $wait4Timer + $add2Wait //1000
// make them wait double time this time
Delay $wait4Timer
// close dialog
MousePos 703, 537
If $CheckforLostFocus = 0
Rightclick
End
// reset mouse pointer
Mousepos $XOrig, $YOrig
Else // reduce wait time if no dialog
Compute $wait4Timer = $wait4Timer - $reduceWait //75 End Mousepos $XOrig, $YOrig Delay $wait4Timer
End
Function CheckforLostFocus
if {activewindow} contains AC Tool 5.4.0 - C:\Users\Owner\Documents\Macros\clicker1.mac
Compute Result = 1
exit
Else
Compute Result = 0
Exit
//Stop
End
End
Object ToTired // Test at coords 700, 535 223=0,0|221=1,0|222=2,0|220=3,0|226=4,0|216=5,0|219=6,0|220=7,0|221=8,0|221=9,0|213=10,0|219=11,0|217=12,0|222=13,0|219=14,0|219=15,0|211=16,0|211=17,0|216=18,0|218=19,0|215=20,0|211=21,0|217=22,0|215=23,0|219=24,0|219=25,0|218=26,0|219=27,0|220=28,0|220=29,0|224=30,0|220=31,0|220=32,0|222=33,0|221=34,0|220=35,0|223=36,0|219=37,0| 222=0,1|222=1,1|221=2,1|217=3,1|221=4,1|217=5,1|220=6,1|223=7,1|221=8,1|222=9,1|215=10,1|217=11,1|217=12,1|223=13,1|218=14,1|217=15,1|214=16,1|212=17,1|217=18,1|217=19,1|215=20,1|212=21,1|218=22,1|216=23,1|219=24,1|222=25,1|222=26,1|220=27,1|220=28,1|222=29,1|224=30,1|221=31,1|221=32,1|220=33,1|222=34,1|222=35,1|226=36,1|220=37,1| 221=0,2|223=1,2|221=2,2|220=3,2|220=4,2|217=5,2|221=6,2|226=7,2|222=8,2|221=9,2|216=10,2|217=11,2|221=12,2|221=13,2|217=14,2|215=15,2|216=16,2|212=17,2|215=18,2|216=19,2|214=20,2|210=21,2|215=22,2|216=23,2|218=24,2|217=25,2|216=26,2|218=27,2|220=28,2|220=29,2|220=30,2|223=31,2|217=32,2|220=33,2|221=34,2|223=35,2|223=36,2|220=37,2| 222=0,3|223=1,3|222=2,3|221=3,3|224=4,3|218=5,3|222=6,3|227=7,3|222=8,3|217=9,3|213=10,3|216=11,3|219=12,3|222=13,3|216=14,3|211=15,3|216=16,3|213=17,3|214=18,3|216=19,3|215=20,3|214=21,3|218=22,3|220=23,3|223=24,3|222=25,3|221=26,3|221=27,3|220=28,3|221=29,3|221=30,3|226=31,3|217=32,3|222=33,3|221=34,3|223=35,3|222=36,3|223=37,3| 222=0,4|224=1,4|220=2,4|223=3,4|227=4,4|221=5,4|223=6,4|226=7,4|223=8,4|218=9,4|215=10,4|214=11,4|222=12,4|111=13,4|0=14,4|0=15,4|0=16,4|0=17,4|107=18,4|216=19,4|217=20,4|0=21,4|0=22,4|219=23,4|220=24,4|168=25,4|0=26,4|55=27,4|220=28,4|223=29,4|224=30,4|227=31,4|217=32,4|223=33,4|221=34,4|226=35,4|222=36,4|222=37,4| 221=0,5|227=1,5|219=2,5|220=3,5|224=4,5|223=5,5|223=6,5|221=7,5|221=8,5|220=9,5|217=10,5|212=11,5|110=12,5|0=13,5|109=14,5|213=15,5|216=16,5|108=17,5|0=18,5|107=19,5|218=20,5|0=21,5|0=22,5|217=23,5|163=24,5|0=25,5|55=26,5|223=27,5|221=28,5|227=29,5|227=30,5|228=31,5|220=32,5|224=33,5|220=34,5|224=35,5|220=36,5|223=37,5| 222=0,6|226=1,6|220=2,6|223=3,6|224=4,6|220=5,6|222=6,6|221=7,6|221=8,6|220=9,6|218=10,6|212=11,6|0=12,6|0=13,6|162=14,6|214=15,6|218=16,6|162=17,6|0=18,6|0=19,6|218=20,6|0=21,6|0=22,6|167=23,6|0=24,6|54=25,6|220=26,6|223=27,6|220=28,6|227=29,6|226=30,6|227=31,6|220=32,6|224=33,6|220=34,6|224=35,6|222=36,6|224=37,6| 221=0,7|224=1,7|222=2,7|223=3,7|227=4,7|217=5,7|220=6,7|220=7,7|222=8,7|220=9,7|213=10,7|214=11,7|0=12,7|0=13,7|216=14,7|216=15,7|218=16,7|218=17,7|0=18,7|0=19,7|217=20,7|0=21,7|0=22,7|0=23,7|55=24,7|220=25,7|222=26,7|224=27,7|220=28,7|223=29,7|227=30,7|227=31,7|223=32,7|224=33,7|224=34,7|228=35,7|226=36,7|227=37,7| 223=0,8|224=1,8|222=2,8|226=3,8|228=4,8|222=5,8|220=6,8|217=7,8|222=8,8|220=9,8|214=10,8|217=11,8|0=12,8|0=13,8|217=14,8|217=15,8|219=16,8|217=17,8|0=18,8|0=19,8|218=20,8|0=21,8|0=22,8|0=23,8|166=24,8|216=25,8|218=26,8|220=27,8|219=28,8|220=29,8|223=30,8|227=31,8|226=32,8|224=33,8|223=34,8|228=35,8|224=36,8|224=37,8| 224=0,9|222=1,9|222=2,9|222=3,9|228=4,9|223=5,9|219=6,9|219=7,9|217=8,9|219=9,9|215=10,9|218=11,9|0=12,9|0=13,9|217=14,9|215=15,9|216=16,9|216=17,9|0=18,9|0=19,9|217=20,9|0=21,9|0=22,9|54=23,9|0=24,9|163=25,9|216=26,9|219=27,9|220=28,9|220=29,9|222=30,9|223=31,9|223=32,9|222=33,9|223=34,9|223=35,9|227=36,9|223=37,9| 224=0,10|220=1,10|219=2,10|218=3,10|227=4,10|223=5,10|218=6,10|220=7,10|216=8,10|220=9,10|216=10,10|218=11,10|0=12,10|0=13,10|163=14,10|215=15,10|214=16,10|160=17,10|0=18,10|0=19,10|216=20,10|0=21,10|0=22,10|217=23,10|55=24,10|0=25,10|220=26,10|220=27,10|220=28,10|220=29,10|223=30,10|222=31,10|224=32,10|219=33,10|222=34,10|219=35,10|224=36,10|219=37,10| 221=0,11|220=1,11|220=2,11|218=3,11|226=4,11|223=5,11|216=6,11|221=7,11|217=8,11|220=9,11|218=10,11|221=11,11|109=12,11|0=13,11|108=14,11|212=15,11|212=16,11|106=17,11|0=18,11|107=19,11|216=20,11|0=21,11|0=22,11|217=23,11|166=24,11|0=25,11|54=26,11|221=27,11|218=28,11|219=29,11|223=30,11|226=31,11|226=32,11|219=33,11|222=34,11|220=35,11|224=36,11|220=37,11| 222=0,12|220=1,12|220=2,12|220=3,12|226=4,12|221=5,12|216=6,12|222=7,12|216=8,12|219=9,12|220=10,12|221=11,12|216=12,12|110=13,12|0=14,12|0=15,12|0=16,12|0=17,12|106=18,12|214=19,12|218=20,12|0=21,12|0=22,12|218=23,12|224=24,12|166=25,12|0=26,12|55=27,12|221=28,12|222=29,12|223=30,12|224=31,12|223=32,12|218=33,12|224=34,12|224=35,12|227=36,12|222=37,12| 223=0,13|223=1,13|223=2,13|221=3,13|228=4,13|224=5,13|216=6,13|224=7,13|220=8,13|221=9,13|220=10,13|221=11,13|218=12,13|221=13,13|218=14,13|207=15,13|216=16,13|207=17,13|212=18,13|212=19,13|218=20,13|218=21,13|218=22,13|219=23,13|221=24,13|220=25,13|217=26,13|223=27,13|218=28,13|219=29,13|222=30,13|224=31,13|224=32,13|220=33,13|223=34,13|224=35,13|226=36,13|223=37,13| 223=0,14|227=1,14|223=2,14|223=3,14|228=4,14|223=5,14|217=6,14|223=7,14|220=8,14|224=9,14|221=10,14|219=11,14|220=12,14|223=13,14|217=14,14|210=15,14|219=16,14|209=17,14|211=18,14|207=19,14|220=20,14|219=21,14|222=22,14|220=23,14|223=24,14|220=25,14|216=26,14|222=27,14|218=28,14|219=29,14|223=30,14|227=31,14|222=32,14|222=33,14|223=34,14|226=35,14|227=36,14|226=37,14| End Object