AlchemyCancel() public static method

public static AlchemyCancel ( ) : byte[]
return byte[]
Example #1
0
 /////////////////////////////////////////////////////////////////////////////////
 // Item reinforce with stones
 /////////////////////////////////////////////////////////////////////////////////
 public void AlchemyStoneMain()
 {
     try
     {
         PacketReader Reader = new PacketReader(PacketInformation.buffer);
         Character.Alchemy.ItemList = new List <Global.slotItem>();
         byte type = Reader.Byte();
         if (type == 1)
         {
             try
             {
                 this.Character.Alchemy.AlchemyThread.Abort();
                 this.client.Send(Packet.AlchemyCancel());
             }
             catch (Exception ex)
             {
                 Systems.Debugger.Write(ex);
             }
         }
         else if (type == 2)
         {
             Reader.Skip(1);
             byte numitem = Reader.Byte();
             this.Character.Alchemy.ItemList.Add(GetItem((uint)this.Character.Information.CharacterID, Reader.Byte(), 0));
             this.Character.Alchemy.ItemList.Add(GetItem((uint)this.Character.Information.CharacterID, Reader.Byte(), 0));
         }
         Alchemy = new Timer(new TimerCallback(StartAlchemyStoneResponse), 0, 3000, 0);
     }
     catch (Exception ex)
     {
         Systems.Debugger.Write(ex);
     }
 }