예제 #1
0
 private void Client_AddItemToContainer(object sender, AddItemToContainerEventArgs e)
 {
     if (_currMovingItem == e.ItemId)
     {
         ct.Cancel();
     }
 }
예제 #2
0
 private static void OnAdd(object sender, AddItemToContainerEventArgs e)
 {
     try
     {
         var _incomingContainer = new Serial((uint)e.ContainerId);
         if (_incomingContainer.Value == LootBag.Serial.Value)
         {
             ConsoleMessage("Looted: {0}", ConsoleColor.Green, e.ItemId.ToString());
         }
     }
     catch (Exception ex)
     {
         ConsoleMessage("Error during OnAdd: {0}", ex.StackTrace);
     }
 }