/// @name fridge bot // hides and drops carrot and attempts to get another item using System.Threading.Tasks; bool HidingIce = true; var floorItem = FloorItems.Where(x => x.GetName() == "Pura Refrigerator").First(); _ = Task.Run(async () => { while (Run) { if (HidingIce) { Send(Out["AvatarExpression"], 6); } await DelayAsync(100); } }); OnIntercept(In["CarryObject"], e=> { int userIndex = e.Packet.ReadInt(); int carrying = e.Packet.ReadInt(); if(userIndex == Self.Index) { if(carrying == 3) { Send(Out["DropCarryItem"]); Delay(100); HidingIce=false; UseFloorItem(floorItem.Id); HidingIce=true; ShowBubble("Dropped carrot, using fridge id:" + floorItem.Id); } else HidingIce=false; } }); OnIntercept(Out["UseFurniture"], e=> { if(e.Packet.ReadInt() == floorItem.Id) { HidingIce=true; } }); Wait();