mirror of
https://github.com/emagi/eq2emu
synced 2026-08-12 18:23:04 -04:00
550 B
550 B
Function: AddItem(Spawn, ItemID, Quantity)
Description: Add an Item to a Spawn/Player with the defined Item ID and Quantity.
Parameters:
Spawn: Spawn - The spawn or entity involved.ItemID: UInt32 - Item id to assign to Spawn.Quantity: UInt32 - Quantity of item to assign to Spawn (default 1).
Returns: Boolean: True if successfully assigned the item, otherwise return's False.
Example:
-- Example usage: Assigns Spawn the ItemID 1696 (a fishman scale amulet) with Quantity of 1.
AddItem(Spawn, 1696)