mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-05-20 08:26:59 -04:00
More GetInventory changes.
This commit is contained in:
@@ -35,7 +35,7 @@ function GetGCSeals(player, company)
|
||||
company = tonumber(company);
|
||||
|
||||
if company ~= nil and company > 0 and company < 4 then
|
||||
return player:GetInventory(INVENTORY_CURRENCY):GetItemQuantity(companySeal[tonumber(company)]);
|
||||
return player:GetItemPackage(INVENTORY_CURRENCY):GetItemQuantity(companySeal[tonumber(company)]);
|
||||
else
|
||||
return -1;
|
||||
end
|
||||
@@ -52,7 +52,7 @@ function AddGCSeals(player, company, amount)
|
||||
if currentAmount ~= -1 then
|
||||
if amount then
|
||||
if currentAmount + amount <= maxAmount then
|
||||
invCheck = player:GetInventory(INVENTORY_CURRENCY):AddItem(companySeal[company], amount, 1);
|
||||
invCheck = player:GetItemPackage(INVENTORY_CURRENCY):AddItem(companySeal[company], amount, 1);
|
||||
if invCheck == INV_ERROR_SUCCESS then
|
||||
return INV_ERROR_SUCCESS;
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user