@deafwave/osrs-botmaker-types 0.5.4 → 0.5.6
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/README.md +1 -0
- package/dist/src/types/runelite/net/runelite/api/Projectile.d.ts +10 -5
- package/dist/src/types/sox/api/bot/index.d.ts +0 -1
- package/dist/src/types/sox/api/bot/magic.d.ts +1 -4
- package/dist/src/types/sox/api/bot/task.d.ts +6 -0
- package/dist/src/types/sox/api/bot/widgets.d.ts +9 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -49,7 +49,7 @@ declare namespace net.runelite.api {
|
|
|
49
49
|
*
|
|
50
50
|
* @return
|
|
51
51
|
*/
|
|
52
|
-
getSourcePoint(): net.runelite.api.coords.
|
|
52
|
+
getSourcePoint(): net.runelite.api.coords.WorldPoint;
|
|
53
53
|
|
|
54
54
|
/**
|
|
55
55
|
* Get the actor the projectile starts at.
|
|
@@ -69,7 +69,7 @@ declare namespace net.runelite.api {
|
|
|
69
69
|
*
|
|
70
70
|
* @return
|
|
71
71
|
*/
|
|
72
|
-
getTargetPoint(): net.runelite.api.coords.
|
|
72
|
+
getTargetPoint(): net.runelite.api.coords.WorldPoint;
|
|
73
73
|
|
|
74
74
|
/**
|
|
75
75
|
* Get the actor the projectile ends at.
|
|
@@ -123,6 +123,7 @@ declare namespace net.runelite.api {
|
|
|
123
123
|
* Gets the height of the projectile.
|
|
124
124
|
*
|
|
125
125
|
* @return the height
|
|
126
|
+
* @deprecated
|
|
126
127
|
*/
|
|
127
128
|
getHeight(): number;
|
|
128
129
|
|
|
@@ -166,14 +167,18 @@ declare namespace net.runelite.api {
|
|
|
166
167
|
|
|
167
168
|
/**
|
|
168
169
|
* Gets the slope of the projectile.
|
|
169
|
-
* <p>
|
|
170
|
-
* This value indicates how much arc the projectile can have. Projectiles
|
|
171
|
-
* with larger slopes have a more noticeable arc when thrown.
|
|
172
170
|
*
|
|
173
171
|
* @return the slope of the projectile
|
|
174
172
|
*/
|
|
175
173
|
getSlope(): number;
|
|
176
174
|
|
|
175
|
+
/**
|
|
176
|
+
* Gets the starting position of the projectile.
|
|
177
|
+
*
|
|
178
|
+
* @return the starting position
|
|
179
|
+
*/
|
|
180
|
+
getStartPos(): number;
|
|
181
|
+
|
|
177
182
|
/**
|
|
178
183
|
* Gets the starting height of the projectile.
|
|
179
184
|
*
|
|
@@ -72,10 +72,7 @@ declare namespace bot {
|
|
|
72
72
|
* @param spellName The name of the spell to cast
|
|
73
73
|
* @param actionIndex Action index for the spell
|
|
74
74
|
*/
|
|
75
|
-
cast:
|
|
76
|
-
(spellName: SpellName): void;
|
|
77
|
-
(spellName: SpellName, actionIndex: number): void;
|
|
78
|
-
};
|
|
75
|
+
cast: (spellName: SpellName, actionIndex?: number) => void;
|
|
79
76
|
|
|
80
77
|
/**
|
|
81
78
|
* Casts a magic spell on an inventory item by its ID
|
|
@@ -15,6 +15,12 @@ declare namespace bot {
|
|
|
15
15
|
* Stops the execution of the bot task.
|
|
16
16
|
*/
|
|
17
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;
|
|
18
24
|
}
|
|
19
25
|
|
|
20
26
|
/**
|
|
@@ -19,10 +19,15 @@ declare namespace bot {
|
|
|
19
19
|
* @param p0 The first parameter for the interaction
|
|
20
20
|
* @param p1 The second parameter for the interaction (optional)
|
|
21
21
|
*/
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
22
|
+
|
|
23
|
+
interactSpecifiedWidget: (
|
|
24
|
+
packedWidgetId: number,
|
|
25
|
+
identifier: number,
|
|
26
|
+
opcode: number,
|
|
27
|
+
p0: number,
|
|
28
|
+
p1?: number
|
|
29
|
+
) => void;
|
|
30
|
+
|
|
26
31
|
/**
|
|
27
32
|
* Interacts with a widget by matching its text content
|
|
28
33
|
* @param text The text to search for in widgets
|