mirror of
https://github.com/islehorse/HISP.git
synced 2025-04-07 21:55:42 +12:00
fix Mount/Dismount
This commit is contained in:
parent
0ead78fa76
commit
dbbde86843
3 changed files with 8 additions and 1 deletions
|
@ -228,6 +228,7 @@ namespace HISP.Game
|
||||||
|
|
||||||
private static string buildCommonInfo(User user, int x, int y)
|
private static string buildCommonInfo(User user, int x, int y)
|
||||||
{
|
{
|
||||||
|
user.HorseWindowOpen = false;
|
||||||
string message = "";
|
string message = "";
|
||||||
message += buildPlayersHere(user, x, y);
|
message += buildPlayersHere(user, x, y);
|
||||||
message += buildNearbyString(x, y);
|
message += buildNearbyString(x, y);
|
||||||
|
@ -2285,6 +2286,7 @@ namespace HISP.Game
|
||||||
public static string BuildHorseInformation(HorseInstance horse, User user)
|
public static string BuildHorseInformation(HorseInstance horse, User user)
|
||||||
{
|
{
|
||||||
bool isMyHorse = horse.Owner == user.Id;
|
bool isMyHorse = horse.Owner == user.Id;
|
||||||
|
user.HorseWindowOpen = true;
|
||||||
|
|
||||||
string message = "";
|
string message = "";
|
||||||
if (isMyHorse)
|
if (isMyHorse)
|
||||||
|
@ -2899,7 +2901,7 @@ namespace HISP.Game
|
||||||
{
|
{
|
||||||
|
|
||||||
user.MetaPriority = true;
|
user.MetaPriority = true;
|
||||||
|
|
||||||
string TileCode = specialTile.Code;
|
string TileCode = specialTile.Code;
|
||||||
|
|
||||||
string TileArg = "";
|
string TileArg = "";
|
||||||
|
|
|
@ -87,6 +87,7 @@ namespace HISP.Player
|
||||||
public bool MuteLogins = false;
|
public bool MuteLogins = false;
|
||||||
public string Gender;
|
public string Gender;
|
||||||
public bool MetaPriority = false;
|
public bool MetaPriority = false;
|
||||||
|
public bool HorseWindowOpen = false;
|
||||||
public bool Idle;
|
public bool Idle;
|
||||||
public int Facing;
|
public int Facing;
|
||||||
public HorseInfo.Breed PawneerOrderBreed = null;
|
public HorseInfo.Breed PawneerOrderBreed = null;
|
||||||
|
|
|
@ -8017,6 +8017,8 @@ namespace HISP.Server
|
||||||
sender.SendPacket(rideHorsePacket);
|
sender.SendPacket(rideHorsePacket);
|
||||||
|
|
||||||
UpdateUserFacingAndLocation(sender.LoggedinUser);
|
UpdateUserFacingAndLocation(sender.LoggedinUser);
|
||||||
|
if (sender.LoggedinUser.HorseWindowOpen)
|
||||||
|
UpdateArea(sender);
|
||||||
}
|
}
|
||||||
public static void StopRidingHorse(GameClient sender)
|
public static void StopRidingHorse(GameClient sender)
|
||||||
{
|
{
|
||||||
|
@ -8027,6 +8029,8 @@ namespace HISP.Server
|
||||||
sender.SendPacket(rideHorsePacket);
|
sender.SendPacket(rideHorsePacket);
|
||||||
|
|
||||||
UpdateUserFacingAndLocation(sender.LoggedinUser);
|
UpdateUserFacingAndLocation(sender.LoggedinUser);
|
||||||
|
if (sender.LoggedinUser.HorseWindowOpen)
|
||||||
|
UpdateArea(sender);
|
||||||
}
|
}
|
||||||
public static bool ProcessMapCodeWithArg(GameClient forClient, World.SpecialTile tile)
|
public static bool ProcessMapCodeWithArg(GameClient forClient, World.SpecialTile tile)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue