Method GameObject:AddLoot [-] [+]

Adds an Item to the loot of a GameObject. Requires a gameobject with loot_template set to 0.

Synopsis

itemGUIDlow = GameObject:AddLoot( entry )

itemGUIDlow = GameObject:AddLoot( entry, amount )

Arguments

number entry

The entry of the Item.

Valid numbers: integers from 0 to 4,294,967,295.

number amount (1)

Amount of the Item to add to the loot.

Valid numbers: integers from 0 to 4,294,967,295.

Returns

number itemGUIDlow

Low GUID of the Item.

Valid numbers: integers from 0 to 4,294,967,295.

Generated on
©2016 - Eluna Lua Engine