package.path = "./commands/?.lua;"
console.clear()
movement = loadfile('movement.lua')
m = movement()
alterMemory = loadfile('alterMemory.lua')
p = alterMemory()
scriptName = "Script8"

-- daycare 1
custom1 = {
    {'rf', 170},
    {'lf', 170},
}

-- feed vitamins
custom2 = {
    {'press_a', 2},
    {'w', 180},
    {'press_a', 2},
    {'w', 180},
}
-- azelf training routine
custom3 = {
    {'x', 15}, -- use sweet scent
    {'w', 60},
    {'press_a', 1},
    {'w', 180},
    {'d', 1},
    {'press_a', 1},
    {'d', 2},
    {'press_a', 1},
    {'w', 1440},
    {'press_a', 1},
    {'use_move', 1}, -- use thunderbolt (15)
    {'press_b', 15}, -- done
}
custom4 = {
    {'x', 15}, -- use sweet scent
    {'w', 60},
    {'press_a', 1},
    {'w', 180},
    {'d', 1},
    {'press_a', 1},
    {'d', 2},
    {'press_a', 1},
    {'w', 1440},
    {'press_a', 1},
    {'d', 1},
    {'use_move', 1}, -- use water pulse (20)
    {'press_b', 15}, -- done
}
custom5 = {
    {'x', 15}, -- use sweet scent
    {'w', 60},
    {'press_a', 1},
    {'w', 180},
    {'d', 1},
    {'press_a', 1},
    {'d', 2},
    {'press_a', 1},
    {'w', 1440},
    {'press_a', 1},
    {'r', 1},
    {'use_move', 1}, -- use psychic (10)
    {'press_b', 15}, -- done
}
custom6 = {
    {'x', 15},
    {'w', 60},
    {'press_a', 1}, -- open pokemenu
    {'w', 360},
    {'d', 1},
    {'w', 60},
    {'press_a', 1}, -- open switch menu
    {'w', 360},
    {'u', 4}, -- to sweet scent // lock cursor in corner of move forget screen
    {'press_a', 1}, -- use sweet scent
    {'w', 1440},
    {'press_a', 1},
    {'w', 270},
    -- {'r', 1},
    {'press_a', 1}, -- use thunderbolt
    {'w', 1260},
    {'x', 30},
    {'w', 60},
    {'x', 30},
    {'w', 600},
}
-- hippo training
custom7 = {
    {'x', 15}, -- use sweet scent
    {'w', 60},
    {'press_a', 1},
    {'w', 180},
    {'d', 1},
    {'press_a', 1},
    {'d', 1},
    {'press_a', 1},
    {'w', 1440},
    {'press_a', 1},
    {'use_move', 1}, -- use giga drain (10)
    {'press_b', 15}, -- done
}
-- hippo training, use shadow ball
custom8 = {
    {'x', 15}, -- use sweet scent
    {'w', 60},
    {'press_a', 1},
    {'w', 180},
    {'d', 1},
    {'press_a', 1},
    {'d', 1},
    {'press_a', 1},
    {'w', 1440},
    {'press_a', 1},
    {'r', 1},
    {'use_move', 1}, -- use shadow ball (15)
    {'press_b', 15}, -- done
}
-- return to veilstone with a repel already active
custom9 = {
    {'d', 2},
    {'r', 2},
    {'w', 540},
    {'x', 15},
    {'w', 60},
    {'press_a', 1},
    {'w', 60},
    {'r', 1},
    {'d', 2},
    {'press_a', 1},
    {'d', 1},
    {'press_a', 1},
    {'w', 60},
    {'u', 1},
    {'press_a', 1},
    {'w', 900},
    {'u', 2},
    {'w', 540},
    {'pokecenter_heal', 1},
    {'press_b', 6},
    {'d', 8},
    {'w', 540},
    {'d', 2},
    {'l', 6},
    {'d', 4},
    {'r', 10},
    {'d', 20},
    {'l', 3},
    {'d', 4},
    {'w', 540},
    {'d', 10},
    {'w', 540},
    {'d', 24},
    {'l', 7},
    {'w', 540},
    {'u', 2},
    {'w', 60},

}
-- return to veilstone when repel will run out
custom10 = {
    {'d', 2},
    {'r', 2},
    {'w', 540},
    {'x', 15},
    {'w', 60},
    {'press_a', 1},
    {'w', 60},
    {'r', 1},
    {'d', 2},
    {'press_a', 1},
    {'d', 1},
    {'press_a', 1},
    {'w', 60},
    {'u', 1},
    {'press_a', 1},
    {'w', 900},
    {'u', 2},
    {'w', 540},
    {'pokecenter_heal', 1},
    {'press_b', 6},
    {'d', 5}, -- repel runs out
    {'press_b', 6},
    {'d', 3},
    {'w', 540},
    {'d', 2},
    {'l', 6},
    {'d', 6},
    {'r', 10},
    {'d', 19},
    {'l', 3},
    {'d', 3},
    {'w', 540},
    {'d', 10},
    {'w', 540},
    {'d', 24},
    {'l', 7},
    {'w', 540},
    {'x', 15},
    {'w', 60},
    {'d', 1},
    {'press_a', 1},
    {'w', 240},
    {'press_a', 2},
    {'w', 180},
    {'press_b', 11},
    {'x', 15},
    {'w', 60},
    {'u', 1},
    {'press_b', 6},
    {'u', 2},
    {'w', 30},
    
}
-- stopping rule hippo training cycle
custom11 = {
    {'x', 15},
    {'w', 60},
    {'press_a', 1}, -- open pokemenu
    {'w', 360},
    {'u', 3},
    {'w', 60},
    {'press_a', 1}, -- open switch menu
    {'w', 360},
    {'u', 4}, -- to sweet scent // lock cursor in corner of move forget screen
    {'press_a', 1}, -- use sweet scent
    {'w', 1440},
    {'press_a', 1},
    {'w', 270},
    {'r', 1},
    {'press_a', 1}, -- use shadow ball
    {'w', 1260},
    {'x', 30},
    {'w', 60},
    {'x', 30},
    {'w', 600},
}
custom12 = {
    {'x', 15},
    {'w', 60},
    {'press_a', 1}, -- open pokemenu
    {'w', 360},
    {'u', 3},
    {'w', 60},
    {'press_a', 1}, -- open switch menu
    {'w', 360},
    {'u', 4}, -- to sweet scent // lock cursor in corner of move forget screen
    {'press_a', 1}, -- use sweet scent
    {'w', 1440},
    {'press_a', 1},
    {'w', 270},
    {'press_a', 1}, -- use giga drain
    {'w', 1260},
    {'x', 30},
    {'w', 60},
    {'x', 30},
    {'w', 600},
}

a = {
    {'save', '00-StartOfScript8'},
    {'x', 15}, -- go to veilstone department store
    {'w', 60},
    {'press_a', 1},
    {'w', 240},
    {'d', 2},
    {'press_a', 1},
    {'d', 1},
    {'press_a', 1},
    {'w', 60},
    {'r', 17},
    {'u', 7},
    {'w', 60},
    {'press_a', 1},
    {'w', 900},
    {'l', 6},
    {'u', 7},
    {'r', 8},
    {'u', 4},
    {'l', 15},
    {'d', 2},
    {'l', 5},
    {'u', 2},
    {'w', 540},
    {'u', 2},
    {'r', 4},
    {'u', 3},
    {'l', 2},
    {'w', 540}, -- done
    
    {'l', 2}, -- buy 7 calciums and 9 carbos's, we still need the money for 10 irons lol
{'u', 3},
{'l', 1},
{'w', 60},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 60},
{'d', 2},
{'press_a', 1},
{'w', 180},
{'u', 6},
{'w', 60},
{'press_a', 1},
{'w', 240},
{'press_a', 1},
{'w', 120},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'d', 2},
{'press_a', 1},
{'w', 240},
{'u', 8},
{'w', 60},
{'press_a', 1},
{'w', 240},
{'press_a', 1},
{'w', 180},
{'press_b', 15}, -- done

{'u', 3}, -- go buy 5 protect TMs
{'r', 5},
{'u', 2},
{'r', 6},
{'d', 6},
{'l', 2},
{'w', 540}, 
{'l', 3},
{'u', 3},
{'w', 60},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 240},
{'d', 1},
{'press_a', 1},
{'w', 240},
-- {'u', 1}, -- we're gunna buy only 1 protect TM instead, to maintain continuity in updated version. Money runs out here if we buy 5 and causes issues. We will buy the protects post-selloff
{'w', 180},
{'press_a', 1},
{'w', 240},
{'press_a', 1},
{'w', 180},
{'press_b', 13}, -- done
{'d', 3}, -- go to lake valor
{'r', 5},
{'w', 540},
{'u', 6},
{'l', 7},
{'d', 3},
{'l', 2},
{'d', 4},
{'r', 2},
{'w', 540},
{'d', 3},
{'l', 4},
{'d', 4},
{'w', 540},
{'r', 5},
{'u', 2},
{'r', 15},
{'d', 5},
{'l', 8},
{'d', 11},
{'r', 6},
{'d', 3},
{'r', 5},
{'d', 11},
{'l', 4},
{'d', 11},
{'w', 540},
{'d', 10},
{'w', 540},
{'d', 18},
{'r', 8},
{'d', 11},
{'r', 5},
{'d', 5},
{'l', 3},
{'d', 8},
{'l', 3},
{'d', 6},
{'r', 8},
{'d', 6},
{'l', 15},
{'w', 60},
{'d', 14},
{'r', 4},
{'d', 6},
{'l', 5},
{'d', 2},
{'w', 60},
{'x', 15},
{'w', 60},
{'d', 1},
{'press_a', 1},
{'w', 240},
{'l', 1},
{'w', 60},
{'l', 1},
{'w', 60},
{'l', 1},
{'w', 60},
{'u', 49},
{'d', 7},
{'w', 60},
{'press_a', 2},
{'w', 180},
{'press_b', 8},
{'d', 29},
{'l', 7},
{'d', 18},
{'l', 8},
{'w', 540},
{'l', 12},
{'d', 6},
{'w', 60},
{'press_a', 5},
{'w', 240}, -- sailing on lake valor

{'d', 17}, -- go to azelf
{'l', 6},
{'w', 180},
{'l', 3},
{'u', 2},
{'w', 540},
{'u', 14},
{'r', 3},
{'u', 2},
{'w', 60},
{'press_a', 1},
{'press_b', 9},
{'w', 1800}, -- battle starts
{'d', 1},
{'press_a', 1},
{'w', 240},
{'r', 1},
{'press_a', 1},
{'w', 180},
{'r', 1},
{'d', 2},
{'press_a', 2}, -- throw the master ball
{'w', 2520}, -- gottem
{'press_a', 1},
{'w', 240},
{'press_a', 1},
{'w', 180}, -- naming //01-NamingAzelf
{'save', '01-NamingAzelf'},

{'d', 1}, -- name azelf beanbag
{'r', 1},
{'w', 60},
{'press_a', 1},
{'u', 1},
{'r', 1},
{'press_a', 1},
{'w', 60},
{'d', 1},
{'r', 2},
{'press_a', 1},
{'l', 4},
{'press_a', 1},
{'d', 1},
{'r', 3},
{'press_a', 1},
{'l', 2},
{'u', 1},
{'press_a', 1},
{'l', 1},
{'press_a', 1},
{'r', 6},
{'press_a', 1},
{'r', 6},
{'u', 1},
{'press_a', 1},
{'w', 360},  -- done

{'d', 8}, -- go to eterna
{'l', 3},
{'d', 9},
{'w', 540},
{'x', 15},
{'w', 60},
{'u', 1},
{'press_a', 1},
{'w', 60},
{'d', 2},
{'press_a', 1},
{'d', 1},
{'press_a', 1},
{'w', 240},
{'l', 13},
{'u', 7},
{'w', 60},
{'press_a', 1},
{'w', 900}, -- done

{'u', 2}, -- go grab azelf from the pc
{'w', 540},
{'u', 6},
{'r', 5},
{'u', 3},
{'w', 60},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 180},
{'d', 2},
{'press_a', 1},
{'w', 240},
{'u', 1},
{'w', 60},
{'u', 1},
{'w', 60},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'d', 3},
{'press_a', 2},
{'w', 180},
{'press_b', 1},
{'w', 180},
{'r', 3},
{'w', 60},
{'press_a', 1},
{'w', 40},
{'d', 3},
{'press_a', 1},
{'w', 180},
{'press_b', 12}, -- done

{'d', 3}, -- oops forgot to move delete, back to canalave
{'l', 5},
{'d', 8},
{'w', 540},
{'x', 15},
{'w', 60},
{'press_a', 1},
{'w', 60},
{'d', 1},
{'r', 1},
{'press_a', 1},
{'d', 1},
{'press_a', 1},
{'w', 60},
{'d', 6},
{'l', 8},
{'w', 60},
{'press_a', 1},
{'w', 900}, -- done
{'r', 4},
{'df', 6600},
{'w', 60}, -- go to move deleter
{'u', 9},
{'w', 60},
{'press_b', 4},
{'u', 13},
{'l', 9},
{'u', 5},
{'w', 540},
{'l', 3},
{'u', 2},
{'w', 60}, -- done //02-BeforeMoveDeleter
{'save', '02-BeforeMoveDeleter'},

{'press_a', 1}, -- forget night shade
{'w', 120},
{'press_a', 1},
{'w', 60},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 120},
{'press_a', 1},
{'w', 120},
{'press_a', 1},
{'w', 240},
{'d', 2},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 240},
{'d', 3},
{'u', 2},
{'d', 2},
{'press_a', 1},
{'w', 240},
{'press_a', 1},
{'w', 120},
{'press_b', 13}, -- done

{'r', 3},
{'d', 3},
{'w', 540},
{'x', 15}, -- get xp share on haunter and azelf in front
{'w', 60},
{'press_a', 1},
{'w', 60},
{'press_a', 1},
{'d', 1},
{'press_a', 1},
{'r', 1},
{'d', 2},
{'press_a', 1},
{'w', 240},
{'l', 1},
{'u', 1},
{'press_a', 1},
{'d', 4},
{'press_a', 1},
{'d', 1},
{'press_a', 1},
{'w', 240},
{'press_a', 1},
{'d', 1},
{'press_a', 1},
{'d', 2},
{'press_a', 2},
{'w', 60},
{'d', 45},
{'u', 1},
{'press_a', 1},
{'w', 240},
{'press_a', 1},
{'w', 60},
{'press_b', 1}, -- done
{'w', 240},
{'d', 1},
{'press_a', 1}, -- open bag
{'w', 240},
{'r', 1},
{'w', 60},

{'u', 12},
{'d', 16},
{'w', 60},
{'custom2', 12}, -- use all 10 calciums, and maybe 2 irons... how they got desynced... idk

{'d', 15}, -- go to other iron
{'u', 3},
{'w', 60}, -- align, should be mocking with full restore
{'custom2', 1}, -- use iron/full
{'u', 1},
{'w', 40},
{'custom2', 10}, -- use all carbos

{'press_b', 9}, -- teach psychic/thunderbolt to azelf
{'x', 15},
{'w', 60},
{'press_a', 1},
{'w', 60},
{'r', 1},
{'w', 60},
{'r', 1},
{'w', 60},
{'u', 28},
{'d', 3},
{'w', 60},
{'press_a', 2},
{'w', 180},
{'press_a', 1},
{'w', 120},
{'press_a', 1},
{'w', 120},
{'press_a', 1},
{'w', 240},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 240},
{'d', 5},
{'press_a', 1},
{'w', 240},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 120},
{'press_a', 1},
{'w', 120},
{'press_a', 1},
{'w', 240},
{'press_a', 2},
{'w', 180},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 240},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 240},
{'d', 1},
{'press_a', 1},
{'w', 240},
{'press_b', 18}, -- done

{'x', 15}, -- go to jubilife and grab machoke
{'w', 60},
{'u', 1},
{'press_a', 1},
{'w', 60},
{'d', 1},
{'r', 1},
{'press_a', 1},
{'d', 1},
{'press_a', 1},
{'w', 60},
{'r', 4},
{'d', 1},
{'w', 60},
{'press_a', 1},
{'w', 900},
{'u', 2},
{'w', 540},
{'u', 6},
{'r', 5},
{'u', 3},
{'w', 60},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 180},
{'d', 2},
{'press_a', 1},
{'w', 240},
{'press_a', 2},
{'w', 60},
{'d', 5},
{'w', 60},
{'press_a', 1},
{'w', 120},
{'u', 1},
{'l', 1},
{'w', 60},
{'d', 1},
{'w', 60},
{'r', 1},
{'w', 60},
{'press_a', 2},
{'w', 180},
{'press_b', 1},
{'w', 180},
{'press_a', 2},
{'press_b', 13}, -- done

{'d', 9}, -- go to ravaged path and get water pulse
{'l', 5},
{'d', 2},
{'w', 540},
{'l', 9},
{'u', 18},
{'l', 3},
{'u', 17},
{'r', 4},
{'u', 23},
{'w', 60},
{'x', 15},
{'w', 60},
{'d', 1},
{'press_a', 1},
{'w', 60},
{'l', 1},
{'w', 60},
{'l', 1},
{'w', 60},
{'l', 1},
{'w', 60},
{'u', 50},
{'d', 7},
{'press_a', 2},
{'w', 180},
{'press_b', 7},
{'u', 13},
{'l', 3},
{'u', 5},
{'w', 540},
{'u', 10},
{'l', 2},
{'w', 60},
{'press_a', 5},
{'w', 180},
{'l', 8},
{'d', 2},
{'l', 3},
{'u', 3},
{'l', 2},
{'u', 1},
{'w', 60},
{'press_a', 1},
{'press_b', 9},
{'r', 3},
{'u', 3},
{'w', 60},
{'press_a', 5},
{'w', 180},
{'u', 9},
{'r', 11},
{'u', 7},
{'r', 4},
{'u', 8},
{'r', 6},
{'u', 9},
{'w', 120},
{'u', 1},
{'r', 1},
{'w', 60},
{'press_a', 1},
{'w', 180},
{'press_b', 7},
{'d', 2},
{'w', 60},
{'press_a', 5},
{'w', 180},
{'d', 6},
{'l', 6},
{'d', 9},
{'l', 4},
{'d', 7},
{'l', 10},
{'d', 11},
{'w', 120},
{'r', 2},
{'d', 4},
{'r', 9},
{'d', 12},
{'w', 540}, -- done


{'x', 15}, -- teach water pulse to azelf
{'w', 60},
{'press_a', 1},
{'w', 60},
{'r', 1},
{'w', 60},
{'r', 1},
{'w', 60},
{'r', 1},
{'w', 60},
{'u', 18},
{'press_a', 2},
{'w', 180},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 60},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 60},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 120},
{'press_a', 1},
{'w', 240},
{'d', 2},
{'w', 60},
{'press_a', 1},
{'w', 360},
{'press_b', 17}, -- done
{'x', 15}, -- go to eterna
{'w', 60},
{'u', 1},
{'press_a', 1},
{'w', 60},
{'d', 1},
{'r', 1},
{'press_a', 1},
{'d', 1},
{'press_a', 1},
{'w', 60},
{'r', 4},
{'u', 5},
{'w', 60},
{'press_a', 1},
{'w', 900}, -- done //03-InEterna
{'save', '03-InEterna'},

-- train Azelf, need to do 1 round of 45 and one round of 41 to put us right at the brink of leveling up
-- then we can return to finish
-- the lowest XP seeds will be trailing up at 8818, so 745 lacking, which is about 7 battles
-- we can do 8 cycles of stopping rule to align
-- which means at a minimum we're hittin 187 for evs
-- we need to hit 216, so we will need to train another 29 rounds minimum
-- the xp discrepancy shouldn't cause any problems on azelf, but we should remove the xp share off haunter for the bonus 29 
-- since that xp discrepancy might actually cause a problem
{'l', 7}, -- go to old chateau 
{'d', 3},
{'l', 27},
{'u', 4},
{'w', 60},
{'press_b', 3},
{'l', 13},
{'u', 8},
{'l', 4},
{'w', 540},
{'l', 11},
{'u', 3},
{'w', 60},
{'press_a', 5},
{'w', 180},
{'u', 3},
{'w', 60},
{'x', 15},
{'w', 60},
{'d', 1},
{'press_a', 1},
{'w', 240},
{'l', 1},
{'w', 60},
{'l', 1},
{'w', 60},
{'l', 1},
{'w', 60},
{'d', 44},
{'u', 30},
{'w', 60},
{'press_a', 2},
{'w', 180},
{'press_b', 8},
{'u', 14},
{'l', 2},
{'u', 3},
{'w', 540},
{'l', 2},
{'w', 60}, -- done
{'x', 15},
{'w', 60},
{'u', 1},
{'press_b', 3},

{'custom3', 15}, -- first round of training
{'custom4', 20},
{'custom5', 10},
{'save', '04-AfterFirstRoundOfTraining'},

