mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-06-09 05:54:50 +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
|
||||
|
||||
|
|
|
@ -0,0 +1,26 @@
|
|||
--[[
|
||||
|
||||
PopulaceBountyPresenter Script
|
||||
|
||||
Functions:
|
||||
|
||||
eventLowerLevel(player) -
|
||||
eventAlreadyPresent(player) -
|
||||
eventBeforePresent(player) -
|
||||
eventAfterPresent(player) -
|
||||
eventJail(player, bool) -
|
||||
|
||||
--]]
|
||||
|
||||
require ("global")
|
||||
|
||||
function init(npc)
|
||||
return false, false, 0, 0;
|
||||
end
|
||||
|
||||
function onEventStarted(player, npc, triggerName)
|
||||
|
||||
callClientFunction(player, "eventLowerLevel", player);
|
||||
player:EndEvent();
|
||||
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue