Added script for ItemStorage npc. Added scripts for both types of inn exit doors. Added BountyPresenter script (YoshiP).

This commit is contained in:
Filip Maj 2017-06-19 22:23:27 -04:00
parent c1d67538f3
commit 7f6b291366
14 changed files with 116 additions and 18 deletions

View file

@ -28,7 +28,11 @@ function onEventStarted(player, npc, triggerName)
goto TOP_MENU;
end
callClientFunction(player, "selectStoreItem", nil, categoryChoice);
itemId = callClientFunction(player, "selectStoreItem", nil, categoryChoice);
if (itemId ~= nil) then
player:GetInventory(INVENTORY_NORMAL):RemoveItem(itemId, 1);
end
elseif (storageChoice == 2) then
categoryChoice = callClientFunction(player, "selectCategory");
@ -37,7 +41,11 @@ function onEventStarted(player, npc, triggerName)
goto TOP_MENU;
end
callClientFunction(player, "selectReceiveItem", nil, categoryChoice);
itemId = callClientFunction(player, "selectReceiveItem", nil, categoryChoice);
if (itemId ~= nil) then
player:GetInventory(INVENTORY_NORMAL):AddItem(itemId, 1);
end
end