@deafwave/osrs-botmaker-types 0.7.18 → 0.7.20

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.
@@ -0,0 +1,19 @@
1
+ declare namespace bot {
2
+ /**
3
+ * Interface for Account Maker functionality
4
+ * Provides access to current objective and task information
5
+ */
6
+ interface accountMaker {
7
+ /**
8
+ * Gets the current Account Maker objective
9
+ * @returns The current objective. Uncaptured Sox type of com.theplug.plugins.accountmaker.config.impl.Objective
10
+ */
11
+ getCurrentObjective: () => any;
12
+
13
+ /**
14
+ * Gets the current Account Maker task
15
+ * @returns The current task. Uncaptured Sox type of com.theplug.plugins.accountmaker.tasks.AbstractTask
16
+ */
17
+ getCurrentTask: () => any;
18
+ }
19
+ }
@@ -1,12 +1,16 @@
1
1
 
2
-
3
2
  declare namespace bot {
3
+ /**
4
+ * Interface for managing attack styles
5
+ * Provides methods to set the player's attack style
6
+ */
4
7
  interface attackStyle {
5
8
  /**
6
- * Sets the current attack style.
7
- * @param attackstyle - The array of attack style IDs to set.
9
+ * Sets the attack style for the player. Accepts one or more styles as arguments.
10
+ * Valid styles are: 'Accurate', 'Aggressive', 'Controlled', 'Defensive', 'Longrange', 'Rapid'.
11
+ * Example: setStyle('Accurate', 'Aggressive')
12
+ * @param attackStyles Array of attack style names to set
8
13
  */
9
- setStyle: (attackStyle: number[]) => void;
14
+ setStyle: (...attackStyles: ('Accurate' | 'Aggressive' | 'Controlled' | 'Defensive' | 'Longrange' | 'Rapid')[]) => void;
10
15
  }
11
-
12
16
  }
