> For the complete documentation index, see [llms.txt](https://fehdead.gitbook.io/npc-kit/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/sebsoundplay.md).

# npc.sebsoundplay

```lua
npc.sebsoundplay(bank, sound)
```

|                         |                                                                             |
| ----------------------- | --------------------------------------------------------------------------- |
| id                      | `0x02C0`                                                                    |
| arguments               | 2: Int, Int                                                                 |
| result                  | int: goes to the very next call, or to `npc.lua(npc.sebsoundplay(...), fn)` |
| in NPC Kit              | yes                                                                         |
| measured from a kit NPC | returns                                                                     |
| vanilla scripts         | 6821 calls in 534 of 1114 scripts                                           |

## What it does

Plays a sound effect from a loaded sound bank, centred and at full volume.

## Arguments

### `bank` (Int)

Which loaded bank: `0` the current one (almost every vanilla call), `1` and `2` two others.

### `sound` (Int)

The sound's slot in the bank. Vanilla: `(0, 39)` 2,402 times, `(0, 40)` 2,089, `(0, 2)` 940.

## Result

A play handle (`0` while a cutscene is skipped), for calls that wait on a sound.

## Timing

Returns at once.

## In NPC Kit

The kit examples use `(0, 38)`, `(0, 40)` (the item jingle) and `(0, 46)`. There is no bundled table of what each slot sounds like: try ids in the game, or ask the requester.

## Used with

* [additemmes](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/additemmes.md): vanilla plays `(0, 40)` before the item notice.
* [common2effectplay](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/common2effectplay.md): a sound with an effect.

## Example

A jingle before the item notice, as vanilla does.

```lua
give = function()
    npc.sebsoundplay(0, 40);
    npc.additemmes(0x0000, 1);
end,
```

## Pitfalls

* There is no table of what each slot sounds like: try the id in the game.
