diff --git a/CShopper/src/io/reisub/dreambot/cshopper/CShopper.java b/CShopper/src/io/reisub/dreambot/cshopper/CShopper.java index 31fc7fc..6ce44e5 100644 --- a/CShopper/src/io/reisub/dreambot/cshopper/CShopper.java +++ b/CShopper/src/io/reisub/dreambot/cshopper/CShopper.java @@ -36,11 +36,11 @@ public class CShopper extends CTaskScript { buyTask = new Buy(); addNodes( + new Stop(), new Run(), new Open(), buyTask, - new Hop(), - new Stop() + new Hop() ); } diff --git a/CShopper/src/io/reisub/dreambot/cshopper/tasks/Stop.java b/CShopper/src/io/reisub/dreambot/cshopper/tasks/Stop.java index 78642fd..dbbd883 100644 --- a/CShopper/src/io/reisub/dreambot/cshopper/tasks/Stop.java +++ b/CShopper/src/io/reisub/dreambot/cshopper/tasks/Stop.java @@ -4,6 +4,7 @@ import io.reisub.dreambot.cshopper.CShopper; import io.reisub.dreambot.cshopper.ItemWrapper; import org.dreambot.api.methods.MethodProvider; import org.dreambot.api.methods.container.impl.Inventory; +import org.dreambot.api.methods.tabs.Tabs; import org.dreambot.api.script.ScriptManager; import org.dreambot.api.script.TaskNode; @@ -25,8 +26,9 @@ public class Stop extends TaskNode { @Override public int execute() { MethodProvider.log("Finished buying"); + Tabs.logout(); ScriptManager.getScriptManager().stop(); - return 0; + return 1000; } }