This repository has been archived by the owner on Dec 4, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 220
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #391 from project-topaz/transport
Transport
- Loading branch information
Showing
6 changed files
with
94 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
------------------------------------ | ||
-- Transport | ||
------------------------------------ | ||
require("scripts/globals/zone") | ||
------------------------------------ | ||
|
||
tpz = tpz or {} | ||
tpz.transport = tpz.transport or {} | ||
|
||
tpz.transport.message = | ||
{ | ||
NEARING = 0, | ||
DOCKING = 1 | ||
} | ||
|
||
tpz.transport.epochOffset = | ||
{ | ||
NEARING = 265, | ||
DOCKING = 290 | ||
} | ||
|
||
tpz.transport.messageTime = | ||
{ | ||
SILVER_SEA = 480 | ||
} | ||
|
||
------------------------------------------------- | ||
-- public functions | ||
------------------------------------------------- | ||
|
||
tpz.transport.captainMessage = function(npc, triggerID, messages) | ||
local playersInZone = npc:getZone():getPlayers() | ||
for _, player in pairs(playersInZone) do | ||
player:showText(player, messages[triggerID]) | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters