2016-06-19 18:52:34 -04:00
|
|
|
require ("global")
|
|
|
|
|
2016-03-12 02:54:03 -05:00
|
|
|
function onEventStarted(player, npc)
|
2016-06-15 03:41:23 +01:00
|
|
|
defaultSea = GetStaticActor("DftSea");
|
2016-06-19 18:52:34 -04:00
|
|
|
choice = callClientFunction(player, "delegateEvent", player, defaultSea, "defaultTalkWithInn_Desk", nil, nil, nil);
|
2016-06-12 21:30:47 -04:00
|
|
|
|
2016-06-19 18:52:34 -04:00
|
|
|
if (choice == 1) then
|
|
|
|
GetWorldManager():DoZoneChange(player, 13);
|
|
|
|
elseif (choice == 2) then
|
2017-05-01 22:30:43 -04:00
|
|
|
if (player:GetHomePointInn() ~= 1) then
|
|
|
|
player:SetHomePointInn(1);
|
|
|
|
player:SendGameMessage(GetWorldMaster(), 60019, 0x20, 1070); --Secondary homepoint set to the Mizzenmast
|
|
|
|
else
|
|
|
|
player:SendGameMessage(GetWorldMaster(), 51140, 0x20); --This inn is already your Secondary Homepoint
|
|
|
|
end
|
2016-06-12 21:30:47 -04:00
|
|
|
end
|
|
|
|
|
2016-06-19 18:52:34 -04:00
|
|
|
player:EndEvent();
|
2016-03-12 02:54:03 -05:00
|
|
|
end
|