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 2019-07-27 21:54:05 -04:00
parent e4d43d952b
commit 42f0046ee7
5 changed files with 95 additions and 42 deletions

View file

@ -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");