mirror of
https://github.com/islehorse/HISP.git
synced 2025-04-23 05:05:53 +12:00
archive fourms
This commit is contained in:
parent
0c7d802f9d
commit
f84db853fe
391 changed files with 49471 additions and 5 deletions
|
@ -231,7 +231,20 @@ namespace HISP.Game
|
|||
public static string PlayerListMapAllBuddiesForamt;
|
||||
public static string PlayerListMapAllPlayersFormat;
|
||||
public static string PlayerListAbuseReport;
|
||||
|
||||
|
||||
public static int ThreeMonthSubscripitionIcon;
|
||||
public static int YearSubscriptionIcon;
|
||||
public static int NewUserIcon;
|
||||
public static int MonthSubscriptionIcon;
|
||||
public static int AdminIcon;
|
||||
public static int ModeratorIcon;
|
||||
|
||||
public static string BuddyListHeader;
|
||||
public static string BuddyListOnlineBuddyEntryFormat;
|
||||
public static string BuddyListOfflineBuddys;
|
||||
public static string BuddyListOfflineBuddyEntryFormat;
|
||||
|
||||
public static string PlayerListIconInformation;
|
||||
|
||||
// Meta
|
||||
public static string IsleFormat;
|
||||
|
@ -267,6 +280,15 @@ namespace HISP.Game
|
|||
// Click
|
||||
public static string NothingInterestingHere;
|
||||
|
||||
public static string FormatOnlineBuddyEntry(int iconId, string username, int userId, int time, int x, int y)
|
||||
{
|
||||
string xy = FormatMapLocation(x, y);
|
||||
return BuddyListOnlineBuddyEntryFormat.Replace("%ICON%", iconId.ToString()).Replace("%USERNAME%", username).Replace("%TIME%", time.ToString("N0")).Replace("%PLAYERID%", userId.ToString()).Replace("%MAPXY%", xy);
|
||||
}
|
||||
public static string FormatOfflineBuddyEntry(string username, int userId, int time)
|
||||
{
|
||||
return BuddyListOfflineBuddyEntryFormat.Replace("%USERNAME%", username).Replace("%TIME%", time.ToString("N0")).Replace("%PLAYERID%", userId.ToString());
|
||||
}
|
||||
public static string FormatConsumeItemMessaege(string itemName)
|
||||
{
|
||||
return ConsumeItemFormat.Replace("%ITEM%", itemName);
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
using HISP.Player;
|
||||
using HISP.Server;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace HISP.Game
|
||||
{
|
||||
|
@ -407,6 +408,21 @@ namespace HISP.Game
|
|||
return message;
|
||||
}
|
||||
|
||||
|
||||
public static string BuildBuddyList(User user)
|
||||
{
|
||||
string message = Messages.BuddyListHeader;
|
||||
foreach(int id in user.Friends.List.ToArray())
|
||||
{
|
||||
try
|
||||
{
|
||||
User friend = GameServer.GetUserById(id);
|
||||
message += Messages.FormatOnlineBuddyEntry()
|
||||
}
|
||||
catch (KeyNotFoundException) { };
|
||||
}
|
||||
}
|
||||
|
||||
public static string BuildSpecialTileInfo(User user, World.SpecialTile specialTile)
|
||||
{
|
||||
string message = "";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue