@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.
Files changed (35) hide show
  1. package/dist/src/rollup/ComponentID.js +8 -8
  2. package/dist/src/rollup/NpcID.js +1 -0
  3. package/dist/src/rollup/NullObjectID.js +8 -3
  4. package/dist/src/rollup/ObjectID.js +16 -5
  5. package/dist/src/rollup/gameval/DBTableID.js +9 -10
  6. package/dist/src/rollup/gameval/InterfaceID.js +118 -116
  7. package/dist/src/rollup/gameval/NpcID.js +1 -0
  8. package/dist/src/rollup/gameval/ObjectID1.js +21 -5
  9. package/dist/src/rollup/gameval/SpriteID.js +5 -0
  10. package/dist/src/rollup/gameval/VarPlayerID.js +155 -0
  11. package/dist/src/rollup/gameval/VarbitID.js +307 -0
  12. package/dist/src/types/runelite/net/runelite/api/Client.d.ts +81 -112
  13. package/dist/src/types/runelite/net/runelite/api/NpcID.d.ts +1 -0
  14. package/dist/src/types/runelite/net/runelite/api/NullObjectID.d.ts +8 -3
  15. package/dist/src/types/runelite/net/runelite/api/ObjectID.d.ts +16 -5
  16. package/dist/src/types/runelite/net/runelite/api/gameval/DBTableID.d.ts +9 -10
  17. package/dist/src/types/runelite/net/runelite/api/gameval/InterfaceID.d.ts +118 -116
  18. package/dist/src/types/runelite/net/runelite/api/gameval/NpcID.d.ts +1 -0
  19. package/dist/src/types/runelite/net/runelite/api/gameval/ObjectID1.d.ts +21 -5
  20. package/dist/src/types/runelite/net/runelite/api/gameval/SpriteID.d.ts +5 -0
  21. package/dist/src/types/runelite/net/runelite/api/gameval/VarPlayerID.d.ts +155 -0
  22. package/dist/src/types/runelite/net/runelite/api/gameval/VarbitID.d.ts +307 -0
  23. package/dist/src/types/runelite/net/runelite/api/widgets/ComponentID.d.ts +8 -8
  24. package/dist/src/types/sox/api/bot/equipment.d.ts +12 -8
  25. package/dist/src/types/sox/api/bot/grandExchange.d.ts +3 -2
  26. package/dist/src/types/sox/api/bot/index.d.ts +1 -0
  27. package/dist/src/types/sox/api/bot/magic.d.ts +1 -1
  28. package/dist/src/types/sox/api/bot/net.d.ts +11 -3
  29. package/dist/src/types/sox/api/bot/prayer.d.ts +3 -3
  30. package/dist/src/types/sox/api/bot/types.d.ts +41 -1
  31. package/dist/src/types/sox/api/bot/variables.d.ts +7 -7
  32. package/dist/src/types/sox/api/bot/walking.d.ts +17 -0
  33. package/dist/src/types/sox/api/bot/web.d.ts +12 -6
  34. package/dist/src/types/sox/api/bot/widgets.d.ts +24 -14
  35. package/package.json +1 -1
@@ -7,31 +7,41 @@ declare namespace bot {
7
7
  */
8
8
  interface widgets {
9
9
  /**
10
- * Handles dialogue interactions
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 specified widget using its ID and parameters
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
- interactSpecifiedWidget: (
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
- p0: number,
28
- p1?: number
29
- ) => void;
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deafwave/osrs-botmaker-types",
3
- "version": "0.7.33",
3
+ "version": "0.7.35",
4
4
  "author": {
5
5
  "name": "Chandler Ferry",
6
6
  "url": "https://github.com/ChandlerFerry"