> For the complete documentation index, see [llms.txt](https://docs.decentraland.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.decentraland.org/creator/content-creator-pt/tutoriais-e-exemplos/rewards/clap-to-claim-dispenser.md).

# Dispenser de claim por aplauso

Um dispenser de wearable que os jogadores reivindicam fazendo o emote de aplauso em uma área de trigger.

Permita que os jogadores resgatem um wearable fazendo o emote de palmas em frente a um dispensador, uma mecânica usada na Metaverse Fashion Week. O README explica como configurar o dispensador para usar a sua própria campanha Rewards.

## Informações do projeto

**Mantido por:** Decentraland

[Ver código-fonte](https://github.com/decentraland/sdk7-goerli-plaza/tree/main/clap-claim-dispenser)

**Licença:** Não identificada neste catálogo. Consulte o repositório de origem e o responsável pela manutenção para conhecer os termos aplicáveis antes de reutilizar.

## Explorar o código

Estas ligações apontam para um instantâneo específico do código-fonte, para que as explicações continuem a ser úteis à medida que o desenvolvimento a montante prossegue. São referências para aprendizagem, não uma avaliação de segurança.

### Ative um dispensador enquanto o jogador está em frente a ele

Cada dispensador armazena a respetiva campanha num `DispenserComponent`. Uma esfera `TriggerArea` à frente dele define `isActive` e mostra uma notificação «faça o gesto de palmas para resgatar» ao entrar, e limpa ambos ao sair.

**Contexto do projeto:** O ID da campanha e a chave do dispensador vêm de `ClaimConfig` em `src/modules/claiming/claimConfig.ts`.

**Referências do código-fonte:**

* [`createDispenserWithWearable`](https://github.com/decentraland/sdk7-goerli-plaza/blob/54a07775ee340f0ce22eb23280ef0e9c35f5e386/clap-claim-dispenser/src/modules/dispensers.ts#L28-L89)

### Resgate quando o jogador fizer o emote de palmas

`initClapToClaim` observa `AvatarEmoteCommand` na entidade do jogador. Quando o emote é `clap`, aguarda a animação e resgata de todos os dispensadores que estiverem ativos.

**Contexto do projeto:** O pedido de resgate e o tratamento da resposta seguem o mesmo fluxo Rewards do exemplo de dispensador de resgate de recompensas.

**Referências do código-fonte:**

* [`initClapToClaim`](https://github.com/decentraland/sdk7-goerli-plaza/blob/54a07775ee340f0ce22eb23280ef0e9c35f5e386/clap-claim-dispenser/src/modules/clapToClaim.ts#L6-L33)


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.decentraland.org/creator/content-creator-pt/tutoriais-e-exemplos/rewards/clap-to-claim-dispenser.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
