Add npcs.json

This commit is contained in:
SilicaAndPina 2020-10-04 00:34:51 +13:00
parent b315fda096
commit 7759940f20
4 changed files with 324593 additions and 3 deletions

324583
DataCollection/npcs.json Normal file

File diff suppressed because it is too large Load diff

View file

@ -37,6 +37,7 @@ namespace Horse_Isle_Server
Mod = 0x1c,
Admin = 0x1b
}
public static string PrivateMessageSound;
public static List<Filter> FilteredWords = new List<Filter>();
public static List<Correction> CorrectedWords = new List<Correction>();
@ -366,10 +367,10 @@ namespace Horse_Isle_Server
int nearbyUsers = Server.GetNearbyUsers(user.X, user.Y, false, false).Length -1;
return Messages.FormatNearChatMessageForSender(nearbyUsers, user.Username, message);
case ChatChannel.Mod:
int modsOnline = Server.GetNumberOfModsOnline();
int modsOnline = Server.GetNumberOfModsOnline() - 1;
return Messages.FormatModChatForSender(modsOnline, user.Username, message);
case ChatChannel.Admin:
int adminsOnline = Server.GetNumberOfAdminsOnline();
int adminsOnline = Server.GetNumberOfAdminsOnline() - 1;
return Messages.FormatAdminChatForSender(adminsOnline, user.Username, message);
case ChatChannel.Dm:
return Messages.FormatDirectChatMessageForSender(user.Username, dmRecipiant, message);

View file

@ -19,6 +19,7 @@ namespace Horse_Isle_Server
public static string Motd;
public static string MapFile;
public static string GameDataFile;
public static string NpcDataFile;
public static string CrossDomainPolicyFile;
public static bool Debug;
@ -87,6 +88,9 @@ namespace Horse_Isle_Server
case "gamedata":
GameDataFile = data;
break;
case "npc":
NpcDataFile = data;
break;
case "crossdomain":
CrossDomainPolicyFile = data;
break;

View file

@ -15,8 +15,10 @@ db_port=3306
# Map Data
map=MapDataCombined.bmp
# Game Data JSON
# JSON Format Data
gamedata=gamedata.json
npc=npcs.json
# Cross-Domain Policy File
crossdomain=CrossDomainPolicy.xml