@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 CHANGED
@@ -4,3 +4,4 @@ Created by [Chandler 'Deafwave' Ferry](https://github.com/ChandlerFerry) to ease
4
4
 
5
5
  ## Donate
6
6
  - https://ko-fi.com/deafwave
7
+
@@ -49,7 +49,7 @@ declare namespace net.runelite.api {
49
49
  *
50
50
  * @return
51
51
  */
52
- getSourcePoint(): net.runelite.api.coords.LocalPoint;
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.LocalPoint;
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
  *
@@ -101,7 +101,6 @@ declare namespace bot {
101
101
  * @param message The message to print.
102
102
  */
103
103
  printLogMessage: (message: string) => void;
104
-
105
104
  /**
106
105
  * Runs a client script.
107
106
  * @param ints The integer parameters for the script.
@@ -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
- interactSpecifiedWidget: {
23
- (packedWidgetId: number, identifier: number, opcode: number, p0: number): void;
24
- (packedWidgetId: number, identifier: number, opcode: number, p0: number, p1: number): void;
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deafwave/osrs-botmaker-types",
3
- "version": "0.5.4",
3
+ "version": "0.5.6",
4
4
  "author": {
5
5
  "name": "Chandler Ferry",
6
6
  "url": "https://github.com/ChandlerFerry"