Reimplemented dream packets. Fixed instance update bug that was locking up client when waking up. When going to sleep the proper position is saved. Still need to handle if the player logs out in the inn vs sleeping.

This commit is contained in:
Filip Maj committed 2019-07-27 21:55:07 -04:00
1 parent e4d43d952b
commit 42f0046ee7
5 files changed
+95 -42

No files matched your search

@@ -9,8 +9,10 @@ function onEventStarted(player, npc, triggerName)
choice = callClientFunction(player, "askLogout", player);
if (choice == 2) then
player:SetSleeping();
player:QuitGame();
elseif (choice == 3) then
player:SetSleeping();
player:Logout();
elseif (choice == 4) then
player:SendMessage(33, "", "Heck the bed");