Jump to content

Czar

Global Moderator
  • Posts

    21616
  • Joined

  • Last visited

  • Days Won

    1894
  • Feedback

    100%

Everything posted by Czar

  1. Czar

    Npc If Clause

    if (p.getInterfaces().get(300).isValid() && p.getInterfaces().get(300).isVisible()) { // store is open if (p.getStore().contains(1337)) { if (p.getStore().buy("czar", 1)) { return 1000; } } } else { Entity shopkeeper = p.npcs.closest("Shopkeeper"); if (shopkeeper != null) { if (shopkeeper.interact("Trade")) { return 1000; } } } That's for buying something from shop, As for the 'dropping gold', check if inventory is full, not if inventory isn't empty !getInventory().isEmpty() -->>> getInventory().isFull() PM me if you need more help
  2. Is this for iron man? If so I have a better way and my iron man script will be out soon As for the smelter script, I just assisted http://osbot.org/forum/user/49898-edoggydogg/ on making a flawless smelting script in which he will release
  3. NMZ script coming right up.
  4. Did somebody say.. free scripts? Just tell me what script and I'll make a free one. I already finished 2 requests.
  5. Czar

    CzarRangingGuild

    Okay, eric approved the script and it's ready. Post proggies guys! Good luck botting on this flawless script
  6. You made it abstract, remove the abstract public abstract class Woodcutter extends Script { and make it public class Woodcutter extends Script { EDIT: Pm me if you need more help. Glad to help
  7. Only http://osbot.org/forum/user/18499-ericthecmh/ can verify it and he's not online atm
  8. Czar

    CzarRangingGuild

    yep Oh well it will be here soon
  9. YESSSSSS fk it, enough typing for today lmao worst words to type: American and Indian omg. had a couple of those lol killed my score EDIT: beat that 151, after around ~10 tests
  10. Does it work well, if not just pm me.
  11. Oo thanks mate, I didn't know.
  12. import java.awt.Graphics2D; import org.osbot.rs07.script.Script; import org.osbot.rs07.script.ScriptManifest; import org.osbot.rs07.api.map.Position; import org.osbot.rs07.api.ui.EquipmentSlot; @ScriptManifest(author = "edoggydogg", info = "Welcome to my very first script!", logo = "", name = "eIron", version = 0.1) public class main extends Script { Position GOODAREA = new Position(random(3683, 3686), random(3478, 3480), 0); Position BANKAREA = new Position(random(3687, 3690), random(3466, 3469), 0); // code used on start public void onStart() { log("Welcome to eIron."); log("Please begin the script in Port P. Bank"); log("If any problems occur, please report them to me."); camera.toTop(); camera.moveYaw(random(1, 5)); } private enum state { BADAREA, GOODAREA, SMELT, WAIT, BANKAREA, BANK }; public state getState() { if (inventory.isEmpty()) return state.BANK; if (inventory.onlyContains(2351)) return state.BANK; if (inventory.onlyContains(440)) return state.SMELT; return state.BANK; } @Override public int onLoop() throws InterruptedException { switch (getState()) { case SMELT: localWalker.walk(GOODAREA); if (inventory.onlyContains(440)) { objects.closest(24009).interact("Smelt"); sleep(random(1000, 2000)); mouse.move(random(130, 170), random(400, 440)); mouse.click(random(130, 170), random(400, 440), true); sleep(random(1000, 2000)); mouse.move(random(130, 170), random(471, 480)); mouse.click(random(130, 170), random(471, 480), false); sleep(random(1000, 2000)); keyboard.typeString("99", true); mouse.moveOutsideScreen(); sleep(random(85000, 88000)); } break; case BANK: localWalker.walk(BANKAREA); if (inventory.isEmpty()) { if (equipment.isWearingItem(EquipmentSlot.RING)) { objects.closest(16642).interact("Bank"); sleep(random(1500, 2000)); bank.withdrawAll(440); sleep(random(1500, 2000)); bank.close(); sleep(random(1500, 2000)); } else { // ADDED THIS @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@22 objects.closest(16642).interact("Bank"); sleep(random(1500, 2000)); bank.withdraw(2568, 1); bank.withdrawAll(440); sleep(random(1500, 2000)); bank.close(); sleep(random(1500, 2000)); equipment.equip(EquipmentSlot.RING, 2568); sleep(random(1500, 2000)); } } else { if (equipment.isWearingItem(EquipmentSlot.RING)) { objects.closest(16642).interact("Bank"); sleep(random(1500, 2000)); bank.depositAll(); sleep(random(1500, 2000)); bank.withdrawAll(440); sleep(random(1500, 2000)); bank.close(); sleep(random(1500, 2000)); } else { // ADDED THIS @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@22 objects.closest(16642).interact("Bank"); sleep(random(1500, 2000)); bank.depositAll(); sleep(random(1500, 2000)); bank.withdraw(2568, 1); bank.withdrawAll(440); sleep(random(1500, 2000)); bank.close(); sleep(random(1500, 2000)); equipment.equip(EquipmentSlot.RING, 2568); sleep(random(1500, 2000)); } } break; case WAIT: sleep(random(200, 300)); break; default: break; } return random(200, 300); } // code used on exit public void onExit() { log("Thank you for using eIron"); } // paint public void onPaint(Graphics2D g) { } } Added code is in green. You forgot to make it only withdraw a ring if it doesn't have one. Your code was saying: if you're wearing ring, bank for ore. Then, bank for ring (without even checking if has ring or not). I made it so it will check if it has ring, then withdraw ore, if not, withdraw ring.Sorry if I didn't explain myself well enough, if you need any more help just ask. EDIT: Make sure to format your code! It was confusing at first, but just hit CTRL + SHIFT + F to automatically format code in Eclipse IDE.
  13. It's alright bro, if you need any more help just pm me I'll be glad to help.
  14. Read the getState method, look at when State.ATTACKING is actually set: When the player is moving. So whenever the player is moving, it will attack, if its not moving, it will be idle. if(myPlayer().isUnderAttack()) { return State.IN_COMBAT; } else { return State.ATTACKING; } That is just an example, you can find a suitable way of setting the state to attack EDIT: "Attack" << Correct "Attack-Cow" << Incorrect
  15. Czar

    CzarRangingGuild

    Final verification, once a moderator verifies version 3.5 it will be ready. So far it says version 3.2 is still there After all this is done, everything will be fine.
  16. Yep We just need to wait until the mods verify and it's up
  17. Agility is the worst skill to bot, very high ban rates
  18. Lmao I just noticed. Thanks brah.
  19. 'the intelligent choice' by Czar Buy (only $4.99) Want to buy the bot, but only have rs gp? Buy an OSBot voucher here old pictures
  20. Czar

    CzarRangingGuild

    Pushed update 3.3. Dialogue system perfected. EDIT: Got a chance to actually test the script, thanks to mdanhorn for lending me an account. I fixed the camera, the click position and dialogues. Tested the script endlessly until I fixed everything and now it's flawless. 3.5 pushed to the SDN. Should be available soon.
×
×
  • Create New...