mirror of
https://github.com/redstrate/Kawari.git
synced 2025-05-12 22:57:45 +00:00
17 lines
420 B
Lua
17 lines
420 B
Lua
|
--- TODO: find a way to hardcode it this way
|
||
|
EVENT_ID = 131082
|
||
|
|
||
|
-- TODO: it seems that these all might share one common function, and the only difference is the event id
|
||
|
|
||
|
function onTalk(target, player)
|
||
|
--- prompt to exit the inn
|
||
|
player:play_scene(target, EVENT_ID, 00000, 8192, 0)
|
||
|
end
|
||
|
|
||
|
function onReturn(results, player)
|
||
|
if results[1] == 1 then
|
||
|
-- get warp
|
||
|
player:warp(EVENT_ID)
|
||
|
end
|
||
|
end
|