Auto Lottery¶
Automatically spins lottery boxes during event lotteries to collect rewards efficiently.
Overview¶
The Lottery script continuously opens lottery boxes during Fate/Grand Order events. It handles present box overflow and can redirect to collect embers or sell items when the present box becomes full.
How to Start¶
- Navigate to the Event Lottery screen in the game
- The script will automatically detect the lottery screen when:
- The lottery cost indicator is visible (JP/EN servers)
- The lottery box finished indicator is visible
- Make sure you have lottery currency (event items) to spend
Workflow¶
flowchart TD
A[Start Lottery Script] --> B[Initialize Spin Settings<br/>Click count, long press duration]
B --> C[Main Spin Loop]
C --> D[Check Current State]
D --> E{State?}
E -->|Present Box Full| F[Handle Full Present Box]
E -->|Lottery Done| G[Verify Done<br/>Double check]
E -->|Keep Spinning| C
F --> H[Collect or Sell Embers]
G --> I[Exit with<br/>Out of Currency] Key Features¶
Server-Specific Spinning¶
You can choose which gesture FGA uses to press the Spin button.
| Option | Behavior |
|---|---|
| Multi-Click | Taps the spin button multiple times quickly. |
| Long Press | Press-and-hold on the spin button for a configurable duration. |
| Mixed | Alternates between multi-click and long press. |
Note
Updated all servers to use the same configuration options for consistency.
Present Box Full Handling¶
When the present box becomes full, the script can:
- Collect Embers from Gift Box - Opens gift box to receive gold embers
- Redirect to Sell Menu - After collecting embers, redirect to sell excess items
- Stop the script - Exit with a present box full notification
Lottery Completion Detection¶
- Double-checks when lottery appears done to avoid false positives
- Verifies by attempting spins and checking if the "done" indicator persists
Settings¶
| Setting | Description |
|---|---|
| Receive Embers When Gift Box Full | Enable automatic ember collection |
| Loop Into Lottery After Present Box | Return to lottery after collecting embers |
| Move to Sell After Present Box | Navigate to sell menu after collecting |
| Max Gold Ember Total Count | Limit on gold embers to collect per session |


Spin Configuration¶
| Setting | Description |
|---|---|
| Lotto Spin Count | Number of clicks per spin cycle (non-JP) |
| Lotto Long Press Duration | Duration of long press for spinning (JP) |
Exit Reasons¶
The script will stop and notify you when any of these conditions occur:
| Exit Reason | Description |
|---|---|
| Ran Out of Currency | No more lottery currency to spend |
| Present Box Full | Present box is full and auto-collect is disabled |
| No Embers Found | Could not find embers in the gift box |
| Cannot Select Any More | Reached the limit of selectable items |
| Present Box Full and Cannot Select Anymore | Box is full and reached selection limit |
| Reached Sell Banner | Successfully navigated to the sell menu |
| Unable to Verify Sell | Could not verify navigation to sell menu |
| Aborted | Script was manually stopped by user |

Tips for Best Results¶
- Clear your present box before starting for longer uninterrupted runs
- Set ember collection limits to avoid unnecessary inventory management
- Set the present box to show embers this is to trigger the auto gift box collection
- For JP users: It is recommended to use
multi-clickfrom box 1 to box 10 and then switch to use long press feature for faster spinning for 11th box and beyond.
Present Box Integration¶
When present box becomes full during lottery:
┌─────────────────────────────────────────┐
│ Present Box Full Detected │
└─────────────────────┬───────────────────┘
│
▼
┌─────────────────────────────────────────┐
│ Is "Receive Embers" enabled? │
└─────────────────────┬───────────────────┘
│
┌────────────┴────────────┐
│ Yes │ No
▼ ▼
┌─────────────────┐ ┌─────────────────┐
│ Navigate to │ │ Exit: Present │
│ Gift Box │ │ Box Full │
└────────┬────────┘ └─────────────────┘
│
▼
┌─────────────────────────────────────────┐
│ Collect Gold Embers (AutoGiftBox) │
└─────────────────────┬───────────────────┘
│
▼
┌─────────────────────────────────────────┐
│ Is "Loop Into Lottery" enabled? │
└─────────────────────┬───────────────────┘
│
▼
Return to Lottery or Exit