text
stringlengths
0
15.7k
source
stringlengths
6
112
if botStatus contains msgFishingpokemon then throwPokeball()
bot.applescript
repeat 4 times
bot.applescript
key code 51 using {command down}
bot.applescript
delay (random number from 0.05 to 0.25)
bot.applescript
set lastFishing to getTime()
bot.applescript
on getTime()
bot.applescript
return (time of (current date))
bot.applescript
end getTime
bot.applescript
on throwPokeball()
bot.applescript
if containsFromList(botStatus, {msgRCommon, msgRUncommon}) then
bot.applescript
if isOnStreak(botStatus) then
bot.applescript
sendRequest("gb")
bot.applescript
sendRequest("pb")
bot.applescript
else if botStatus contains msgRSuper then
bot.applescript
sendRequest("ub")
bot.applescript
else if botStatus contains msgRRare then
bot.applescript
else if botStatus contains msgRLegendary then
bot.applescript
sendRequest("prb")
bot.applescript
else if containsFromList(botStatus, {msgRShiny, msgRGolden, "Golden", "Shiny", "Kyogre", "Suicune"}) then
bot.applescript
sendRequest("mb")
bot.applescript
waitFor({msgWildcaught, msgWildescaped})
bot.applescript
end throwPokeball
bot.applescript
on updateBotStatus()
bot.applescript
set botStatus to execute front window's active tab javascript "document.querySelector('#watchbot').innerText"
bot.applescript
if botStatus is missing value then
bot.applescript
display dialog "Error getting text. Did you forget to inject?"
bot.applescript
error number -128 --exit
bot.applescript
end updateBotStatus
bot.applescript
on sendRequest(req)
bot.applescript
repeat with theChar in req
bot.applescript
tell application "System Events" to keystroke theChar
bot.applescript
set lastRequest to req
bot.applescript
end sendRequest
bot.applescript
on checkForCaptcha()
bot.applescript
set hasCaptcha to false
bot.applescript
if botStatus contains msgCaptcha then
bot.applescript
set hasCaptcha to true
bot.applescript
beep 3
bot.applescript
repeat while hasCaptcha is true
bot.applescript
repeat serverRateLimit times
bot.applescript
updateBotStatus()
bot.applescript
if botStatus does not contain msgCaptcha then
bot.applescript
sendRequest(lastRequest) --Repeat previous attempt
bot.applescript
if hasCaptcha is false then exit repeat
bot.applescript
end checkForCaptcha
bot.applescript
on isOnStreak(pokemon)
bot.applescript
if containsFromList(pokemon, msgStreak) then
bot.applescript
end isOnStreak
bot.applescript
on waitFor(wordsToWaitFor)
bot.applescript
repeat serverRateLimit * 4 times
bot.applescript
if botStatus contains msgWait then --Time to slow down
bot.applescript
set latencyOffset to latencyOffset + 0.25
bot.applescript
if containsFromList(lastRequest, captchaTriggers) then checkForCaptcha()
bot.applescript
if containsFromList(botStatus, wordsToWaitFor) then exit repeat
bot.applescript
end waitFor
bot.applescript
on containsFromList(textToCompare, listOfTerms)
bot.applescript
set answer to false
bot.applescript
repeat with i from 1 to count listOfTerms
bot.applescript
if textToCompare contains item i of listOfTerms then
bot.applescript
set answer to true
bot.applescript
return answer
bot.applescript
end containsFromList
bot.applescript
set bizzy to busy of window 1
Terminal Busy Check Loop.applescript
if bizzy is true then
Terminal Busy Check Loop.applescript
delay 120
Terminal Busy Check Loop.applescript
else if bizzy is false then
Terminal Busy Check Loop.applescript
set _session to current session of current terminal
Solarized Light.applescript
tell me to quit
Solarized Light.applescript
tell _session
Solarized Light.applescript
set fg_color to get foreground color
Solarized Light.applescript
if fg_color is {28873, 33398, 33872} then
Solarized Light.applescript
set foreground color to {21074, 26471, 28270}
Solarized Light.applescript
set background color to {64842, 62778, 56626}
Solarized Light.applescript
set bold color to {18134, 23373, 25098}
Solarized Light.applescript
set selection color to {60138, 58339, 52171}
Solarized Light.applescript
set selected text color to {18134, 23373, 25098}
Solarized Light.applescript
set cursor color to {21257, 26684, 28737}
Solarized Light.applescript
set cursor_text color to {60037, 58326, 52284}
Solarized Light.applescript
set userColor to "green" -- the colour of groups containing midi recalls
Create CLQL scene recall with name.applescript
set colorParentGroups to TRUE -- set colour of any groups containing the recall group as well?
Create CLQL scene recall with name.applescript
set cueListName to "Main Cue List" -- Name of main cue list
Create CLQL scene recall with name.applescript
display dialog "Please select a scene number to recall" default answer "" buttons {"Set", "Cancel"} cancel button "Cancel" default button "Set" with title "SCENE NUMBER"
Create CLQL scene recall with name.applescript
set sceneNumber to text returned of result as integer
Create CLQL scene recall with name.applescript
display dialog "What would you like to name this scene" default answer "" buttons {"Set", "Cancel"} cancel button "Cancel" default button "Set" with title "SCENE NAME"
Create CLQL scene recall with name.applescript
set sceneName to text returned of result
Create CLQL scene recall with name.applescript
set chanNum to my calculateChan(sceneNumber)
Create CLQL scene recall with name.applescript
set sceneNum to my calculateScene(sceneNumber)
Create CLQL scene recall with name.applescript
set sceneGroupName to "Scene " & sceneNumber & ": " & sceneName
Create CLQL scene recall with name.applescript
make type "Group"
Create CLQL scene recall with name.applescript
set sceneGroup to last item of (selected as list)
Create CLQL scene recall with name.applescript
set sceneGroupID to uniqueID of sceneGroup
Create CLQL scene recall with name.applescript
set mode of sceneGroup to timeline
Create CLQL scene recall with name.applescript
set q name of sceneGroup to sceneGroupName
Create CLQL scene recall with name.applescript
make type "Midi"
Create CLQL scene recall with name.applescript
set midiBank to last item of (selected as list)
Create CLQL scene recall with name.applescript
set midiBankID to uniqueID of midiBank
Create CLQL scene recall with name.applescript
set message type of midiBank to voice
Create CLQL scene recall with name.applescript
set command of midiBank to program_change
Create CLQL scene recall with name.applescript
set channel of midiBank to chanNum
Create CLQL scene recall with name.applescript
set byte one of midiBank to sceneNum
Create CLQL scene recall with name.applescript