Skip to content

Commit bd9898c

Browse files
committed
v2.4.5
v2.4.5 Bot now does 750% up until it beats brock then it slows down to 350%
1 parent 7545c34 commit bd9898c

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

ai/strategies.lua

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1077,6 +1077,12 @@ Strategies.functions = {
10771077
return Strategies.useItem(data)
10781078
end,
10791079

1080+
speedchange = function(data)
1081+
p(data.extra..", speed changed too "..data.speed.."%")
1082+
client.speedmode(data.speed)
1083+
return true
1084+
end,
1085+
10801086
-- ROUTE
10811087

10821088
squirtleIChooseYou = function()

data/red/paths.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ local Paths = {
5757
-- Pewter City
5858
{2, {18,35}, {18,22}, {19,22}, {19,13}, {10,13}, {10,18}, {16,18}, {16,17}},
5959
-- Brock
60-
{54, {4,13}, {c="a",a="Brock's Gym"}, {4,8}, {1,8}, {1,4}, {4,4}, {4,2}, {s="talk",dir="Up"}, {s="fightBrock"}, {s="splitBrock"}, {4,14}},
60+
{54, {4,13}, {c="a",a="Brock's Gym"}, {4,8}, {1,8}, {1,4}, {4,4}, {4,2}, {s="talk",dir="Up"}, {s="fightBrock"}, {s="splitBrock"},{s="speedchange", speed=AFTER_BROCK_SPEED, extra="We have a run going"}, {4,14}},
6161

6262
-- 3: BROCK
6363

main.lua

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,16 @@
33
RESET_FOR_TIME = false -- Set to true if you're trying to break the record, not just finish a run
44
BEAST_MODE = false -- WARNING: Do not engage. Will yolo everything, and reset at every opportunity in the quest for 1:47.
55

6-
local CUSTOM_SEED = 1468451701 -- Set to a known seed to replay it, or leave nil for random runs
6+
INITIAL_SPEED = 750
7+
AFTER_BROCK_SPEED = 350
8+
9+
local CUSTOM_SEED = nil -- Set to a known seed to replay it, or leave nil for random runs
710
local NIDORAN_NAME = "A" -- Set this to the single character to name Nidoran (note, to replay a seed, it MUST match!)
811
local PAINT_ON = true -- Display contextual information while the bot runs
912

1013
-- START CODE (hard hats on)
1114

12-
VERSION = "2.4.4"
15+
VERSION = "2.4.5"
1316

1417
local Data = require "data.data"
1518

@@ -48,6 +51,7 @@ function resetAll()
4851
Bridge.reset()
4952
oldSeconds = 0
5053
running = false
54+
client.speedmode(INITIAL_SPEED)
5155

5256
if CUSTOM_SEED then
5357
Data.run.seed = CUSTOM_SEED
@@ -66,7 +70,6 @@ end
6670
p("Welcome to PokeBot "..Utils.capitalize(Data.gameName).." v"..VERSION, true)
6771

6872
Control.init()
69-
client.speedmode(350)
7073
STREAMING_MODE = true
7174

7275
if CUSTOM_SEED then

0 commit comments

Comments
 (0)