Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class TestScript implements Script {
- private ScriptToolkit st = getScriptToolkit();
- private GameNPC cachedNpc;
- public void start(String[] args) {
- getSubroutines().add(NPCFinder, AntiBan);
- }
- public void stop() {
- //Onstop
- }
- public void pause() {
- //On pause
- }
- public void resume() {
- //On resume
- }
- public void loop() {
- if(cachedNpc != null) cachedNpc.atNpc("Attack");
- }
- public Subroutine NPCFinder = new Subroutine(){
- public void run() {
- cachedNpc = st.getNPCs().findNpc(String name, int id);
- }
- }
- public Subroutine AntiBan = new Subroutine() {
- public void run() {
- st.getInput().moveMouse(random(150,500),random(100,500));
- }
- }
- }
Add Comment
Please, Sign In to add comment