mirror of
https://github.com/islehorse/HISP.git
synced 2025-04-06 13:15:42 +12:00
Fix Trainer
This commit is contained in:
parent
318fde344c
commit
2699682228
2 changed files with 4 additions and 3 deletions
|
@ -241,7 +241,7 @@ namespace HISP.Game.Chat
|
|||
}
|
||||
else
|
||||
{
|
||||
User player = findNamePartial(args[2]);
|
||||
User player = findNamePartial(args[1]);
|
||||
player.LoggedinClient.SendPacket(packetBytes);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -231,7 +231,8 @@ namespace HISP.Game
|
|||
user.HorseWindowOpen = false;
|
||||
string message = "";
|
||||
message += buildPlayersHere(user, x, y);
|
||||
message += buildNearbyString(x, y, (message != ""));
|
||||
bool playersHere = (GameServer.GetUsersAt(x, y, true, true).Length >= 1);
|
||||
message += buildNearbyString(x, y, playersHere);
|
||||
|
||||
// Dropped Items
|
||||
DroppedItems.DroppedItem[] Items = DroppedItems.GetItemsAt(x, y);
|
||||
|
@ -2701,7 +2702,7 @@ namespace HISP.Game
|
|||
break;
|
||||
}
|
||||
|
||||
if((statCalculator.BreedValue + trainer.ImprovesAmount) < statCalculator.MaxValue)
|
||||
if(statCalculator.BreedValue < statCalculator.MaxValue)
|
||||
message += Messages.FormatTrainerTrainInEntry(horse.Name, statCalculator.BreedValue, statCalculator.MaxValue, horse.RandomId);
|
||||
else
|
||||
message += Messages.FormatTrainerFullyTrained(horse.Name, statCalculator.BreedValue);
|
||||
|
|
Loading…
Add table
Reference in a new issue