2025-03-27 19:24:36 -04:00
|
|
|
function onBeginLogin(player)
|
2025-03-27 22:54:36 -04:00
|
|
|
-- send a welcome message
|
|
|
|
player:send_message("Welcome to Kawari!")
|
2025-03-27 16:20:33 -04:00
|
|
|
end
|
2025-03-27 23:32:36 -04:00
|
|
|
|
2025-05-06 21:57:52 -04:00
|
|
|
function split(input, separator)
|
|
|
|
if separator == nil then
|
|
|
|
separator = '%s'
|
|
|
|
end
|
|
|
|
|
|
|
|
local t = {}
|
|
|
|
for str in string.gmatch(input, '([^'..separator..']+)') do
|
|
|
|
table.insert(t, str)
|
|
|
|
end
|
|
|
|
|
|
|
|
return t
|
|
|
|
end
|
|
|
|
|
2025-05-05 23:30:36 -04:00
|
|
|
-- please keep these ids sorted!
|
|
|
|
|
2025-05-02 15:36:22 -04:00
|
|
|
-- Actions
|
2025-03-30 09:02:52 -04:00
|
|
|
registerAction(3, "actions/Sprint.lua")
|
2025-03-30 09:29:36 -04:00
|
|
|
registerAction(9, "actions/FastBlade.lua")
|
2025-05-02 15:36:22 -04:00
|
|
|
|
|
|
|
-- Items
|
|
|
|
registerAction(6221, "items/Fantasia.lua")
|
|
|
|
|
2025-05-05 20:51:49 -04:00
|
|
|
-- Events
|
2025-05-06 22:37:02 -04:00
|
|
|
registerEvent(721028, "tosort/UnendingJourney.lua")
|
2025-05-05 20:51:49 -04:00
|
|
|
registerEvent(131079, "warp/WarpInnLimsaLominsa.lua")
|
2025-05-05 23:45:22 -04:00
|
|
|
registerEvent(131080, "warp/WarpInnGridania.lua")
|
|
|
|
registerEvent(131081, "warp/WarpInnUldah.lua")
|
2025-05-05 23:30:36 -04:00
|
|
|
registerEvent(131082, "common/GenericWarp.lua")
|
2025-05-05 23:45:22 -04:00
|
|
|
registerEvent(131083, "common/GenericWarp.lua")
|
|
|
|
registerEvent(131084, "common/GenericWarp.lua")
|
2025-05-05 23:30:36 -04:00
|
|
|
registerEvent(131092, "common/GenericWarp.lua")
|
|
|
|
registerEvent(131093, "common/GenericWarp.lua")
|
|
|
|
registerEvent(131094, "common/GenericWarp.lua")
|
2025-05-05 23:04:53 -04:00
|
|
|
registerEvent(720916, "custom/000/cmndefinnbed_00020.lua")
|
2025-05-05 23:30:36 -04:00
|
|
|
registerEvent(1245185, "opening/OpeningLimsaLominsa.lua")
|
|
|
|
registerEvent(1245186, "opening/OpeningGridania.lua")
|
|
|
|
registerEvent(1245187, "opening/OpeningUldah.lua")
|
2025-05-05 23:45:22 -04:00
|
|
|
|
|
|
|
-- TODO: Generic warps might be decided through ArrayEventHandler?
|
2025-05-06 21:57:52 -04:00
|
|
|
|
|
|
|
-- Commands
|
|
|
|
registerCommand("setpos", "commands/debug/SetPos.lua")
|
2025-05-06 22:03:31 -04:00
|
|
|
registerCommand("classjob", "commands/debug/ClassJob.lua")
|
2025-05-06 22:37:02 -04:00
|
|
|
registerCommand("setspeed", "commands/debug/SetSpeed.lua")
|