Skip to main content
The Deno 2 Release Candidate is here
Learn more
method BotGeneratorHelper.prototype.addItemWithChildrenToEquipmentSlot
Re-export
import { BotGeneratorHelper } from "https://deno.land/x/sptaki@1.2.0/helpers/mod.ts";

Adds an item with all its children into specified equipmentSlots, wherever it fits.

Parameters

equipmentSlots: string[]

Slot to add item+children into

rootItemId: string

Root item id to use as mod items parentid

rootItemTplId: string

Root itms tpl id

itemWithChildren: Item[]

Item to add

inventory: Inventory

Inventory to add item+children into

optional
containersIdFull: Set<string>

Returns

ItemAddedResult result object