@@ -60,18 +60,18 @@ declare namespace bot {
60
60
  getNotedMode: () => boolean;
61
61
 
62
62
  /**
63
- * Gets the quantities of all specified item IDs in the bank.
64
- * @param itemIds - The array of item IDs to check.
65
- * @returns An array of quantities corresponding to the provided item IDs.
63
+ * Returns the item quantities of all the given item IDs in the bank
64
+ * @param ids The array of item IDs to check
65
+ * @returns The total quantity of all specified items
66
66
  */
67
- getQuantityOfAllIds: (itemIds: number[]) => number[];
67
+ getQuantityOfAllIds: (ids: number[]) => number;
68
68
 
69
69
  /**
70
- * Gets the quantities of all specified item names in the bank.
71
- * @param itemNames - The array of item names to check.
72
- * @returns An array of quantities corresponding to the provided item names.
70
+ * Returns the item quantities of all the given item names in the bank
71
+ * @param names The array of item names to check
72
+ * @returns The total quantity of all specified items
73
73
  */
74
- getQuantityOfAllNames: (itemNames: string[]) => number[];
74
+ getQuantityOfAllNames: (names: string[]) => number;
75
75
 
76
76
  /**
77
77
  * Gets the quantity of a specific item ID in the bank.
@@ -5,7 +5,7 @@ declare namespace bot {
5
5
  * Interface for interacting with the Bot Maker's cache system
6
6
  * Allows storing and retrieving persistent data between bot sessions
7
7
  */
8
- interface bmCache {
8
+ interface bmGlobalCache {
9
9
  /**
10
10
  * Gets a boolean value from the BM cache
11
11
  * @param key The key to retrieve the value for
@@ -1,3 +1,5 @@
1
+ /// <reference path="./accountMaker.d.ts" />
2
+ /// <reference path="./attackStyle.d.ts" />
1
3
  /// <reference path="./bank.d.ts" />
2
4
  /// <reference path="./bmCache.d.ts" />
3
5
  /// <reference path="./bmGlobalCache.d.ts" />
@@ -18,6 +20,8 @@
18
20
  /// <reference path="./plugins.d.ts" />
19
21
  /// <reference path="./prayer.d.ts" />
20
22
  /// <reference path="./projectiles.d.ts" />
23
+ /// <reference path="./sailing.d.ts" />
24
+ /// <reference path="./shop.d.ts" />
21
25
  /// <reference path="./task.d.ts" />
22
26
  /// <reference path="./tileItems.d.ts" />
23
27
  /// <reference path="./types.d.ts" />
@@ -25,11 +29,14 @@
25
29
  /// <reference path="./walking.d.ts" />
26
30
  /// <reference path="./web.d.ts" />
27
31
  /// <reference path="./widgets.d.ts" />
32
+ /// <reference path="../../../runelite/index.d.ts" />
33
+ /// <reference path="../../java/awt/Rectangle.d.ts" />
28
34
 
29
35
  declare namespace bot {
30
36
  // Core methods are accessed directly on the bot object
31
- interface SoxBotApi extends bot {
37
+ interface SoxBotApi {
32
38
  // Namespaces
39
+ accountMaker: bot.accountMaker;
33
40
  attackStyle: bot.attackStyle;
34
41
  bank: bot.bank;
35
42
  bmCache: bot.bmCache;
@@ -50,6 +57,8 @@ declare namespace bot {
50
57
  plugins: bot.plugins;
51
58
  prayer: bot.prayer;
52
59
  projectiles: bot.projectiles;
60
+ sailing: bot.sailing;
61
+ shop: bot.shop;
53
62
  task: bot.task;
54
63
  tileItems: bot.tileItems;
55
64
  variables: bot.variables;
@@ -59,15 +68,31 @@ declare namespace bot {
59
68
 
60
69
  // Direct methods
61
70
  /**
62
- * Performs a menu action.
63
- * @param p0 The first parameter for the menu action
64
- * @param p1 The second parameter for the menu action
71
+ * Terminates the execution of the current script
72
+ */
73
+ terminate: () => void;
74
+
75
+ /**
76
+ * Returns true if the local player has an animation of -1 and is not moving
77
+ * @returns True if the local player is idle, false otherwise
78
+ */
79
+ localPlayerIdle: () => boolean;
80
+
81
+ /**
82
+ * Returns true if the local player is moving
83
+ * @returns True if the local player is moving, false otherwise
84
+ */
85
+ localPlayerMoving: () => boolean;
86
+
87
+ /**
88
+ * Performs a MenuAction
89
+ * @param p0 The first parameter
90
+ * @param p1 The second parameter
65
91
  * @param action The menu action to perform
66
- * @param identifier The identifier for the menu action
67
- * @param itemId The item ID for the menu action
68
- * @param option The option for the menu action
69
- * @param target The target for the menu action
70
- * @param bounds The bounds for the menu action
92
+ * @param identifier The identifier
93
+ * @param itemId The item ID
94
+ * @param option The option text
95
+ * @param target The target text
71
96
  */
72
97
  menuAction(
73
98
  p0: number,
@@ -76,42 +101,105 @@ declare namespace bot {
76
101
  identifier: number,
77
102
  itemId: number,
78
103
  option: string,
79
- target: string,
80
- bounds?: java.awt.Rectangle,
104
+ target: string
81
105
  ): void;
106
+
82
107
  /**
83
- * Clears the game chat.
108
+ * Performs a MenuAction with world view
109
+ * @param p0 The first parameter
110
+ * @param p1 The second parameter
111
+ * @param action The menu action to perform
112
+ * @param identifier The identifier
113
+ * @param itemId The item ID
114
+ * @param worldView The world view
115
+ * @param option The option text
116
+ * @param target The target text
84
117
  */
85
- clearGameChat: () => void;
118
+ menuAction(
119
+ p0: number,
120
+ p1: number,
121
+ action: net.runelite.api.MenuAction,
122
+ identifier: number,
123
+ itemId: number,
124
+ worldView: number,
125
+ option: string,
126
+ target: string
127
+ ): void;
128
+
86
129
  /**
87
- * Checks if the local player is idle.
88
- * @returns True if the local player is idle, false otherwise.
130
+ * Performs a MenuAction with the bounds of the given rectangle
131
+ * @param p0 The first parameter
132
+ * @param p1 The second parameter
133
+ * @param action The menu action to perform
134
+ * @param identifier The identifier
135
+ * @param itemId The item ID
136
+ * @param option The option text
137
+ * @param target The target text
138
+ * @param bounds The bounds rectangle
89
139
  */
90
- localPlayerIdle: () => boolean;
140
+ menuAction(
141
+ p0: number,
142
+ p1: number,
143
+ action: net.runelite.api.MenuAction,
144
+ identifier: number,
145
+ itemId: number,
146
+ option: string,
147
+ target: string,
148
+ bounds: java.awt.Rectangle
149
+ ): void;
150
+
91
151
  /**
92
- * Checks if the local player is moving.
93
- * @returns True if the local player is moving, false otherwise.
152
+ * Performs a MenuAction with world view and the bounds of the given rectangle
153
+ * @param p0 The first parameter
154
+ * @param p1 The second parameter
155
+ * @param action The menu action to perform
156
+ * @param identifier The identifier
157
+ * @param itemId The item ID
158
+ * @param worldView The world view
159
+ * @param option The option text
160
+ * @param target The target text
161
+ * @param bounds The bounds rectangle
94
162
  */
95
- localPlayerMoving: () => boolean;
163
+ menuAction(
164
+ p0: number,
165
+ p1: number,
166
+ action: net.runelite.api.MenuAction,
167
+ identifier: number,
168
+ itemId: number,
169
+ worldView: number,
170
+ option: string,
171
+ target: string,
172
+ bounds: java.awt.Rectangle
173
+ ): void;
174
+
96
175
  /**
97
- * Prints a message to the game chat.
98
- * @param message The message to print.
176
+ * Prints a message in the bm logger
177
+ * @param message The message to print
99
178
  */
100
- printGameMessage: (message: string) => void;
179
+ printLogMessage: (message: string) => void;
180
+
101
181
  /**
102
- * Prints a message to the log.
103
- * @param message The message to print.
182
+ * Returns true if the local player has an animation of -1 and is not moving for a given number of ticks
183
+ * @param ticks The number of ticks to check
184
+ * @returns True if the local player has been idle for the specified ticks, false otherwise
104
185
  */
105
- printLogMessage: (message: string) => void;
186
+ localPlayerIdleFor: (ticks: number) => boolean;
187
+
106
188
  /**
107
- * Runs a client script.
108
- * @param ints The integer parameters for the script.
189
+ * Clears the in game chat
190
+ */
191
+ clearGameChat: () => void;
192
+
193
+ /**
194
+ * Runs a client script
195
+ * @param ints The integer parameters for the script
109
196
  */
110
197
  runClientScript: (ints: number[]) => void;
111
198
 
112
199
  /**
113
- * Terminates the bot.
200
+ * Prints a message in game
201
+ * @param message The message to print
114
202
  */
115
- terminate: () => void;
203
+ printGameMessage: (message: string) => void;
116
204
  }
117
205
  }
@@ -55,18 +55,18 @@ declare namespace bot {
55
55
  getEmptySlots: () => number;
56
56
 
57
57
  /**
58
- * Gets the quantities of all items with the specified IDs
59
- * @param itemIds Array of item IDs to get quantities for
60
- * @returns Array of quantities corresponding to the input IDs
58
+ * Returns the total quantity of all items matching the given IDs in the inventory
59
+ * @param ids Array of item IDs to check
60
+ * @returns The total quantity of all specified items
61
61
  */
62
- getQuantityOfAllIds: (itemIds: number[]) => number[];
62
+ getQuantityOfAllIds: (ids: number[]) => number;
63
63
 
64
64
  /**
65
- * Gets the quantities of all items with the specified names
66
- * @param itemNames Array of item names to get quantities for
67
- * @returns Array of quantities corresponding to the input names
65
+ * Returns the total quantity of all items matching the given names in the inventory
66
+ * @param names Array of item names to check
67
+ * @returns The total quantity of all specified items
68
68
  */
69
- getQuantityOfAllNames: (itemNames: string[]) => number[];
69
+ getQuantityOfAllNames: (names: string[]) => number;
70
70
 
71
71
  /**
72
72
  * Gets the quantity of an item with the specified ID
@@ -152,9 +152,9 @@ declare namespace bot {
152
152
  isFull: () => boolean;
153
153
 
154
154
  /**
155
- * Gets all widgets in the inventory
155
+ * Returns an array of all inventory item widgets
156
156
  * @returns An array of all inventory widgets
157
157
  */
158
- getAllWidgets(): net.runelite.api.widgets.Widget[];
158
+ getAllWidgets: () => net.runelite.api.widgets.Widget[];
159
159
  }
160
160
  }
@@ -0,0 +1,131 @@
1
+ /// <reference path="../../../runelite/index.d.ts" />
2
+
3
+ declare namespace bot {
4
+ /**
5
+ * Interface for managing boat sailing functionality
6
+ * Provides methods to control boat movement, speed, direction, and coordinate conversion
7
+ */
8
+ interface sailing {
9
+ /**
10
+ * Reverses the boat direction
11
+ * @returns True if the operation was successful, false otherwise
12
+ */
13
+ reverse: () => boolean;
14
+
15
+ /**
16
+ * Gets the current boat angle (0-1920)
17
+ * @returns The current boat angle
18
+ */
19
+ getBoatAngle: () => number;
20
+
21
+ /**
22
+ * Sets the sails to full speed (move mode 2)
23
+ * @returns True if the operation was successful, false otherwise
24
+ */
25
+ setSails: () => boolean;
26
+
27
+ /**
28
+ * Checks if the sails are currently set
29
+ * @returns True if the sails are set, false otherwise
30
+ */
31
+ isSailsSet: () => boolean;
32
+
33
+ /**
34
+ * Checks if the player is currently on a boat (in a separate world view)
35
+ * @returns True if the player is on a boat, false otherwise
36
+ */
37
+ isOnBoat: () => boolean;
38
+
39
+ /**
40
+ * Sets the sails using the GameObject on the boat (alternative method)
41
+ * @returns True if the operation was successful, false otherwise
42
+ */
43
+ setSailsObject: () => boolean;
44
+
45
+ /**
46
+ * Gets the current boat heading direction (0-15, where 0 is South and increases clockwise)
47
+ * @returns The current boat heading direction
48
+ */
49
+ getBoatHeading: () => number;
50
+
51
+ /**
52
+ * Lowers the boat speed (decreases move mode by 1)
53
+ * @returns True if the operation was successful, false otherwise
54
+ */
55
+ lowerSpeed: () => boolean;
56
+
57
+ /**
58
+ * Checks if the boat is in reverse (move mode 3)
59
+ * @returns True if the boat is in reverse, false otherwise
60
+ */
61
+ isReversing: () => boolean;
62
+
63
+ /**
64
+ * Raises the boat speed (increases move mode by 1)
65
+ * @returns True if the operation was successful, false otherwise
66
+ */
67
+ raiseSpeed: () => boolean;
68
+
69
+ /**
70
+ * Gets the current boat movement mode (0 = no movement, 1 = lower speed, 2 = full speed)
71
+ * @returns The current boat movement mode
72
+ */
73
+ getMovementSpeed: () => number;
74
+
75
+ /**
76
+ * Converts a WorldPoint from the boat's world view to main world coordinates
77
+ * @param boatWorldPoint The WorldPoint in the boat's world view
78
+ * @returns The converted WorldPoint in main world coordinates
79
+ */
80
+ convertToMainWorld: (boatWorldPoint: net.runelite.api.coords.WorldPoint) => net.runelite.api.coords.WorldPoint;
81
+
82
+ /**
83
+ * Checks if the boat is moving (move mode > 0)
84
+ * @returns True if the boat is moving, false otherwise
85
+ */
86
+ isBoatMoving: () => boolean;
87
+
88
+ /**
89
+ * Stops the boat completely
90
+ * @returns True if the operation was successful, false otherwise
91
+ */
92
+ stopBoat: () => boolean;
93
+
94
+ /**
95
+ * Unsets the sails to stop movement
96
+ * @returns True if the operation was successful, false otherwise
97
+ */
98
+ unsetSails: () => boolean;
99
+
100
+ /**
101
+ * Sets the heading direction of the boat (0-15, where 0 is south, clockwise)
102
+ * @param direction The heading direction to set (0-15)
103
+ * @returns True if the operation was successful, false otherwise
104
+ */
105
+ setHeading: (direction: number) => boolean;
106
+
107
+ /**
108
+ * Checks if the sailing control interface is available and visible
109
+ * @returns True if the sailing controls are available, false otherwise
110
+ */
111
+ isSailingControlsAvailable: () => boolean;
112
+
113
+ /**
114
+ * Gets the boat's center location in main world coordinates (center at scene 3,3)
115
+ * @returns The boat's center location as a WorldPoint
116
+ */
117
+ getBoatMainWorldLocation: () => net.runelite.api.coords.WorldPoint;
118
+
119
+ /**
120
+ * Gets the player's location in main world coordinates (useful when on a boat)
121
+ * @returns The player's location as a WorldPoint
122
+ */
123
+ getPlayerMainWorldLocation: () => net.runelite.api.coords.WorldPoint;
124
+
125
+ /**
126
+ * Gets the boat's center location with decimal precision [x, y]
127
+ * @returns Array containing the boat's center location coordinates [x, y]
128
+ */
129
+ getBoatMainWorldLocationFloats: () => number[];
130
+ }
131
+ }
@@ -0,0 +1,43 @@
1
+ declare namespace bot {
2
+ /**
3
+ * Interface for interacting with shops
4
+ * Provides methods to check shop status, buy items, and check stock
5
+ */
6
+ interface shop {
7
+ /**
8
+ * Checks if the shop interface is currently open
9
+ * @returns True if the shop is open, false otherwise
10
+ */
11
+ isOpen: () => boolean;
12
+
13
+ /**
14
+ * Gets the index of an item in the shop by its item ID
15
+ * @param itemId The item ID to find
16
+ * @returns The index of the item, or null if not found
17
+ */
18
+ getIndex: (itemId: number) => number | null;
19
+
20
+ /**
21
+ * Buys a specified quantity of an item from the shop by its item ID
22
+ * @param itemId The item ID to buy
23
+ * @param quantity The quantity to buy
24
+ * @returns True if the operation was successful, false otherwise
25
+ */
26
+ buy: (itemId: number, quantity: number) => boolean;
27
+
28
+ /**
29
+ * Checks if the shop has at least the specified quantity of an item by its item ID
30
+ * @param itemId The item ID to check
31
+ * @param quantity The minimum quantity to check for
32
+ * @returns True if the shop has at least the specified quantity, false otherwise
33
+ */
34
+ has: (itemId: number, quantity: number) => boolean;
35
+
36
+ /**
37
+ * Gets the current stock of a specific item in the shop by its item ID
38
+ * @param itemId The item ID to check
39
+ * @returns The current stock of the item
40
+ */
41
+ getStock: (itemId: number) => number;
42
+ }
43
+ }
@@ -1,36 +1,16 @@
1
1
 
2
+ /// <reference path="./types.d.ts" />
2
3
 
3
4
  declare namespace bot {
4
5
  /**
5
- * Represents an instance of a bot task with actions and control methods.
6
- */
7
- interface botTask {
8
- /**
9
- * Executes the provided function as an action of the bot task.
10
- * @param fn - The function to execute as part of the task's action.
11
- */
12
- act: (fn: () => void) => void;
13
-
14
- /**
15
- * Stops the execution of the bot task.
16
- */
17
- stop: () => void;
18
-
19
- /**
20
- * Sleep for a specified duration.
21
- * @param duration - The duration to sleep in milliseconds.
22
- */
23
- sleep: (duration: number) => void;
24
- }
25
-
26
- /**
27
- * Represents a factory for creating bot tasks.
6
+ * Interface for creating playable tasks
7
+ * Provides methods to create tasks that can chain functions with optional delays
28
8
  */
29
9
  interface task {
30
10
  /**
31
- * Creates a new instance of a bot task.
32
- * @returns A new botTask instance.
11
+ * Creates a new task object that can chain functions with optional delays in between
12
+ * @returns A new PlayableTask instance
33
13
  */
34
- create: () => botTask;
14
+ create: () => PlayableTask;
35
15
  }
36
- }
16
+ }
@@ -2,13 +2,6 @@
2
2
  /// <reference path="./types.d.ts" />
