mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-04-20 11:47:48 +00:00
Modified ItemWasteCommand so it uses the given itempackage. This lets you discard loot.
This commit is contained in:
parent
2a489953db
commit
b191da416b
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
function onEventStarted(player, actor, triggerName, itemReference, targetPackage, sourcePackage, arg1, arg2, unknown, arg3, arg4, arg5, type9ItemIds)
|
||||||
player:GetInventory(0x00):RemoveItemAtSlot(invActionInfo.slot);
|
player:GetInventory(targetPackage):RemoveItemAtSlot(itemReference.slot);
|
||||||
player:EndEvent();
|
player:EndEvent();
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue