Jump to content

herojord

Members
  • Posts

    148
  • Joined

  • Last visited

  • Feedback

    100%

Everything posted by herojord

  1. Thanks for the feedback! The reason why its simple and noob looking is because im a web developer and I dont like messy designs , I'm more into flat designing. But I'll try making more runescape like paints
  2. Added second version. What about that font style? Thanks for the feedback, I changed the UI a bit, but im still thinking how to add a frame without losing the flat design idea.
  3. Im on my tablet but my script works like this(!ores && not at bank) Case: walking to bank (ores && not at furnace) Case : walking to furnace (!ores && at bank) Case : banking (ores && at furnace) Case : smelting So the switch keeps calling the path arrays.
  4. I tried using this method, but since I'm working with cases it keeps looping so it never reaches the second value of the array. because myPath gets a diff number everytime it enters the walking case. How can I solve this issue?
  5. I hope its fixed. Cropped the image a bit.
  6. The text is in the image, I wanted it to be nutral .
  7. Just asking for feedback http://imgur.com/v62y3Fw 2nd version: http://i.imgur.com/zFKy6fJ.png
  8. Thanks this is what I mean. But I will get into this when I'm more experienced in Java. This is more basic so I'll use this untill I'm able to optimize my code and make it more clever. Thankyou.
  9. Hi guys, Can someone explain or show me how I can use a switch to walk random paths. how can I add arrays to this. public void Walkpath() throws InterruptedException { switch (random(1, 5)) { case 1: //path1 break; case 2: //path2 break; case 3: break; } sleep(random(700, 1800)); }
  10. My if else order: if(myPlayer().isAnimating()) { // Reset timer } else if (waitTimer.getElapsed() > 3000) { // Smithing code here } sleep(1000); }
  11. Alright got it working. Thanks for all the help
  12. Yeah I kinda figured that out but thanks, makes things clear for me!
  13. I've got this atm: private Position[] pathto = { new Position(3276, 3171, 0),new Position(3280, 3181, 0) }; private Position[] pathback = { new Position(3280, 3181, 0), new Position(3276, 3171, 0) }; boolean gotOres() { return getInventory().getAmount("Coal") >= 2 && getInventory().getAmount("Iron ore") >= 1; } boolean gotFurnace() { return objects.closest("Furnace").isVisible(); } boolean gotBankbooth() { return objects.closest("Bank booth").isVisible(); } private enum State { SMITH, BANK, WALKTO, WALKBACK }; private State getState() { if (gotOres() == true && gotFurnace() == true){ return State.SMITH; } if(gotFurnace() == false && gotOres() == true ){ return State.WALKTO; } if(gotBankbooth() == false && gotOres() == false){ return State.WALKBACK; } return State.BANK; } This is not working because getstate needs a default so whats the best approach for this situation? I've added the boolean variables. (thanks for that)
  14. I know this is a kinda dumb question but how can I use an integer to create a boolean. I mean the variable creation. PHP is not that strict on var types.
  15. I think it's a logic problem. I make things to difficult for myself I guess. So if I'm right: This: private State getState() { if (inventory.getAmount("Coal") > 1 && inventory.getAmount("Iron ore") > 0 ){ return State.SMITH; } return State.BANK; } Should be: private State getState() { if ( got ores && not close to furnace){ Walk to furnace } if ( got ores && close to furnace){ Smelt } if ( got no ores && not close to bank ){ walk to bank } if ( got no ores && close to bank){ bank } The problem I have is that in this situation what should I compare with, should I use the iron ores or coal or both? btw Thanks for the fast respone!
  16. Hey guys, Recently I started scripting, I've got a decent level with PHP and web developing so the java basics are easy for me. My problem is : I'm making a smithing script for al kharid, I've got the backbone basicly but im kinda stuck with the conditions. Like when the player has 9 iron and 19 coal it needs to walk to the furnace (case smithing) then it needs to make steel bars until it can no longer make them, then it needs to bank. But my brain thinks way to complex so I'm not able to get it to work flawlessly. private State getState() { if (inventory.getAmount("Coal") > 1 && inventory.getAmount("Iron ore") > 0 ){ return State.SMITH; } return State.BANK; } ^ This is one method I used. Can somebody please make it clear how to condition this the right way
×
×
  • Create New...