mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-06-08 21:44:35 +02:00
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:
parent
e4d43d952b
commit
42f0046ee7
5 changed files with 95 additions and 42 deletions
|
@ -1047,7 +1047,7 @@ namespace Meteor.Map
|
|||
player.playerSession.QueuePacket(_0xE2Packet.BuildPacket(player.actorId, 0x10));
|
||||
player.SendZoneInPackets(this, spawnType);
|
||||
player.playerSession.ClearInstance();
|
||||
player.SendInstanceUpdate();
|
||||
player.SendInstanceUpdate(true);
|
||||
|
||||
player.playerSession.LockUpdates(false);
|
||||
|
||||
|
@ -1078,7 +1078,6 @@ namespace Meteor.Map
|
|||
{
|
||||
player.playerSession.QueuePacket(DeleteAllActorsPacket.BuildPacket(player.actorId));
|
||||
player.playerSession.QueuePacket(_0xE2Packet.BuildPacket(player.actorId, 0x2));
|
||||
//player.SendZoneInPackets(this, spawnType);
|
||||
}
|
||||
|
||||
player.SendZoneInPackets(this, spawnType);
|
||||
|
@ -1087,6 +1086,9 @@ namespace Meteor.Map
|
|||
player.destinationSpawnType = 0;
|
||||
Database.SavePlayerPosition(player);
|
||||
|
||||
player.playerSession.ClearInstance();
|
||||
player.SendInstanceUpdate(true);
|
||||
|
||||
player.playerSession.LockUpdates(false);
|
||||
|
||||
LuaEngine.GetInstance().CallLuaFunction(player, playerArea, "onZoneIn", true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue