Skip to content

Create Pokemon FRLG Lucky Egg Farmer (Draft) #1138

@Dalton-V

Description

@Dalton-V

As I am writing this from my phone while travelling this issue is still incomplete. I will continue to add details as I have time. If someone with github permissions reads this feel free to assign it to me. I plan on working on this program starting 3/23

Game

Pokemon Fire Red & Leaf Green

Type

New program.

A number of users have mentioned wanting a program to automatically catch Chancy in the Safari Zone. Then check for the Lucky Egg held item resetting if not found.

Supporting Code Needed

  1. Need a HeldItemDetector.
  2. Need to verify the different dialogue boxes.
  3. Need a PartyMemberDetector to verify that there is empty slots for the captured Chansey.

Discord User Jack Mutsers has provided a lot of resources that I will attach here.

Setup Requirements

1.⁠ ⁠Empty your party so that you only have 2 Pokémon:
Slot 1: A Pokémon level 34 or higher

  • This prevents encounters while walking to the Chansey location.

Slot 2: A Pokémon exactly level 26
Recommended options:

  • For increased encounter rate:
    • Starmie / Staryu with the "Illuminate" ability
    • Diglett / Dugtrio with the "Arena Trap" ability
  • For increased held item chance (1/5 instead of 1/20):
    • Butterfree with the "Compound Eyes" ability (its only ability)

2.⁠ ⁠Stand one step away from the Safari Zone entrance employee.
3.⁠ ⁠Use a Max Repel.
4.⁠ ⁠Save the game in this state so it can be quickly reset automatically.

Encounter Loop

I haven't physically done the loop yet so I might change this as I test for reliablity.

  1. Move up for 75 ms.

  2. Wait 500 ms.

  3. Alternate movement until an encounter occurs:

    • Move left for 75 ms.
    • Move up for 75 ms.
  4. When entering combat, wait until the Pokémon sprite becomes visible.

  5. Press A for 100 ms.

  6. Check if the encountered Pokémon matches the Chansey image or OCR Pokemon Name.

    If it is NOT Chansey:

    1. Move down for 75 ms.
    2. Move right for 75 ms.
    3. Press A for 100 ms (run/exit battle).
    4. Wait until combat has ended.
  7. After Flee:

    • Check if the character is still in the grass inside the Safari Zone:
      • If yes, restart from Step 1.
    • Check if the character is inside the Safari Zone entrance building:
      • If yes, check for held items on caught Chansey.
    • Hopefully there is an obvious text box for returning to the building.
  8. Checking captured Chansey:

    • Press X for 75 ms.
    • Move to the second option in the list.
    • Scan for Chansey sprites.

    If no Chansey is found:

    • Restart the game (A + B + X + Y).
    • Wait 1 second.
    • Press A for 100 ms.
    • Wait 500 ms.
    • Press A for 100 ms.
    • Press B repeatedly for 1.5 seconds.
    • Restart the program.
  9. If a Chansey is found:

    • Check for the held item icon.

    If no held item is present:

    • Restart the game (A + B + X + Y).
    • Wait 1 second.
    • Press A for 100 ms.
    • Wait 500 ms.
    • Press A for 100 ms.
    • Press B repeatedly for 1.5 seconds.
    • Restart the program.
  10. If the held item is found, stop the program.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions