Jump to content

FrostBug

Scripter III
  • Posts

    3967
  • Joined

  • Last visited

  • Days Won

    5
  • Feedback

    100%

Everything posted by FrostBug

  1. Log out = misconfiguration. Reason for logging out is written in the client console. That's odd, what value do you have in the Special attack energy requirement field? Fastest banking = ClanWars, Shades of Mort'ton quest is required for the return trip.
  2. Check out the Frequently Asked Questions section of the OP
  3. Starting both now And please ceize the spamming @ @jimmers
  4. That is entirely 100% redundant lol But if it floats your boat
  5. The reason it eats all of your food is because getHealth() isn't updated outside of combat (so your 'health' will stay the same if you eat outside of combat). use something like this if you still want percentage: public int getHealthPercent() { int max = getSkills().getStatic(Skill.HITPOINTS); int dyn = getSkills().getDynamic(Skill.HITPOINTS); return (100 / max) * dyn; } Also, the reason you're getting an error is because you aren't nullchecking the door. if (door.exists()) { log("Opening door."); door.interact("Open"); } else { log("Cannot find door."); -> if (door != null && door.exists()) { log("Opening door."); door.interact("Open"); } else { log("Cannot find door.");
  6. Nothing, but that doesn't make OP a noob for using something else lol
  7. ? What's wrong with interaction by slot ID?
  8. No and no.. When interacting with a door, it's perfectly valid to do it by position, if there are other doors of same name and ID nearby. He won't get the closed doors since those have different ID. ___ The way you're doing the interaction right now is essentially fine, but it would be slightly cleaner and more efficient to use this overload
  9. FrostBug

    WTF?

    You got banned by DBuffed for posting porn :E
  10. to fix your eating problem, swap these 2 around: if (warrior != null) return State.STEAL; if(myPlayer().getHealth() <= 30) return State.EAT; -> if(myPlayer().getHealth() <= 30) return State.EAT; if (warrior != null) return State.STEAL; Your door problem is probably caused by a typo in the door_tile. public final static Area door_tile = new Area(3287, 3172, 3287, 3271); Are you sure it shouldn't be: public final static Area door_tile = new Area(3287, 3172, 3287, 3171); ?
  11. Probably gonna need to see some more of your code. Eating is probably a question of whether you've already returned a different state before executing the health check. Also be aware that getHealth returns a percentage value, not the actual hitpoints.
  12. int huntX = 2543; int huntY = 2887; myX = myPlayer().getX(); myY = myPlayer().getX(); <------- Should be Y distX = huntX - myX; distY = huntY - myY; log("Distances x & y from hunting spot:"); if (distX < 0) { distX = distX*-1; } if (distY < 0) { distY = distX*-1; } log(distX); log(distY); Note that you're getting your X coordinate twice instead of X,Y. It could also be written a little more compact. Position hunt = new Position(2543, 2887, 0); int dist = hunt.distance(myPosition()); or if you really do need both the X and Y distances: Position hunt = new Position(2543, 2887, 0); int distX = Math.abs(hunt.getX() - myPosition().getX()); int distY = Math.abs(hunt.getY() - myPosition().getY());
  13. Well, I only checked some of them against my code. But both of the prayer ones (Regular and Quickpray) are incorrect. You'll need to mask them.
  14. Several of the ones in the OP are incorrect. You should probably look a bit more into how varpbits work A table of them is still not a bad idea, though. Can help people make their own API, if they for some reason wish to do so :p
  15. Shouldn't be. Please check the standard troubleshooting such as setting camera zoom and hotkeys to default. Also please post some client console output if it happens again, the reason is typically written there. _______________ Version 1.4.6 - Added some checks when teleporting out using a duel ring
  16. Please read my previous post. I already added yours.
  17. I haven't added any trials in the past week since I've been away on vacation. Will add the most recent requests now, but other than that, you'll have to request it again now if yours wasn't added. Sorry about that
  18. What spell might you be using? And did you try setting a proper value for minimum casts? (eg. 100). Please provide client console output and/or screenshots where possible, otherwise I can't really do anything
  19. There should be a right click option "Reset to default", all the way left is not the default
×
×
  • Create New...