No categories assigned

LUA:RemoveLootItem

Revision as of 22:09, 11 September 2013 by Jabantiz (talk | contribs) (Created page with "= LUA Functions: RemoveLootItem() = Removes the item with the given ID from the given spawns loot list ==== Syntax ==== RemoveLootItem(param1, param2) ==== Parameters ==== ; ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

LUA Functions: RemoveLootItem()

Removes the item with the given ID from the given spawns loot list


Syntax

RemoveLootItem(param1, param2)


Parameters

Required - param1 (Spawn), param2 (int32)
param1 is the spawn we want to remove the item from
param2 is the item ID to remove


Usage

function hailed(NPC, Spawn)
    RemoveLootItem(NPC, 1234)
end

When hailed the NPC ill remove the item with ID 1234 from its loot list