forked from opentibiabr/canary
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The Secret Library Quest - The Order of the Falcon
- Loading branch information
Showing
14 changed files
with
197 additions
and
99 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
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
File renamed without changes.
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
30 changes: 23 additions & 7 deletions
30
...-global/scripts/quests/the_secret_library_quest/the_order_of_the_falcon/actions_doors.lua
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
28 changes: 28 additions & 0 deletions
28
...obal/scripts/quests/the_secret_library_quest/the_order_of_the_falcon/actions_entrance.lua
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,28 @@ | ||
local actions_entrance = Action() | ||
|
||
function actions_entrance.onUse(player, item, fromPosition, target, toPosition, isHotkey) | ||
if (target == nil) or not target:isItem() then | ||
return false | ||
end | ||
|
||
local currentTime = os.date("*t") | ||
local currentMinute = currentTime.min | ||
|
||
local isNightTime = (currentMinute >= 45 or currentMinute < 15) | ||
|
||
if isNightTime then | ||
if target:getPosition() == Position(33201, 31763, 1) then | ||
player:teleportTo(Position(33356, 31309, 4), true) | ||
player:getPosition():sendMagicEffect(CONST_ME_TELEPORT) | ||
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "Once more you mix the chalk with a drop of your blood and a bit of water and renew the symbol on the floor...") | ||
item:transform(2873, 0) | ||
end | ||
else | ||
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "You can only use this entrance during the night.") | ||
end | ||
|
||
return true | ||
end | ||
|
||
actions_entrance:id(28468) | ||
actions_entrance:register() |
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
Oops, something went wrong.