private void onDead() { WSBot.estMorte m = new WSBot.estMorte(); using (Styx.StyxWoW.Memory.AcquireFrame()) { m.mortes = Convert.ToInt32(Styx.CommonBot.GameStats.Deaths); m.morteshora = Convert.ToInt32(Styx.CommonBot.GameStats.DeathsPerHour); m.dt = DateTime.Now; m.RealZoneText = RetornaZoneName(); m.SubZoneText = RetornaSubZoneName(); } b.IncluiNovaMorte(Sessao, m, SECURETY_KEY); Logging.Write("[MasterControl]: Morto!"); //VERIFICAR O SCREENSHOT //if (MasterControlSettings.Instance.scDied) screenie(); }
/// <remarks/> public void IncluiNovaMorteAsync(estSessao s, estMorte m, string key) { this.IncluiNovaMorteAsync(s, m, key, null); }
/// <remarks/> public void IncluiNovaMorteAsync(estSessao s, estMorte m, string key, object userState) { if ((this.IncluiNovaMorteOperationCompleted == null)) { this.IncluiNovaMorteOperationCompleted = new System.Threading.SendOrPostCallback(this.OnIncluiNovaMorteOperationCompleted); } this.InvokeAsync("IncluiNovaMorte", new object[] { s, m, key}, this.IncluiNovaMorteOperationCompleted, userState); }
public void IncluiNovaMorte(estSessao s, estMorte m, string key) { this.Invoke("IncluiNovaMorte", new object[] { s, m, key}); }