> 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/additem.md).

# npc.additem

```lua
npc.additem(item, count)
```

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

## What it does

Gives an item at once, with no "obtained" window; the battle log notes it. Returns the new count.

## Arguments

### `item` (Int)

The id (`data/inv-*.csv`).

### `count` (Int)

How many.

## Result

The new count.

## Timing

Returns at once.

## In NPC Kit

For a quiet give. A give the player should notice is [additemmes](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/additemmes.md).

## Used with

* [subitem](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/subitem.md), [haveitem](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/haveitem.md), [additem\_47f](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/additem_47f.md).

## Example

A quiet give with no notice: the item goes in the inventory and the NPC says so itself.

```lua
local secret = [[
I slipped two potions into your pack just now.
Don't tell anyone, or they'll all want some too.
]]

slip = function()
    npc.additem(0x0000, 2);     -- 2 Potions, no window
end,

talk = function()
    talkOpen();
    npc.lua(function(handle)
        handle.run("slip", function()
            say(handle, secret)
        end)
    end);
    talkClose();
end,
```

## Pitfalls

* The player sees nothing: say it in the line, or use [additemmes](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/additemmes.md).