3
3
 
4
4
  declare namespace bot {
5
-
6
- interface TileItemInfo {
7
- id: number;
8
- name: string;
9
- quantity: number;
10
- location: net.runelite.api.coords.WorldPoint;
11
- }
12
5
  /**
13
6
  * Interface for interacting with items on the ground (tile items)
14
7
  * Provides methods to find and loot items from the ground
@@ -41,25 +34,29 @@ declare namespace bot {
41
34
  */
42
35
  lootItem: (tileItemInfo: TileItemInfo) => void;
43
36
 
37
+
44
38
  /**
45
- * Loots all items of the specified minimum value within the maximum distance
46
- * @param value The minimum value of items to loot
39
+ * Loots all items with the specified names within the maximum distance
40
+ * @param lootNames Array of item names to loot
47
41
  * @param maxDistance The maximum distance to loot items from
42
+ * @returns True if the operation was successful, false otherwise
48
43
  */
49
- lootItemsOfValue: (value: number, maxDistance: number) => void;
44
+ lootItemsWithNames: (lootNames: string[], maxDistance: number) => boolean;
50
45
 
51
46
  /**
52
- * Loots all items with the specified IDs within the maximum distance
47
+ * Loots the nearest ground item matching the given IDs within the max distance
53
48
  * @param lootIds Array of item IDs to loot
54
49
  * @param maxDistance The maximum distance to loot items from
50
+ * @returns True if the operation was successful, false otherwise
55
51
  */
56
- lootItemsWithIds: (lootIds: number[], maxDistance: number) => void;
52
+ lootItemsWithIds: (lootIds: number[], maxDistance: number) => boolean;
57
53
 
58
54
  /**
59
- * Loots all items with the specified names within the maximum distance
60
- * @param lootNames Array of item names to loot
55
+ * Loots the nearest ground item of the given value or higher within the max distance
56
+ * @param value The minimum value of items to loot
61
57
  * @param maxDistance The maximum distance to loot items from
58
+ * @returns True if the operation was successful, false otherwise
62
59
  */
63
- lootItemsWithNames: (lootNames: string[], maxDistance: number) => void;
60
+ lootItemsOfValue: (value: number, maxDistance: number) => boolean;
64
61
  }
