Uses of Class
privbot.query.NPCQuery
Packages that use NPCQuery
Package
Description
ctx.* facades: inventory, bank, NPCs, widgets, and the other one-liners.Fluent queries behind
ctx.npcs.query(), objects, ground items, and widgets.-
Uses of NPCQuery in privbot.hooks
Methods in privbot.hooks that return NPCQueryModifier and TypeMethodDescriptionNPCs.hintArrowOnly()Start a query filtered to only the hint arrow NPC.NPCs.query()NPCs.withAction(String... actions) Start a query filtered to NPCs with at least one of the given actions.NPCs.withId(int... ids) Start a query filtered to NPCs matching the given ID(s).Start a query filtered to NPCs matching the given name(s). -
Uses of NPCQuery in privbot.query
Methods in privbot.query that return NPCQueryModifier and TypeMethodDescriptionNPCQuery.alive()Excludes dead NPCs usingPrivNPC.isAlive().NPCQuery.excludeHintArrow()Keeps NPCs that are NOT the hint arrow target (inverse ofhintArrowOnly()).Narrows this query in place and returns it.NPCQuery.hintArrowOnly()Keeps only the NPC that is the current hint arrow target.NPCQuery.playerEastOf()Keeps NPCs the local player stands east of (player X > NPC X).NPCQuery.playerNorthOf()Keeps NPCs whose tile the local player stands strictly north of (player Y > NPC Y, same plane).NPCQuery.playerSouthOf()Keeps NPCs the local player stands south of (player Y < NPC Y).NPCQuery.playerWestOf()Keeps NPCs the local player stands west of (player X < NPC X).Alias offilter(Predicate).NPCQuery.withAction(String... actions) Keeps NPCs whose composition has at least one of the given actions (case-insensitive substring).NPCQuery.withId(int... ids) Keeps NPCs whose composition id is one ofids; no ids leaves the query unchanged.NPCQuery.withinTiles(int maxTiles) Chebyshev distance on the current plane (OSRS tile steps).Keeps NPCs whose name contains any ofnames(case-insensitive substring, tags stripped).