516 B
516 B
Function: RemoveLootItem(spawn, item_id)
Description: Removes a loot item from the Spawn(NPC).
Parameters:
spawn
(Spawn) - Spawn object representingspawn
.item_id
(uint32) - Integer valueitem_id
.
Returns: None.
Example:
-- From SpawnScripts/Antonica/adankfurdockwarden.lua
function death(NPC, Spawn)
if GetQuestStep(Spawn, QUEST_3) == 2 then
if not HasItem(Spawn, 7800) then
AddLootItem(Spawn, 7800)
elseif HasItem(Spawn, 7800) then
RemoveLootItem(Spawn, 7800)
end