mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-05-20 08:26:59 -04:00
More refactoring. Adding to bazaar now works for selling and seeking by gil.
This commit is contained in:
@@ -40,7 +40,7 @@ function onTrigger(player, argc, item, qty, location, name, lastName)
|
||||
location = INVENTORY_NORMAL;
|
||||
end;
|
||||
|
||||
local added = player:getInventory(location):addItem(item, qty, 1);
|
||||
local added = player:getItemPackage(location):addItem(item, qty, 1);
|
||||
|
||||
if added then
|
||||
message = string.format("Added item %u of kind %u to %s", item, location, player:GetName());
|
||||
|
Reference in New Issue
Block a user