{'r', 2}, -- to eterna and back
{'d', 2},
{'w', 540},
{'x', 15},
{'w', 60},
{'press_a', 1},
{'w', 60},
{'r', 1},
{'d', 1},
{'press_a', 1},
{'d', 1},
{'press_a', 1},
{'w', 60},
{'r', 1},
{'w', 60},
{'press_a', 1},
{'w', 900},
{'u', 2},
{'w', 540},
{'pokecenter_heal', 1},
{'press_b', 7},
{'d', 8},
{'w', 540},
{'l', 6},
{'d', 3},
{'l', 29},
{'u', 4},
{'l', 12},
{'u', 6},
{'l', 4},
{'w', 540},
{'l', 11},
{'u', 4},
{'w', 60},
{'press_b', 4},
{'press_a', 5},
{'w', 120},
{'u', 3},
{'w', 60},
{'x', 15},
{'w', 60},
{'d', 1},
{'press_a', 1},
{'w', 240},
{'press_a', 2},
{'w', 180},
{'press_b', 7},
{'x', 15},
{'w', 60},
{'u', 1},
{'press_b', 3},
{'u', 15},
{'l', 2},
{'u', 2},
{'w', 540},
{'l', 2},
{'w', 60}, -- done

{'custom3', 15}, -- second round of training
{'custom4', 20},
{'custom5', 6}, -- don't do it fully, so that we don't have to make a return trip while on a stopping rule
{'save', '05-AfterSecondRoundOfTraining'},

{'r', 2}, -- to eterna and back part 2 (last time)
{'d', 2},
{'w', 540},
{'x', 15},
{'w', 60},
{'press_a', 1},
{'w', 60},
{'r', 1},
{'d', 1},
{'press_a', 1},
{'d', 1},
{'press_a', 1},
{'w', 60},
{'r', 1},
{'w', 60},
{'press_a', 1},
{'w', 900},
{'u', 2},
{'w', 540},
{'pokecenter_heal', 1},
{'press_b', 7},
{'d', 8},
{'w', 540},
{'l', 6},
{'d', 3},
{'l', 29},
{'u', 4},
{'l', 12},
{'u', 6},
{'l', 4},
{'w', 540},
{'l', 11},
{'u', 4},
{'w', 60},
{'press_b', 4},
{'press_a', 5},
{'w', 120},
{'u', 3},
{'x', 15}, -- use a super repel this time
{'w', 60},
{'d', 1},
{'press_a', 1},
{'w', 60},
{'d', 35},
{'u', 35},
{'w', 60},
{'press_a', 2},
{'w', 180},
{'press_b', 8},
{'x', 15},
{'w', 60},
{'u', 1},
{'press_b', 4},
{'u', 15},
{'l', 2},
{'u', 2},
{'w', 540},
{'l', 2},
{'w', 60}, -- done

{'custom6', 8}, -- stopping rule on extrasensory
{'custom6', 2}, -- stopping rule on extrasensory

{'press_b', 1}, -- don't learn extrasensory
{'w', 240},
{'press_a', 1},
{'w', 900},
{'press_b', 2},
{'w', 240},
{'press_a', 1},
{'w', 900}, -- done
{'x', 15}, -- give machoke the xp share, just to get the xp off anybody else
{'w', 60},
{'press_a', 1},
{'w', 240},
{'d', 2},
{'press_a', 1},
{'d', 2},
{'press_a', 1},
{'d', 1},
{'press_a', 1},
{'w', 240},
{'press_a', 1},
{'r', 1},
{'press_a', 1},
{'d', 5},
{'press_a', 2},
{'w', 240},
{'d', 43},
{'u', 1},
{'press_a', 1},
{'w', 300},
{'press_a', 1},
{'w', 180},
{'press_b', 1},
{'w', 240},
{'press_b', 6}, -- done
{'custom4', 20},
{'custom5', 9}, -- done training azelf
{'r', 2}, -- go to celestic
{'d', 2},
{'w', 540},
{'x', 15},
{'w', 60},
{'press_a', 1},
{'w', 60},
{'r', 1},
{'d', 1},
{'press_a', 1},
{'d', 1},
{'press_a', 1},
{'w', 60},
{'r', 6},
{'w', 60},
{'press_a', 1},
{'w', 900}, -- done //04-DoneWithAzelfTraining
{'save', '06-DoneWithAzelfTraining'},

{'u', 2}, -- put azelf into the pc
{'w', 540},
{'u', 6},
{'r', 5},
{'u', 3},
{'w', 60},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 180},
{'d', 2},
{'press_a', 1},
{'w', 240},
{'u', 2},
{'w', 60},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'d', 3},
{'press_a', 2},
{'w', 60},
{'press_b', 1},
{'w', 180},
{'press_a', 1},
{'d', 3},
{'press_a', 1},
{'w', 180},
{'press_b', 14}, -- done

{'d', 9}, -- leave pokecenter
{'l', 5},
{'d', 2},
{'w', 540}, -- done
{'x', 15}, -- teach roselia sludge bomb, we're no longer in need of sweet scent
{'w', 60},
{'d', 1},
{'press_a', 1},
{'w', 60},
{'r', 1},
{'w', 60},
{'r', 1},
{'w', 60},
{'r', 1},
{'w', 60},
{'u', 20},
{'d', 3},
{'press_a', 2},
{'w', 180},
{'press_a', 1},
{'w', 120},
{'press_a', 1},
{'w', 120},
{'press_a', 1},
{'w', 240},
{'r', 1},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 240},
{'d', 3},
{'press_a', 1},
{'w', 240},
{'press_b', 17}, -- done
{'l', 11}, -- go the cliff where ice beam is hiding >:(
{'d', 3},
{'l', 8},
{'u', 2},
{'l', 5},
{'u', 11},
{'l', 17},
{'d', 2},
{'l', 13},
{'u', 5},
{'l', 6},
{'w', 540},
{'l', 1},
{'u', 5},
{'r', 2},
{'u', 1},
{'w', 60},
{'press_a', 4},
{'w', 240},
{'press_b', 4},
{'u', 1},
{'w', 60},
{'u', 2},
{'w', 60},
{'u', 2},
{'w', 60},
{'u', 1},
{'l', 2},
{'u', 18},
{'l', 18},
{'u', 2},
{'l', 2},
{'w', 540},
{'l', 4},
{'u', 2},
{'l', 2},
{'u', 2},
{'l', 2},
{'u', 37},
{'w', 60},
{'press_b', 4},
{'x', 15},
{'w', 60},
{'press_a', 1},
{'w', 240},
{'l', 1},
{'w', 60},
{'l', 1},
{'w', 60},
{'l', 1},
{'w', 60},
{'d', 12},
{'u', 35},
{'w', 60},
{'press_a', 2},
{'w', 180},
{'press_b', 8},
{'u', 20},
{'w', 60},
{'r', 2},
{'u', 3},
{'r', 7},
{'w', 540},
{'r', 5},
{'u', 10},
{'l', 15},
{'w', 540},
{'l', 5},
{'u', 3},
{'l', 48},
{'u', 1},
{'w', 60},
{'press_a', 4},
{'w', 180}, -- done
{'x', 15}, -- take xp share off machoke and put haunter first
{'w', 60},
{'u', 1},
{'press_a', 1},
{'w', 240},
{'d', 2},
{'press_a', 1},
{'d', 5},
{'press_a', 1},
{'d', 1},
{'press_a', 1},
{'w', 240},
{'press_a', 1},
{'r', 1},
{'u', 1},
{'press_a', 1},
{'d', 1},
{'press_a', 1},
{'u', 1},
{'l', 1},
{'press_a', 1},
{'w', 240},
{'press_b', 8}, -- done

{'r', 4}, 
{'u', 2},
{'r', 11},
{'w', 60},
{'press_a', 3}, -- fight the machoke guy 
{'w', 1800},
{'press_a', 1},
{'d', 1},
{'r', 1},
{'use_move', 3},
{'press_b', 17}, -- done

{'u', 2}, -- get in position near skier lady
{'w', 60},
{'u', 1},
{'w', 60},
{'u', 1},
{'w', 60},
{'r', 2},
{'w', 60},
{'r', 1},
{'w', 60},
{'r', 1},
{'w', 60},
{'r', 1},
{'w', 60},
{'r', 1},
{'w', 60}, -- idling
{'x', 15}, -- put vaporeon in front
{'w', 60},
{'press_a', 1},
{'w', 60},
{'r', 1},
{'d', 1},
{'press_a', 1},
{'d', 2},
{'press_a', 1},
{'u', 1},
{'l', 1},
{'press_a', 1},
{'w', 240},
{'press_b', 7}, -- done

{'rf', 3600}, -- align against the tree, or engage in battle immediately, doesn't matter
{'press_b', 10},
{'w', 1200}, -- battle starts with skier
{'save', '06b-BeforeSkier'},
{'press_a', 1}, -- KO swinub with surf, and snover with sludge bomb, mind the level up for roselia
{'use_move', 1},
{'w', 480},
{'press_a', 15}, -- handle pastoria alt line

{'d', 1}, -- realign shift screen
{'press_a', 1},
{'r', 2},
{'press_a', 1},
{'d', 2},
{'r', 3},
{'press_a', 1},
{'w', 60},
{'l', 2},
{'u', 2},
{'press_b', 1}, -- sync

{'w', 240},
{'r', 1},
{'press_a', 2},
{'w', 1620},
{'press_a', 1},
{'r', 1},
{'d', 1},
{'use_move', 1}, 
{'w', 480}, -- old aromatherapy avoidance
{'press_a', 2},
{'w', 900},
{'press_b', 1},
{'w', 480},
{'press_a', 1},
{'w', 240},
{'press_b', 14}, -- done

{'rf', 3000}, -- align against tree
{'w', 60},

{'u', 3}, -- to next skier
{'r', 7},
{'d', 3},
{'r', 5}, -- awaiting
{'w', 30},
{'x', 15}, -- put roselia in front and heal, mind the ice shard
{'w', 60},
{'d', 1},
{'press_a', 1},
{'w', 240},
{'r', 1},
{'w', 60},
{'u', 27},
{'d', 12},
{'press_a', 2},
{'w', 240},
{'r', 1},
{'press_a', 1},
{'w', 240},
{'press_b', 12},
{'x', 15},
{'w', 60},
{'u', 1},
{'press_a', 1},
{'w', 60},
{'r', 1},
{'press_a', 1},
{'d', 2},
{'press_a', 1},
{'l', 1},
{'press_a', 1},
{'w', 240},
{'press_b', 9},
{'r', 1},
{'w', 1800},
{'press_b', 9},
{'w', 1800},
{'press_a', 1},
{'r', 1},
{'d', 1},
{'use_move', 1},
{'w', 120},
{'press_b', 2}, -- level up prompts
{'w', 600},
{'press_b', 1}, -- avoid aromatherapy // dealing with pastoria alt line
{'w', 600},
{'press_a', 1}, 
{'w', 300},
{'press_b', 7}, -- done

{'r', 3}, -- go grab max potion and ice BEAM
{'w', 60},
{'d', 2},
{'w', 60},
{'d', 5},
{'r', 2},
{'d', 2},
{'w', 60},
{'press_a', 3},
{'press_b', 6},
{'r', 9},
{'w', 60},
{'u', 2},
{'w', 60},
{'u', 1},
{'w', 60},
{'u', 1},
{'w', 60},
{'press_a', 1},
{'press_b', 12}, -- done
{'x', 15}, -- go to canalave, we've got some heart scales to get
{'w', 60},
{'press_a', 1},
{'w', 240},
{'d', 1},
{'press_a', 1},
{'d', 1},
{'press_a', 1},
{'w', 240},
{'d', 14},
{'r', 7},
{'w', 60},
{'press_a', 1},
{'w', 900},
{'r', 4},
{'u', 5},
{'r', 9},
{'u', 2},
{'r', 5},
{'u', 2},
{'w', 60},
{'press_b', 4},
{'l', 3},
{'w', 60},
{'press_b', 2},
{'l', 3},
{'press_b', 3},
{'l', 17},
{'w', 60},
{'press_b', 3},
{'l', 9},
{'w', 60},
{'r', 9},
{'u', 2},
{'r', 25},
{'d', 4},
{'r', 3},
{'w', 540},
{'r', 10},
{'w', 540},
{'r', 13},
{'w', 60}, -- done, waiting by grass //05-IceBeamAcquired
{'save', '07-IceBeamAcquired'},

{'x', 15}, -- use repel
{'w', 60},
{'d', 1},
{'press_a', 1},
{'w', 60},
{'l', 1},
{'w', 60},
{'press_a', 2},
{'w', 180},
{'press_b', 8}, -- done
{'r', 11}, -- go to sunyshore route
{'d', 11},
{'r', 7},
{'d', 3},
{'r', 2},
{'d', 3},
{'w', 60},
{'press_a', 5},
{'w', 180},
{'d', 4},
{'w', 60},
{'press_a', 4},
{'press_b', 5},
{'u', 4},
{'l', 9},
{'d', 9},
{'r', 14},
{'u', 4},
{'r', 21},
{'u', 10},
{'r', 5},
{'u', 6},
{'w', 540},
{'u', 9},
{'w', 540},
{'u', 21},
{'r', 5},
{'u', 2},
{'r', 38},
{'u', 12},
{'r', 5},
{'u', 5},
{'r', 6},
{'w', 60},
{'press_b', 5},
{'r', 7},
{'u', 4},
{'w', 60}, -- idling by the berries

{'press_a', 3}, -- pick all the berries
{'w', 180},
{'press_b', 8},
{'r', 2},
{'u', 1},
{'w', 60},
{'press_a', 4},
{'press_b', 7},
{'r', 2},
{'u', 1},
{'w', 60},
{'press_a', 3},
{'press_b', 10},
{'r', 2},
{'u', 1},
{'w', 60},
{'press_a', 3},
{'press_b', 10}, -- done

{'d', 9}, -- go grab both heart scales
{'r', 22},
{'w', 60},
{'press_a', 3},
{'press_b', 5},
{'d', 2},
{'w', 60},
{'l', 6},
{'d', 8},
{'r', 1},
{'w', 60},
{'press_a', 1},
{'r', 1},
{'l', 1},
{'w', 60},
{'press_a', 2},
{'press_b', 8},
{'u', 8},
{'r', 10},
{'d', 2},
{'w', 60},
{'press_a', 5},
{'w', 180},
{'d', 1},
{'r', 8},
{'d', 4},
{'w', 60},
{'press_a', 3},
{'press_b', 7}, -- done 
{'x', 15}, -- evolve roselia
{'w', 60},
{'press_a', 1},
{'w', 60},
{'d', 53},
{'u', 10},
{'w', 60},
{'press_a', 2},
{'w', 240},
{'press_a', 1},
{'w', 2400}, --  roserade
{'press_b', 14}, -- done

{'x', 15}, -- heal just in case we got ice sharded last time
{'w', 60},
{'press_a', 1},
{'w', 240},
{'r', 1},
{'w', 60},
{'press_a', 2},
{'w', 240},
{'press_a', 1},
{'w', 180},
{'press_b', 14}, -- done

{'r', 9}, -- go beat the sailor guy
{'u', 3},
{'r', 11},
{'w', 360},
{'press_b', 8},
{'w', 1800},
{'press_a', 1},
{'d', 1},
{'r', 1},
{'use_move', 1},
{'press_b', 13},
{'press_a', 1},
{'l', 1},
{'u', 1},
{'use_move', 1},
{'w', 360},
{'press_a', 1},
{'w', 240},
{'r', 1},
{'d', 1},
{'press_a', 2},
{'w', 1800},
{'press_a', 1},
{'d', 1},
{'use_move', 1},
{'press_a', 1},
{'r', 1},
{'use_move', 2},
{'press_b', 5},
{'r', 10},
{'d', 5}, -- done

{'r', 4}, -- go into sunyshore
{'w', 540},
{'r', 10},
{'w', 720},
{'press_b', 36},
{'r', 13},
{'u', 3},
{'r', 16},
{'u', 5},
{'w', 540},
{'pokecenter_heal', 1},
{'press_b', 9},
{'d', 8},
{'w', 540}, -- done //06-InsideSunyshore
{'save', '08-InsideSunyShore'},

{'l', 6}, -- go grab volkner
{'u', 17},
{'l', 5},
{'u', 7},
{'r', 19},
{'u', 13},
{'r', 7},
{'d', 22},
{'l', 4},
{'d', 20},
{'r', 15},
{'u', 2},
{'w', 1440},
{'r', 4},
{'u', 6},
{'l', 4},
{'u', 1},
{'w', 60},
{'press_a', 1},
{'press_b', 30},
{'r', 3},
{'d', 6},
{'l', 4},
{'u', 2},
{'w', 1440}, -- done

{'x', 15}, -- go to pc
{'w', 60},
{'u', 1},
{'press_a', 1},
{'w', 60},
{'d', 1},
{'press_a', 1},
{'d', 1},
{'press_a', 1},
{'w', 60},
{'press_a', 1},
{'w', 900},
{'u', 2},
{'w', 540},
{'u', 6},
{'r', 5},
{'u', 3},
{'w', 60}, -- done

{'w', 60}, -- do our pc business, get infernape
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 360},
{'press_a', 1},
{'w', 180},
{'d', 2},
{'press_a', 1},
{'w', 240},
{'r', 4},
{'w', 60},
{'press_a', 2},
{'w', 180},
{'d', 5},
{'w', 60},
{'press_a', 1},
{'w', 180},
{'l', 1},
{'w', 60},
{'press_a', 2},
{'w', 60},
{'r', 2},
{'w', 120},
{'press_a', 2},
{'w', 60},
{'press_b', 16}, -- done

{'d', 3}, -- go to volkner gym
{'l', 5},
{'d', 8},
{'w', 540},
{'l', 6},
{'u', 17},
{'l', 5},
{'u', 7},
{'r', 19},
{'u', 14},
{'l', 25},
{'u', 2},
{'w', 60},
{'press_a', 1},
{'press_b', 29},
{'u', 3},
{'w', 540},
{'u', 6},
{'r', 6},
{'w', 120},
{'d', 4},
{'l', 6},
{'u', 4},
{'l', 6},
{'w', 120},
{'r', 6},
{'u', 4},
{'w', 60}, -- done, idling by pachirisu trainer

{'x', 15}, -- setup the ole team
{'w', 60},
{'press_a', 1},
{'w', 60},
{'d', 2},
{'press_a', 1},
{'d', 1},
{'press_a', 1},
{'u', 2},
{'press_a', 1},
{'w', 240},
{'r', 1},
{'d', 1},
{'press_a', 1},
{'d', 2},
{'press_a', 2},
{'w', 60},
{'l', 1},
{'w', 60},
{'d', 25},
{'u', 2},
{'press_a', 1},
{'w', 180},
{'press_b', 14}, -- done

{'u', 1}, -- fight the pachirisu kid
{'w', 360},
{'press_b', 10},
{'w', 1440},
{'press_a', 1},
{'r', 1},
{'use_move', 1},
{'d', 1},
{'r', 2},
{'press_a', 1},
{'w', 240},
{'r', 1},
{'d', 2},
{'press_a', 2},
{'w', 1800},
{'press_a', 1},
{'r', 1},
{'use_move', 1},
{'press_b', 18}, -- done

{'u', 3}, -- go to the next section
{'w', 540},
{'x', 15},
{'w', 60},
{'d', 1},
{'press_a', 1},
{'w', 240},
{'r', 1},
{'w', 60},
{'press_a', 2},
{'w', 240},
{'r', 1},
{'d', 2},
{'press_a', 1},
{'w', 360},
{'press_b', 13},
{'u', 4},
{'l', 4},
{'u', 5},
{'w', 120},
{'l', 2},
{'r', 2},
{'w', 120},
{'u', 2},
{'d', 2},
{'w', 120},
{'r', 6},
{'d', 7},
{'l', 8},
{'d', 3},
{'l', 3},
{'u', 18},
{'r', 2},
{'w', 60},
{'x', 15},
{'w', 60},
{'u', 1},
{'press_a', 1},
{'w', 60},
{'r', 1},
{'d', 2},
{'press_a', 1},
{'d', 1},
{'press_a', 1},
{'u', 2},
{'l', 1},
{'press_a', 1},
{'w', 240},
{'press_b', 10}, -- ready to fight magneton kid

{'r', 1}, -- fight kid
{'w', 180},
{'press_b', 8},
{'w', 1800},
{'press_a', 1},
{'r', 1},
{'use_move', 1},
{'w', 240},
{'press_b', 19}, -- done
{'r', 3}, -- to next guy
{'d', 5},
{'w', 120},
{'r', 6},
{'w', 120},
{'d', 6},
{'r', 3},
{'w', 60}, -- idling

{'w', 60}, -- give roserade the miracle seed
{'x', 15},
{'w', 60},
{'press_a', 1},
{'w', 240},
{'d', 2},
{'press_a', 1},
{'d', 3},
{'press_a', 2},
{'w', 60},
{'l', 1},
{'w', 60},
{'d', 12},
{'u', 16},
{'d', 1},
{'press_a', 1},
{'w', 240},
{'press_b', 10}, -- done
{'x', 15}, -- put togekiss in front and do battle
{'w', 60},
{'press_a', 1},
{'w', 60},
{'d', 1},
{'press_a', 1},
{'d', 2},
{'press_a', 1},
{'u', 1},
{'press_a', 1},
{'w', 240},
{'press_b', 7},
{'r', 1},
{'w', 360},
{'press_b', 10},
{'w', 1440},
{'press_a', 1},
{'d', 1},
{'use_move', 1},
{'w', 180},
{'press_a', 1},
{'w', 240},
{'d', 2},
{'press_a', 2},
{'w', 1440},
{'press_a', 1},
{'use_move', 1},
{'press_b', 59}, -- done

{'d', 3}, -- go to pikachu kid
{'r', 3},
{'u', 5},
{'l', 2},
{'u', 7},
{'l', 3},
{'w', 60},
{'x', 15},
{'w', 60},
{'press_a', 1},
{'w', 240},
{'r', 1},
{'d', 1},
{'press_a', 1},
{'d', 2},
{'press_a', 1},
{'d', 1},
{'press_a', 1},
{'w', 240},
{'press_a', 1},
{'l', 1},
{'press_a', 1},
{'d', 1},
{'press_a', 1},
{'u', 1},
{'press_a', 1},
{'w', 240},
{'press_b', 10},
{'u', 2},
{'l', 1},
{'w', 60},
{'press_a', 1},
{'press_b', 6}, -- done
{'w', 1980},
{'press_a', 1},
{'r', 1},
{'use_move', 1}, -- demolish them
{'press_b', 20},
{'use_move', 1},
{'press_b', 17},
{'use_move', 1},
{'press_b', 19},
{'use_move', 1},
{'press_b', 20}, -- done

{'u', 2}, -- go to next room and do the next 2 trainers, potentially taking 94% of hippo's health
{'l', 5},
{'u', 2},
{'w', 540},
{'u', 2},
{'r', 5},
{'w', 60},
{'press_a', 1},
{'press_b', 6},
{'w', 1800},
{'press_a', 1},
{'r', 1},
{'use_move', 1},
{'press_b', 23},
{'l', 5},
{'u', 6},
{'r', 6},
{'w', 180},
{'d', 4},
{'l', 6},
{'u', 4},
{'l', 6},
{'w', 180},
{'d', 6},
{'w', 180},
{'press_b', 10},
{'w', 1800},
{'press_a', 1},
{'r', 1},
{'use_move', 1},
{'press_b', 21},
{'use_move', 1},
{'press_b', 15}, -- done

{'d', 3}, -- go to luxio guy
{'l', 5},
{'u', 22},
{'r', 1},
{'x', 15},
{'w', 60},
{'press_a', 1},
{'w', 240},
{'d', 2},
{'press_a', 1},
{'d', 2},
{'press_a', 1},
{'u', 2},
{'press_a', 1},
{'w', 240},
{'press_b', 9},
{'r', 1},
{'w', 180},
{'press_b', 8},
{'w', 1800},
{'press_a', 1},
{'use_move', 1},
{'press_b', 53}, -- done

{'x', 15}, -- go to next electabuzz guy
{'w', 60},
{'d', 1},
{'press_a', 1},
{'w', 60},
{'r', 1},
{'w', 60},
{'press_a', 2},
{'w', 240},
{'d', 2},
{'press_a', 1},
{'w', 360},
{'press_b', 11},
{'r', 4},
{'d', 5},
{'w', 120},
{'l', 2},
{'r', 2},
{'w', 120},
{'d', 6},
{'r', 6},
{'u', 6},
{'r', 6},
{'d', 6},
{'w', 120},
{'u', 10},
{'r', 4},
{'d', 6},
{'w', 60}, -- done

{'x', 15}, -- fight this last guy
{'w', 60},
{'u', 1},
{'press_a', 1},
{'w', 60},
{'d', 2},
{'press_a', 1},
{'d', 1},
{'press_a', 1},
{'u', 2},
{'press_a', 1},
{'w', 240},
{'r', 1},
{'d', 1},
{'press_a', 1},
{'d', 2},
{'press_a', 2},
{'w', 60},
{'l', 1},
{'w', 60},
{'d', 21},
{'u', 1},
{'press_a', 1},
{'w', 240},
{'press_b', 9},
{'r', 2},
{'d', 2},
{'w', 360},
{'press_b', 8},
{'w', 1620},
{'press_a', 1},
{'r', 1},
{'use_move', 1},
{'w', 540},
{'press_a', 1},
{'w', 60},
{'r', 1},
{'d', 2},
{'press_a', 2},
{'w', 1800},
{'press_a', 1},
{'d', 1},
{'use_move', 1},
{'press_b', 11}, -- done
{'press_b', 12}, -- leave the gym
{'d', 16},
{'l', 10},
{'d', 2},
{'w', 540},
{'d', 2},
{'r', 7},
{'d', 11},
{'l', 2},
{'u', 3},
{'l', 4},
{'d', 5},
{'l', 3},
{'d', 6},
{'w', 540},
{'d', 5},
{'l', 6},
{'w', 120},
{'l', 1},
{'r', 2},
{'w', 120},
{'l', 2},
{'r', 2},
{'w', 120},
{'r', 5},
{'d', 8},
{'w', 540}, -- done //07-AfterPrimingGym
{'save', '09-AfterPrimingGym'},

{'x', 15}, -- go to solaceon to hatch riolu
{'w', 60},
{'press_a', 1},
{'w', 60},
{'d', 1},
{'press_a', 1},
{'d', 1},
{'press_a', 1},
{'w', 240},
{'l', 8},
{'u', 3},
{'w', 60},
{'press_a', 1},
{'w', 900},
{'u', 2},
{'w', 540},
{'pokecenter_heal', 1},
{'press_b', 8},
{'d', 8},
{'w', 540},
{'d', 1},
{'l', 7},
{'u', 13},
{'l', 8},
{'u', 2},
{'w', 540},
{'l', 5},
{'u', 8},
{'l', 2},
{'u', 1},
{'w', 60},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 180},
{'d', 2},
{'press_a', 1},
{'w', 240}, -- done

{'u', 2}, -- go get the riolu egg out
{'w', 60},
{'press_a', 1},
{'w', 180},
{'d', 1},
{'w', 60},
{'press_a', 1},
{'d', 3},
{'press_a', 2},
{'w', 180},
{'d', 1},
{'w', 60},
{'press_a', 1},
{'d', 3},
{'press_a', 2},
{'w', 180},
{'press_b', 1},
{'r', 1},
{'w', 60},
{'press_a', 1},
{'d', 2},
{'press_a', 1},
{'w', 180},
{'press_b', 11}, -- done

{'d', 3}, -- get in position
{'r', 6},
{'d', 7},
{'w', 540},
{'r', 5},
{'u', 7},
{'r', 1},
{'w', 60},
{'y', 30},
{'w', 60}, -- ready to bike //08-BeforeRioluHatch
{'custom1', 98}, -- should take 7013 steps at most to hatch riolu, and we took some steps with the egg already
{'w', 40},
{'save', '10-AfterRioluHatch'},

{'press_b', 1},
{'w', 2400}, -- egg hatches

{'press_a', 1}, -- name riolu
{'w', 240},
{'d', 1},
{'r', 8},
{'d', 1},
{'w', 60},
{'press_a', 1},
{'u', 1},
{'l', 6},
{'press_a', 1},
{'d', 1},
{'r', 2},
{'press_a', 1},
{'r', 1},
{'press_a', 1},
{'l', 5},
{'u', 1},
{'press_a', 1},
{'r', 11},
{'u', 1},
{'w', 60},
{'press_a', 1},
{'w', 360}, -- done
{'lf', 170}, -- align //09-AfterRioluHatch


{'w', 60}, -- go to daycare
{'y', 30},
{'d', 7},
{'l', 5},
{'u', 2},
{'w', 540}, -- done


{'u', 5}, -- put haunter in daycare
{'w', 60},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 240},
{'d', 1},
{'press_a', 2},
{'w', 240},
{'press_a', 1},
{'press_b', 14},
{'d', 7},
{'w', 540},
{'r', 6},
{'u', 7},
{'l', 2},
{'r', 1},
{'w', 60},
{'y', 30},
{'w', 60}, -- done
{'save', '11-BeforeHaunterDaycare'},

{'custom1', 165}, -- train haunter to level 38, minimum for sucker punch to do 15 damage
{'w', 30},
{'save', '12-AfterHaunterDaycare'},

{'w', 60}, -- go retrieve haunter
{'y', 30},
{'w', 60},
{'d', 7},
{'l', 5},
{'u', 2},
{'w', 540},
{'u', 5},
{'w', 60},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 180},
{'press_b', 1},
{'w', 180},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 180},
{'press_b', 12}, -- done

{'l', 6}, -- grab togekiss from pc
{'u', 3},
{'w', 60},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 180},
{'d', 2},
{'press_a', 1},
{'w', 240},
{'r', 4},
{'w', 60},
{'press_a', 2},
{'w', 60},
{'d', 5},
{'w', 60},
{'press_a', 1},
{'w', 180},
{'u', 1},
{'l', 1},
{'w', 60},
{'press_a', 2},
{'w', 60},
{'r', 2},
{'w', 180},
{'r', 1},
{'w', 60},
{'press_a', 2},
{'press_b', 14}, -- done

{'d', 3}, -- leave daycare
{'r', 6},
{'d', 7},
{'w', 540}, -- done

{'r', 8}, -- go to the ponyta trainer
{'d', 34},
{'r', 5},
{'d', 9},
{'l', 3},
{'d', 3},
{'w', 60},
{'x', 15},
{'w', 60},
{'press_a', 1},
{'w', 240},
{'d', 2},
{'press_a', 1},
{'d', 1},
{'press_a', 1},
{'u', 2},
{'press_a', 1},
{'w', 240},
{'press_b', 7}, -- idling

{'d', 1}, -- fight
{'w', 240},
{'press_b', 4},
{'w', 1800},
{'press_a', 1},
{'d', 1},
{'r', 1},
{'use_move', 1}, 
{'w', 360},
{'press_b', 2}, -- don't learn dream eater
{'w', 360},
{'press_b', 1},
{'w', 360},
{'press_a', 1},
{'w', 180},
{'press_b', 12}, -- done

{'d', 2}, -- prep self for giga drain
{'w', 180},
{'d', 15},
{'l', 8},
{'u', 6},
{'r', 1},
{'w', 60},
{'press_a', 1},
{'press_b', 10},
{'d', 10},
{'l', 2},
{'d', 4},
{'l', 6},
{'d', 13},
{'r', 7},
{'u', 8},
{'r', 3},
{'u', 1},
{'w', 60},
{'x', 15},
{'w', 60},
{'d', 1},
{'press_a', 1},
{'w', 60},
{'d', 11},
{'u', 34},
{'w', 60},
{'press_a', 2},
{'w', 180},
{'press_b', 9},
{'x', 15},
{'w', 60},
{'u', 1},
{'press_a', 1},
{'w', 60},
{'press_a', 1},
{'d', 1},
{'press_a', 1},
{'r', 1},
{'press_a', 1},
{'w', 240},
{'press_b', 8}, -- done

{'press_a', 5}, -- go grab giga drain
{'w', 360},
{'r', 4},
{'d', 4},
{'r', 11},
{'d', 5},
{'l', 2},
{'w', 60},
{'press_a', 1},
{'press_b', 3},
{'press_a', 1},
{'press_b', 6}, -- done

{'x', 15}, -- go to canalave
{'w', 60},
{'press_a', 1},
{'w', 60},
{'d', 1},
{'press_a', 1},
{'d', 1},
{'press_a', 1},
{'w', 60},
{'l', 16},
{'w', 60},
{'press_a', 1},
{'w', 900},
{'u', 2},
{'w', 540},
{'u', 6},
{'r', 5},
{'u', 3},
{'w', 60},
{'press_a', 1}, -- grab roserade
{'w', 180},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 180},
{'d', 2},
{'press_a', 1},
{'w', 60},
{'r', 1},
{'w', 60},
{'press_a', 1},
{'w', 60},
{'d', 3},
{'press_a', 1},
{'w', 180},
{'press_b', 14},
{'d', 3},
{'l', 5},
{'d', 8},
{'w', 540},
{'r', 4},
{'w', 60}, -- done



{'df', 4000}, -- get past the wanderer 
{'w', 60}, -- go to move deleter
{'u', 22},
{'l', 9},
{'u', 5},
{'w', 540},
{'l', 3},
{'u', 2},
{'w', 60}, -- done

{'press_a', 1}, -- forget surf
{'w', 120},
{'press_a', 1},
{'w', 120},
{'press_a', 1},
{'w', 120},
{'press_a', 1},
{'w', 120},
{'press_a', 1},
{'w', 120},
{'press_a', 1},
{'w', 240},
{'press_a', 1},
{'w', 240},
{'press_a', 1},
{'w', 240},
{'press_a', 1},
{'w', 240},
{'press_a', 1},
{'w', 180},
{'press_b', 13}, -- done

{'press_a', 1}, -- forget cut as well
{'w', 180},
{'press_a', 1},
{'w', 120},
{'press_a', 1},
{'w', 240},
{'d', 2},
{'r', 1},
{'press_a', 1},
{'w', 300},
{'press_a', 1},
{'w', 240},
{'d', 1},
{'press_a', 1},
{'w', 240},
{'press_a', 1},
{'w', 120},
{'press_a', 1},
{'w', 180},
{'press_b', 11}, -- done //10-PreppedForOnix
{'save', '13-PreppedForOnix'},

{'r', 3}, -- go relearn sweet scent like an idiot
{'d', 3},
{'w', 540},
{'x', 15},
{'w', 60},
{'press_a', 1},
{'w', 60},
{'d', 1},
{'press_a', 1},
{'d', 1},
{'press_a', 1},
{'w', 60},
{'r', 18},
{'d', 3},
{'w', 60},
{'press_a', 1},
{'w', 900},
{'l', 7},
{'d', 16},
{'r', 11},
{'d', 6},
{'r', 8},
{'u', 2},
{'w', 540},
{'r', 4},
{'u', 2},
{'r', 2},
{'u', 3},
{'w', 60},
{'press_a', 1},
{'w', 240},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 240},
{'d', 2},
{'r', 1},
{'press_a', 1},
{'w', 240},
{'press_a', 1},
{'w', 240},
{'d', 4},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 240},
{'press_b', 11},
{'d', 3},
{'l', 5},
{'d', 3},
{'w', 540},
{'x', 15}, -- fly to veilstone
{'w', 60},
{'press_a', 1},
{'w', 60},
{'d', 1},
{'press_a', 1},
{'d', 1},
{'press_a', 1},
{'w', 240},
{'r', 3},
{'u', 7},
{'w', 60},
{'press_a', 1},
{'w', 900}, -- done, and also in veilstone

{'x', 15}, -- put haunter in front, give xp share to hippo, and teach haunter giga drain
{'w', 60},
{'press_a', 1},
{'w', 60},
{'r', 1},
{'press_a', 1},
{'d', 2},
{'press_a', 1},
{'d', 1},
{'press_a', 1},
{'w', 60},
{'press_a', 2},
{'d', 1},
{'press_a', 1},
{'l', 1},
{'press_a', 1},
{'w', 240},
{'d', 2},
{'press_a', 1},
{'d', 2},
{'press_a', 2},
{'w', 60},
{'d', 43},
{'u', 1},
{'press_a', 1},
{'w', 240},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 240},
{'press_b', 9},
{'x', 15},
{'w', 60},
{'d', 1},
{'press_a', 1},
{'w', 60},
{'r', 1},
{'w', 60},
{'r', 1},
{'w', 60},
{'r', 1},
{'w', 60},
{'u', 25},
{'d', 3},
{'w', 60},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 120},
{'press_a', 1},
{'w', 120},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 240},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 240},
{'d', 1},
{'press_a', 1},
{'w', 240},
{'press_b', 17}, -- done

{'d', 2}, -- go to maniac tunnel
{'l', 6},
{'d', 6},
{'r', 10},
{'d', 7},
{'w', 60},
{'press_b', 5},
{'d', 14},
{'l', 3},
{'d', 4},
{'w', 540},
{'d', 10},
{'w', 540},
{'d', 24},
{'l', 7},
{'w', 540}, -- done

{'x', 15}, -- roserade below haunter, and rearrange haunter's moves
{'w', 60},
{'u', 1},
{'press_a', 1},
{'w', 60},
{'r', 1},
{'d', 2},
{'press_a', 1},
{'d', 2},
{'press_a', 1},
{'u', 1},
{'l', 1},
{'press_a', 1},
{'w', 300},
{'u', 1},
{'press_a', 2},
{'w', 240},
{'r', 3},
{'press_a', 1},
{'w', 120},
{'d', 1},
{'press_a', 1},
{'u', 1},
{'press_a', 1},
{'d', 3},
{'press_a', 1},
{'u', 2},
{'press_a', 1},
{'w', 60},
{'press_b', 13}, -- done //11-BeforeTrainingHippo
{'save', '14-BeforeTrainingHippo'},

{'x', 15}, -- use repel and get into position
{'w', 60},
{'d', 1},
{'press_a', 1},
{'w', 240},
{'l', 1},
{'w', 60},
{'l', 1},
{'w', 60},
{'l', 1},
{'w', 60},
{'d', 10},
{'u', 35},
{'w', 60},
{'press_a', 2},
{'w', 180},
{'press_b', 10},
{'u', 2},
{'w', 60}, -- done
{'x', 15},
{'w', 60},
{'u', 1},
{'press_b', 3},
{'save', '15-hippo1'},
{'custom7', 10},
{'custom8', 14},
{'custom9', 1}, -- first trip back
{'save', '16-hippo2'},
{'custom7', 10},
{'custom8', 15},
{'custom9', 1}, -- second trip back
{'save', '17-hippo3'},
{'custom7', 10},
{'custom8', 15},
{'custom10', 1}, -- third trip back, refresh the repel 3/7
{'save', '18-hippo4'},
{'custom7', 10},
{'custom8', 15},
{'custom9', 1}, -- fourth trip back
{'save', '19-hippo5'},
{'custom7', 10},
{'custom8', 15},
{'custom9', 1}, -- fifth trip back
{'save', '20-hippo6'},
{'custom7', 10},
{'custom8', 15},
{'custom10', 1}, -- sixth trip back, refresh the repel 6/7
{'save', '21-hippo7'},
{'custom7', 10},
{'custom8', 15},
{'custom9', 1}, -- seventh trip back, we are entering potential stopping rule territory
{'save', '22-hippo8'},
{'custom7', 10},
{'save', '23-hippo9'},
{'custom11', 15},

{'d', 2}, -- do the hokey pokey and go back to veilstone while maintaining cycling on the stopping rule
{'r', 2},
{'w', 540},
{'u', 2},
{'w', 60},
{'x', 15},
{'w', 60},
{'press_a', 1},
{'w', 120},
{'r', 1},
{'d', 2},
{'press_a', 1},
{'w', 240},
{'u', 4},
{'press_a', 1},
{'w', 300},
{'u', 1},
{'press_a', 1},
{'w', 900},
{'u', 2},
{'w', 720},
{'u', 6},
{'w', 180},
{'press_a', 1},
{'w', 240},
{'press_a', 1},
{'w', 240},
{'press_a', 1},
{'w', 240},
{'press_a', 1},
{'w', 1260},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'d', 8},
{'w', 540},
{'d', 2},
{'l', 6},
{'d', 6},
{'r', 10},
{'d', 10},
{'l', 4},
{'d', 12},
{'w', 540},
{'d', 10},
{'w', 540},
{'d', 24},
{'l', 7},
{'w', 540},
{'u', 2},
{'w', 40}, -- done
{'custom12', 10},
{'custom11', 15}, -- done training

{'d', 2}, -- realign 
{'r', 2},
{'u', 1},
{'press_a', 1},
{'w', 60},
{'press_b', 2}, -- aligned 
{'w', 420},
{'press_b', 1},
{'w', 420},
{'press_a', 1},
{'w', 420},
{'press_a', 3},
{'w', 360},
{'press_b', 22}, -- done learning dark pulse //12-AfterTrainingHippo

{'save', '24-AfterTrainingHippo'},
{'d', 2}, -- leave this cavern
{'r', 2},
{'w', 540},
{'x', 15},
{'w', 60},
{'press_a', 1},
{'w', 60},
{'d', 2},
{'r', 1},
{'press_a', 1},
{'d', 1},
{'press_a', 1},
{'w', 240},
{'l', 19},
{'d', 7},
{'w', 60},
{'press_a', 1},
{'w', 1080}, -- done

{'custom1', 15}, -- run out the repel
{'press_b', 12},
{'rf', 400}, -- align
{'w', 60},
{'x', 15}, -- go grab shadow ball tm
{'w', 60},
{'press_a', 1},
{'w', 60},
{'r', 1},
{'d', 2},
{'press_a', 1},
{'d', 1},
{'press_a', 1},
{'w', 240},
{'r', 11},
{'u', 11},
{'w', 60},
{'press_a', 1},
{'w', 1080},
{'r', 5},
{'u', 9},
{'r', 35},
{'d', 4},
{'r', 7},
{'d', 8},
{'r', 6},
{'u', 21},
{'w', 60},
{'y', 30},
{'l', 20},
{'d', 2},
{'l', 2},
{'d', 19},
{'l', 4},
{'w', 60},
{'x', 15},
{'d', 1},
{'press_a', 1},
{'w', 60},
{'r', 1},
{'w', 60},
{'r', 1},
{'w', 60},
{'r', 1},
{'w', 60},
{'d', 33},
{'u', 2},
{'press_a', 2},
{'w', 180},
{'press_a', 1},
{'w', 120},
{'press_a', 1},
{'w', 60},
{'press_a', 1},
{'w', 240},
{'r', 1},
{'d', 1},
{'press_a', 1},
{'w', 180},
{'press_b', 1},
{'w', 180},
{'press_b', 1},
{'w', 180},
{'x', 40},
{'press_a', 8},
{'l', 5},
{'w', 60},
{'press_a', 1},
{'press_a', 10}, -- done

{'x', 15}, -- go to veilstone department store
{'w', 60},
{'u', 1},
{'press_a', 1},
{'w', 60},
{'d', 2},
{'r', 1},
{'press_a', 1},
{'d', 1},
{'press_a', 1},
{'w', 240},
{'r', 6},
{'d', 2},
{'w', 60},
{'press_a', 1},
{'w', 900},
{'l', 6},
{'u', 7},
{'r', 8},
{'u', 4},
{'l', 15},
{'d', 2},
{'l', 5},
{'u', 2},
{'w', 540},
{'u', 2},
{'r', 4},
{'u', 3},
{'l', 2},
{'w', 540},
{'l', 2},
{'u', 5},
{'l', 1},
{'w', 60}, -- done

{'w', 60},
{'press_a', 1}, -- start selling items
{'w', 180},
{'d', 1},
{'press_a', 1},
{'w', 240},
{'l', 1},
{'w', 60},
{'l', 1},
{'w', 60},
{'l', 1},
{'w', 60},
{'u', 25}, -- aligned
{'press_a', 1},
{'w', 180},
{'d', 1},
{'press_a', 1}, -- sell 
{'w', 180},
{'press_a', 1}, -- sell honey
{'w', 180},
{'press_a', 2},
{'w', 180},
{'press_a', 1}, -- sell stardust
{'w', 180},
{'press_a', 2},
{'w', 180},
{'press_a', 1}, -- sell soothe
{'w', 180},
{'press_a', 2},
{'w', 180},
{'press_a', 1}, -- sell draco
{'w', 180},
{'press_a', 2},
{'w', 180},
{'press_a', 1}, -- sell disc
{'w', 180},
{'press_a', 2},
{'w', 180},
{'press_a', 1}, -- sell powder
{'w', 180},
{'press_a', 2},
{'w', 180},
{'u', 3},
{'press_a', 1}, -- sell pearls
{'w', 180},
{'press_a', 1},
{'w', 180},
{'press_a', 1}, -- idling
{'d', 2}, -- keep selling
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'d', 1},
{'press_a', 1},
{'w', 180},
{'u', 2},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'d', 1},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'d', 1},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'d', 1},
{'press_a', 1},
{'w', 180},
{'u', 3},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 180},
{'press_a', 2},
{'w', 120},
{'press_a', 1},
{'w', 120},
{'press_a', 2},
{'w', 60},
{'press_a', 1},
{'w', 60},
{'press_a', 2},
{'w', 60},
{'press_a', 1},
{'w', 60},
{'press_a', 1},
{'w', 60},
{'press_a', 1},
{'w', 60},
{'press_a', 1},
{'w', 60},
{'press_a', 1},
{'d', 1},
{'press_a', 1},
{'w', 60},
{'press_a', 1},
{'w', 60},
{'press_a', 1}, -- done

{'press_a', 1}, -- finish selling the normal items
{'w', 60},
{'press_a', 1},
{'w', 60},
{'press_a', 1},
{'w', 60},
{'press_a', 1},
{'w', 60},
{'press_a', 1},
{'w', 60},
{'press_a', 1},
{'w', 60},
{'press_a', 1},
{'w', 60},
{'press_a', 1},
{'w', 60},
{'press_a', 1},
{'w', 60},
{'press_a', 1},
{'w', 60},
{'press_a', 1},
{'w', 60},
{'press_a', 1},
{'w', 60},
{'press_a', 1},
{'w', 60},
{'press_a', 1},
{'w', 60},
{'press_a', 1},
{'w', 60},
{'d', 2},
{'press_a', 1},
{'w', 60},
{'press_a', 1},
{'w', 60},
{'press_a', 1},
{'d', 2},
{'press_a', 1},
{'w', 60},
{'press_a', 1},
{'w', 60},
{'press_a', 1},
{'w', 60},
{'press_a', 1},
{'w', 60},
{'press_a', 1},
{'w', 60},
{'press_a', 1},
{'d', 1},
{'press_a', 1},
{'w', 60},
{'press_a', 1},
{'w', 60},
{'press_a', 1},
{'d', 5}, -- done
{'press_b', 11}, -- leave this wretched shop
{'save', '25-AfterShopping'},

{'r', 5}, -- breakpoint  // fix issues with money and not having protect TMs pre-item selloff
{'u', 2},
{'r', 6},
{'d', 6},
{'l', 2},
{'w', 540},
{'l', 3},
{'u', 3},
{'w', 60},
{'press_a', 1},
{'w', 240},
{'press_a', 1},
{'w', 240},
{'d', 1},
{'w', 60},
{'press_a', 1},
{'w', 180},
{'u', 2},
{'w', 120},
{'u', 1},
{'w', 60},
{'press_a', 1},
{'w', 240},
{'press_a', 1},
{'w', 180},
{'press_b', 16}, -- done
{'d', 3}, -- align with main sequence
{'r', 5},
{'w', 540},
{'u', 6},
{'l', 7},
{'d', 4},
{'l', 2},
{'d', 3},
{'r', 2},
{'w', 540}, -- done

{'d', 3}, -- go to sunyshore to face volkner
{'l', 4},
{'d', 4},
{'w', 540}, 
{'x', 15},
{'w', 60},
{'press_a', 1},
{'w', 60},
{'r', 1},
{'d', 2},
{'press_a', 1},
{'d', 1},
{'press_a', 1},
{'w', 240},
{'r', 5},
{'d', 5},
{'w', 60},
{'press_a', 1},
{'w', 900},
{'u', 2},
{'w', 540}, -- grab infernape out of pc
{'u', 6},
{'r', 5},
{'u', 3},
{'w', 60},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 60},
{'d', 2},
{'press_a', 1},
{'w', 240},
{'r', 5},
{'w', 60},
{'press_a', 2},
{'w', 60},
{'d', 4},
{'l', 2},
{'d', 1},
{'w', 60},
{'press_a', 1},
{'w', 180},
{'press_a', 2},
{'w', 60},
{'press_b', 1},
{'w', 180},
{'r', 1},
{'w', 60},
{'press_a', 2},
{'press_b', 13}, -- done

{'x', 15}, -- use grepa berry and protein to give hippo +10 attack EVs, guarenteeing at least the magic 52 needed for volkner
{'w', 60},
{'d', 1},
{'press_a', 1},
{'w', 240},
{'r', 1},
{'w', 60},
{'r', 1},
{'w', 60},
{'r', 2},
{'w', 60},
{'r', 1},
{'w', 60},
{'d', 31},
{'u', 1},
{'press_a', 1},
{'d', 1},
{'press_a', 1},
{'w', 240},
{'d', 2},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 120},
{'press_a', 1},
{'w', 240},
{'l', 1},
{'w', 60},
{'l', 1},
{'w', 60},
{'l', 1},
{'w', 60},
{'d', 21},
{'u', 2},
{'press_a', 2},
{'w', 240},
{'press_a', 1},
{'w', 180},
{'press_b', 11}, -- done

{'d', 3}, -- return to volkner's gym
{'l', 5},
{'u', 1},
{'w', 60},
{'press_a', 6},
{'press_b', 21},
{'d', 8},
{'w', 540},
{'l', 6},
{'u', 17},
{'l', 5},
{'u', 7},
{'r', 19},
{'u', 13},
{'l', 25},
{'u', 5},
{'w', 540}, -- done

{'u', 6}, -- navigate the entire gym
{'r', 6},
{'w', 120},
{'d', 4},
{'l', 6},
{'u', 4},
{'l', 6},
{'w', 120},
{'r', 6},
{'u', 7},
{'w', 540},
{'u', 4},
{'l', 4},
{'u', 5},
{'w', 120},
{'l', 2},
{'r', 2},
{'w', 120},
{'u', 2},
{'d', 2},
{'w', 120},
{'r', 6},
{'d', 7},
{'l', 7},
{'d', 3},
{'l', 4},
{'u', 18},
{'r', 5},
{'d', 5},
{'w', 120},
{'r', 6},
{'w', 180},
{'d', 6},
{'r', 4},
{'d', 3},
{'r', 2},
{'u', 11},
{'l', 7},
{'u', 4},
{'w', 540},
{'u', 7},
{'r', 6},
{'w', 180},
{'d', 4},
{'l', 6},
{'u', 4},
{'l', 6},
{'w', 180},
{'d', 8},
{'l', 5},
{'u', 22},
{'r', 5},
{'d', 5},
{'w', 180},
{'r', 2},
{'l', 2},
{'w', 180},
{'d', 6},
{'r', 6},
{'u', 6},
{'r', 6},
{'d', 6},
{'w', 180},
{'u', 9},
{'r', 5},
{'d', 21},
{'l', 4},
{'u', 5},
{'l', 2},
{'u', 4},
{'w', 180},
{'d', 5},
{'r', 2},
{'d', 4},
{'r', 4},
{'u', 21},
{'l', 5},
{'d', 4},
{'l', 6},
{'u', 4},
{'w', 60}, -- done //13-BeforeVolkner
{'save', '26-BeforeVolkner'},
{'x', 15}, -- get everyone's items in order
{'w', 60},
{'u', 1},
{'press_a', 1},
{'w', 60},
{'d', 2},
{'press_a', 1},
{'d', 2},
{'press_a', 1},
{'d', 1},
{'press_a', 1},
{'w', 240},
{'press_a', 2},
{'d', 1},
{'press_a', 1},
{'u', 2},
{'press_a', 1},
{'w', 240},
{'press_a', 1},
{'d', 2},
{'press_a', 2},
{'w', 60},
{'r', 1},
{'w', 60},
{'r', 1},
{'w', 60},
{'r', 1},
{'w', 60},
{'d', 13},
{'u', 19},
{'w', 60},
{'press_a', 1},
{'w', 240},
{'press_a', 1},
{'r', 1},
{'d', 1},
{'press_a', 1},
{'d', 3},
{'press_a', 2},
{'w', 60},
{'l', 1},
{'w', 60},
{'l', 1},
{'w', 60},
{'l', 1},
{'w', 60},
{'l', 1},
{'w', 60},
{'d', 13},
{'u', 5},
{'press_a', 1},
{'w', 240},
{'press_a', 1},
{'w', 60},
{'press_b', 9}, -- done

{'x', 15}, -- teach everyone protect
{'w', 60},
{'d', 1},
{'press_a', 1},
{'w', 60},
{'r', 1},
{'w', 60},
{'r', 1},
{'w', 60},
{'r', 1},
{'w', 60},
{'u', 32},
{'d', 2},
{'press_a', 2},
{'w', 120},
{'press_a', 1},
{'w', 120},
{'press_a', 1},
{'w', 120},
{'press_a', 1},
{'w', 60},
{'r', 1},
{'press_a', 1},
{'w', 120},
{'press_a', 1},
{'w', 240},
{'press_a', 2},
{'w', 120},
{'press_a', 1},
{'w', 120},
{'press_a', 1},
{'w', 120},
{'press_a', 1},
{'w', 240},
{'l', 1},
{'d', 1},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 60},
{'d', 3},
{'press_a', 1},
{'w', 300},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 240},
{'press_a', 2},
{'w', 120},
{'press_a', 1},
{'w', 120},
{'press_a', 1},
{'w', 120},
{'press_a', 1},
{'w', 240},
{'d', 1},
{'press_a', 1},
{'w', 240},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 240},
{'d', 1},
{'press_a', 1},
{'w', 240},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 240},
{'press_b', 9}, -- done //14-PreppedForVolkner
{'save', '27-PreppedForVolkner'},
{'x', 15}, -- oops, lets just get the xp share and amulet coin on there
{'w', 60},
{'u', 1},                                             
{'press_a', 1},
{'w', 60},
{'r', 1},
{'press_a', 1},
{'d', 2},
{'press_a', 1},
{'d', 1},
{'press_a', 1},                                              
{'w', 240},
{'press_a', 1},
{'w', 60},
{'press_a', 1},
{'d', 2},
{'press_a', 2},
{'w', 240},
{'l', 1},
{'w', 60},
{'l', 1},
{'w', 60},
{'l', 1},
{'w', 60},
{'d', 11},
{'u', 1},
{'press_a', 1},
{'w', 240},
{'press_a', 1},
{'w', 240},
{'d', 2},
{'press_a', 1},
{'w', 240},
{'d', 2},
{'press_a', 1},
{'w', 60},
{'press_a', 1},
{'w', 60},
{'d', 5},
{'u', 3},
{'press_a', 1},
{'w', 240},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 240},
{'press_a', 1},
{'press_b', 7}, -- done

{'u', 2}, -- start the battle
{'w', 60},
{'press_a', 1},
{'w', 180},
{'press_b', 16},
{'w', 1800}, -- done
-- -- -- -- //VOLKNER
{'u', 1},
{'press_a', 1}, -- do first section of the battle, earthquake the jolteon, then barb the raichu
{'r', 1},
{'use_move', 1}, -- use earthquake
{'w', 360},
{'press_a', 2},
{'w', 480},
{'press_a', 2},
{'w', 460},
{'press_a', 5},
{'w', 240},
{'d', 1}, -- realign shift screen // handle pastoria alt
{'press_a', 1},
{'r', 2},
{'press_a', 1},
{'d', 2},
{'r', 3},
{'press_a', 1},
{'w', 60},
{'l', 2},
{'u', 2},
{'press_b', 1}, -- sync
{'r', 1},
{'d', 1},
{'press_a', 2},
{'w', 1800}, -- send out riolu
{'press_a', 1},
{'r', 1},
{'use_move', 1}, -- attempt to use foresight
{'r', 1},
{'d', 1},
{'press_a', 2},
{'w', 1440}, -- send out hippo
{'press_a', 1},
{'r', 1},
{'d', 1},
{'use_move', 1}, -- protect ourselves
{'r', 1},
{'press_a', 1},
{'w', 240},
{'d', 2},
{'press_a', 2},
{'w', 1800}, -- send out haunter
{'press_a', 1},
{'r', 1},
{'use_move', 1}, -- use protect
{'r', 1},
{'press_a', 1},
{'w', 60},
{'d', 1},
{'press_a', 2},
{'w', 2160}, -- switch out roserade
{'press_a', 1},
{'r', 1},
{'use_move', 1}, -- use toxic spikes
{'press_a', 1},
{'d', 1},
{'use_move', 1}, -- use protect
{'r', 1},
{'press_a', 1},
{'w', 60},
{'d', 1},
{'press_a', 2},
{'w', 2520}, -- switch out haunter // potentially confused, cannot protect
{'r', 1},
{'press_a', 1},
{'w', 60},
{'d', 2},
{'press_a', 2},
{'w', 2160}, -- switch out hippo
{'r', 1},
{'press_a', 1},
{'w', 60},
{'d', 2},
{'press_a', 2},
{'w', 2160}, -- switch out haunter
{'press_a', 1},
{'r', 1},
{'d', 1},
{'use_move', 1}, -- sucker punch to take back the sticky barb
{'w', 720},
{'press_a', 15},
{'d', 1}, -- realign shift screen // pastoria alt
{'press_a', 1},
{'r', 2},
{'press_a', 1},
{'d', 2},
{'r', 3},
{'press_a', 1},
{'w', 60},
{'l', 2},
{'u', 2},
{'press_b', 1}, -- sync
{'w', 240},

{'r', 1},
{'press_a', 2}, -- send out vaporeon
{'w', 2160},
{'r', 1},
{'press_a', 1},
{'w', 240},
{'d', 2},
{'press_a', 2},
{'w', 2160}, -- send out hippowdon
{'press_a', 1},
{'r', 1},
{'d', 1},
{'use_move', 1}, -- hippowdon uses protect
{'r', 1},
{'press_a', 1},
{'w', 240},
{'r', 1},
{'d', 2},
{'press_a', 2},
{'w', 2520}, -- send out infernape
{'r', 1},
{'press_a', 1},
{'w', 240},
{'r', 1},
{'d', 2},
{'press_a', 2},
{'w', 2160}, -- send out hippowdon
{'press_a', 1},
{'r', 1},
{'d', 1},
{'use_move', 1}, -- use protect

{'press_a', 1},
{'u', 1},
{'l', 1}, 
{'use_move', 1}, -- use yawn
{'press_a', 1},
{'r', 1},
{'d', 1},
{'use_move', 1}, -- use protect
{'press_a', 1},
{'u', 1},
{'use_move', 1}, -- use earthquake
{'w', 1620},
{'r', 1},
{'press_a', 1},
{'w', 240},
{'d', 2},
{'press_a', 2},
{'w', 2880},
{'r', 1},
{'press_a', 1},
{'w', 240},
{'d', 2},
{'press_a', 2},
{'w', 2520},
{'press_b', 27},
{'press_a', 1},
{'r', 1},
{'d', 1},
{'use_move', 1},
{'press_a', 1},
{'u', 1},
{'use_move', 1},
{'press_b', 56}, -- done //15-AfterVolkner
{'save', '28-AfterVolkner'},
{'d', 5}, -- leave the gym
{'r', 6},
{'u', 4},
{'r', 5},
{'d', 21},
{'l', 10},
{'d', 2},
{'w', 540},
{'r', 7},
{'d', 13},
{'l', 2},
{'u', 3},
{'l', 4},
{'d', 9},
{'l', 3},
{'d', 2},
{'w', 540},
{'d', 5},
{'l', 6},
{'w', 120},
{'l', 1},
{'r', 2},
{'w', 120},
{'l', 2},
{'r', 2},
{'w', 120},
{'r', 5},
{'d', 8},
{'w', 540},
{'d', 3},
{'r', 25},
{'d', 14},
{'w', 60},
{'l', 13},
{'u', 8},
{'l', 2},
{'u', 15},
{'w', 240},
{'press_b', 66}, -- done

{'d', 22}, -- go to pokecenter
{'l', 6},
{'d', 7},
{'r', 5},
{'d', 17},
{'r', 6},
{'u', 3},
{'w', 540},
{'pokecenter_heal', 1}, -- heal
{'press_b', 6},
{'r', 5}, -- go put riolu and others away
{'u', 3},
{'w', 60},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 180},
{'d', 2},
{'press_a', 1},
{'w', 240},
{'r', 1},
{'w', 60},
{'press_a', 2},
{'w', 60},
{'d', 5},
{'w', 60},
{'press_a', 1},
{'w', 180},
{'u', 1},
{'w', 60},
{'press_a', 2},
{'w', 60},
{'r', 1},
{'w', 120},
{'r', 1},
{'w', 60},
{'press_a', 2},
{'w', 60},
{'r', 1},
{'w', 60},
{'press_a', 2},
{'w', 60},
{'d', 5},
{'w', 60},
{'press_a', 1},
{'w', 180},
{'l', 1},
{'w', 60},
{'press_a', 2},
{'w', 60},
{'r', 2},
{'w', 60},
{'r', 2},
{'w', 60},
{'press_a', 2},
{'w', 60},
{'r', 1},
{'w', 60},
{'press_a', 2},
{'w', 60},
{'d', 5},
{'w', 60},
{'press_a', 1},
{'w', 180},
{'u', 2},
{'l', 1},
{'w', 60},
{'press_a', 2},
{'w', 60},
{'r', 2},
{'w', 60},
{'r', 4},
{'w', 60},
{'press_a', 2}, -- done

{'w', 60}, -- release riolu
{'l', 3},
{'w', 60},
{'press_a', 1},
{'w', 60},
{'d', 5},
{'press_a', 1},
{'w', 120},
{'u', 1},
{'press_a', 1},
{'w', 240},
{'press_a', 1},
{'w', 120},
{'press_a', 1},
{'w', 120},
{'press_b', 15}, -- done //16-PreppingForVictory
{'save', '29-PreppingForVictory'},
{'d', 3}, -- go to canalave
{'l', 5},
{'d', 8},
{'w', 540},
{'x', 15},
{'w', 60},
{'press_a', 1},
{'w', 60},
{'r', 1},
{'d', 1},
{'press_a', 1},
{'d', 1},
{'press_a', 1},
{'w', 60},
{'l', 25},
{'u', 2},
{'w', 60},
{'press_a', 1},
{'w', 900},
{'r', 4},
{'w', 60}, -- done

{'df', 4800}, -- get past the wanderer 
{'w', 60}, -- go to move deleter
{'u', 22},
{'l', 9},
{'u', 5},
{'w', 540},
{'l', 3},
{'u', 2},
{'w', 60}, -- done

{'w', 60}, -- delete a move off golduck so we can teach it waterfall
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 120},
{'press_a', 1},
{'w', 120},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 240},
{'d', 2},
{'press_a', 1},
{'w', 240},
{'press_a', 1},
{'w', 240},
{'d', 1},
{'w', 60},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 240},
{'press_a', 1}, -- done

{'r', 3}, -- item management and go to sunyshore
{'d', 3},
{'w', 540},
{'x', 15},
{'w', 60},
{'press_a', 1},
{'w', 60},
{'r', 1},
{'w', 60},
{'press_a', 1},
{'d', 2},
{'press_a', 1},
{'d', 1},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'l', 1},
{'d', 1},
{'press_a', 1},
{'d', 2},
{'press_a', 1},
{'d', 1},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 60},
{'press_a', 1},
{'d', 2},
{'press_a', 2},
{'w', 240},
{'d', 22},
{'u', 2},
{'press_a', 1},
{'w', 240},
{'press_a', 1},
{'r', 1},
{'press_a', 1},
{'d', 1},
{'press_a', 1},
{'w', 240},
{'r', 25},
{'d', 1},
{'w', 60},
{'press_a', 1},
{'w', 900}, -- done

{'x', 15}, -- teach waterfall
{'w', 60},
{'d', 1},
{'press_a', 1},
{'w', 60},
{'r', 1},
{'w', 60},
{'r', 1},
{'w', 60},
{'r', 1},
{'w', 60},
{'d', 40},
{'u', 2},
{'w', 60},
{'press_a', 2},
{'w', 120},
{'press_a', 1},
{'w', 120},
{'press_a', 1},
{'w', 120},
{'press_a', 1},
{'w', 240},
{'d', 2},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'press_b', 11}, -- done


{'l', 6}, -- go to the water
{'u', 17},
{'l', 5},
{'u', 6},
{'r', 6},
{'u', 21},
{'l', 2},
{'u', 7},
{'w', 60}, -- done

{'u', 1}, -- use a repel
{'w', 60},
{'x', 15},
{'w', 60},
{'press_a', 1},
{'w', 240},
{'l', 1},
{'w', 60},
{'l', 1},
{'w', 60},
{'l', 1},
{'w', 60},
{'u', 23},
{'press_a', 2},
{'w', 180},
{'press_a', 1},
{'w', 60},
{'press_b', 8}, -- done

{'press_a', 5}, -- go grab a heart scale
{'w', 360},
{'u', 9},
{'l', 6},
{'w', 120},
{'press_a', 1},
{'w', 60},
{'press_b', 7}, -- done

{'l', 1}, -- go to first trainer
{'u', 2},
{'w', 60},
{'press_a', 4},
{'w', 360},
{'l', 4},
{'u', 3},
{'w', 360}, -- mind the repel quantum step
{'press_b', 15},
{'w', 1800}, -- fight lumineon trainer
{'r', 1},
{'press_a', 1},
{'w', 240},
{'r', 1},
{'press_a', 2},
{'w', 1800},
{'press_a', 1},
{'use_move', 1},
{'press_a', 1},
{'d', 1},
{'use_move', 1},
{'press_a', 1},
{'r', 1},
{'use_move', 2},
{'press_a', 1},
{'u', 1},
{'use_move', 1},
{'d', 1},
{'press_a', 2},
{'w', 1800},
{'press_a', 1},
{'use_move', 1},
{'press_b', 25}, -- done
{'w', 1200},

{'u', 6}, -- fight mantyke guy
{'l', 2},
{'u', 15},
{'r', 2},
{'u', 6},
{'w', 60},
{'x', 15},
{'w', 60},
{'u', 1},
{'press_a', 1},
{'w', 60},
{'r', 1},
{'d', 2},
{'press_a', 1},
{'d', 1},
{'press_a', 1},
{'u', 2},
{'l', 1},
{'press_a', 1},
{'w', 180},
{'press_b', 8},
{'u', 1},
{'w', 180},
{'press_b', 7},
{'w', 1800}, -- idling at start of fight

{'press_a', 1}, -- do the fight
{'use_move', 1},
{'press_a', 1},
{'w', 240},
{'d', 1},
{'press_a', 2},
{'w', 1800},
{'press_a', 1},
{'use_move', 1},
{'press_a', 1},
{'w', 240},
{'d', 1},
{'press_a', 2},
{'w', 1800},
{'press_a', 1},
{'use_move', 1},
{'press_b', 13}, -- done
{'x', 15}, -- put azelf back in front
{'w', 60},
{'press_a', 1},
{'w', 60},
{'r', 1},
{'d', 2},
{'press_a', 1},
{'d', 1},
{'press_a', 1},
{'u', 2},
{'l', 1},
{'press_a', 1},
{'w', 240},
{'press_b', 7}, -- done

{'u', 8}, -- go through the next section of water
{'r', 10},
{'u', 7},
{'l', 8},
{'u', 12},
{'l', 7},
{'u', 4},
{'l', 3},
{'u', 7},
{'r', 6},
{'u', 2},
{'r', 2},
{'u', 2},
{'r', 3},
{'u', 5},
{'l', 4},
{'u', 3},
{'w', 120},
{'l', 5},
{'d', 1},
{'w', 60},
{'press_a', 5},
{'w', 240},
{'l', 5},
{'u', 2},
{'w', 120},
{'u', 9},
{'r', 7},
{'u', 1},
{'w', 60}, -- done, still at 1 step desync

{'press_a', 4}, -- fight golduck trainer
{'w', 360},
{'u', 4},
{'w', 60},
{'press_a', 4},
{'w', 1800},
{'press_a', 1},
{'use_move', 1},
{'press_b', 14},
{'l', 3},
{'u', 8},
{'w', 60}, -- done

{'u', 3}, -- go to next guy
{'w', 60},
{'press_a', 5},
{'w', 540},
{'u', 9}, -- idling
{'w', 30},

{'x', 15}, -- teach vaporeon ice beam
{'w', 60},
{'d', 1},
{'press_a', 1},
{'w', 240},
{'r', 1},
{'w', 60},
{'r', 1},
{'w', 60},
{'r', 1},
{'w', 60},
{'u', 43},
{'d', 1},
{'press_a', 2},
{'w', 120},
{'press_a', 1},
{'w', 120},
{'press_a', 1},
{'w', 120},
{'press_a', 1},
{'w', 240},
{'r', 1},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 120},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 120},
{'press_a', 1},
{'w', 240},
{'d', 3},
{'w', 60},
{'press_a', 1},
{'w', 240},
{'press_b', 18}, -- done
{'u', 1}, -- start fight with gyarados guy
{'w', 720},
{'press_b', 27},
{'w', 1260}, -- idling

{'r', 2}, -- send out vaporeon
{'w', 60},
{'press_a', 1},
{'w', 60},
{'r', 1},
{'press_a', 2},
{'w', 1800}, -- done
{'press_a', 1}, -- vaporeon completely walls gyarados, it only knows aqua tail and hydro pump as attacks
{'r', 1},
{'d', 1},
{'use_move', 5}, -- just ice beam it 
{'press_b', 19}, -- done

{'u', 3}, -- go to waterfall
{'r', 6},
{'u', 16},
{'w', 60},
{'press_a', 5}, -- up we go
{'w', 420}, -- weeee
{'u', 3},
{'w', 60},
{'r', 10},
{'l', 5},
{'r', 4},
{'w', 60},
{'press_b', 5}, -- cancel out of repel text
{'r', 14}, -- align
{'w', 60},
{'l', 14},
{'u', 3},
{'w', 540},
{'pokecenter_heal', 1}, -- heal
{'press_b', 6}, -- done
{'d', 8},
{'w', 540}, -- idling in pokemon league //17-PokemonLeague
{'save', '30-PokemonLeague'},
{'x', 15}, -- go buy an awakening
{'w', 60},
{'u', 1},
{'press_a', 1},
{'w', 240},
{'r', 1},
{'d', 1},
{'press_a', 1},
{'d', 1},
{'press_a', 1},
{'w', 240},
{'l', 3},
{'d', 6},
{'r', 3},
{'w', 60},
{'press_a', 1},
{'w', 1260},
{'l', 6},
{'u', 17},
{'l', 3},
{'u', 2},
{'w', 540},
{'u', 4},
{'w', 60},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 240},
{'d', 11},
{'w', 60},
{'press_a', 1},
{'w', 240},
{'u', 1},
{'press_a', 1},
{'w', 240},
{'press_a', 1},
{'w', 180},
{'press_b', 12}, -- done
{'d', 6},
{'w', 540},
{'x', 15}, -- return to pokemon league
{'w', 60}, 
{'press_a', 1},
{'w', 60},
{'r', 1},
{'d', 1},
{'press_a', 1},
{'d', 1},
{'press_a', 1},
{'w', 240},
{'u', 6},
{'w', 60},
{'press_a', 1},
{'w', 900},
{'u', 2},
{'w', 540},
{'r', 6},
{'u', 9},
{'l', 2},
{'u', 1},
{'w', 60}, -- done

{'w', 60}, -- grab hippo back from PC and put azelf in
{'press_a', 1},
{'w', 180},
{'press_a', 2},
{'w', 180},
{'press_a', 1},
{'w', 180},
{'d', 2},
{'press_a', 1},
{'w', 240},
{'r', 4},
{'w', 60},
{'press_a', 2},
{'w', 60},
{'d', 4},
{'l', 1},
{'d', 1},
{'w', 60},
{'press_a', 1},
{'w', 120},
{'u', 2},
{'l', 1},
{'w', 60},
{'press_a', 2},
{'w', 120},
{'r', 2},
{'w', 120},
{'r', 1},
{'w', 60},
{'press_a', 2},
{'w', 60},
{'press_b', 12},
{'d', 3},
{'l', 5},
{'d', 8},
{'w', 540}, -- done
{'r', 10}, -- into victory road
{'u', 3},
{'w', 540},
{'x', 15}, -- use repel
{'w', 60},
{'d', 1},
{'press_a', 1},
{'w', 240},
{'l', 1},
{'w', 60},
{'l', 1},
{'w', 60},
{'l', 1},
{'w', 60},
{'u', 6},
{'press_a', 2},
{'w', 120},
{'press_b', 7}, -- done
{'u', 14}, --- go to first trainer
{'r', 5},
{'u', 2},
{'r', 15},
{'u', 16},
{'r', 4},
{'d', 1},
{'w', 60},
{'press_a', 4},
{'w', 360},
{'d', 1},
{'l', 12},
{'d', 3},
{'l', 13},
{'u', 14},
{'l', 3},
{'w', 60},
{'x', 15},
{'w', 60},
{'u', 1},
{'press_a', 1},
{'w', 240},
{'press_a', 1},
{'d', 1},
{'press_a', 1},
{'r', 1},
{'press_a', 1},
{'w', 240},
{'press_a', 1},
{'d', 2},
{'press_a', 1},
{'d', 1},
{'press_a', 1},
{'w', 180},
{'press_a', 2},
{'d', 2},
{'press_a', 2},
{'w', 240},
{'d', 22},
{'u', 3},
{'press_a', 1},
{'w', 240},
{'press_a', 1},
{'l', 1},
{'d', 2},
{'press_a', 1},
{'d', 6},
{'press_a', 1},
{'d', 1},
{'press_a', 1},
{'w', 120},
{'press_b', 9}, -- done //18-BeforeFirstTrainer
{'save', '31-BeforeFirstTrainer'},
{'l', 1}, -- do battle vs blissey guy
{'w', 300},
{'press_b', 6},
{'w', 1800},
{'press_a', 1},
{'use_move', 1},
{'press_a', 1},
{'d', 1},
{'use_move', 1},
{'press_a', 1},
{'u', 1},
{'r', 1},
{'press_a', 1},
{'w', 420},
{'r', 1},
{'press_a', 2},
{'w', 1800},
{'d', 1},
{'press_a', 1},
{'w', 240},
{'r', 2},
{'d', 2},
{'press_a', 2},
{'w', 240},
{'r', 1},
{'d', 1},
{'press_a', 1},
{'w', 60},
{'d', 1},
{'press_a', 2},
{'w', 1800},
{'press_a', 4},
{'w', 1800},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'r', 1},
{'press_a', 2},
{'w', 1800},
{'press_a', 1},
{'w', 180},
{'press_a', 3},
{'w', 1800}, -- done setting up

{'press_a', 1}, -- use awakening in case substitute broke and we got sing'ed 
{'w', 180},
{'u', 1},
{'l', 1},
{'d', 1},
{'press_a', 1},
{'w', 60},
{'press_a', 2},
{'w', 240},
{'press_a', 1},
{'w', 1500},
{'press_b', 20}, -- done

{'u', 1}, -- slam 3 earthquakes
{'press_a', 1},
{'r', 1},
{'use_move', 1},
{'press_b', 24},
{'use_move', 1},
{'press_b', 18},
{'use_move', 1},
{'press_b', 18}, -- done //19-AfterFirstTrainer
{'save', '32-AfterFirstTrainer'},
{'l', 2}, -- go upstairs and teach infernape strength
{'u', 7},
{'l', 7},
{'w', 540},
{'l', 4},
{'d', 3},
{'w', 60},
{'press_a', 5},
{'w', 240},
{'d', 3},
{'r', 2},
{'d', 7},
{'w', 60},
{'x', 15},
{'w', 60},
{'d', 1},
{'press_a', 1},
{'w', 240},
{'r', 1},
{'w', 60},
{'r', 1},
{'w', 60},
{'r', 1},
{'w', 60},
{'d', 36},
{'u', 5},
{'press_a', 2},
{'w', 120},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 240},
{'r', 1},
{'d', 2},
{'press_a', 2},
{'w', 120},
{'press_a', 1},
{'w', 120},
{'press_a', 1},
{'w', 120},
{'press_a', 1},
{'w', 240},
{'press_a', 1},
{'w', 120},
{'press_a', 1},
{'w', 120},
{'press_a', 1},
{'w', 120},
{'press_a', 1},
{'w', 120},
{'press_a', 1},
{'w', 120},
{'press_a', 1},
{'press_b', 9}, -- done

{'w', 60}, -- go fight mamoswine guy // roserade outspeed mamo by 1, and petal dance OHKOs even without miracle seed
{'press_a', 5},
{'w', 240},
{'press_b', 6},
{'d', 1},
{'w', 60},
{'d', 1},
{'l', 2},
{'w', 60},
{'l', 1},
{'d', 2},
{'w', 60},
{'d', 1},
{'l', 2},
{'d', 3},
{'l', 10},
{'w', 60},
{'x', 15},
{'w', 60},
{'u', 1},
{'press_a', 1},
{'w', 240},
{'d', 1},
{'press_a', 1},
{'d', 1},
{'press_a', 1},
{'u', 1},
{'press_a', 1},
{'w', 240},
{'press_b', 9},
{'l', 1},
{'w', 720},
{'press_b', 5},
{'w', 1800}, -- done, fight started

{'press_a', 1}, -- do the fight, petal dance/flamethrower/petal dance
{'w', 60},
{'use_move', 1},
{'w', 480},
{'press_a', 1},
{'w', 240},
{'r', 1},
{'d', 2},
{'press_a', 2},
{'w', 1800},
{'press_a', 1},
{'d', 1},
{'r', 1},
{'use_move', 1},
{'w', 360},
{'press_a', 2},
{'w', 480},
{'press_a', 1},
{'d', 1}, -- realign shift screen // handle alt pastoria
{'press_a', 1},
{'r', 2},
{'press_a', 1},
{'d', 2},
{'r', 3},
{'press_a', 1},
{'w', 60},
{'l', 2},
{'u', 2},
{'press_b', 1}, -- sync
{'w', 240},
{'r', 1},
{'d', 2},
{'press_a', 2},
{'w', 1440},
{'press_a', 1},
{'use_move', 1},
{'press_b', 24}, -- done

{'d', 1}, -- go to next trainer
{'w', 60},
{'d', 1},
{'w', 60},
{'d', 1},
{'l', 3},
{'d', 3},
{'r', 2},
{'w', 60},
{'press_a', 5},
{'w', 240},
{'r', 1},
{'u', 2},
{'w', 60},
{'u', 1},
{'r', 5},
{'d', 3},
{'w', 60},
{'press_a', 5},
{'w', 120},
{'d', 3},
{'r', 3}, -- done
{'w', 30},
{'x', 15}, -- prep the team for clefable girl
{'w', 60},
{'press_a', 1},
{'w', 240},
{'r', 1},
{'d', 2},
{'press_a', 1},
{'d', 3},
{'press_a', 2},
{'w', 240},
{'l', 1},
{'w', 60},
{'l', 1},
{'w', 60},
{'l', 1},
{'w', 60},
{'d', 15},
{'u', 9},
{'w', 60},
{'press_a', 1},
{'w', 240},
{'press_a', 1},
{'w', 120},
{'press_a', 1},
{'w', 120},
{'press_a', 1},
{'w', 60},
{'u', 1},
{'press_a', 1},
{'d', 3},
{'press_a', 1},
{'d', 1},
{'press_a', 1},
{'w', 120},
{'press_a', 1},
{'w', 120},
{'press_a', 1},
{'d', 3},
{'press_a', 2},
{'w', 240},
{'d', 18},
{'u', 2},
{'w', 60},
{'press_a', 1},
{'w', 120},
{'press_a', 1},
{'d', 1},
{'press_a', 1},
{'d', 2},
{'press_a', 1},
{'u', 2},
{'l', 1},
{'press_a', 1},
{'w', 240},
{'press_b', 9}, -- ready to rock

{'u', 2}, -- begin fight
{'w', 240},
{'press_b', 11},
{'w', 1800}, -- done
{'press_a', 1}, -- close combat the clefable
{'r', 1},
{'d', 1},
{'r', 1},
{'l', 1},
{'use_move', 1},
{'w', 460}, -- done
{'press_a', 1},
{'w', 240},
{'r', 1},
{'d', 2},
{'press_a', 2}, -- torterra will use earthquake vs roserade, we encore it, gg
{'w', 1800},
{'r', 1},
{'press_a', 1},
{'w', 240},
{'r', 1},
{'d', 1},
{'press_a', 2},
{'w', 1800},
{'press_a', 1},
{'r', 1},
{'use_move', 1},
{'d', 1},
{'w', 60},
{'press_a', 1},
{'w', 120},
{'r', 1},
{'d', 1},
{'press_a', 1},
{'w', 120},
{'press_a', 2},
{'w', 1440},
{'u', 1},
{'press_a', 1},
{'d', 1},
{'l', 1},
{'use_move', 3},
{'press_b', 15}, -- done //20-AfterThirdTrainer
{'save', '33-AfterThirdTrainer'},
{'u', 2}, -- grab the tm for torment and then go back to the pokecenter
{'r', 11},
{'d', 2},
{'r', 3},
{'w', 60},
{'r', 1},
{'u', 4},
{'l', 2},
{'u', 9},
{'r', 3},
{'w', 540},
{'r', 15},
{'d', 2},
{'w', 60},
{'press_a', 4},
{'w', 180},
{'d', 2},
{'w', 60},
{'l', 5},
{'w', 60},
{'press_b', 3},
{'x', 15},
{'w', 60},
{'d', 1},
{'press_a', 1},
{'w', 240},
{'u', 21},
{'press_a', 2},
{'w', 120},
{'press_b', 7},
{'l', 14},
{'d', 4},
{'w', 60},
{'press_a', 1},
{'press_b', 10},
{'x', 15},
{'w', 60},
{'press_a', 1},
{'w', 240},
{'u', 5},
{'d', 6},
{'press_a', 2},
{'w', 600},
{'d', 1},
{'l', 10},
{'u', 2},
{'w', 540},
{'pokecenter_heal', 1},
{'press_b', 4},
{'w', 60}, -- done

{'r', 5}, -- grab haunter from pc
{'u', 3},
{'w', 60},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 120},
{'d', 2},
{'press_a', 1},
{'w', 240},
{'r', 3},
{'l', 1},
{'w', 60},
{'press_a', 1},
{'d', 2},
{'press_a', 3},
{'w', 60},
{'press_a', 2},
{'d', 5},
{'w', 60},
{'press_a', 1},
{'w', 120},
{'u', 2},
{'w', 60},
{'press_a', 2},
{'w', 120},
{'r', 1},
{'w', 120},
{'r', 2},
{'w', 60},
{'press_a', 2},
{'w', 60},
{'press_b', 15}, -- done

{'d', 3}, -- back into victory road
{'l', 5},
{'d', 8},
{'w', 540},
{'r', 10},
{'u', 3},
{'w', 540},
{'u', 15},
{'r', 19},
{'u', 16},
{'r', 4},
{'d', 1},
{'w', 60},
{'press_a', 4},
{'w', 180},
{'d', 1},
{'l', 12},
{'d', 3},
{'l', 13},
{'u', 13},
{'l', 5},
{'u', 8},
{'l', 7},
{'w', 540},
{'l', 4},
{'d', 3},
{'w', 60},
{'press_a', 5},
{'w', 180},
{'d', 3},
{'r', 2},
{'d', 7},
{'w', 60},
{'press_a', 9},
{'w', 180},
{'press_b', 3},
{'d', 1},
{'w', 60},
{'d', 1},
{'l', 2},
{'w', 60},
{'l', 1},
{'d', 2},
{'w', 60},
{'d', 1},
{'l', 2},
{'d', 3},
{'l', 11},
{'d', 2},
{'w', 60},
{'d', 1},
{'l', 3},
{'w', 60},
{'press_b', 7}, -- done

{'x', 15}, -- onward to machamp guy
{'w', 60},
{'press_a', 1},
{'w', 240},
{'u', 19},
{'w', 60},
{'press_a', 2},
{'w', 120},
{'press_a', 1},
{'press_b', 9},
{'l', 1},
{'d', 3},
{'r', 2},
{'w', 60},
{'press_a', 5},
{'w', 180},
{'r', 1},
{'u', 2},
{'w', 60},
{'u', 1},
{'r', 5},
{'d', 3},
{'w', 60},
{'press_a', 5},
{'w', 180},
{'d', 2},
{'r', 3},
{'u', 2},
{'r', 11},
{'d', 2},
{'r', 3},
{'w', 60},
{'r', 1},
{'u', 4},
{'l', 2},
{'u', 9},
{'r', 3},
{'w', 540},
{'r', 15},
{'d', 2},
{'w', 60},
{'press_a', 4},
{'w', 240},
{'l', 6},
{'u', 13},
{'r', 13},
{'w', 60}, -- done
{'save', '34-beforeMachampGuy'},
{'x', 15}, -- get haunter set up for machamp fight and psychic fight
{'w', 60},
{'press_a', 1},
{'w', 60},
{'r', 1},
{'w', 60},
{'r', 1},
{'w', 60},
{'r', 1},
{'w', 60},
{'u', 32},
{'d', 3},
{'w', 60},
{'press_a', 1},
{'w', 60},
{'press_a', 1},
{'w', 60},
{'press_a', 1},
{'w', 60},
{'press_a', 1},
{'w', 60},
{'press_a', 1},
{'w', 240},
{'r', 1},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 120},
{'press_a', 1},
{'w', 120},
{'press_a', 1},
{'w', 240},
{'d', 1},
{'w', 60},
{'press_a', 1},
{'w', 240},
{'press_a', 1},
{'press_b', 15},
{'x', 15},
{'w', 60},
{'u', 1},
{'press_a', 1},
{'w', 240},
{'r', 1},
{'press_a', 1},
{'d', 2},
{'press_a', 2},
{'w', 240},
{'l', 1},
{'w', 60},
{'l', 1},
{'w', 60},
{'l', 1},
{'w', 60},
{'d', 7},
{'w', 60},
{'press_a', 1},
{'w', 180},
{'press_a', 2},
{'d', 1},
{'press_a', 1},
{'l', 1},
{'press_a', 1},
{'w', 240},
{'press_b', 9}, -- done

{'w', 60}, -- fight machamp guy
{'press_a', 1},
{'w', 60},
{'press_b', 5},
{'w', 1800},
{'press_a', 1},
{'r', 1},
{'use_move', 3}, -- shadow ball, machamp can't hit haunter
{'press_b', 17}, -- done

{'x', 15}, -- put golduck in front so we don't get bothered by the lvl 50 water mons
{'w', 60},
{'press_a', 1},
{'w', 60},
{'d', 2},
{'press_a', 1},
{'d', 5},
{'press_a', 1},
{'u', 2},
{'press_a', 1},
{'w', 240},
{'press_b', 7}, -- done
{'save', '35-afterMachampGuy'},
{'d', 2}, -- go to psychic
{'r', 13},
{'u', 2},
{'r', 3},
{'w', 540},
{'r', 11},
{'u', 5},
{'r', 4},
{'u', 2},
{'w', 60},
{'press_a', 5},
{'w', 180},
{'u', 4},
{'w', 60},
{'x', 15},
{'w', 60},
{'press_a', 1},
{'w', 240},
{'d', 2},
{'press_a', 1},
{'d', 1},
{'press_a', 1},
{'u', 2},
{'press_a', 1},
{'w', 240},
{'press_b', 9},
{'u', 1},
{'w', 240},
{'press_b', 8},-- done
{'w', 1800}, -- battle starts

{'press_a', 1}, -- use shadow ball on chimecho
{'r', 1},
{'use_move', 1},
{'press_b', 16}, -- done
{'press_a', 1}, -- curse the absol and stall, it can't really hurt us outside of future sight
{'l', 1},
{'d', 1},
{'use_move', 1},
{'l', 1},
{'press_a', 1},
{'w', 120},
{'press_a', 1},
{'w', 120},
{'r', 1},
{'d', 2},
{'press_a', 2},
{'w', 240},
{'press_a', 1},
{'w', 1800},
{'press_a', 1},
{'w', 240},
{'r', 1},
{'d', 1},
{'press_a', 1},
{'w', 60},
{'press_a', 2},
{'w', 1800},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 120},
{'r', 1},
{'d', 2},
{'press_a', 2},
{'w', 1800},
{'press_a', 1},
{'w', 240},
{'press_a', 1},
{'w', 120},
{'l', 1},
{'d', 1},
{'r', 1},
{'w', 60},
{'press_a', 1},
{'w', 60},
{'u', 3},
{'w', 60},
{'press_a', 2},
{'w', 1800},
{'press_b', 37}, -- done
{'u', 1},
{'press_a', 1}, -- use shadow ball OHKO dusknoir with +1 spatk
{'w', 60},
{'r', 1},
{'u', 1},
{'use_move', 1},
{'press_b', 9}, -- done
{'save', '36-afterPsychic'},
{'x', 15}, -- rearrange items
{'w', 60},
{'press_a', 1},
{'w', 60},
{'r', 1},
{'d', 2},
{'press_a', 1},
{'d', 2},
{'press_a', 1},
{'d', 1},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'l', 1},
{'u', 1},
{'press_a', 1},
{'d', 2},
{'press_a', 2},
{'w', 60},
{'u', 11},
{'d', 7},
{'w', 60},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 60},
{'u', 1},
{'w', 60},
{'press_a', 1},
{'w', 120},
{'d', 2},
{'press_a', 2},
{'w', 240},
{'d', 14},
{'u', 1},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 120},
{'press_a', 1},
{'d', 2},
{'press_a', 1},
{'d', 5},
{'press_a', 1},
{'u', 2},
{'press_a', 1},
{'w', 240},
{'r', 1},
{'d', 2},
{'press_a', 1},
{'w', 60},
{'d', 2},
{'press_a', 2},
{'w', 240},
{'d', 6},
{'u', 5},
{'w', 60},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 60},
{'press_b', 9}, -- done

{'u', 1}, -- go to dragon trainer guy
{'w', 60},
{'press_a', 5},
{'w', 240},
{'u', 6},
{'r', 3},
{'u', 9},
{'r', 5},
{'u', 4},
{'w', 60},
{'press_a', 4},
{'w', 360},
{'u', 5},
{'l', 14},
{'w', 60}, -- done
{'save', '37-beforeDragonTamer1'},
{'x', 15}, -- vapor in front
{'w', 60},
{'press_a', 1},
{'w', 240},
{'d', 1},
{'press_a', 1},
{'d', 1},
{'press_a', 1},
{'u', 1},
{'press_a', 1},
{'w', 240},
{'press_b', 8}, -- done
{'l', 1},
{'w', 240}, -- fight this guy, ice beam twice
{'press_b', 10},
{'w', 1800},
{'press_a', 1},
{'d', 1},
{'r', 1},
{'use_move', 1},
{'press_b', 22},
{'use_move', 1},
{'press_b', 20}, -- done

{'x', 15}, -- go to next trainer
{'w', 60},
{'press_a', 1},
{'w', 240},
{'press_a', 1},
{'d', 1},
{'press_a', 1},
{'d', 1},
{'press_a', 1},
{'w', 240},
{'press_b', 8},
{'l', 1},
{'w', 60},
{'press_a', 6},
{'w', 180},
{'l', 6},
{'d', 13},
{'w', 60},
{'d', 4},
{'r', 2},
{'d', 3},
{'l', 3},
{'w', 540},
{'l', 12},
{'w', 60},
{'press_b', 5},
{'x', 15}, -- reapply repel
{'w', 60},
{'d', 1},
{'press_a', 1},
{'w', 240},
{'u', 16},
{'w', 60},
{'press_a', 2},
{'w', 180},
{'press_b', 10}, -- done

{'x', 15}, -- put infernape in front
{'w', 60},
{'u', 1},
{'press_a', 1},
{'w', 60},
{'r', 1},
{'press_a', 1},
{'d', 2},
{'press_a', 1},
{'l', 1},
{'press_a', 1},
{'w', 240},
{'press_b', 8},
{'l', 2}, -- do the veteran fight
{'d', 2},
{'w', 180},
{'press_b', 9},
{'w', 1800},
{'press_a', 1},
{'r', 1},
{'l', 1},
{'d', 1},
{'use_move', 1},
{'press_b', 44},
{'use_move', 1},
{'w', 300},
{'press_a', 1},
{'w', 360},
{'press_a', 1},
{'w', 540},
{'press_a', 1},
{'w', 600},
{'press_a', 1},
{'w', 600},
{'press_b', 1},
{'w', 60},
{'r', 1},
{'d', 2},
{'press_a', 2},
{'w', 1800},
{'press_a', 1},
{'d', 1},
{'use_move', 1},
{'press_b', 13}, -- done
{'d', 13}, -- go to next trainer
{'r', 10},
{'u', 1},
{'w', 60},
{'press_a', 3},
{'w', 240}, -- idling

{'u', 1}, -- do the battle
{'w', 120},
{'press_b', 9},
{'w', 1800},
{'press_a', 1},
{'d', 1},
{'use_move', 1},
{'press_b', 22},
{'r', 1},
{'press_a', 1},
{'w', 240},
{'d', 1},
{'press_a', 2},
{'w', 1800},
{'press_a', 1},
{'r', 1},
{'d', 1},
{'use_move', 1},
{'press_b', 20},
{'use_move', 1},
{'press_b', 14}, -- done


{'u', 27}, -- go to pokemon league
{'l', 6},
{'w', 540},
{'l', 6},
{'u', 11},
{'w', 60},
{'x', 15},
{'w', 60},
{'press_a', 1},
{'w', 60},
{'r', 1},
{'press_a', 1},
{'u', 3},
{'press_a', 1},
{'l', 1},
{'press_a', 1},
{'w', 240},
{'press_b', 7},
{'press_a', 5},
{'w', 240},
{'u', 1},
{'w', 60},
{'press_a', 5},
{'w', 420},
{'u', 5},
{'w', 60},
{'u', 4},
{'w', 540}, -- inside elite four building //21-ArrivedInLeague
{'save', '38-ArrivedInLeague'};
}

