Expose methods to execute scripts
This commit is contained in:
@@ -550,4 +550,10 @@ public interface RSClient extends RSGameEngine, Client
|
||||
|
||||
@Import("drawObject")
|
||||
void drawObject(int z, int x, int y, int randomColor1, int randomColor2);
|
||||
|
||||
@Construct
|
||||
RSScriptEvent createScriptEvent();
|
||||
|
||||
@Import("runScript")
|
||||
void runScript(RSScriptEvent ev, int ex);
|
||||
}
|
||||
|
||||
@@ -24,6 +24,13 @@
|
||||
*/
|
||||
package net.runelite.rs.api;
|
||||
|
||||
import net.runelite.mapping.Import;
|
||||
|
||||
public interface RSScriptEvent
|
||||
{
|
||||
@Import("objs")
|
||||
Object[] getArguments();
|
||||
|
||||
@Import("objs")
|
||||
void setArguments(Object[] args);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user