mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-06-09 14:04:41 +02:00
Added script for ItemStorage npc. Added scripts for both types of inn exit doors. Added BountyPresenter script (YoshiP).
This commit is contained in:
parent
c1d67538f3
commit
7f6b291366
14 changed files with 116 additions and 18 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue