1
Fork 0
mirror of https://github.com/redstrate/Kawari.git synced 2025-06-30 11:47:45 +00:00
kawari/resources/scripts/warp/WarpInnGeneric.lua
The Dax db5a81528f Consolidate exit-to-inn scripts into a generic one.
-Also comment what most generic warps are for
-Might move the loose/magic event IDs into their own file in the future...
2025-06-21 09:12:28 -04:00

16 lines
373 B
Lua

function onTalk(target, player)
-- has inn access
player:play_scene(target, EVENT_ID, 00001, 8192, 0)
-- doesn't have inn access
--player:play_scene(actorId, EVENT_ID, 00002, 8192, 0)
end
function onReturn(scene, results, player)
player:finish_event(EVENT_ID)
if results[1] == 1 then
-- get warp
player:warp(EVENT_ID)
end
end