> For the complete documentation index, see [llms.txt](https://greenbeli.gitbook.io/green-beli/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://greenbeli.gitbook.io/green-beli/gameplay/restore-levels.md).

# Restore Levels

Restore levels is a feature that helps to bring back a Green Hero to the highest level it ever reached.

## How does it work?

When a Green Hero is exchanged, the exp amount will be reset to 0, the level will be reset to 1. However, each Green Hero has a former level attribute (the highest level the Green Hero has ever reached).

With the Restore levels feature, players can use $GFRUIT to restore a Green hero to the highest level it has ever achieved.

***Example:** User A lists a Green Hero on NFT Marketplace with level 60. User B buy it. The Green Hero is then reset to level 1. User B plays it to level 50 and then sells it. User C buys it and selects Restore levels. The Green Hero will then be set at level 60 (the highest level it ever reached).*

**Formula**

<table data-header-hidden><thead><tr><th width="150" align="center"></th><th width="150" align="center"></th><th width="150" align="center"></th><th align="center"></th></tr></thead><tbody><tr><td align="center"><strong>Star</strong></td><td align="center"><strong>From level</strong></td><td align="center"><strong>To level</strong></td><td align="center"><strong>$GFRUIT / level</strong></td></tr><tr><td align="center">1</td><td align="center">1</td><td align="center">8</td><td align="center">2000</td></tr><tr><td align="center">2</td><td align="center">9</td><td align="center">32</td><td align="center">4000</td></tr><tr><td align="center">3</td><td align="center">33</td><td align="center">64</td><td align="center">8000</td></tr><tr><td align="center">4</td><td align="center">65</td><td align="center">128</td><td align="center">16000</td></tr><tr><td align="center">5</td><td align="center">129</td><td align="center">256</td><td align="center">32000</td></tr><tr><td align="center">6</td><td align="center">257</td><td align="center">512</td><td align="center">64000</td></tr></tbody></table>

**Example:** If your Green Hero’s current level is 10, 50 EXP and it has the highest ever reached level is 70.

🌱 To restore from level 10 to level 70 at full exp, the total cost is calculated as follows:

* 1 star: None
* 2 star: 10 to 32 -> 32 - 10 + 1 = 23 levels
* 3 star: 32 to 64 -> 64 - 33 + 1 = 32 levels
* 4 star: 64 to 70 -> 70 - 65 + 1 = 6 levels&#x20;

\=> Total cost: 23\*4,000 *+* 3&#x32;*\**&#x38;,000 + 6\*16,000 = 444,000 $GFRUIT

After the restore, your Green Hero will have level 70 and 375 EXP


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://greenbeli.gitbook.io/green-beli/gameplay/restore-levels.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
