2025-06-22 16:10:13 -04:00
-- generic aetheryte, use this for all of the aethernet shards
2025-06-22 16:06:42 -04:00
2025-06-24 18:23:01 -04:00
--- scene 00000 - does nothing
--- scene 00001 - does nothing
--- scene 00002 - aetheryte menu
--- scene 00003 - "you have aethernet access" message and vfx
--- scene 00100 - "According to the message engraved in the base, special permission is required to use this aetheryte." (Eulmore-specific)
--- scene 00200 - "The aetheryte has ceased functioning." (Eulmore-specific)
SCENE_SHOW_MENU = 00002
SCENE_HAVE_AETHERNET_ACCESS = 00003
2025-06-22 16:06:42 -04:00
function onTalk ( target , player )
2025-06-27 21:07:16 -04:00
player : play_scene ( target , EVENT_ID , SCENE_SHOW_MENU , 8192 , { 0 } )
2025-06-22 16:06:42 -04:00
end
function onReturn ( scene , results , player )
local AETHERNET_MENU_CANCEL = 0
2025-06-22 16:09:11 -04:00
local destination = results [ 1 ]
2025-06-24 18:23:01 -04:00
if scene == SCENE_SHOW_MENU then
if destination ~= AETHERNET_MENU_CANCEL then
player : finish_event ( EVENT_ID ) -- Need to finish the event here, because warping does not return to this callback (the game will crash or softlock otherwise)
player : warp_aetheryte ( destination )
return
end
--elseif scene == HAVE_AETHERNET_ACCESS then
-- TODO: attunement logic
2025-06-22 16:06:42 -04:00
end
2025-06-24 18:23:01 -04:00
player : finish_event ( EVENT_ID )
2025-06-22 16:06:42 -04:00
end