23 Commits

Author SHA1 Message Date
Ekdohibs
8a691628bf Revert part of "Add teleport to exit lobby". 2017-01-28 23:32:17 +01:00
Ekdohibs
d9354a25b7 Add teleport to exit lobby. 2017-01-28 22:50:19 +01:00
Ekdohibs
5942d407e4 A few changes in boxes 2017-01-28 21:41:50 +01:00
Ekdohibs
cf168c7ab1 Save edited boxes at restart. Make the shutdown of the db a function that is called at the end of the boxes shutdown procedure. 2017-01-27 15:41:02 +01:00
Ekdohibs
5fce0f413c Close boxes at server shutdown as well 2017-01-27 15:21:22 +01:00
Ekdohibs
faf6e47649 Add command to exit existing box 2017-01-27 14:22:08 +01:00
Ekdohibs
e134f3b1d9 Split boxes/init.lua into several files as it is getting quite big. 2017-01-27 13:52:53 +01:00
Ekdohibs
ca9cac3b85 Return players to lobby after leave; add /open chat command. 2017-01-27 13:27:58 +01:00
Ekdohibs
15f90f7e3d Add editing of new boxes. 2017-01-27 11:35:12 +01:00
Ekdohibs
f6594383b5 Put entry & exit lobbies in db, entry box id is hardcoded as 0 and exit as 1 for now. 2017-01-27 10:20:58 +01:00
Ekdohibs
d630a1392f Remove some dead code 2017-01-27 09:08:52 +01:00
Ekdohibs
f7e1ddb425 Fix init 2017-01-27 07:34:07 +01:00
Auke Kok
cde99f4f00 One more nil guard. 2017-01-26 17:04:52 -08:00
Ekdohibs
cd16ec77c3 Rename a few functions and change open_box signature 2017-01-26 23:05:23 +01:00
Ekdohibs
19dd37b7ab Delete old code which is no longer needed. 2017-01-26 22:19:56 +01:00
Ekdohibs
5c68ab7b50 More doc for /update_lobby 2017-01-26 22:11:47 +01:00
Ekdohibs
503db23766 Add chatcommand to update lobbies, slightly better lobbies. 2017-01-26 21:28:58 +01:00
Ekdohibs
d5585d20b8 Add load/save box to db, cleanup a bit boxes and add chatcommands 2017-01-26 20:47:09 +01:00
Ekdohibs
de06958900 Fix the previous commit 2017-01-26 18:57:38 +01:00
Ekdohibs
1a4b209fde Box creation & entry demo, quite hacky for now 2017-01-26 18:54:21 +01:00
Ekdohibs
dd7e4b62ad Add boxes.cleanup to delete a whole area, and boxes.extent to know the size of a box. 2017-01-26 16:40:00 +01:00
Ekdohibs
c4c203384c Tabs -> spaces
Add box allocation
2017-01-26 16:12:57 +01:00
Ekdohibs
396886ad28 Add load and save boxes functions. 2017-01-26 15:03:57 +01:00