コード例 #1
0
        private void CHATMSGLOOT(object sender, LuaEventArgs args)
        {
            WSBot.estLoot l = new WSBot.estLoot();

            //PEGANDO ITEM ID
            string item;
            item = args.Args[0].ToString();
            item = item.Substring(item.IndexOf("item:") + 5, item.Length - (item.IndexOf("item:") + 5));
            item = item.Substring(0, item.IndexOf(":"));

            l.idItem = Convert.ToInt32(item);

            //PEGANDO QUANTIDADE DO LOOT
            string qtd;
            string tempQTD;

            qtd = args.Args[0].ToString();
            tempQTD = qtd.Substring(qtd.IndexOf("|h|r") + 4, qtd.Length - (qtd.IndexOf("|h|r") + 4));
            if (tempQTD.Substring(0, 1) == "x")
            {
                qtd = tempQTD.Substring(1, tempQTD.IndexOf(".") - 1);
            }
            else
            {
                qtd = "1";
            }

            l.qtd = Convert.ToInt32(qtd);
            l.data = DateTime.Now;

            b.IncluirLoot(Sessao, l, SECURETY_KEY);
        }
コード例 #2
0
 /// <remarks/>
 public void IncluirLootAsync(estSessao s, estLoot l, string key) {
     this.IncluirLootAsync(s, l, key, null);
 }
コード例 #3
0
 /// <remarks/>
 public void IncluirLootAsync(estSessao s, estLoot l, string key, object userState) {
     if ((this.IncluirLootOperationCompleted == null)) {
         this.IncluirLootOperationCompleted = new System.Threading.SendOrPostCallback(this.OnIncluirLootOperationCompleted);
     }
     this.InvokeAsync("IncluirLoot", new object[] {
                 s,
                 l,
                 key}, this.IncluirLootOperationCompleted, userState);
 }
コード例 #4
0
 public void IncluirLoot(estSessao s, estLoot l, string key) {
     this.Invoke("IncluirLoot", new object[] {
                 s,
                 l,
                 key});
 }