From b191da416ba2ba77d69cc45c9461b20cf4ee3f2e Mon Sep 17 00:00:00 2001 From: Filip Maj Date: Sat, 21 Oct 2017 13:09:04 -0400 Subject: [PATCH] Modified ItemWasteCommand so it uses the given itempackage. This lets you discard loot. --- data/scripts/commands/ItemWasteCommand.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data/scripts/commands/ItemWasteCommand.lua b/data/scripts/commands/ItemWasteCommand.lua index c906675b..e827391e 100644 --- a/data/scripts/commands/ItemWasteCommand.lua +++ b/data/scripts/commands/ItemWasteCommand.lua @@ -9,7 +9,7 @@ The param "itemDBIds" has the vars: item1 and item2. --]] -function onEventStarted(player, actor, triggerName, invActionInfo, param1, param2, param3, param4, param5, param6, param7, param8, itemDBIds) - player:GetInventory(0x00):RemoveItemAtSlot(invActionInfo.slot); +function onEventStarted(player, actor, triggerName, itemReference, targetPackage, sourcePackage, arg1, arg2, unknown, arg3, arg4, arg5, type9ItemIds) + player:GetInventory(targetPackage):RemoveItemAtSlot(itemReference.slot); player:EndEvent(); end