mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-06-09 14:04:41 +02:00
Changed scripts still referencing GetInventory to GetItemPackage.
This commit is contained in:
parent
f038b525c6
commit
c1fdad2156
4 changed files with 44 additions and 44 deletions
|
@ -31,7 +31,7 @@ function onEventStarted(player, npc, triggerName)
|
|||
itemId = callClientFunction(player, "selectStoreItem", nil, categoryChoice);
|
||||
|
||||
if (itemId ~= nil) then
|
||||
player:GetInventory(INVENTORY_NORMAL):RemoveItem(itemId, 1);
|
||||
player:GetItemPackage(INVENTORY_NORMAL):RemoveItem(itemId, 1);
|
||||
end
|
||||
|
||||
elseif (storageChoice == 2) then
|
||||
|
@ -44,7 +44,7 @@ function onEventStarted(player, npc, triggerName)
|
|||
itemId = callClientFunction(player, "selectReceiveItem", nil, categoryChoice);
|
||||
|
||||
if (itemId ~= nil) then
|
||||
player:GetInventory(INVENTORY_NORMAL):AddItem(itemId, 1);
|
||||
player:GetItemPackage(INVENTORY_NORMAL):AddItem(itemId, 1);
|
||||
end
|
||||
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue