@deafwave/osrs-botmaker-types 0.7.33 → 0.7.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/rollup/ComponentID.js +8 -8
- package/dist/src/rollup/NpcID.js +1 -0
- package/dist/src/rollup/NullObjectID.js +8 -3
- package/dist/src/rollup/ObjectID.js +16 -5
- package/dist/src/rollup/gameval/DBTableID.js +9 -10
- package/dist/src/rollup/gameval/InterfaceID.js +118 -116
- package/dist/src/rollup/gameval/NpcID.js +1 -0
- package/dist/src/rollup/gameval/ObjectID1.js +21 -5
- package/dist/src/rollup/gameval/SpriteID.js +5 -0
- package/dist/src/rollup/gameval/VarPlayerID.js +155 -0
- package/dist/src/rollup/gameval/VarbitID.js +307 -0
- package/dist/src/types/runelite/net/runelite/api/Client.d.ts +81 -112
- package/dist/src/types/runelite/net/runelite/api/NpcID.d.ts +1 -0
- package/dist/src/types/runelite/net/runelite/api/NullObjectID.d.ts +8 -3
- package/dist/src/types/runelite/net/runelite/api/ObjectID.d.ts +16 -5
- package/dist/src/types/runelite/net/runelite/api/gameval/DBTableID.d.ts +9 -10
- package/dist/src/types/runelite/net/runelite/api/gameval/InterfaceID.d.ts +118 -116
- package/dist/src/types/runelite/net/runelite/api/gameval/NpcID.d.ts +1 -0
- package/dist/src/types/runelite/net/runelite/api/gameval/ObjectID1.d.ts +21 -5
- package/dist/src/types/runelite/net/runelite/api/gameval/SpriteID.d.ts +5 -0
- package/dist/src/types/runelite/net/runelite/api/gameval/VarPlayerID.d.ts +155 -0
- package/dist/src/types/runelite/net/runelite/api/gameval/VarbitID.d.ts +307 -0
- package/dist/src/types/runelite/net/runelite/api/widgets/ComponentID.d.ts +8 -8
- package/dist/src/types/sox/api/bot/equipment.d.ts +12 -8
- package/dist/src/types/sox/api/bot/grandExchange.d.ts +3 -2
- package/dist/src/types/sox/api/bot/index.d.ts +1 -0
- package/dist/src/types/sox/api/bot/magic.d.ts +1 -1
- package/dist/src/types/sox/api/bot/net.d.ts +11 -3
- package/dist/src/types/sox/api/bot/prayer.d.ts +3 -3
- package/dist/src/types/sox/api/bot/types.d.ts +41 -1
- package/dist/src/types/sox/api/bot/variables.d.ts +7 -7
- package/dist/src/types/sox/api/bot/walking.d.ts +17 -0
- package/dist/src/types/sox/api/bot/web.d.ts +12 -6
- package/dist/src/types/sox/api/bot/widgets.d.ts +24 -14
- package/package.json +1 -1
|
@@ -7,31 +7,41 @@ declare namespace bot {
|
|
|
7
7
|
*/
|
|
8
8
|
interface widgets {
|
|
9
9
|
/**
|
|
10
|
-
* Handles dialogue
|
|
10
|
+
* Handles dialogue options by clicking continue or selecting from the provided dialogue options
|
|
11
|
+
* @param dialogues Array of dialogue option texts to select (for continue-only use e.g. [] or ["Continue"])
|
|
12
|
+
* @returns True if dialogue was handled, false otherwise
|
|
11
13
|
*/
|
|
12
|
-
handleDialogue: (dialogues: []) => boolean;
|
|
14
|
+
handleDialogue: (dialogues: string[]) => boolean;
|
|
13
15
|
|
|
14
16
|
/**
|
|
15
|
-
* Interacts with a
|
|
16
|
-
* @param packedWidgetId The packed ID of the widget to interact with
|
|
17
|
-
* @param identifier The identifier for the interaction
|
|
18
|
-
* @param opcode The operation code for the interaction
|
|
19
|
-
* @param p0 The first parameter for the interaction
|
|
20
|
-
* @param p1 The second parameter for the interaction (optional)
|
|
17
|
+
* Interacts with a widget using packed widget ID, identifier, opcode, param0, and param1
|
|
21
18
|
*/
|
|
22
|
-
|
|
23
|
-
|
|
19
|
+
/**
|
|
20
|
+
* Interacts with a widget using packed widget ID, identifier, opcode, param0, and optionally param1.
|
|
21
|
+
*
|
|
22
|
+
* @param packedWidgetId The packed widget ID
|
|
23
|
+
* @param identifier The identifier for the widget action
|
|
24
|
+
* @param opcode The opcode specifying the action
|
|
25
|
+
* @param param0 The first parameter for the action
|
|
26
|
+
* @param param1 (Optional) The second parameter for the action
|
|
27
|
+
*/
|
|
28
|
+
interactSpecifiedWidget(
|
|
24
29
|
packedWidgetId: number,
|
|
25
30
|
identifier: number,
|
|
26
31
|
opcode: number,
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
)
|
|
32
|
+
param0: number,
|
|
33
|
+
param1?: number
|
|
34
|
+
): void;
|
|
30
35
|
|
|
31
36
|
/**
|
|
32
|
-
* Interacts with a widget by matching its text content
|
|
37
|
+
* Interacts with a widget by matching its text content.
|
|
33
38
|
* @param text The text to search for in widgets
|
|
34
39
|
*/
|
|
35
40
|
interactWidgetText: (text: string) => void;
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Enables special attack
|
|
44
|
+
*/
|
|
45
|
+
enableSpecialAttack: () => void;
|
|
36
46
|
}
|
|
37
47
|
}
|