b = {
    {'r', 5}, -- breakpoint  // fix issues with money and not having protect TMs pre-item selloff
    {'u', 2},
    {'r', 6},
    {'d', 6},
    {'l', 2},
    {'w', 540},
    {'l', 3},
    {'u', 3},
    {'w', 60},
    {'press_a', 1},
    {'w', 240},
    {'press_a', 1},
    {'w', 240},
    {'d', 1},
    {'w', 60},
    {'press_a', 1},
    {'w', 180},
    {'u', 2},
    {'w', 120},
    {'u', 1},
    {'w', 60},
    {'press_a', 1},
    {'w', 240},
    {'press_a', 1},
    {'w', 180},
    {'press_b', 16}, -- done
    {'d', 3}, -- align with main sequence
    {'r', 5},
    {'w', 540},
    {'u', 6},
    {'l', 7},
    {'d', 4},
    {'l', 2},
    {'d', 3},
    {'r', 2},
    {'w', 540}, -- done
    
    {'d', 3}, -- go to sunyshore to face volkner
    {'l', 4},
    {'d', 4},
    {'w', 540}, 
    {'x', 15},
    {'w', 60},
    {'press_a', 1},
    {'w', 60},
    {'r', 1},
    {'d', 2},
    {'press_a', 1},
    {'d', 1},
    {'press_a', 1},
    {'w', 240},
    {'r', 5},
    {'d', 5},
    {'w', 60},
    {'press_a', 1},
    {'w', 900},
    {'u', 2},
    {'w', 540}, -- grab infernape out of pc
    {'u', 6},
    {'r', 5},
    {'u', 3},
    {'w', 60},
    {'press_a', 1},
    {'w', 180},
    {'press_a', 1},
    {'w', 180},
    {'press_a', 1},
    {'w', 180},
    {'press_a', 1},
    {'w', 60},
    {'d', 2},
    {'press_a', 1},
    {'w', 240},
    {'r', 5},
    {'w', 60},
    {'press_a', 2},
    {'w', 60},
    {'d', 4},
    {'l', 2},
    {'d', 1},
    {'w', 60},
    {'press_a', 1},
    {'w', 180},
    {'press_a', 2},
    {'w', 60},
    {'press_b', 1},
    {'w', 180},
    {'r', 1},
    {'w', 60},
    {'press_a', 2},
    {'press_b', 13}, -- done
    
    {'x', 15}, -- use grepa berry and protein to give hippo +10 attack EVs, guarenteeing at least the magic 52 needed for volkner
    {'w', 60},
    {'d', 1},
    {'press_a', 1},
    {'w', 240},
    {'r', 1},
    {'w', 60},
    {'r', 1},
    {'w', 60},
    {'r', 2},
    {'w', 60},
    {'r', 1},
    {'w', 60},
    {'d', 31},
    {'u', 1},
    {'press_a', 1},
    {'d', 1},
    {'press_a', 1},
    {'w', 240},
    {'d', 2},
    {'press_a', 1},
    {'w', 180},
    {'press_a', 1},
    {'w', 120},
    {'press_a', 1},
    {'w', 240},
    {'l', 1},
    {'w', 60},
    {'l', 1},
    {'w', 60},
    {'l', 1},
    {'w', 60},
    {'d', 21},
    {'u', 2},
    {'press_a', 2},
    {'w', 240},
    {'press_a', 1},
    {'w', 180},
    {'press_b', 11}, -- done
    
    {'d', 3}, -- return to volkner's gym
    {'l', 5},
    {'u', 1},
    {'w', 60},
    {'press_a', 6},
    {'press_b', 21},
    {'d', 8},
    {'w', 540},
    {'l', 6},
    {'u', 17},
    {'l', 5},
    {'u', 7},
    {'r', 19},
    {'u', 13},
    {'l', 25},
    {'u', 5},
    {'w', 540}, -- done
    
    {'u', 6}, -- navigate the entire gym
    {'r', 6},
    {'w', 120},
    {'d', 4},
    {'l', 6},
    {'u', 4},
    {'l', 6},
    {'w', 120},
    {'r', 6},
    {'u', 7},
    {'w', 540},
    {'u', 4},
    {'l', 4},
    {'u', 5},
    {'w', 120},
    {'l', 2},
    {'r', 2},
    {'w', 120},
    {'u', 2},
    {'d', 2},
    {'w', 120},
    {'r', 6},
    {'d', 7},
    {'l', 7},
    {'d', 3},
    {'l', 4},
    {'u', 18},
    {'r', 5},
    {'d', 5},
    {'w', 120},
    {'r', 6},
    {'w', 180},
    {'d', 6},
    {'r', 4},
    {'d', 3},
    {'r', 2},
    {'u', 11},
    {'l', 7},
    {'u', 4},
    {'w', 540},
    {'u', 7},
    {'r', 6},
    {'w', 180},
    {'d', 4},
    {'l', 6},
    {'u', 4},
    {'l', 6},
    {'w', 180},
    {'d', 8},
    {'l', 5},
    {'u', 22},
    {'r', 5},
    {'d', 5},
    {'w', 180},
    {'r', 2},
    {'l', 2},
    {'w', 180},
    {'d', 6},
    {'r', 6},
    {'u', 6},
    {'r', 6},
    {'d', 6},
    {'w', 180},
    {'u', 9},
    {'r', 5},
    {'d', 21},
    {'l', 4},
    {'u', 5},
    {'l', 2},
    {'u', 4},
    {'w', 180},
    {'d', 5},
    {'r', 2},
    {'d', 4},
    {'r', 4},
    {'u', 21},
    {'l', 5},
    {'d', 4},
    {'l', 6},
    {'u', 4},
    {'w', 60}, -- done //13-BeforeVolkner
    {'save', '26-BeforeVolkner'},
    {'x', 15}, -- get everyone's items in order
    {'w', 60},
    {'u', 1},
    {'press_a', 1},
    {'w', 60},
    {'d', 2},
    {'press_a', 1},
    {'d', 2},
    {'press_a', 1},
    {'d', 1},
    {'press_a', 1},
    {'w', 240},
    {'press_a', 2},
    {'d', 1},
    {'press_a', 1},
    {'u', 2},
    {'press_a', 1},
    {'w', 240},
    {'press_a', 1},
    {'d', 2},
    {'press_a', 2},
    {'w', 60},
    {'r', 1},
    {'w', 60},
    {'r', 1},
    {'w', 60},
    {'r', 1},
    {'w', 60},
    {'d', 13},
    {'u', 19},
    {'w', 60},
    {'press_a', 1},
    {'w', 240},
    {'press_a', 1},
    {'r', 1},
    {'d', 1},
    {'press_a', 1},
    {'d', 3},
    {'press_a', 2},
    {'w', 60},
    {'l', 1},
    {'w', 60},
    {'l', 1},
    {'w', 60},
    {'l', 1},
    {'w', 60},
    {'l', 1},
    {'w', 60},
    {'d', 13},
    {'u', 5},
    {'press_a', 1},
    {'w', 240},
    {'press_a', 1},
    {'w', 60},
    {'press_b', 9}, -- done
    
    {'x', 15}, -- teach everyone protect
    {'w', 60},
    {'d', 1},
    {'press_a', 1},
    {'w', 60},
    {'r', 1},
    {'w', 60},
    {'r', 1},
    {'w', 60},
    {'r', 1},
    {'w', 60},
    {'u', 32},
    {'d', 2},
    {'press_a', 2},
    {'w', 120},
    {'press_a', 1},
    {'w', 120},
    {'press_a', 1},
    {'w', 120},
    {'press_a', 1},
    {'w', 60},
    {'r', 1},
    {'press_a', 1},
    {'w', 120},
    {'press_a', 1},
    {'w', 240},
    {'press_a', 2},
    {'w', 120},
    {'press_a', 1},
    {'w', 120},
    {'press_a', 1},
    {'w', 120},
    {'press_a', 1},
    {'w', 240},
    {'l', 1},
    {'d', 1},
    {'press_a', 1},
    {'w', 180},
    {'press_a', 1},
    {'w', 180},
    {'press_a', 1},
    {'w', 180},
    {'press_a', 1},
    {'w', 180},
    {'press_a', 1},
    {'w', 60},
    {'d', 3},
    {'press_a', 1},
    {'w', 300},
    {'press_a', 1},
    {'w', 180},
    {'press_a', 1},
    {'w', 180},
    {'press_a', 1},
    {'w', 180},
    {'press_a', 1},
    {'w', 240},
    {'press_a', 2},
    {'w', 120},
    {'press_a', 1},
    {'w', 120},
    {'press_a', 1},
    {'w', 120},
    {'press_a', 1},
    {'w', 240},
    {'d', 1},
    {'press_a', 1},
    {'w', 240},
    {'press_a', 1},
    {'w', 180},
    {'press_a', 1},
    {'w', 180},
    {'press_a', 1},
    {'w', 180},
    {'press_a', 1},
    {'w', 240},
    {'d', 1},
    {'press_a', 1},
    {'w', 240},
    {'press_a', 1},
    {'w', 180},
    {'press_a', 1},
    {'w', 180},
    {'press_a', 1},
    {'w', 180},
    {'press_a', 1},
    {'w', 240},
    {'press_b', 9}, -- done //14-PreppedForVolkner
    {'save', '27-PreppedForVolkner'},
    {'x', 15}, -- oops, lets just get the xp share and amulet coin on there
    {'w', 60},
    {'u', 1},                                             
    {'press_a', 1},
    {'w', 60},
    {'r', 1},
    {'press_a', 1},
    {'d', 2},
    {'press_a', 1},
    {'d', 1},
    {'press_a', 1},                                              
    {'w', 240},
    {'press_a', 1},
    {'w', 60},
    {'press_a', 1},
    {'d', 2},
    {'press_a', 2},
    {'w', 240},
    {'l', 1},
    {'w', 60},
    {'l', 1},
    {'w', 60},
    {'l', 1},
    {'w', 60},
    {'d', 11},
    {'u', 1},
    {'press_a', 1},
    {'w', 240},
    {'press_a', 1},
    {'w', 240},
    {'d', 2},
    {'press_a', 1},
    {'w', 240},
    {'d', 2},
    {'press_a', 1},
    {'w', 60},
    {'press_a', 1},
    {'w', 60},
    {'d', 5},
    {'u', 3},
    {'press_a', 1},
    {'w', 240},
    {'press_a', 1},
    {'w', 180},
    {'press_a', 1},
    {'w', 240},
    {'press_a', 1},
    {'press_b', 7}, -- done
    
    {'u', 2}, -- start the battle
    {'w', 60},
    {'press_a', 1},
    {'w', 180},
    {'press_b', 16},
    {'w', 1800}, -- done
    -- -- -- -- //VOLKNER
    {'u', 1},
    {'press_a', 1}, -- do first section of the battle, earthquake the jolteon, then barb the raichu
    {'r', 1},
    {'use_move', 1}, -- use earthquake
    {'w', 360},
    {'press_a', 2},
    {'w', 480},
    {'press_a', 2},
    {'w', 460},
    {'press_a', 1},
    {'w', 240},
    {'r', 1},
    {'d', 1},
    {'press_a', 2},
    {'w', 1800}, -- send out riolu
    {'press_a', 1},
    {'r', 1},
    {'use_move', 1}, -- attempt to use foresight
    {'r', 1},
    {'d', 1},
    {'press_a', 2},
    {'w', 1440}, -- send out hippo
    {'press_a', 1},
    {'r', 1},
    {'d', 1},
    {'use_move', 1}, -- protect ourselves
    {'r', 1},
    {'press_a', 1},
    {'w', 240},
    {'d', 2},
    {'press_a', 2},
    {'w', 1800}, -- send out haunter
    {'press_a', 1},
    {'r', 1},
    {'use_move', 1}, -- use protect
    {'r', 1},
    {'press_a', 1},
    {'w', 60},
    {'d', 1},
    {'press_a', 2},
    {'w', 2160}, -- switch out roserade
    {'press_a', 1},
    {'r', 1},
    {'use_move', 1}, -- use toxic spikes
    {'press_a', 1},
    {'d', 1},
    {'use_move', 1}, -- use protect
    {'r', 1},
    {'press_a', 1},
    {'w', 60},
    {'d', 1},
    {'press_a', 2},
    {'w', 2520}, -- switch out haunter // potentially confused, cannot protect
    {'r', 1},
    {'press_a', 1},
    {'w', 60},
    {'d', 2},
    {'press_a', 2},
    {'w', 2160}, -- switch out hippo
    {'r', 1},
    {'press_a', 1},
    {'w', 60},
    {'d', 2},
    {'press_a', 2},
    {'w', 2160}, -- switch out haunter
    {'press_a', 1},
    {'r', 1},
    {'d', 1},
    {'use_move', 1}, -- sucker punch to take back the sticky barb
    {'w', 720},
    {'press_a', 1},
    {'w', 240},
    
    {'r', 1},
    {'press_a', 2}, -- send out vaporeon
    {'w', 2160},
    {'r', 1},
    {'press_a', 1},
    {'w', 240},
    {'d', 2},
    {'press_a', 2},
    {'w', 2160}, -- send out hippowdon
    {'press_a', 1},
    {'r', 1},
    {'d', 1},
    {'use_move', 1}, -- hippowdon uses protect
    {'r', 1},
    {'press_a', 1},
    {'w', 240},
    {'r', 1},
    {'d', 2},
    {'press_a', 2},
    {'w', 2520}, -- send out infernape
    {'r', 1},
    {'press_a', 1},
    {'w', 240},
    {'r', 1},
    {'d', 2},
    {'press_a', 2},
    {'w', 2160}, -- send out hippowdon
    {'press_a', 1},
    {'r', 1},
    {'d', 1},
    {'use_move', 1}, -- use protect
    
    {'press_a', 1},
    {'u', 1},
    {'l', 1}, 
    {'use_move', 1}, -- use yawn
    {'press_a', 1},
    {'r', 1},
    {'d', 1},
    {'use_move', 1}, -- use protect
    {'press_a', 1},
    {'u', 1},
    {'use_move', 1}, -- use earthquake
    {'w', 1620},
    {'r', 1},
    {'press_a', 1},
    {'w', 240},
    {'d', 2},
    {'press_a', 2},
    {'w', 2880},
    {'r', 1},
    {'press_a', 1},
    {'w', 240},
    {'d', 2},
    {'press_a', 2},
    {'w', 2520},
    {'press_b', 27},
    {'press_a', 1},
    {'r', 1},
    {'d', 1},
    {'use_move', 1},
    {'press_a', 1},
    {'u', 1},
    {'use_move', 1},
    {'press_b', 56}, -- done //15-AfterVolkner
    {'save', '28-AfterVolkner'},
    {'d', 5}, -- leave the gym
    {'r', 6},
    {'u', 4},
    {'r', 5},
    {'d', 21},
    {'l', 10},
    {'d', 2},
    {'w', 540},
    {'r', 7},
    {'d', 13},
    {'l', 2},
    {'u', 3},
    {'l', 4},
    {'d', 9},
    {'l', 3},
    {'d', 2},
    {'w', 540},
    {'d', 5},
    {'l', 6},
    {'w', 120},
    {'l', 1},
    {'r', 2},
    {'w', 120},
    {'l', 2},
    {'r', 2},
    {'w', 120},
    {'r', 5},
    {'d', 8},
    {'w', 540},
    {'d', 3},
    {'r', 25},
    {'d', 14},
    {'w', 60},
    {'l', 13},
    {'u', 8},
    {'l', 2},
    {'u', 15},
    {'w', 240},
    {'press_b', 66}, -- done
    
    {'d', 22}, -- go to pokecenter
    {'l', 6},
    {'d', 7},
    {'r', 5},
    {'d', 17},
    {'r', 6},
    {'u', 3},
    {'w', 540},
    {'pokecenter_heal', 1}, -- heal
    {'press_b', 6},
    {'r', 5}, -- go put riolu and others away
    {'u', 3},
    {'w', 60},
    {'press_a', 1},
    {'w', 180},
    {'press_a', 1},
    {'w', 180},
    {'press_a', 1},
    {'w', 180},
    {'press_a', 1},
    {'w', 180},
    {'d', 2},
    {'press_a', 1},
    {'w', 240},
    {'r', 1},
    {'w', 60},
    {'press_a', 2},
    {'w', 60},
    {'d', 5},
    {'w', 60},
    {'press_a', 1},
    {'w', 180},
    {'u', 1},
    {'w', 60},
    {'press_a', 2},
    {'w', 60},
    {'r', 1},
    {'w', 120},
    {'r', 1},
    {'w', 60},
    {'press_a', 2},
    {'w', 60},
    {'r', 1},
    {'w', 60},
    {'press_a', 2},
    {'w', 60},
    {'d', 5},
    {'w', 60},
    {'press_a', 1},
    {'w', 180},
    {'l', 1},
    {'w', 60},
    {'press_a', 2},
    {'w', 60},
    {'r', 2},
    {'w', 60},
    {'r', 2},
    {'w', 60},
    {'press_a', 2},
    {'w', 60},
    {'r', 1},
    {'w', 60},
    {'press_a', 2},
    {'w', 60},
    {'d', 5},
    {'w', 60},
    {'press_a', 1},
    {'w', 180},
    {'u', 2},
    {'l', 1},
    {'w', 60},
    {'press_a', 2},
    {'w', 60},
    {'r', 2},
    {'w', 60},
    {'r', 4},
    {'w', 60},
    {'press_a', 2}, -- done
    
    {'w', 60}, -- release riolu
    {'l', 3},
    {'w', 60},
    {'press_a', 1},
    {'w', 60},
    {'d', 5},
    {'press_a', 1},
    {'w', 120},
    {'u', 1},
    {'press_a', 1},
    {'w', 240},
    {'press_a', 1},
    {'w', 120},
    {'press_a', 1},
    {'w', 120},
    {'press_b', 15}, -- done //16-PreppingForVictory
    {'save', '29-PreppingForVictory'},
    {'d', 3}, -- go to canalave
    {'l', 5},
    {'d', 8},
    {'w', 540},
    {'x', 15},
    {'w', 60},
    {'press_a', 1},
    {'w', 60},
    {'r', 1},
    {'d', 1},
    {'press_a', 1},
    {'d', 1},
    {'press_a', 1},
    {'w', 60},
    {'l', 25},
    {'u', 2},
    {'w', 60},
    {'press_a', 1},
    {'w', 900},
    {'r', 4},
    {'w', 60}, -- done
    
    {'df', 4800}, -- get past the wanderer 
    {'w', 60}, -- go to move deleter
    {'u', 22},
    {'l', 9},
    {'u', 5},
    {'w', 540},
    {'l', 3},
    {'u', 2},
    {'w', 60}, -- done
    
    {'w', 60}, -- delete a move off golduck so we can teach it waterfall
    {'press_a', 1},
    {'w', 180},
    {'press_a', 1},
    {'w', 120},
    {'press_a', 1},
    {'w', 120},
    {'press_a', 1},
    {'w', 180},
    {'press_a', 1},
    {'w', 180},
    {'press_a', 1},
    {'w', 240},
    {'d', 2},
    {'press_a', 1},
    {'w', 240},
    {'press_a', 1},
    {'w', 240},
    {'d', 1},
    {'w', 60},
    {'press_a', 1},
    {'w', 180},
    {'press_a', 1},
    {'w', 180},
    {'press_a', 1},
    {'w', 240},
    {'press_a', 1}, -- done
    
    {'r', 3}, -- item management and go to sunyshore
    {'d', 3},
    {'w', 540},
    {'x', 15},
    {'w', 60},
    {'press_a', 1},
    {'w', 60},
    {'r', 1},
    {'w', 60},
    {'press_a', 1},
    {'d', 2},
    {'press_a', 1},
    {'d', 1},
    {'press_a', 1},
    {'w', 180},
    {'press_a', 1},
    {'l', 1},
    {'d', 1},
    {'press_a', 1},
    {'d', 2},
    {'press_a', 1},
    {'d', 1},
    {'press_a', 1},
    {'w', 180},
    {'press_a', 1},
    {'w', 60},
    {'press_a', 1},
    {'d', 2},
    {'press_a', 2},
    {'w', 240},
    {'d', 22},
    {'u', 2},
    {'press_a', 1},
    {'w', 240},
    {'press_a', 1},
    {'r', 1},
    {'press_a', 1},
    {'d', 1},
    {'press_a', 1},
    {'w', 240},
    {'r', 25},
    {'d', 1},
    {'w', 60},
    {'press_a', 1},
    {'w', 900}, -- done
    
    {'x', 15}, -- teach waterfall
    {'w', 60},
    {'d', 1},
    {'press_a', 1},
    {'w', 60},
    {'r', 1},
    {'w', 60},
    {'r', 1},
    {'w', 60},
    {'r', 1},
    {'w', 60},
    {'d', 40},
    {'u', 2},
    {'w', 60},
    {'press_a', 2},
    {'w', 120},
    {'press_a', 1},
    {'w', 120},
    {'press_a', 1},
    {'w', 120},
    {'press_a', 1},
    {'w', 240},
    {'d', 2},
    {'press_a', 1},
    {'w', 180},
    {'press_a', 1},
    {'press_b', 11}, -- done
    
    
    {'l', 6}, -- go to the water
    {'u', 17},
    {'l', 5},
    {'u', 6},
    {'r', 6},
    {'u', 21},
    {'l', 2},
    {'u', 7},
    {'w', 60}, -- done
    
    {'u', 1}, -- use a repel
    {'w', 60},
    {'x', 15},
    {'w', 60},
    {'press_a', 1},
    {'w', 240},
    {'l', 1},
    {'w', 60},
    {'l', 1},
    {'w', 60},
    {'l', 1},
    {'w', 60},
    {'u', 23},
    {'press_a', 2},
    {'w', 180},
    {'press_a', 1},
    {'w', 60},
    {'press_b', 8}, -- done
    
    {'press_a', 5}, -- go grab a heart scale
    {'w', 360},
    {'u', 9},
    {'l', 6},
    {'w', 120},
    {'press_a', 1},
    {'w', 60},
    {'press_b', 7}, -- done
    
    {'l', 1}, -- go to first trainer
    {'u', 2},
    {'w', 60},
    {'press_a', 4},
    {'w', 360},
    {'l', 4},
    {'u', 3},
    {'w', 360}, -- mind the repel quantum step
    {'press_b', 15},
    {'w', 1800}, -- fight lumineon trainer
    {'r', 1},
    {'press_a', 1},
    {'w', 240},
    {'r', 1},
    {'press_a', 2},
    {'w', 1800},
    {'press_a', 1},
    {'use_move', 1},
    {'press_a', 1},
    {'d', 1},
    {'use_move', 1},
    {'press_a', 1},
    {'r', 1},
    {'use_move', 2},
    {'press_a', 1},
    {'u', 1},
    {'use_move', 1},
    {'d', 1},
    {'press_a', 2},
    {'w', 1800},
    {'press_a', 1},
    {'use_move', 1},
    {'press_b', 25}, -- done
    {'w', 1200},
    
    {'u', 6}, -- fight mantyke guy
    {'l', 2},
    {'u', 15},
    {'r', 2},
    {'u', 6},
    {'w', 60},
    {'x', 15},
    {'w', 60},
    {'u', 1},
    {'press_a', 1},
    {'w', 60},
    {'r', 1},
    {'d', 2},
    {'press_a', 1},
    {'d', 1},
    {'press_a', 1},
    {'u', 2},
    {'l', 1},
    {'press_a', 1},
    {'w', 180},
    {'press_b', 8},
    {'u', 1},
    {'w', 180},
    {'press_b', 7},
    {'w', 1800}, -- idling at start of fight
    
    {'press_a', 1}, -- do the fight
    {'use_move', 1},
    {'press_a', 1},
    {'w', 240},
    {'d', 1},
    {'press_a', 2},
    {'w', 1800},
    {'press_a', 1},
    {'use_move', 1},
    {'press_a', 1},
    {'w', 240},
    {'d', 1},
    {'press_a', 2},
    {'w', 1800},
    {'press_a', 1},
    {'use_move', 1},
    {'press_b', 13}, -- done
    {'x', 15}, -- put azelf back in front
    {'w', 60},
    {'press_a', 1},
    {'w', 60},
    {'r', 1},
    {'d', 2},
    {'press_a', 1},
    {'d', 1},
    {'press_a', 1},
    {'u', 2},
    {'l', 1},
    {'press_a', 1},
    {'w', 240},
    {'press_b', 7}, -- done
    
    {'u', 8}, -- go through the next section of water
    {'r', 10},
    {'u', 7},
    {'l', 8},
    {'u', 12},
    {'l', 7},
    {'u', 4},
    {'l', 3},
    {'u', 7},
    {'r', 6},
    {'u', 2},
    {'r', 2},
    {'u', 2},
    {'r', 3},
    {'u', 5},
    {'l', 4},
    {'u', 3},
    {'w', 120},
    {'l', 5},
    {'d', 1},
    {'w', 60},
    {'press_a', 5},
    {'w', 240},
    {'l', 5},
    {'u', 2},
    {'w', 120},
    {'u', 9},
    {'r', 7},
    {'u', 1},
    {'w', 60}, -- done, still at 1 step desync
    
    {'press_a', 4}, -- fight golduck trainer
    {'w', 360},
    {'u', 4},
    {'w', 60},
    {'press_a', 4},
    {'w', 1800},
    {'press_a', 1},
    {'use_move', 1},
    {'press_b', 14},
    {'l', 3},
    {'u', 8},
    {'w', 60}, -- done
    
    {'u', 3}, -- go to next guy
    {'w', 60},
    {'press_a', 5},
    {'w', 540},
    {'u', 9}, -- idling
    {'w', 30},
    
    {'x', 15}, -- teach vaporeon ice beam
    {'w', 60},
    {'d', 1},
    {'press_a', 1},
    {'w', 240},
    {'r', 1},
    {'w', 60},
    {'r', 1},
    {'w', 60},
    {'r', 1},
    {'w', 60},
    {'u', 43},
    {'d', 1},
    {'press_a', 2},
    {'w', 120},
    {'press_a', 1},
    {'w', 120},
    {'press_a', 1},
    {'w', 120},
    {'press_a', 1},
    {'w', 240},
    {'r', 1},
    {'press_a', 1},
    {'w', 180},
    {'press_a', 1},
    {'w', 120},
    {'press_a', 1},
    {'w', 180},
    {'press_a', 1},
    {'w', 120},
    {'press_a', 1},
    {'w', 240},
    {'d', 3},
    {'w', 60},
    {'press_a', 1},
    {'w', 240},
    {'press_b', 18}, -- done
    {'u', 1}, -- start fight with gyarados guy
    {'w', 720},
    {'press_b', 27},
    {'w', 1260}, -- idling
    
    {'r', 2}, -- send out vaporeon
    {'w', 60},
    {'press_a', 1},
    {'w', 60},
    {'r', 1},
    {'press_a', 2},
    {'w', 1800}, -- done
    {'press_a', 1}, -- vaporeon completely walls gyarados, it only knows aqua tail and hydro pump as attacks
    {'r', 1},
    {'d', 1},
    {'use_move', 5}, -- just ice beam it 
    {'press_b', 19}, -- done
    
    {'u', 3}, -- go to waterfall
    {'r', 6},
    {'u', 16},
    {'w', 60},
    {'press_a', 5}, -- up we go
    {'w', 420}, -- weeee
    {'u', 3},
    {'w', 60},
    {'r', 10},
    {'l', 5},
    {'r', 4},
    {'w', 60},
    {'press_b', 5}, -- cancel out of repel text
    {'r', 14}, -- align
    {'w', 60},
    {'l', 14},
    {'u', 3},
    {'w', 540},
    {'pokecenter_heal', 1}, -- heal
    {'press_b', 6}, -- done
    {'d', 8},
    {'w', 540}, -- idling in pokemon league //17-PokemonLeague
    {'save', '30-PokemonLeague'},
    {'x', 15}, -- go buy an awakening
    {'w', 60},
    {'u', 1},
    {'press_a', 1},
    {'w', 240},
    {'r', 1},
    {'d', 1},
    {'press_a', 1},
    {'d', 1},
    {'press_a', 1},
    {'w', 240},
    {'l', 3},
    {'d', 6},
    {'r', 3},
    {'w', 60},
    {'press_a', 1},
    {'w', 1260},
    {'l', 6},
    {'u', 17},
    {'l', 3},
    {'u', 2},
    {'w', 540},
    {'u', 4},
    {'w', 60},
    {'press_a', 1},
    {'w', 180},
    {'press_a', 1},
    {'w', 240},
    {'d', 11},
    {'w', 60},
    {'press_a', 1},
    {'w', 240},
    {'u', 1},
    {'press_a', 1},
    {'w', 240},
    {'press_a', 1},
    {'w', 180},
    {'press_b', 12}, -- done
    {'d', 6},
    {'w', 540},
    {'x', 15}, -- return to pokemon league
    {'w', 60}, 
    {'press_a', 1},
    {'w', 60},
    {'r', 1},
    {'d', 1},
    {'press_a', 1},
    {'d', 1},
    {'press_a', 1},
    {'w', 240},
    {'u', 6},
    {'w', 60},
    {'press_a', 1},
    {'w', 900},
    {'u', 2},
    {'w', 540},
    {'r', 6},
    {'u', 9},
    {'l', 2},
    {'u', 1},
    {'w', 60}, -- done
    
    {'w', 60}, -- grab hippo back from PC and put azelf in
    {'press_a', 1},
    {'w', 180},
    {'press_a', 2},
    {'w', 180},
    {'press_a', 1},
    {'w', 180},
    {'d', 2},
    {'press_a', 1},
    {'w', 240},
    {'r', 4},
    {'w', 60},
    {'press_a', 2},
    {'w', 60},
    {'d', 4},
    {'l', 1},
    {'d', 1},
    {'w', 60},
    {'press_a', 1},
    {'w', 120},
    {'u', 2},
    {'l', 1},
    {'w', 60},
    {'press_a', 2},
    {'w', 120},
    {'r', 2},
    {'w', 120},
    {'r', 1},
    {'w', 60},
    {'press_a', 2},
    {'w', 60},
    {'press_b', 12},
    {'d', 3},
    {'l', 5},
    {'d', 8},
    {'w', 540}, -- done
    {'r', 10}, -- into victory road
    {'u', 3},
    {'w', 540},
    {'x', 15}, -- use repel
    {'w', 60},
    {'d', 1},
    {'press_a', 1},
    {'w', 240},
    {'l', 1},
    {'w', 60},
    {'l', 1},
    {'w', 60},
    {'l', 1},
    {'w', 60},
    {'u', 6},
    {'press_a', 2},
    {'w', 120},
    {'press_b', 7}, -- done
    {'u', 14}, --- go to first trainer
    {'r', 5},
    {'u', 2},
    {'r', 15},
    {'u', 16},
    {'r', 4},
    {'d', 1},
    {'w', 60},
    {'press_a', 4},
    {'w', 360},
    {'d', 1},
    {'l', 12},
    {'d', 3},
    {'l', 13},
    {'u', 14},
    {'l', 3},
    {'w', 60},
    {'x', 15},
    {'w', 60},
    {'u', 1},
    {'press_a', 1},
    {'w', 240},
    {'press_a', 1},
    {'d', 1},
    {'press_a', 1},
    {'r', 1},
    {'press_a', 1},
    {'w', 240},
    {'press_a', 1},
    {'d', 2},
    {'press_a', 1},
    {'d', 1},
    {'press_a', 1},
    {'w', 180},
    {'press_a', 2},
    {'d', 2},
    {'press_a', 2},
    {'w', 240},
    {'d', 22},
    {'u', 3},
    {'press_a', 1},
    {'w', 240},
    {'press_a', 1},
    {'l', 1},
    {'d', 2},
    {'press_a', 1},
    {'d', 6},
    {'press_a', 1},
    {'d', 1},
    {'press_a', 1},
    {'w', 120},
    {'press_b', 9}, -- done //18-BeforeFirstTrainer
    {'save', '31-BeforeFirstTrainer'},
    {'l', 1}, -- do battle vs blissey guy
    {'w', 300},
    {'press_b', 6},
    {'w', 1800},
    {'press_a', 1},
    {'use_move', 1},
    {'press_a', 1},
    {'d', 1},
    {'use_move', 1},
    {'press_a', 1},
    {'u', 1},
    {'r', 1},
    {'press_a', 1},
    {'w', 420},
    {'r', 1},
    {'press_a', 2},
    {'w', 1800},
    {'d', 1},
    {'press_a', 1},
    {'w', 240},
    {'r', 2},
    {'d', 2},
    {'press_a', 2},
    {'w', 240},
    {'r', 1},
    {'d', 1},
    {'press_a', 1},
    {'w', 60},
    {'d', 1},
    {'press_a', 2},
    {'w', 1800},
    {'press_a', 4},
    {'w', 1800},
    {'press_a', 1},
    {'w', 180},
    {'press_a', 1},
    {'r', 1},
    {'press_a', 2},
    {'w', 1800},
    {'press_a', 1},
    {'w', 180},
    {'press_a', 3},
    {'w', 1800}, -- done setting up
    
    {'press_a', 1}, -- use awakening in case substitute broke and we got sing'ed 
    {'w', 180},
    {'u', 1},
    {'l', 1},
    {'d', 1},
    {'press_a', 1},
    {'w', 60},
    {'press_a', 2},
    {'w', 240},
    {'press_a', 1},
    {'w', 1500},
    {'press_b', 20}, -- done
    
    {'u', 1}, -- slam 3 earthquakes
    {'press_a', 1},
    {'r', 1},
    {'use_move', 1},
    {'press_b', 18},
    {'use_move', 1},
    {'press_b', 13},
    {'use_move', 1},
    {'press_b', 13}, -- done //19-AfterFirstTrainer
    {'save', '32-AfterFirstTrainer'},
    {'l', 2}, -- go upstairs and teach infernape strength
    {'u', 7},
    {'l', 7},
    {'w', 540},
    {'l', 4},
    {'d', 3},
    {'w', 60},
    {'press_a', 5},
    {'w', 240},
    {'d', 3},
    {'r', 2},
    {'d', 7},
    {'w', 60},
    {'x', 15},
    {'w', 60},
    {'d', 1},
    {'press_a', 1},
    {'w', 240},
    {'r', 1},
    {'w', 60},
    {'r', 1},
    {'w', 60},
    {'r', 1},
    {'w', 60},
    {'d', 36},
    {'u', 5},
    {'press_a', 2},
    {'w', 120},
    {'press_a', 1},
    {'w', 180},
    {'press_a', 1},
    {'w', 180},
    {'press_a', 1},
    {'w', 240},
    {'r', 1},
    {'d', 2},
    {'press_a', 2},
    {'w', 120},
    {'press_a', 1},
    {'w', 120},
    {'press_a', 1},
    {'w', 120},
    {'press_a', 1},
    {'w', 240},
    {'press_a', 1},
    {'w', 120},
    {'press_a', 1},
    {'w', 120},
    {'press_a', 1},
    {'w', 120},
    {'press_a', 1},
    {'w', 120},
    {'press_a', 1},
    {'w', 120},
    {'press_a', 1},
    {'press_b', 9}, -- done
    
    {'w', 60}, -- go fight mamoswine guy // roserade outspeed mamo by 1, and petal dance OHKOs even without miracle seed
    {'press_a', 5},
    {'w', 240},
    {'press_b', 6},
    {'d', 1},
    {'w', 60},
    {'d', 1},
    {'l', 2},
    {'w', 60},
    {'l', 1},
    {'d', 2},
    {'w', 60},
    {'d', 1},
    {'l', 2},
    {'d', 3},
    {'l', 10},
    {'w', 60},
    {'x', 15},
    {'w', 60},
    {'u', 1},
    {'press_a', 1},
    {'w', 240},
    {'d', 1},
    {'press_a', 1},
    {'d', 1},
    {'press_a', 1},
    {'u', 1},
    {'press_a', 1},
    {'w', 240},
    {'press_b', 9},
    {'l', 1},
    {'w', 720},
    {'press_b', 5},
    {'w', 1800}, -- done, fight started
    
    {'press_a', 1}, -- do the fight, petal dance/flamethrower/petal dance
    {'w', 60},
    {'use_move', 1},
    {'w', 480},
    {'press_a', 1},
    {'w', 240},
    {'r', 1},
    {'d', 2},
    {'press_a', 2},
    {'w', 1800},
    {'press_a', 1},
    {'d', 1},
    {'r', 1},
    {'use_move', 1},
    {'w', 360},
    {'press_a', 2},
    {'w', 480},
    {'press_a', 1},
    {'w', 240},
    {'r', 1},
    {'d', 2},
    {'press_a', 2},
    {'w', 1440},
    {'press_a', 1},
    {'use_move', 1},
    {'press_b', 12}, -- done
    
    {'d', 1}, -- go to next trainer
    {'w', 60},
    {'d', 1},
    {'w', 60},
    {'d', 1},
    {'l', 3},
    {'d', 3},
    {'r', 2},
    {'w', 60},
    {'press_a', 5},
    {'w', 240},
    {'r', 1},
    {'u', 2},
    {'w', 60},
    {'u', 1},
    {'r', 5},
    {'d', 3},
    {'w', 60},
    {'press_a', 5},
    {'w', 120},
    {'d', 3},
    {'r', 3}, -- done
    {'w', 30},
    {'x', 15}, -- prep the team for clefable girl
    {'w', 60},
    {'press_a', 1},
    {'w', 240},
    {'r', 1},
    {'d', 2},
    {'press_a', 1},
    {'d', 3},
    {'press_a', 2},
    {'w', 240},
    {'l', 1},
    {'w', 60},
    {'l', 1},
    {'w', 60},
    {'l', 1},
    {'w', 60},
    {'d', 15},
    {'u', 9},
    {'w', 60},
    {'press_a', 1},
    {'w', 240},
    {'press_a', 1},
    {'w', 120},
    {'press_a', 1},
    {'w', 120},
    {'press_a', 1},
    {'w', 60},
    {'u', 1},
    {'press_a', 1},
    {'d', 3},
    {'press_a', 1},
    {'d', 1},
    {'press_a', 1},
    {'w', 120},
    {'press_a', 1},
    {'w', 120},
    {'press_a', 1},
    {'d', 3},
    {'press_a', 2},
    {'w', 240},
    {'d', 18},
    {'u', 2},
    {'w', 60},
    {'press_a', 1},
    {'w', 120},
    {'press_a', 1},
    {'d', 1},
    {'press_a', 1},
    {'d', 2},
    {'press_a', 1},
    {'u', 2},
    {'l', 1},
    {'press_a', 1},
    {'w', 240},
    {'press_b', 9}, -- ready to rock
    
    {'u', 2}, -- begin fight
    {'w', 240},
    {'press_b', 11},
    {'w', 1800}, -- done
    {'press_a', 1}, -- close combat the clefable
    {'r', 1},
    {'d', 1},
    {'r', 1},
    {'l', 1},
    {'use_move', 1},
    {'w', 460}, -- done
    {'press_a', 1},
    {'w', 240},
    {'r', 1},
    {'d', 2},
    {'press_a', 2}, -- torterra will use earthquake vs roserade, we encore it, gg
    {'w', 1800},
    {'r', 1},
    {'press_a', 1},
    {'w', 240},
    {'r', 1},
    {'d', 1},
    {'press_a', 2},
    {'w', 1800},
    {'press_a', 1},
    {'r', 1},
    {'use_move', 1},
    {'d', 1},
    {'w', 60},
    {'press_a', 1},
    {'w', 120},
    {'r', 1},
    {'d', 1},
    {'press_a', 1},
    {'w', 120},
    {'press_a', 2},
    {'w', 1440},
    {'u', 1},
    {'press_a', 1},
    {'d', 1},
    {'l', 1},
    {'use_move', 3},
    {'press_b', 15}, -- done //20-AfterThirdTrainer
    {'save', '33-AfterThirdTrainer'},
    {'u', 2}, -- grab the tm for torment and then go back to the pokecenter
    {'r', 11},
    {'d', 2},
    {'r', 3},
    {'w', 60},
    {'r', 1},
    {'u', 4},
    {'l', 2},
    {'u', 9},
    {'r', 3},
    {'w', 540},
    {'r', 15},
    {'d', 2},
    {'w', 60},
    {'press_a', 4},
    {'w', 180},
    {'d', 2},
    {'w', 60},
    {'l', 5},
    {'w', 60},
    {'press_b', 3},
    {'x', 15},
    {'w', 60},
    {'d', 1},
    {'press_a', 1},
    {'w', 240},
    {'u', 21},
    {'press_a', 2},
    {'w', 120},
    {'press_b', 7},
    {'l', 14},
    {'d', 4},
    {'w', 60},
    {'press_a', 1},
    {'press_b', 10},
    {'x', 15},
    {'w', 60},
    {'press_a', 1},
    {'w', 240},
    {'u', 5},
    {'d', 6},
    {'press_a', 2},
    {'w', 600},
    {'d', 1},
    {'l', 10},
    {'u', 2},
    {'w', 540},
    {'pokecenter_heal', 1},
    {'press_b', 4},
    {'w', 60}, -- done
    
    {'r', 5}, -- grab haunter from pc
    {'u', 3},
    {'w', 60},
    {'press_a', 1},
    {'w', 180},
    {'press_a', 1},
    {'w', 180},
    {'press_a', 1},
    {'w', 180},
    {'press_a', 1},
    {'w', 120},
    {'d', 2},
    {'press_a', 1},
    {'w', 240},
    {'r', 3},
    {'l', 1},
    {'w', 60},
    {'press_a', 1},
    {'d', 2},
    {'press_a', 3},
    {'w', 60},
    {'press_a', 2},
    {'d', 5},
    {'w', 60},
    {'press_a', 1},
    {'w', 120},
    {'u', 2},
    {'w', 60},
    {'press_a', 2},
    {'w', 120},
    {'r', 1},
    {'w', 120},
    {'r', 2},
    {'w', 60},
    {'press_a', 2},
    {'w', 60},
    {'press_b', 15}, -- done
    
    {'d', 3}, -- back into victory road
    {'l', 5},
    {'d', 8},
    {'w', 540},
    {'r', 10},
    {'u', 3},
    {'w', 540},
    {'u', 15},
    {'r', 19},
    {'u', 16},
    {'r', 4},
    {'d', 1},
    {'w', 60},
    {'press_a', 4},
    {'w', 180},
    {'d', 1},
    {'l', 12},
    {'d', 3},
    {'l', 13},
    {'u', 13},
    {'l', 5},
    {'u', 8},
    {'l', 7},
    {'w', 540},
    {'l', 4},
    {'d', 3},
    {'w', 60},
    {'press_a', 5},
    {'w', 180},
    {'d', 3},
    {'r', 2},
    {'d', 7},
    {'w', 60},
    {'press_a', 9},
    {'w', 180},
    {'press_b', 3},
    {'d', 1},
    {'w', 60},
    {'d', 1},
    {'l', 2},
    {'w', 60},
    {'l', 1},
    {'d', 2},
    {'w', 60},
    {'d', 1},
    {'l', 2},
    {'d', 3},
    {'l', 11},
    {'d', 2},
    {'w', 60},
    {'d', 1},
    {'l', 3},
    {'w', 60},
    {'press_b', 7}, -- done
    
    {'x', 15}, -- onward to machamp guy
    {'w', 60},
    {'press_a', 1},
    {'w', 240},
    {'u', 19},
    {'w', 60},
    {'press_a', 2},
    {'w', 120},
    {'press_a', 1},
    {'press_b', 9},
    {'l', 1},
    {'d', 3},
    {'r', 2},
    {'w', 60},
    {'press_a', 5},
    {'w', 180},
    {'r', 1},
    {'u', 2},
    {'w', 60},
    {'u', 1},
    {'r', 5},
    {'d', 3},
    {'w', 60},
    {'press_a', 5},
    {'w', 180},
    {'d', 2},
    {'r', 3},
    {'u', 2},
    {'r', 11},
    {'d', 2},
    {'r', 3},
    {'w', 60},
    {'r', 1},
    {'u', 4},
    {'l', 2},
    {'u', 9},
    {'r', 3},
    {'w', 540},
    {'r', 15},
    {'d', 2},
    {'w', 60},
    {'press_a', 4},
    {'w', 240},
    {'l', 6},
    {'u', 13},
    {'r', 13},
    {'w', 60}, -- done
    {'save', '34-beforeMachampGuy'},
    {'x', 15}, -- get haunter set up for machamp fight and psychic fight
    {'w', 60},
    {'press_a', 1},
    {'w', 60},
    {'r', 1},
    {'w', 60},
    {'r', 1},
    {'w', 60},
    {'r', 1},
    {'w', 60},
    {'u', 32},
    {'d', 3},
    {'w', 60},
    {'press_a', 1},
    {'w', 60},
    {'press_a', 1},
    {'w', 60},
    {'press_a', 1},
    {'w', 60},
    {'press_a', 1},
    {'w', 60},
    {'press_a', 1},
    {'w', 240},
    {'r', 1},
    {'press_a', 1},
    {'w', 180},
    {'press_a', 1},
    {'w', 180},
    {'press_a', 1},
    {'w', 120},
    {'press_a', 1},
    {'w', 120},
    {'press_a', 1},
    {'w', 240},
    {'d', 1},
    {'w', 60},
    {'press_a', 1},
    {'w', 240},
    {'press_a', 1},
    {'press_b', 15},
    {'x', 15},
    {'w', 60},
    {'u', 1},
    {'press_a', 1},
    {'w', 240},
    {'r', 1},
    {'press_a', 1},
    {'d', 2},
    {'press_a', 2},
    {'w', 240},
    {'l', 1},
    {'w', 60},
    {'l', 1},
    {'w', 60},
    {'l', 1},
    {'w', 60},
    {'d', 7},
    {'w', 60},
    {'press_a', 1},
    {'w', 180},
    {'press_a', 2},
    {'d', 1},
    {'press_a', 1},
    {'l', 1},
    {'press_a', 1},
    {'w', 240},
    {'press_b', 9}, -- done
    
    {'w', 60}, -- fight machamp guy
    {'press_a', 1},
    {'w', 60},
    {'press_b', 5},
    {'w', 1800},
    {'press_a', 1},
    {'r', 1},
    {'use_move', 3}, -- shadow ball, machamp can't hit haunter
    {'press_b', 17}, -- done
    
    {'x', 15}, -- put golduck in front so we don't get bothered by the lvl 50 water mons
    {'w', 60},
    {'press_a', 1},
    {'w', 60},
    {'d', 2},
    {'press_a', 1},
    {'d', 5},
    {'press_a', 1},
    {'u', 2},
    {'press_a', 1},
    {'w', 240},
    {'press_b', 7}, -- done
    {'save', '35-afterMachampGuy'},
    {'d', 2}, -- go to psychic
    {'r', 13},
    {'u', 2},
    {'r', 3},
    {'w', 540},
    {'r', 11},
    {'u', 5},
    {'r', 4},
    {'u', 2},
    {'w', 60},
    {'press_a', 5},
    {'w', 180},
    {'u', 4},
    {'w', 60},
    {'x', 15},
    {'w', 60},
    {'press_a', 1},
    {'w', 240},
    {'d', 2},
    {'press_a', 1},
    {'d', 1},
    {'press_a', 1},
    {'u', 2},
    {'press_a', 1},
    {'w', 240},
    {'press_b', 9},
    {'u', 1},
    {'w', 240},
    {'press_b', 8},-- done
    {'w', 1800}, -- battle starts
    
    {'press_a', 1}, -- use shadow ball on chimecho
    {'r', 1},
    {'use_move', 1},
    {'press_b', 16}, -- done
    {'press_a', 1}, -- curse the absol and stall, it can't really hurt us outside of future sight
    {'l', 1},
    {'d', 1},
    {'use_move', 1},
    {'l', 1},
    {'press_a', 1},
    {'w', 120},
    {'press_a', 1},
    {'w', 120},
    {'r', 1},
    {'d', 2},
    {'press_a', 2},
    {'w', 240},
    {'press_a', 1},
    {'w', 1800},
    {'press_a', 1},
    {'w', 240},
    {'r', 1},
    {'d', 1},
    {'press_a', 1},
    {'w', 60},
    {'press_a', 2},
    {'w', 1800},
    {'press_a', 1},
    {'w', 180},
    {'press_a', 1},
    {'w', 120},
    {'r', 1},
    {'d', 2},
    {'press_a', 2},
    {'w', 1800},
    {'press_a', 1},
    {'w', 240},
    {'press_a', 1},
    {'w', 120},
    {'l', 1},
    {'d', 1},
    {'r', 1},
    {'w', 60},
    {'press_a', 1},
    {'w', 60},
    {'u', 3},
    {'w', 60},
    {'press_a', 2},
    {'w', 1800},
    {'press_b', 37}, -- done
    {'u', 1},
    {'press_a', 1}, -- use shadow ball OHKO dusknoir with +1 spatk
    {'w', 60},
    {'r', 1},
    {'u', 1},
    {'use_move', 1},
    {'press_b', 9}, -- done
    {'save', '36-afterPsychic'},
    {'x', 15}, -- rearrange items
    {'w', 60},
    {'press_a', 1},
    {'w', 60},
    {'r', 1},
    {'d', 2},
    {'press_a', 1},
    {'d', 2},
    {'press_a', 1},
    {'d', 1},
    {'press_a', 1},
    {'w', 180},
    {'press_a', 1},
    {'l', 1},
    {'u', 1},
    {'press_a', 1},
    {'d', 2},
    {'press_a', 2},
    {'w', 60},
    {'u', 11},
    {'d', 7},
    {'w', 60},
    {'press_a', 1},
    {'w', 180},
    {'press_a', 1},
    {'w', 60},
    {'u', 1},
    {'w', 60},
    {'press_a', 1},
    {'w', 120},
    {'d', 2},
    {'press_a', 2},
    {'w', 240},
    {'d', 14},
    {'u', 1},
    {'press_a', 1},
    {'w', 180},
    {'press_a', 1},
    {'w', 180},
    {'press_a', 1},
    {'w', 120},
    {'press_a', 1},
    {'d', 2},
    {'press_a', 1},
    {'d', 5},
    {'press_a', 1},
    {'u', 2},
    {'press_a', 1},
    {'w', 240},
    {'r', 1},
    {'d', 2},
    {'press_a', 1},
    {'w', 60},
    {'d', 2},
    {'press_a', 2},
    {'w', 240},
    {'d', 6},
    {'u', 5},
    {'w', 60},
    {'press_a', 1},
    {'w', 180},
    {'press_a', 1},
    {'w', 60},
    {'press_b', 9}, -- done
    
    {'u', 1}, -- go to dragon trainer guy
    {'w', 60},
    {'press_a', 5},
    {'w', 240},
    {'u', 6},
    {'r', 3},
    {'u', 9},
    {'r', 5},
    {'u', 4},
    {'w', 60},
    {'press_a', 4},
    {'w', 360},
    {'u', 5},
    {'l', 14},
    {'w', 60}, -- done
    {'save', '37-beforeDragonTamer1'},
    {'x', 15}, -- vapor in front
    {'w', 60},
    {'press_a', 1},
    {'w', 240},
    {'d', 1},
    {'press_a', 1},
    {'d', 1},
    {'press_a', 1},
    {'u', 1},
    {'press_a', 1},
    {'w', 240},
    {'press_b', 8}, -- done
    {'l', 1},
    {'w', 240}, -- fight this guy, ice beam twice
    {'press_b', 10},
    {'w', 1800},
    {'press_a', 1},
    {'d', 1},
    {'r', 1},
    {'use_move', 1},
    {'press_b', 22},
    {'use_move', 1},
    {'press_b', 20}, -- done
    
    {'x', 15}, -- go to next trainer
    {'w', 60},
    {'press_a', 1},
    {'w', 240},
    {'press_a', 1},
    {'d', 1},
    {'press_a', 1},
    {'d', 1},
    {'press_a', 1},
    {'w', 240},
    {'press_b', 8},
    {'l', 1},
    {'w', 60},
    {'press_a', 6},
    {'w', 180},
    {'l', 6},
    {'d', 13},
    {'w', 60},
    {'d', 4},
    {'r', 2},
    {'d', 3},
    {'l', 3},
    {'w', 540},
    {'l', 12},
    {'w', 60},
    {'press_b', 5},
    {'x', 15}, -- reapply repel
    {'w', 60},
    {'d', 1},
    {'press_a', 1},
    {'w', 240},
    {'u', 16},
    {'w', 60},
    {'press_a', 2},
    {'w', 180},
    {'press_b', 10}, -- done
    
    {'x', 15}, -- put infernape in front
    {'w', 60},
    {'u', 1},
    {'press_a', 1},
    {'w', 60},
    {'r', 1},
    {'press_a', 1},
    {'d', 2},
    {'press_a', 1},
    {'l', 1},
    {'press_a', 1},
    {'w', 240},
    {'press_b', 8},
    {'l', 2}, -- do the veteran fight
    {'d', 2},
    {'w', 180},
    {'press_b', 9},
    {'w', 1800},
    {'press_a', 1},
    {'r', 1},
    {'l', 1},
    {'d', 1},
    {'use_move', 1},
    {'press_b', 44},
    {'use_move', 1},
    {'w', 300},
    {'press_a', 1},
    {'w', 360},
    {'press_a', 1},
    {'w', 540},
    {'press_a', 1},
    {'w', 600},
    {'press_a', 1},
    {'w', 600},
    {'press_b', 1},
    {'w', 60},
    {'r', 1},
    {'d', 2},
    {'press_a', 2},
    {'w', 1800},
    {'press_a', 1},
    {'d', 1},
    {'use_move', 1},
    {'press_b', 13}, -- done
    {'d', 13}, -- go to next trainer
    {'r', 10},
    {'u', 1},
    {'w', 60},
    {'press_a', 3},
    {'w', 240}, -- idling
    
    {'u', 1}, -- do the battle
    {'w', 120},
    {'press_b', 9},
    {'w', 1800},
    {'press_a', 1},
    {'d', 1},
    {'use_move', 1},
    {'press_b', 22},
    {'r', 1},
    {'press_a', 1},
    {'w', 240},
    {'d', 1},
    {'press_a', 2},
    {'w', 1800},
    {'press_a', 1},
    {'r', 1},
    {'d', 1},
    {'use_move', 1},
    {'press_b', 20},
    {'use_move', 1},
    {'press_b', 14}, -- done
    
    
    {'u', 27}, -- go to pokemon league
    {'l', 6},
    {'w', 540},
    {'l', 6},
    {'u', 11},
    {'w', 60},
    {'x', 15},
    {'w', 60},
    {'press_a', 1},
    {'w', 60},
    {'r', 1},
    {'press_a', 1},
    {'u', 3},
    {'press_a', 1},
    {'l', 1},
    {'press_a', 1},
    {'w', 240},
    {'press_b', 7},
    {'press_a', 5},
    {'w', 240},
    {'u', 1},
    {'w', 60},
    {'press_a', 5},
    {'w', 420},
    {'u', 5},
    {'w', 60},
    {'u', 4},
    {'w', 540}, -- inside elite four building //21-ArrivedInLeague
    {'save', '38-ArrivedInLeague'};
}


client.unpause()
client.unpause_av()
m.executeOrders(a)
client.pause_av()
client.pause()
