2025-05-05 20:51:49 -04:00
|
|
|
--- TODO: find a way to hardcode it this way
|
|
|
|
EVENT_ID = 131079
|
|
|
|
|
2025-05-05 21:15:03 -04:00
|
|
|
function onTalk(target, player)
|
2025-05-05 20:51:49 -04:00
|
|
|
-- has inn access
|
2025-05-05 21:15:03 -04:00
|
|
|
player:play_scene(target, EVENT_ID, 00001, 8192, 0)
|
2025-05-05 20:51:49 -04:00
|
|
|
|
|
|
|
-- doesn't have inn access
|
|
|
|
--player:play_scene(actorId, EVENT_ID, 00002, 8192, 0)
|
|
|
|
end
|
2025-05-05 22:04:39 -04:00
|
|
|
|
2025-05-05 23:04:53 -04:00
|
|
|
function onReturn(scene, results, player)
|
|
|
|
player:finish_event(EVENT_ID)
|
|
|
|
|
2025-05-05 22:04:39 -04:00
|
|
|
if results[1] == 1 then
|
|
|
|
-- get warp
|
|
|
|
player:warp(EVENT_ID)
|
|
|
|
end
|
|
|
|
end
|