xabbo-scripts/Scripts/FridgeCheat.csx
Administrator 7a548130a3 Move all scripts into Scripts/ subfolder
Keeps the repo root clean - only README.md visible on landing page.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-16 09:49:37 +01:00

47 lines
907 B
C#

/// @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();