Fix quest issues, and metaprority not being priority.

This commit is contained in:
SilicaAndPina 2021-02-05 18:47:45 +13:00
parent 76f3d7d731
commit c9c81d721e
5 changed files with 668 additions and 669 deletions

View file

@ -7,7 +7,7 @@ namespace HISP.Server
public class ConfigReader
{
public static int Port;
public static string BindIP;
public static string BindIP = "0.0.0.0";
public static string DatabaseIP;
public static string DatabaseUsername;
@ -20,11 +20,11 @@ namespace HISP.Server
public static string GameDataFile;
public static string CrossDomainPolicyFile;
public static bool Debug;
public static bool AllUsersSubbed;
public static bool BadWords;
public static bool DoCorrections;
public static bool DoNonViolations;
public static bool Debug = false;
public static bool AllUsersSubbed = false;
public static bool BadWords = true;
public static bool DoCorrections = true;
public static bool DoNonViolations = true;
public const int MAX_STACK = 50;

View file

@ -4144,8 +4144,13 @@ namespace HISP.Server
return;
}
byte[] WeatherUpdate = PacketBuilder.CreateWeatherUpdatePacket(forClient.LoggedinUser.GetWeatherSeen());
forClient.SendPacket(WeatherUpdate);
string lastWeather = forClient.LoggedinUser.LastSeenWeather;
string weather = forClient.LoggedinUser.GetWeatherSeen();
if (lastWeather != weather)
{
byte[] WeatherUpdate = PacketBuilder.CreateWeatherUpdatePacket(weather);
forClient.SendPacket(WeatherUpdate);
}
}
public static void UpdateWorld(GameClient forClient)
{
@ -4194,6 +4199,7 @@ namespace HISP.Server
UpdateArea(client);
}
}
public static void UpdateArea(GameClient forClient)
{
if (!forClient.LoggedIn)
@ -4221,14 +4227,6 @@ namespace HISP.Server
LocationStr = Meta.BuildSpecialTileInfo(forClient.LoggedinUser, specialTile);
}
string lastWeather = forClient.LoggedinUser.LastSeenWeather;
string weather = forClient.LoggedinUser.GetWeatherSeen();
if(lastWeather != weather)
{
byte[] WeatherUpdate = PacketBuilder.CreateWeatherUpdatePacket(weather);
forClient.SendPacket(WeatherUpdate);
}
byte[] AreaMessage = PacketBuilder.CreateMetaPacket(LocationStr);
forClient.SendPacket(AreaMessage);
forClient.LoggedinUser.MetaPriority = false;