Jump to content

Mechagoober

Members
  • Posts

    108
  • Joined

  • Last visited

  • Feedback

    100%

Everything posted by Mechagoober

  1. Will OSBot premium scripts stop a script if it can't login because of an update? I had one night where it was constantly trying to log in, just wanna make sure that isn't gonna happen tonight. Any help would be appreciated! Thanks guys! ~Kitten
  2. Could I get a free trial of the Yak Killer! Thanks alot, Kitten
  3. I feel like my bots keep logging out right about 5-6 hours, and then it doesn't relog. Does any1 have an idea? My scripts even stay on but i just have to manually relog my character. Breaks work, they relog. But it still logs out permanetly around 5-6 hours. But the script keeps running. sometimes Thanks in advance! Kitten
  4. I'm sorry I am making this so hard, I created an empty JAR and in the right box i clicked add OSbot Compile Output to the left side and changed the Output directory to Users\me\osbot\scripts and it doesnt put my jar in my scripts folder
  5. I clicked Artifacts, then do I click new Jar? I changed the directory to the location but it doesnt create a jar or class in that folder what do i click? Thank you!
  6. Is there a way that I can change where my scripts compile so that they go directly into my OSBot scripts folder? I'm sick of going to each individual directory and copying and replacing. Thank you! Kitten Krazy
  7. Thank you! Switched to IntelliJ Helped me dearly
  8. Thank you so much, Why doesn't Eclipse pop up and tell me I need to import the filter? All it does is show me the methods I can use with .closest It has been fine for ground items and all the other stuff I had. Do you use intelliJ? I tried using it but it doesn't recognize something.. Eclipse should work anyways. Any idea? Thank you again!
  9. Why exactly does Filter stay having red lines under it? I copyed that exact code and it still gives red lines. Did I not import something I appreciate your response
  10. I'm going off Saiyan's chicken killer, trying to customize it so it will actually run and look legit. Well, I've tried to customize it and I am not having much luck learning. So I thought I would post a topic and request some help. Remember, I'm fairly new to java and am trying not to give up. I think i'm looking how to use a Filter so it attacks the right npc.. not sure if this is the same thing as a filter or not. Also, here is a link to Saiyan's chicken killer he posted a half year ago. http://osbot.org/forum/topic/89682-open-source-chicken-killer-can-copy-and-paste-and-improve5-min-script/ Do I need to create my own methods to start using them in if statements so for ex. I can call a method to have a conditional Sleep? Idk how to use a filter, i think i need that to be successful. This is what I found for a filter, i think this is the most relevant to my script but idk!! Any help is appreciated! And yes I have looked at the API, its intimidating at a glance NPC chicken = getNpcs().closest("Chicken"); NPC chicken = getNpcs().closest(filters) import org.osbot.rs07.script.Script; import org.osbot.rs07.script.ScriptManifest; import org.osbot.rs07.utility.ConditionalSleep; import org.osbot.rs07.api.filter.NameFilter; import org.osbot.rs07.api.map.Area; import org.osbot.rs07.api.model.GroundItem; import org.osbot.rs07.api.model.NPC; import org.osbot.rs07.api.model.Player; import java.awt.*; @ScriptManifest(author = "Kitten Krazy", info = "Adam's Chicken Killer", name = "Chicken Killer", version = 0, logo = "") public class main extends Script { final Area CHICKEN_AREA = new Area(3226, 3001, 3236, 3295); @Override public void onStart() { log("Kitten Krazy's chicken killer"); } private enum State { KILL, SLEEP; } private State getState() { NPC chicken = getNpcs().closest("Chicken"); if(chicken != null){ return State.KILL; } return State.SLEEP; } @Override public int onLoop() throws InterruptedException { switch (getState()) { case KILL: NPC chicken = getNpcs().closest("Chicken"); if(!getCombat().isFighting()){ if(!myPlayer().isUnderAttack()){ if(chicken != null){ chicken.interact("Attack"); } } } if(chicken.interact("Attack")){ new ConditionalSleep(3000, 500){ public boolean condition() throws InterruptedException{ return myPlayer().isInteracting(chicken); } }.sleep(); } if(myPlayer().isInteracting(chicken)){ new ConditionalSleep(3000, 500){ public boolean condition() throws InterruptedException{ return myPlayer().isInteracting(chicken); } }.sleep(); } } return 0; } @Override public void onExit() { log("Thanks for running my chicken killer!"); } @Override public void onPaint(Graphics2D g) { } }
  11. [INFO][06/15 11:24:56 AM]: Started script : Perfect Woodcutter [ERROR][Bot #1][06/15 11:25:27 AM]: Error in bot executor! java.lang.OutOfMemoryError: Java heap space at org.osbot.iA.<init>(sh:30) at org.osbot.lpT3.<init>(bi:147) at org.osbot.Con.IiiIIiiiiIiI(n:155) at org.osbot.Con.IiiIIiiiiIiI(n:45) at org.osbot.Con.<clinit>(n:180) at org.osbot.rs07.api.Walking.webWalk(xe:228) at perfect.scripting.b.b.Aux.j(ke:695) at perfect.scripting.b.b.Aux.a(ke:145) at prn.onLoop(hf:74) at org.osbot.rs07.event.ScriptExecutor$InternalExecutor.run(qe:268) at java.lang.Thread.run(Unknown Source) I get this in the Logger when I try and run an Al-Kharid Warrior script and your perfect Woodcutter. This is on the trial. I have a 6 core with 8gb ram
  12. I can run two of the Warrior killer scripts at the same time, but when I try running Perfect Woodcutter and a warrior script my client almost freezes up/runs slow. I have a good computer, but when I run the two together it uses 95% of my CPU. I don't get it. When I run two of the Warriors it uses like 40% of my CPU. Any1 have a solution on fixing this? Thanks, Kitten I get this error, I posted it in the correct thread, but posting here too if this is a simple fix or something. Here is the code: [INFO][06/15 11:24:56 AM]: Started script : Perfect Woodcutter [ERROR][Bot #1][06/15 11:25:27 AM]: Error in bot executor! java.lang.OutOfMemoryError: Java heap space at org.osbot.iA.<init>(sh:30) at org.osbot.lpT3.<init>(bi:147) at org.osbot.Con.IiiIIiiiiIiI(n:155) at org.osbot.Con.IiiIIiiiiIiI(n:45) at org.osbot.Con.<clinit>(n:180) at org.osbot.rs07.api.Walking.webWalk(xe:228) at perfect.scripting.b.b.Aux.j(ke:695) at perfect.scripting.b.b.Aux.a(ke:145) at prn.onLoop(hf:74) at org.osbot.rs07.event.ScriptExecutor$InternalExecutor.run(qe:268) at java.lang.Thread.run(Unknown Source)
  13. How do I get the free trial? I can't find the thread to like and I don't know how to like a thread Thanks, Kitten
×
×
  • Create New...