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

@ -29,7 +29,7 @@ function onEventStarted(player, npc)
choice = callClientFunction(player, "delegateEvent", player, defaultFst, "defaultTalkWithInn_Desk", nil, nil, nil);
if (choice == 1) then
GetWorldManager():DoZoneChange(player, 13);
GetWorldManager():DoZoneChange(player, 244, nil, 0, 15, 160.048, 0, 154.263, 0);
elseif (choice == 2) then
if (player:GetHomePointInn() ~= 2) then
player:SetHomePointInn(2);

View file

@ -0,0 +1,12 @@
require ("global")
function onEventStarted(player, npc)
defaultFst = GetStaticActor("DftFst");
choice = callClientFunction(player, "delegateEvent", player, defaultFst, "defaultTalkWithInn_ExitDoor");
if (choice == 1) then
GetWorldManager():DoZoneChange(player, 155, nil, 0, 15, 59.252, 4, -1219.342, 0.852);
end
player:endEvent();
end

View file

@ -0,0 +1,12 @@
require ("global")
function onEventStarted(player, npc)
defaultSea = GetStaticActor("DftSea");
choice = callClientFunction(player, "delegateEvent", player, defaultSea, "defaultTalkWithInn_ExitDoor");
if (choice == 1) then
GetWorldManager():DoZoneChange(player, 133, nil, 0, 15, -444.266, 39.518, 191, 1.9);
end
player:endEvent();
end

View file

@ -0,0 +1,12 @@
require ("global")
function onEventStarted(player, npc)
defaultWil = GetStaticActor("DftWil");
choice = callClientFunction(player, "delegateEvent", player, defaultWil, "defaultTalkWithInn_ExitDoor");
if (choice == 1) then
GetWorldManager():DoZoneChange(player, 209, nil, 0, 15, -110.157, 202, 171.345, 0);
end
player:endEvent();
end

View file

@ -0,0 +1,12 @@
require ("global")
function onEventStarted(player, npc)
defaultFst = GetStaticActor("DftFst");
choice = callClientFunction(player, "delegateEvent", player, defaultFst, "defaultTalkWithInn_ExitDoor");
if (choice == 1) then
GetWorldManager():DoZoneChange(player, 155, nil, 0, 15, 59.252, 4, -1219.342, 0.852);
end
player:endEvent();
end

View file

@ -0,0 +1,12 @@
require ("global")
function onEventStarted(player, npc)
defaultSea = GetStaticActor("DftSea");
choice = callClientFunction(player, "delegateEvent", player, defaultSea, "defaultTalkWithInn_ExitDoor");
if (choice == 1) then
GetWorldManager():DoZoneChange(player, 133, nil, 0, 15, -444.266, 39.518, 191, 1.9);
end
player:endEvent();
end

View file

@ -0,0 +1,12 @@
require ("global")
function onEventStarted(player, npc)
defaultWil = GetStaticActor("DftWil");
choice = callClientFunction(player, "delegateEvent", player, defaultWil, "defaultTalkWithInn_ExitDoor");
if (choice == 1) then
GetWorldManager():DoZoneChange(player, 209, nil, 0, 15, -110.157, 202, 171.345, 0);
end
player:endEvent();
end

View file

@ -5,7 +5,7 @@ function onEventStarted(player, npc)
choice = callClientFunction(player, "delegateEvent", player, defaultSea, "defaultTalkWithInn_Desk", nil, nil, nil);
if (choice == 1) then
GetWorldManager():DoZoneChange(player, 13);
GetWorldManager():DoZoneChange(player, 244, nil, 0, 15, -160.048, 0, -165.737, 0);
elseif (choice == 2) then
if (player:GetHomePointInn() ~= 1) then
player:SetHomePointInn(1);

View file

@ -36,9 +36,7 @@ function onEventStarted(player, npc, triggerName)
player:AddDirector(director);
player:SetLoginDirector(director);
GetWorldManager():DoZoneChange(player, 17);
GetWorldManager():DoZoneChange(player, 184, nil, 0, 16, -24.34, 192, 34.22, 0.78);
end

View file

@ -5,7 +5,7 @@ function onEventStarted(player, npc)
choice = callClientFunction(player, "delegateEvent", player, defaultWil, "defaultTalkWithInn_Desk_2", nil, nil, nil);
if (choice == 1) then
GetWorldManager():DoZoneChange(player, 11);
GetWorldManager():DoZoneChange(player, 244, nil, 0, 15, 0.048, 0, -5.737, 0);
elseif (choice == 2) then
if (player:GetHomePointInn() ~= 3) then
player:SetHomePointInn(3);