Scripts for retainers. Adds item storage functionality.

This commit is contained in:
Filip Maj 2017-09-09 14:12:38 -04:00
parent 64006d2351
commit 4160622556
3 changed files with 15 additions and 9 deletions

View file

@ -39,9 +39,9 @@ function onEventStarted(player, npc, triggerName)
while (true) do
choice = callClientFunction(player, "eventTalkRetainerMenu", false, true);
if (choice == 1) then
doItemTrade(player, npc);
doItemTrade(player, retainer);
elseif (choice == 2) then
doBazaar(player, npc);
doBazaar(player, retainer);
elseif (choice == 7) then
callClientFunction(player, "eventTalkRetainerMannequin", 0);
elseif (choice == 8) then

View file

@ -24,6 +24,10 @@ function init(npc)
return false, false, 0, 0;
end
function onSpawn(player, npc)
npc:SendFullRetainerInventory(player);
end
function onEventStarted(player, retainer, triggerName)
while (true) do