mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-06-09 14:04:41 +02:00
Scripts for retainers. Adds item storage functionality.
This commit is contained in:
parent
64006d2351
commit
4160622556
3 changed files with 15 additions and 9 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue