@deafwave/osrs-botmaker-types 0.4.4 → 0.4.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.
|
@@ -26,103 +26,91 @@
|
|
|
26
26
|
/// <reference path="./widgets.d.ts" />
|
|
27
27
|
|
|
28
28
|
declare namespace bot {
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
// Core methods are accessed directly on the bot object
|
|
30
|
+
interface SoxBotApi extends bot {
|
|
31
|
+
// Namespaces
|
|
32
|
+
attackStyle: bot.attackStyle;
|
|
33
|
+
bank: bot.bank;
|
|
34
|
+
bmCache: bot.bmCache;
|
|
35
|
+
bmGlobalCache: bot.bmGlobalCache;
|
|
36
|
+
breakHandler: bot.breakHandler;
|
|
37
|
+
counters: bot.counters;
|
|
38
|
+
equipment: bot.equipment;
|
|
39
|
+
events: bot.events;
|
|
40
|
+
grandExchange: bot.grandExchange;
|
|
41
|
+
graphicsObjects: bot.graphicsObjects;
|
|
42
|
+
inventory: bot.inventory;
|
|
43
|
+
magic: bot.magic;
|
|
44
|
+
net: bot.net;
|
|
45
|
+
notifier: bot.notifier;
|
|
46
|
+
npcs: bot.npcs;
|
|
47
|
+
objects: bot.objects;
|
|
48
|
+
players: bot.players;
|
|
49
|
+
plugins: bot.plugins;
|
|
50
|
+
prayer: bot.prayer;
|
|
51
|
+
projectiles: bot.projectiles;
|
|
52
|
+
task: bot.task;
|
|
53
|
+
tileItems: bot.tileItems;
|
|
54
|
+
variables: bot.variables;
|
|
55
|
+
walking: bot.walking;
|
|
56
|
+
widgets: bot.widgets;
|
|
31
57
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
+
// Direct methods
|
|
59
|
+
/**
|
|
60
|
+
* Performs a menu action.
|
|
61
|
+
* @param p0 The first parameter for the menu action
|
|
62
|
+
* @param p1 The second parameter for the menu action
|
|
63
|
+
* @param action The menu action to perform
|
|
64
|
+
* @param identifier The identifier for the menu action
|
|
65
|
+
* @param itemId The item ID for the menu action
|
|
66
|
+
* @param option The option for the menu action
|
|
67
|
+
* @param target The target for the menu action
|
|
68
|
+
* @param bounds The bounds for the menu action
|
|
69
|
+
*/
|
|
70
|
+
menuAction(
|
|
71
|
+
p0: number,
|
|
72
|
+
p1: number,
|
|
73
|
+
action: net.runelite.api.MenuAction,
|
|
74
|
+
identifier: number,
|
|
75
|
+
itemId: number,
|
|
76
|
+
option: string,
|
|
77
|
+
target: string,
|
|
78
|
+
bounds?: java.awt.Rectangle,
|
|
79
|
+
): void;
|
|
80
|
+
/**
|
|
81
|
+
* Clears the game chat.
|
|
82
|
+
*/
|
|
83
|
+
clearGameChat: () => void;
|
|
84
|
+
/**
|
|
85
|
+
* Checks if the local player is idle.
|
|
86
|
+
* @returns True if the local player is idle, false otherwise.
|
|
87
|
+
*/
|
|
88
|
+
localPlayerIdle: () => boolean;
|
|
89
|
+
/**
|
|
90
|
+
* Checks if the local player is moving.
|
|
91
|
+
* @returns True if the local player is moving, false otherwise.
|
|
92
|
+
*/
|
|
93
|
+
localPlayerMoving: () => boolean;
|
|
94
|
+
/**
|
|
95
|
+
* Prints a message to the game chat.
|
|
96
|
+
* @param message The message to print.
|
|
97
|
+
*/
|
|
98
|
+
printGameMessage: (message: string) => void;
|
|
99
|
+
/**
|
|
100
|
+
* Prints a message to the log.
|
|
101
|
+
* @param message The message to print.
|
|
102
|
+
*/
|
|
103
|
+
printLogMessage: (message: string) => void;
|
|
58
104
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
* @param action The menu action to perform
|
|
65
|
-
* @param identifier The identifier for the menu action
|
|
66
|
-
* @param itemId The item ID for the menu action
|
|
67
|
-
* @param option The option for the menu action
|
|
68
|
-
* @param target The target for the menu action
|
|
69
|
-
* @param bounds The bounds for the menu action
|
|
70
|
-
*/
|
|
71
|
-
menuAction: {
|
|
72
|
-
(
|
|
73
|
-
p0: number,
|
|
74
|
-
p1: number,
|
|
75
|
-
action: net.runelite.api.MenuAction,
|
|
76
|
-
identifier: number,
|
|
77
|
-
itemId: number,
|
|
78
|
-
option: string,
|
|
79
|
-
target: string
|
|
80
|
-
): void;
|
|
81
|
-
(
|
|
82
|
-
p0: number,
|
|
83
|
-
p1: number,
|
|
84
|
-
action: net.runelite.api.MenuAction,
|
|
85
|
-
identifier: number,
|
|
86
|
-
itemId: number,
|
|
87
|
-
option: string,
|
|
88
|
-
target: string,
|
|
89
|
-
bounds: java.awt.Rectangle
|
|
90
|
-
): void;
|
|
91
|
-
};
|
|
92
|
-
/**
|
|
93
|
-
* Clears the game chat.
|
|
94
|
-
*/
|
|
95
|
-
clearGameChat: () => void;
|
|
96
|
-
/**
|
|
97
|
-
* Checks if the local player is idle.
|
|
98
|
-
* @returns True if the local player is idle, false otherwise.
|
|
99
|
-
*/
|
|
100
|
-
localPlayerIdle: () => boolean;
|
|
101
|
-
/**
|
|
102
|
-
* Checks if the local player is moving.
|
|
103
|
-
* @returns True if the local player is moving, false otherwise.
|
|
104
|
-
*/
|
|
105
|
-
localPlayerMoving: () => boolean;
|
|
106
|
-
/**
|
|
107
|
-
* Prints a message to the game chat.
|
|
108
|
-
* @param message The message to print.
|
|
109
|
-
*/
|
|
110
|
-
printGameMessage: (message: string) => void;
|
|
111
|
-
/**
|
|
112
|
-
* Prints a message to the log.
|
|
113
|
-
* @param message The message to print.
|
|
114
|
-
*/
|
|
115
|
-
printLogMessage: (message: string) => void;
|
|
105
|
+
/**
|
|
106
|
+
* Runs a client script.
|
|
107
|
+
* @param ints The integer parameters for the script.
|
|
108
|
+
*/
|
|
109
|
+
runClientScript: (ints: number[]) => void;
|
|
116
110
|
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
/**
|
|
124
|
-
* Terminates the bot.
|
|
125
|
-
*/
|
|
126
|
-
terminate: () => void;
|
|
127
|
-
}
|
|
111
|
+
/**
|
|
112
|
+
* Terminates the bot.
|
|
113
|
+
*/
|
|
114
|
+
terminate: () => void;
|
|
115
|
+
}
|
|
128
116
|
}
|