@deafwave/osrs-botmaker-types 0.4.6 → 0.4.8

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 (39) hide show
  1. package/dist/src/types/runelite/net/runelite/api/ItemID.d.ts +142 -3
  2. package/dist/src/types/runelite/net/runelite/api/NpcID.d.ts +462 -13
  3. package/dist/src/types/runelite/net/runelite/api/NullItemID.d.ts +1180 -11
  4. package/dist/src/types/runelite/net/runelite/api/NullNpcID.d.ts +402 -4
  5. package/dist/src/types/runelite/net/runelite/api/NullObjectID.d.ts +4020 -21
  6. package/dist/src/types/runelite/net/runelite/api/ObjectID.d.ts +722 -26
  7. package/dist/src/types/runelite/net/runelite/api/ParamID.d.ts +1 -45
  8. package/dist/src/types/runelite/net/runelite/api/Projectile.d.ts +70 -23
  9. package/dist/src/types/runelite/net/runelite/api/SpriteID.d.ts +3 -98
  10. package/dist/src/types/runelite/net/runelite/api/WorldView.d.ts +36 -12
  11. package/dist/src/types/runelite/net/runelite/api/gameval/AnimationID.d.ts +12528 -0
  12. package/dist/src/types/runelite/net/runelite/api/gameval/DBTableID.d.ts +6701 -0
  13. package/dist/src/types/runelite/net/runelite/api/gameval/InterfaceID.d.ts +930 -0
  14. package/dist/src/types/runelite/net/runelite/api/gameval/InventoryID.d.ts +942 -0
  15. package/dist/src/types/runelite/net/runelite/api/gameval/ItemID.d.ts +31178 -0
  16. package/dist/src/types/runelite/net/runelite/api/gameval/NpcID.d.ts +14798 -0
  17. package/dist/src/types/runelite/net/runelite/api/gameval/ObjectID.d.ts +32006 -0
  18. package/dist/src/types/runelite/net/runelite/api/gameval/ObjectID1.d.ts +25686 -0
  19. package/dist/src/types/runelite/net/runelite/api/gameval/SpotanimID.d.ts +3462 -0
  20. package/dist/src/types/runelite/net/runelite/api/gameval/SpriteID.d.ts +6417 -0
  21. package/dist/src/types/runelite/net/runelite/api/gameval/VarClientID.d.ts +1266 -0
  22. package/dist/src/types/runelite/net/runelite/api/gameval/VarPlayerID.d.ts +2268 -0
  23. package/dist/src/types/runelite/net/runelite/api/gameval/VarbitID.d.ts +12208 -0
  24. package/dist/src/types/runelite/net/runelite/api/geometry/Shapes.d.ts +15 -14
  25. package/dist/src/types/runelite/net/runelite/api/geometry/SimplePolygon.d.ts +36 -35
  26. package/dist/src/types/runelite/net/runelite/api/widgets/Widget.d.ts +7 -2
  27. package/dist/src/types/runelite/net/runelite/api/widgets/WidgetItem.d.ts +39 -38
  28. package/dist/src/types/runelite/net/runelite/client/plugins/cluescrolls/clues/hotcold/HotColdLocation.d.ts +565 -1253
  29. package/dist/src/types/runelite/net/runelite/client/plugins/mta/telekinetic/TelekineticRoom.d.ts +31 -10
  30. package/dist/src/types/runelite/net/runelite/client/ui/overlay/OverlayBounds.d.ts +7 -6
  31. package/dist/src/types/runelite/net/runelite/client/ui/overlay/WidgetOverlay.d.ts +1 -1
  32. package/dist/src/types/runelite/net/runelite/client/ui/overlay/components/ImageComponent.d.ts +1 -1
  33. package/dist/src/types/runelite/net/runelite/client/ui/overlay/components/LayoutableRenderableEntity.d.ts +1 -1
  34. package/dist/src/types/runelite/net/runelite/client/ui/overlay/components/LineComponent.d.ts +1 -1
  35. package/dist/src/types/runelite/net/runelite/client/ui/overlay/components/PanelComponent.d.ts +1 -1
  36. package/dist/src/types/runelite/net/runelite/client/ui/overlay/components/ProgressBarComponent.d.ts +1 -1
  37. package/dist/src/types/runelite/net/runelite/client/ui/overlay/components/TitleComponent.d.ts +1 -1
  38. package/dist/src/types/runelite/net/runelite/client/ui/overlay/components/TooltipComponent.d.ts +1 -1
  39. package/package.json +1 -1
@@ -1,33 +1,6 @@
1
1
  /// <reference path="../../../../../../src/types/java/index.d.ts" />
2
2
  /// <reference path="../../../../../../src/types/runelite/index.d.ts" />
