mirror of
https://github.com/2006-Scape/Parabot-317-API-Minified.git
synced 2026-07-07 00:38:21 +00:00
Update Menu.java
Added changes from patch-1
This commit is contained in:
@@ -170,23 +170,22 @@ public class Menu {
|
|||||||
* @param cmd3
|
* @param cmd3
|
||||||
*/
|
*/
|
||||||
public static void sendAction(int action, int cmd1, int cmd2, int cmd3) {
|
public static void sendAction(int action, int cmd1, int cmd2, int cmd3) {
|
||||||
sendAction(action, cmd1, cmd2, cmd3, 0);
|
sendAction(action, cmd1, cmd2, cmd3, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sends an action to the client
|
* Sends an action to the client
|
||||||
* @param action
|
* @param action
|
||||||
* @param cmd1
|
* @param cmd1
|
||||||
* @param cmd2
|
* @param cmd2
|
||||||
* @param cmd3
|
* @param cmd3
|
||||||
* @param cmd4
|
* @param index
|
||||||
*/
|
*/
|
||||||
public static void sendAction(int action, int cmd1, int cmd2, int cmd3, int cmd4) {
|
public static void sendAction(int action, int cmd1, int cmd2, int cmd3, int index) {
|
||||||
if (constants == null) {
|
if (constants == null) {
|
||||||
constants = Context.getInstance().getHookParser().getConstants();
|
constants = Context.getInstance().getHookParser().getConstants();
|
||||||
}
|
}
|
||||||
|
|
||||||
int index = 0;
|
|
||||||
Client client = Loader.getClient();
|
Client client = Loader.getClient();
|
||||||
|
|
||||||
client.getMenuAction1()[index] = cmd1;
|
client.getMenuAction1()[index] = cmd1;
|
||||||
|
|||||||
Reference in New Issue
Block a user