Fixed up some lua scripts. Fleshed out the dream stuff for Hildie quests. NOTE: Finish player.lua as it has pseudo code.

This commit is contained in:
Filip Maj 2022-04-13 20:03:46 -04:00
parent c3b4735cc5
commit 5c0d2c1d7f
7 changed files with 84 additions and 21 deletions

View file

@ -119,6 +119,7 @@ namespace Meteor.Map.Actors
public uint lastPlayTimeUpdate;
public bool isGM = false;
public bool isZoneChanging = true;
public byte LoginDreamCode = 0;
//Trading
private Player otherTrader = null;
@ -420,7 +421,7 @@ namespace Meteor.Map.Actors
for (int i = 0; i < 2048; i++)
testComplete[i] = true;
QueuePacket(cutsceneBookPacket.BuildPacket(Id, SNpcNickname, SNpcSkin, SNpcPersonality, SNpcCoordinate, testComplete));
QueuePacket(SetPlayerDreamPacket.BuildPacket(Id, 0x16, GetInnCode()));
QueuePacket(SetPlayerDreamPacket.BuildPacket(Id, LoginDreamCode, GetInnCode()));
}
return subpackets;
@ -869,6 +870,16 @@ namespace Meteor.Map.Actors
return 0;
}
public void SetLoginDreamCode(byte code)
{
LoginDreamCode = code;
}
public byte GetLoginDreamCode()
{
return LoginDreamCode;
}
public void SetSleeping()
{
playerSession.LockUpdates(true);
@ -2196,7 +2207,7 @@ namespace Meteor.Map.Actors
currentEventName = "";
currentEventType = 0;
currentEventRunning = null;
}
}
public void BroadcastCountdown(byte countdownLength, ulong syncTime)
{