3
- /*
4
- * Copyright (c) 2020 Abex
5
- * All rights reserved.
6
- *
7
- * Redistribution and use in source and binary forms, with or without
8
- * modification, are permitted provided that the following conditions are met:
9
- *
10
- * 1. Redistributions of source code must retain the above copyright notice, this
11
- * list of conditions and the following disclaimer.
12
- * 2. Redistributions in binary form must reproduce the above copyright notice,
13
- * this list of conditions and the following disclaimer in the documentation
14
- * and/or other materials provided with the distribution.
15
- *
16
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
17
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19
- * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
20
- * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21
- * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
- */
27
3
  declare namespace net.runelite.api {
28
- /**
29
- * @see ParamHolder
30
- */
31
4
  export class ParamID {
32
5
  static readonly OC_ITEM_OP1 = 451;
33
6
  static readonly OC_ITEM_OP2 = 452;
@@ -37,7 +10,6 @@ declare namespace net.runelite.api {
37
10
  static readonly OC_ITEM_OP6 = 456;
38
11
  static readonly OC_ITEM_OP7 = 457;
39
12
  static readonly OC_ITEM_OP8 = 458;
40
-
41
13
  static readonly OC_ITEM_OP1_SUBOP1 = 661;
42
14
  static readonly OC_ITEM_OP1_SUBOP2 = 2074;
43
15
  static readonly OC_ITEM_OP1_SUBOP3 = 2082;
@@ -198,41 +170,25 @@ declare namespace net.runelite.api {
198
170
  static readonly OC_ITEM_OP8_SUBOP18 = 2209;
199
171
  static readonly OC_ITEM_OP8_SUBOP19 = 2217;
200
172
  static readonly OC_ITEM_OP8_SUBOP20 = 2225;
201
-
202
- /**
203
- * Long name for NPCs used in the HP hud
204
- */
205
173
  static readonly NPC_HP_NAME = 510;
206
- /**
207
- * @see SettingID
208
- */
209
174
  static readonly SETTING_ID = 1077;
210
- // defaults to 5
211
- // 1 is continuous
212
175
  static readonly SETTING_SLIDER_STEPS = 1101;
213
176
  static readonly SETTING_CUSTOM_TRANSMIT = 1085;
214
- // defaults to true
215
- // track is foreground
216
177
  static readonly SETTING_FOREGROUND_CLICKZONE = 1105;
217
178
  static readonly SETTING_SLIDER_CUSTOM_ONOP = 1106;
218
179
  static readonly SETTING_SLIDER_CUSTOM_SETPOS = 1107;
219
180
  static readonly SETTING_SLIDER_IS_DRAGGABLE = 1108;
220
181
  static readonly SETTING_SLIDER_DEADZONE = 1109;
221
182
  static readonly SETTING_SLIDER_DEADTIME = 1110;
222
-
223
183
  static readonly OC_PRAYER_COMPONENT = 1751;
224
184
  static readonly OC_PRAYER_LEVEL = 1753;
225
-
226
185
  static readonly NPC_DEATH_HIDER_EXCLUDE = 1799;
227
-
228
186
  static readonly SLAYER_TASK_NAME = 1801;
229
-
230
187
  static readonly ATTACK_STYLE_NAME = 1407;
231
-
232
188
  static readonly SPELL_BUTTON = 596;
233
189
  static readonly SPELL_NAME = 601;
234
190
  static readonly SPELL_LEVELREQ = 604;
235
-
236
191
  static readonly BANK_AUTOCHARGE = 2257;
192
+ static readonly CLUE_SCROLL = 623;
237
193
  }
238
194
  }
@@ -33,64 +33,120 @@ declare namespace net.runelite.api {
33
33
  * Gets the ID of the projectile.
34
34
  *
35
35
  * @return the projectile ID
36
- * @see GraphicID
36
+ * @see net.runelite.api.gameval.SpotanimID
37
37
  */
38
38
  getId(): number;
39
+
40
+ /**
41
+ * Get the level the projectile starts on.
42
+ *
43
+ * @return
44
+ */
45
+ getSourceLevel(): number;
46
+
47
+ /**
48
+ * Get the point the projectile starts at.
49
+ *
50
+ * @return
51
+ */
52
+ getSourcePoint(): net.runelite.api.coords.LocalPoint;
53
+
54
+ /**
55
+ * Get the actor the projectile starts at.
56
+ *
57
+ * @return
58
+ */
59
+ getSourceActor(): Actor | null;
60
+
61
+ /**
62
+ * Get the level the projectile ends on.
63
+ * @return
64
+ */
65
+ getTargetLevel(): number;
66
+
67
+ /**
68
+ * Get the point the projectile ends at.
69
+ *
70
+ * @return
71
+ */
72
+ getTargetPoint(): net.runelite.api.coords.LocalPoint;
73
+
74
+ /**
75
+ * Get the actor the projectile ends at.
76
+ *
77
+ * @return
78
+ */
79
+ getTargetActor(): Actor | null;
80
+
39
81
  /**
40
82
  * Gets the actor that is targeted by this projectile.
41
83
  *
42
84
  * @return the target actor, or null if this projectile is an AoE attack
85
+ * @deprecated
43
86
  */
44
- getInteracting(): Actor;
87
+ getInteracting(): Actor | null;
88
+
45
89
  /**
46
90
  * Get the target point of the projectile. For projectiles with an actor target,
47
91
  * this is updated each frame to the actor position.
48
92
  *
49
93
  * @return
94
+ * @deprecated
50
95
  */
51
96
  getTarget(): net.runelite.api.coords.LocalPoint;
97
+
52
98
  /**
53
99
  * Gets the original x-axis coordinate that this projectile started from.
54
100
  *
55
101
  * @return the original coordinate
102
+ * @deprecated
56
103
  */
57
104
  getX1(): number;
105
+
58
106
  /**
59
107
  * Gets the original y-axis coordinate that this projectile started from.
60
108
  *
61
109
  * @return the original coordinate
110
+ * @deprecated
62
111
  */
63
112
  getY1(): number;
113
+
64
114
  /**
65
115
  * Gets the plane that the projectile is on.
66
116
  *
67
117
  * @return the plane
118
+ * @deprecated
68
119
  */
69
120
  getFloor(): number;
121
+
70
122
  /**
71
123
  * Gets the height of the projectile.
72
124
  *
73
125
  * @return the height
74
126
  */
75
127
  getHeight(): number;
128
+
76
129
  /**
77
130
  * Gets the ending height of the projectile.
78
131
  *
79
132
  * @return the ending height
80
133
  */
81
134
  getEndHeight(): number;
135
+
82
136
  /**
83
137
  * Gets the game cycle that the projectile begun movement at.
84
138
  *
85
139
  * @return the start game cycle
86
140
  */
87
141
  getStartCycle(): number;
142
+
88
143
  /**
89
144
  * Gets the game cycle that the projectile will reach its target at.
90
145
  *
91
146
  * @return the end game cycle
92
147
  */
93
148
  getEndCycle(): number;
149
+
94
150
  /**
95
151
  * Sets the game cycle the projectile will reach its target at. The
96
152
  * projectile automatically despawns after this time, and setting the
@@ -99,6 +155,7 @@ declare namespace net.runelite.api {
99
155
  * @param cycle
100
156
  */
101
157
  setEndCycle(cycle: number): void;
158
+
102
159
  /**
103
160
  * Gets the remaining game cycles until the projectile reaches its
104
161
  * target and despawns.
@@ -106,6 +163,7 @@ declare namespace net.runelite.api {
106
163
  * @return the remaining game cycles
107
164
  */
108
165
  getRemainingCycles(): number;
166
+
109
167
  /**
110
168
  * Gets the slope of the projectile.
111
169
  * <p>
@@ -115,59 +173,48 @@ declare namespace net.runelite.api {
115
173
  * @return the slope of the projectile
116
174
  */
117
175
  getSlope(): number;
176
+
118
177
  /**
119
178
  * Gets the starting height of the projectile.
120
179
  *
121
180
  * @return the starting height
122
181
  */
123
182
  getStartHeight(): number;
183
+
124
184
  /**
125
185
  * Gets the current x-axis coordinate of the projectile.
126
186
  *
127
187
  * @return the x-axis coordinate
128
188
  */
129
189
  getX(): number;
190
+
130
191
  /**
131
192
  * Gets the current y-axis coordinate of the projectile.
132
193
  *
133
194
  * @return the y-axis coordinate
134
195
  */
135
196
  getY(): number;
197
+
136
198
  /**
137
199
  * Gets the current z-axis coordinate of the projectile.
138
200
  *
139
201
  * @return the z-axis coordinate
140
202
  */
141
203
  getZ(): number;
204
+
142
205
  /**
143
- * Gets the scalar quantity (speed) at which the projectile is travelling.
144
- *
145
- * @return the scalar quantity
146
- */
147
- getScalar(): number;
148
- /**
149
- * Gets the x-axis velocity of the projectile.
150
- *
151
- * @return the x-axis velocity
152
- */
153
- getVelocityX(): number;
154
- /**
155
- * Gets the y-axis velocity of the projectile.
206
+ * Get the projectile orientation in JAU
156
207
  *
157
- * @return the y-axis velocity
158
- */
159
- getVelocityY(): number;
160
- /**
161
- * Gets the z-axis velocity of the projectile.
162
- *
163
- * @return the z-axis velocity
208
+ * @return
164
209
  */
165
- getVelocityZ(): number;
210
+ getOrientation(): number;
211
+
166
212
  /**
167
213
  * The animation of the projectile
168
214
  * @return
169
215
  */
170
216
  getAnimation(): Animation | null;
217
+
171
218
  /**
172
219
  * The frame of the current animation
173
220
  * @return