mirror of
https://github.com/emagi/eq2emu
synced 2026-08-12 18:23:04 -04:00
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