Class PrivTaskContext

java.lang.Object
privbot.task.PrivTaskContext

public class PrivTaskContext extends Object
Base context for TaskNode-based scripts that exposes all PrivContext hooks directly.

Sleep/timing: use the convenience methods on this class, or call Time directly (static, Unethicalite-style). Hooks are thread-safe via GameThread, so conditions in sleepUntil just work.

Visible-action pacing: use human from execute() on the script thread — not from shouldExecute().

Usage:


 public boolean execute(MyCtx ctx) {
     ctx.lobby.openRewardChest();
     Time.sleepUntil(() -> !ctx.lobby.rewardChestAvailable(), 4000);
     // or: ctx.sleepUntil(() -> !ctx.lobby.rewardChestAvailable(), 4000);
 }