Implement click packet

This commit is contained in:
SilicaAndPina 2020-12-21 16:09:05 +13:00
parent b8934c1faa
commit 862375cc75
10 changed files with 140 additions and 71 deletions
Horse Isle Server/Horse Isle Server/Game

View file

@ -152,6 +152,9 @@ namespace HISP.Game
public static string WagonCutscene;
public static string BallonCutscene;
// Click
public static string NothingInterestingHere;
public static string FormatYouEarnedAnItemMessage(string itemName)
{
return YouEarnedAnItemFormat.Replace("%ITEM%", itemName);

View file

@ -139,7 +139,7 @@ namespace HISP.Game
}
}
if (quest.WarpX != 0 && quest.WarpY != 0)
GameServer.Teleport(user.LoggedinClient, quest.WarpX, quest.WarpY);
user.Teleport(quest.WarpX, quest.WarpY);
// Give quest points
user.QuestPoints += quest.QuestPointsEarned;