private static void HandleEvent(FortUsedEvent fortUsedEvent, ISession session) { if (fortUsedEvent.InventoryFull) { Logger.Write(session.Translation.GetTranslation(TranslationString.InvFullPokestopLooting), fortUsedEvent.Fort.Type == FortType.Checkpoint ? LogLevel.Pokestop : LogLevel.Gym, ConsoleColor.Cyan); //LogLevel.Pokestop); return; } string PokemonDataEgg = "No"; if (fortUsedEvent.PokemonDataEgg != null && fortUsedEvent.PokemonDataEgg.IsEgg) { PokemonDataEgg = $"Yes {fortUsedEvent.PokemonDataEgg.EggKmWalkedTarget:0.0} Km"; } string eventMessage = session.Translation.GetTranslation(TranslationString.EventFortUsed, fortUsedEvent.Name, fortUsedEvent.Exp, fortUsedEvent.Gems, fortUsedEvent.Items, fortUsedEvent.Badges, fortUsedEvent.BonusLoot, fortUsedEvent.RaidTickets, fortUsedEvent.TeamBonusLoot, PokemonDataEgg, session.Inventory.GetEggs().Result.Count(), fortUsedEvent.Latitude, fortUsedEvent.Longitude, fortUsedEvent.Altitude); if (fortUsedEvent.Fort.Type == FortType.Checkpoint) { Logger.Write(eventMessage, LogLevel.Pokestop); } else { Logger.Write(eventMessage, LogLevel.Gym, ConsoleColor.Cyan); //LogLevel.Pokestop); } }
public void HandleEvent(FortUsedEvent evt, ISession session) { _stats.TotalExperience += evt.Exp; _stats.TotalPokestops++; _stats.Dirty(session.Inventory); _stats.CheckLevelUp(session); }
public void HandleEvent(FortUsedEvent evt, ISession session) { var itemString = evt.InventoryFull ? session.Translation.GetTranslation(TranslationString.InvFullPokestopLooting) : evt.Items; Logger.Write(session.Translation.GetTranslation(TranslationString.EventFortUsed, evt.Name, evt.Exp, evt.Gems, itemString), LogLevel.Pokestop, session: session); }
public void HandleEvent(FortUsedEvent fortUsedEvent, ISession session) { var itemString = fortUsedEvent.InventoryFull ? session.Translation.GetTranslation(TranslationString.InvFullPokestopLooting) : fortUsedEvent.Items; Logger.Write(String.Format("Name: {0} \n - XP: {1} \n - Gems: {2} \n - Items: {3}", fortUsedEvent.Name, fortUsedEvent.Exp, fortUsedEvent.Gems, itemString), LogLevel.Pokestop); this.gui.addPokestopVisited(new string[] { DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"), fortUsedEvent.Name, fortUsedEvent.Exp.ToString(), fortUsedEvent.Gems.ToString(), itemString, fortUsedEvent.Latitude.ToString("0.00000"), fortUsedEvent.Longitude.ToString("0.00000") }); }
private static void HandleEvent(FortUsedEvent fortUsedEvent, ISession session) { var itemString = fortUsedEvent.InventoryFull ? session.Translation.GetTranslation(TranslationString.InvFullPokestopLooting) : fortUsedEvent.Items; Logger.Write( session.Translation.GetTranslation(TranslationString.EventFortUsed, fortUsedEvent.Name, fortUsedEvent.Exp, fortUsedEvent.Gems, itemString, fortUsedEvent.Latitude, fortUsedEvent.Longitude), LogLevel.Pokestop); }
public void HandleEvent(FortUsedEvent fortUsedEvent, ISession session) { liveHappening = "looting"; coords[0] = fortUsedEvent.Latitude; coords[1] = fortUsedEvent.Longitude; var itemString = fortUsedEvent.InventoryFull ? session.Translation.GetTranslation(TranslationString.InvFullPokestopLooting) : fortUsedEvent.Items; Write( session.Translation.GetTranslation(TranslationString.EventFortUsed, fortUsedEvent.Name, fortUsedEvent.Exp, fortUsedEvent.Gems, itemString, fortUsedEvent.Latitude, fortUsedEvent.Longitude), LogLevel.Pokestop); }
public void HandleEvent(FortUsedEvent evt, ISession session) { string itemString; if (evt.inventoryFull) { itemString = session.Translation.GetTranslation(TranslationString.InvFullPokestopLooting); } else { itemString = evt.Items; } Logger.Write( session.Translation.GetTranslation(TranslationString.EventFortUsed, evt.Name, evt.Exp, evt.Gems, itemString), LogLevel.Pokestop); }
private static void HandleEvent(FortUsedEvent fortUsedEvent, ISession session) { if (fortUsedEvent.InventoryFull) { Logger.Write(session.Translation.GetTranslation(TranslationString.InvFullPokestopLooting), fortUsedEvent.Fort.Type == FortType.Checkpoint ? LogLevel.Pokestop : LogLevel.Gym, ConsoleColor.Cyan); //LogLevel.Pokestop); return; } string PokemonDataEgg = "No"; if (fortUsedEvent.PokemonDataEgg != null && fortUsedEvent.PokemonDataEgg.IsEgg) { PokemonDataEgg = $"Yes {fortUsedEvent.PokemonDataEgg.EggKmWalkedTarget:0.0} Km"; } string eventMessage = session.Translation.GetTranslation(TranslationString.EventFortUsed, fortUsedEvent.Name, fortUsedEvent.Exp, fortUsedEvent.Gems, fortUsedEvent.Items, fortUsedEvent.Badges, fortUsedEvent.BonusLoot, fortUsedEvent.RaidTickets, fortUsedEvent.TeamBonusLoot, PokemonDataEgg, session.Inventory.GetEggs().Result.Count(), fortUsedEvent.Latitude, fortUsedEvent.Longitude, fortUsedEvent.Altitude); if (fortUsedEvent.Fort.Type == FortType.Checkpoint) { Logger.Write(eventMessage, LogLevel.Pokestop); } else { Logger.Write(eventMessage, LogLevel.GymDisk); } // TheWizard is Working on this. Don't incorporate till it's done. //var globalSettings = new GlobalSettings(); //_settings.Auth.CurrentAuthConfig.AccountLatitude = fortUsedEvent.Latitude; //_settings.Auth.CurrentAuthConfig.AccountLongitude = fortUsedEvent.Longitude; //_session.Client.Player.SetCoordinates(fortUsedEvent.Latitude, fortUsedEvent.Longitude, fortUsedEvent.Altitude); //_settings.LocationConfig.AccountLatitude = fortUsedEvent.Latitude; //_Settings.AccountLongitude = fortUsedEvent.Longitude; //_settings.LocationConfig.DefaultLatitude = fortUsedEvent.Latitude; //_settings.LocationConfig.DefaultLongitude = fortUsedEvent.Longitude; //_session.Client.Settings.DefaultLatitude = fortUsedEvent.Latitude; //_session.Client.Settings.DefaultLongitude = fortUsedEvent.Longitude; //_settings.Save(Path.Combine(_settings.ProfileConfigPath, "config.json")); }
public void HandleEvent(FortUsedEvent evt, ISession session) { _stats.TotalExperience += evt.Exp; _stats.Dirty(session.Inventory); }
public PokestopItemViewModel(FortUsedEvent ev) { this.ev = ev; UUID = ev.Id; }
public void OnBotEvent(FortUsedEvent ev) { this.datacontext.Sidebar.AddOrUpdate(new PokestopItemViewModel(ev)); this.botMap.MarkFortAsLooted(ev.Fort); }
public void OnBotEvent(FortUsedEvent ev) { this.botMap.MarkFortAsLooted(ev.Id); }
public void HandleEvent(FortUsedEvent evt, ISession session) { session.Stats.TotalExperience += evt.Exp; session.Stats.TotalPokestops++; session.Stats.RefreshStatAndCheckLevelup(session); }