Jump to content

Chris

Scripter II
  • Posts

    8365
  • Joined

  • Last visited

  • Days Won

    14
  • Feedback

    100%

Everything posted by Chris

  1. Nice. Glad to know you fixed your issues m9
  2. try to keep it somewhat clean. for example (Credit to Isolate) State getState() { if (skills.getStatic(Skill.THIEVING) >= 5) { if (TEA_STALL_AREA.contains(myPlayer())) { if (inventory.contains("Cup of tea")) { return State.DROP; } else { return State.STEAL; } }else{ return State.WALK_STALL; } }else{ return State.POCKET; } and have functions private void Pick() throws InterruptedException { NPC npc = npcs.closest("Man"); if (npc != null){ if (npc.exists() && (!myPlayer().isAnimating()) && npc.isOnScreen()){ Status = "Interacting: Pickpocket"; npc.interact("Pickpocket"); sleep(random(300,600)); }else{ camera.toEntity(npc); } } } case POCKET: Status = "IDLE"; Pick(); break;
  3. Chris

    My New Signature

    how about fire on the sides and not the top? idk still looks good
  4. kek
  5. import org.osbot.rs07.api.model.Entity; import org.osbot.rs07.api.model.NPC; import org.osbot.rs07.script.Script; import org.osbot.rs07.script.ScriptManifest; import java.awt.*; @ScriptManifest(author = "Sinatra", info = "The best bot ever", name = "SPOCKET", version = 1.0, logo = "") public class Spocket extends Script { public void onStart() { } private enum State{ STEAL,DROP } State getState() { if (inventory.contains("Cup of tea")) { return State.DROP; } return State.STEAL; } private void Thieve(){ Entity T_STALL = objects.closest("Tea stall"); if (T_STALL != null && (!myPlayer().isAnimating())){ T_STALL.interact("Steal-from"); } } private void drop(){ log("Dropping shit tea"); inventory.drop("Cup of tea"); } @Override public int onLoop() throws InterruptedException { switch(getState()){ case STEAL: Thieve(); sleep(random(300,600)); break; case DROP: drop(); sleep(random(300,600)); break; } return random(100, 250); } @Override public void onExit() { } @Override public void onPaint(Graphics2D g) { } } Deciding to fix it just for the tea stall :P
  6. hmm i'll look into it later c: going to bed and dont have time to test :p
  7. Criticize my work http://gyazo.com/3d3e6da2620a5bfa04f32ae41a59a5e6 Want it to: 1.Thieve till level 5 2. once its level 5 go to varrock 3. thieve tea stall
  8. Yeah i started with the logic loop style but might switch to the state method
  9. Post examples if you want *scripting*
  10. i too hate washed out jeans
  11. new
  12. Chris

    Any Ideas?

    I ended up using the getskill method and it works ;) Thanks for the extra info
  13. Chris

    Any Ideas?

    Im testing it now
  14. Chris

    Any Ideas?

    Okay thanks
  15. if (!myPlayer().isAnimating() && !myPlayer().isMoving()) { if (!myPlayer().isUnderAttack() && Guard.isVisible()) { Guard.interact("Attack"); sleep(random(500, 1000)); } else { camera.toEntity(Guard); } } } if (myPlayer().getHealth() <=30 && getInventory().contains("Lobster")) { inventory.getItem("Lobster").interact("Eat"); sleep(random(600, 1200)); } I get this issue when running http://gyazo.com/32407f7a8337725e1ea21a0d621e325d It would return to attack then eat a lobster when it is already full health
  16. How do I make a .jar in IntelliJ? my skype is: osbotsinatra1
  17. Meh I tried states but I gave up on them
  18. @Override public int onLoop() throws InterruptedException { if (!inventory.contains("Lobster")&&MONSTER_AREA.contains(myPlayer())){ if (!BANK_AREA.contains(myPlayer())){ getLocalWalker().walkPath(PATH_TO_BANK); //walk to bank }else{ RS2Object bankBooth = (RS2Object)this.objects.closest(new String[] {"Bank booth"}); if (bankBooth != null){ if (bankBooth.interact("Bank")) { //checks if it will return true new ConditionalSleep(10000) { @Override public boolean condition() throws InterruptedException { return getBank().isOpen(); } }.sleep(); if (getBank().isOpen()){ getBank().withdrawAll("Lobster"); sleep(random(377, 544)); } } bank.close(); log("STATE:. BANKED"); } } } if (!MONSTER_AREA.contains(myPlayer())){ getLocalWalker().walkPath(PATH_TO_MONSTER); log("STATE: WALKING BACK"); } This is the code I am dealing with. I want it to go from Varrock Palace to Varrock west bank and use the booth. Then head back to the guards. What am I doing wrong here and how can I improve my code?
  19. Chris

    Price check

    20 att 61 str 1 def 1 pray 44 range 71 mage 47 cmb No registered email
  20. 36m has been Paid. Sorry for the understanding here. image removed as it contained rsn's
  21. /shitmeme
×
×
  • Create New...