65
62
  }
@@ -0,0 +1,68 @@
1
+ /// <reference path="../../../runelite/index.d.ts" />
2
+
3
+ declare namespace bot {
4
+ /**
5
+ * Information about a tile item (ground item)
6
+ */
7
+ interface TileItemInfo {
8
+ /** The tile where the item is located */
9
+ tile: net.runelite.api.Tile;
10
+ /** The tile item itself */
11
+ item: net.runelite.api.TileItem;
12
+
13
+ //** The name of the item */
14
+ getName: () => string;
15
+ /** Loots the item on the ground*/
16
+ loot: () => void;
17
+ }
18
+
19
+ /**
20
+ * A playable task that can chain functions with optional delays
21
+ */
22
+ interface PlayableTask {
23
+ /**
24
+ * Executes a callback action as part of the task.
25
+ * @param callback A function to execute in this task step
26
+ */
27
+ act: (callback: () => void) => void;
28
+
29
+ /**
30
+ * Loops the current task, repeating its actions.
31
+ */
32
+ /**
33
+ * Loops the current task a specific number of times, executing the provided callback function each iteration
34
+ * with a fixed delay between iterations.
35
+ * @param callback The function to execute on each iteration
36
+ * @param iterations The number of times to repeat the callback
37
+ * @param delayBetweenIterations The fixed delay (in milliseconds) between each iteration
38
+ */
39
+ loop: (callback: () => void, iterations: number, delayBetweenIterations: number) => void;
40
+ /**
41
+ * Loops the current task a specific number of times, executing the provided callback function each iteration,
42
+ * with a randomized delay between iterations ranging from delayBetweenIterations to maxDelayBetweenIterations.
43
+ * @param callback The function to execute on each iteration
44
+ * @param iterations The number of times to repeat the callback
45
+ * @param delayBetweenIterations The minimum delay (in milliseconds) between each iteration
46
+ * @param maxDelayBetweenIterations The maximum delay (in milliseconds) between each iteration
47
+ */
48
+ loop: (callback: () => void, iterations: number, delayBetweenIterations: number, maxDelayBetweenIterations: number) => void;
49
+
50
+ /**
51
+ * Pauses the current task for a specific number of milliseconds before continuing.
52
+ * @param milliseconds The exact number of milliseconds to sleep
53
+ */
54
+ sleep: (milliseconds : number) => void;
55
+
56
+ /**
57
+ * Pauses the current task for a random number of milliseconds between the provided minimum and maximum values before continuing.
58
+ * @param minMilliseconds The minimum number of milliseconds to sleep
59
+ * @param maxMilliseconds The maximum number of milliseconds to sleep
60
+ */
61
+ sleep: (minMilliseconds : number, maxMilliseconds : number) => void;
62
+
63
+ /**
64
+ * Stops the current task, preventing any further scheduled actions from executing.
65
+ */
66
+ stop: () => void;
67
+ }
68
+ }
@@ -61,5 +61,43 @@ declare namespace bot {
61
61
  * @param worldPoint The WorldPoint destination to walk to
62
62
  */
63
63
  webWalkStart: (worldPoint: net.runelite.api.coords.WorldPoint) => void;
64
+
65
+ /**
66
+ * Web walks to the nearest bank
67
+ */
68
+ webWalkToNearestBank: () => void;
69
+
70
+ /**
71
+ * Starts web walking with full configuration options for food, stamina, teleports, and more
72
+ * @param worldPoint The WorldPoint destination to walk to
73
+ * @param eatFood Whether to eat food during the walk
74
+ * @param useStamina Whether to use stamina potions
75
+ * @param runEnergyMin Minimum run energy before stopping to rest
76
+ * @param useTransports Whether to use transport methods
77
+ * @param useTeleports Whether to use teleports
78
+ * @param useEquipmentJewellery Whether to use equipment jewellery for teleports
79
+ * @param useMinigameTeleports Whether to use minigame teleports
80
+ * @param avoidWilderness Whether to avoid the wilderness
81
+ * @param usePoh Whether to use Player Owned House
82
+ * @param useCharterShips Whether to use charter ships
83
+ */
84
+ webWalkStartWithConfig: (
85
+ worldPoint: net.runelite.api.coords.WorldPoint,
86
+ eatFood: boolean,
87
+ useStamina: boolean,
88
+ runEnergyMin: number,
89
+ useTransports: boolean,
90
+ useTeleports: boolean,
91
+ useEquipmentJewellery: boolean,
92
+ useMinigameTeleports: boolean,
93
+ avoidWilderness: boolean,
94
+ usePoh: boolean,
95
+ useCharterShips: boolean
96
+ ) => void;
97
+
98
+ /**
99
+ * Refreshes the available transports for web walking
100
+ */
101
+ refreshTransports: () => void;
64
102
  }
65
103
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deafwave/osrs-botmaker-types",
3
- "version": "0.7.18",
3
+ "version": "0.7.20",
4
4
  "author": {
5
5
  "name": "Chandler Ferry",
6
6
  "url": "https://github.com/ChandlerFerry"