public static void HandleGameContextRemoveElementMessage(Bot bot, GameContextRemoveElementMessage message) { // can be on the map or in fight bot.Character.Context.RemoveContextActor(message.id); }
public static void HandleGameContextRemoveElementMessage(Bot bot, GameContextRemoveElementMessage message) { bot.Character.Map.RemoveActor(message.id); }
public void HandleGameContextRemoveElementMessage(Bot bot, GameContextRemoveElementMessage message) { if (message.id == PartyLeaderId && CharacterId != PartyLeaderId) { foreach (FFight ffight in GetOtherFFights(true)) if (ffight.CharacterId == PartyLeaderId) return; // we found a FFight playing the leader => we skip this message int NextMap = Character.GetMapLinkedToCell(LastLeaderCell); if (NextMap == -1) logger.Error("Can't follow the leader, no map linked from last cell {0}.", LastLeaderCell); else ComeOnMyMap(Character.Map.Id, LastLeaderCell, NextMap); } }