Jump to content

Apaec

Scripter III
  • Posts

    11170
  • Joined

  • Last visited

  • Days Won

    91
  • Feedback

    100%

Everything posted by Apaec

  1. welcome! ))
  2. it nah jkjk c:
  3. ur name
  4. Dw lads he's only the creator of the game
  5. Thanks for the kind words! Feel free to leave a store review if you have a spair second. Would really appreciate that )) http://osbot.org/forum/store/product/373-apa-rock-crabs/ Apaec
  6. You now have a 24h trial. Enjoy! Apaec
  7. the problemo is most likely with the style of code, where it fails to do one step and the rest of it is redundant. Try using a statemachine system which allows you to work on 1 step at a time and if it fails it allows you to retry. This may well fix your problem. More details on the state based system can be found here: http://osbot.org/forum/topic/58775-a-beginners-guide-to-writing-osbot-scripts-where-to-get-started-by-apaec/ PS Don't use while loops without a timeout (if at all!) these can cause it to get stuck. Apaec
  8. I will push it when I get the chance. It will have a fix for being upstairs in the bank, a tweak to the teleport failsafe as someone reported it got stuck near the cave, and that's about it. Maybe a couple of other bug fixes If I see them. apaec
  9. You now have a 24h trial. Enjoy! Apaec
  10. My coc is pretty big atm, - 1200~ trophy average ( i farm or w/e its called) - Maxed TH8 - Interested - Reasonably active altho i'd opt out of wars
  11. If there are no interface ids then you'd probably need to use colourpicker to read a pixel value on the screen. For example the world selectionez screen has a black background. If you read a group of pixels around the bottom left corner for example, then if they are all black (0,0,0) exactly, then you can determine that you're on the world selection screen. Apa
  12. loll damn! must have misclicked the ladder. Will add a failsafe for this which I will push in the next update Apaec
  13. Well enum allows you to store extra things such as whether or not the world is pvp etc, idk, an enum would probably be more useful generally
  14. Sure, have enabled a 24h trial on your account. Enjoyy! Apa
  15. I think you can go nmz, all you need is blowpipe. You can afk at nmz so that might save you a bit of time. Other than that i've jsut got my levels playing normally through zulrah etc
  16. Welllll Firstly, we already have 3 rock crabs scripts (lol), but I guess we'll all welcome new competition The way I check in my script is much the same to how a human would check: Walk up to crab Check if there is a rock crab in the nearest 3x3 square around the player which is fresh Attack said crab Check if under attack & rock crab still exists If no rock crab (NPC) spawns, then refresh ofcourse there would be timers going on throughout. The only problem with this method is sometimes it refreshes when it doesnt need to if the world lags by over 5 seconds or so, but this rarely happens, so it's not too much of a problemo in my script. Apaec
  17. u drive me to an early gravy
  18. pls go home
  19. lol hashmap
  20. Yes. Zulrah. mage is effective against 3 of the 4 phases (melee and ranged and jad), and it still hits on his mage phase. So yes, you can use a swamp trident and zulrah will be easy (takes a while to learn tho!) Apaec
  21. wtf is nba
  22. anne i think you know you'd like to send it to me the most pls but srs note im english and I did a course in tefl as well so ye, feel free to ask any questinos c: Apa
  23. The problemo is here: switch(getState()){ case KILL: NPC skeleton = npcs.closest("Skeleton"); if (skeleton.isVisible() && getTabs().getOpen().equals(magic)){ getMagic().castSpellOnEntity(Spells.NormalSpells.CRUMBLE_UNDEAD, skeleton); } else sleep(random(100,250)); getTabs().open(Tab.MAGIC); break; more importantly: if (skeleton.isVisible() && getTabs().getOpen().equals(magic)){ Firstly, nullcheck for the skeleton. Secondly, it would have to be getTabs().getOpen().equals(Tab.MAGIC); (not sure why you had just magic there, but i would expect it to give you an error for that). The reason it opens the magic tab then does nothing is because that if statement returns false every time as you just wrote magic in there. that means it always goes to the else part which says open the magic tab (which already checks if it is open or not before performing). So ye, replace all that with this: case KILL: NPC skeleton = npcs.closest("Skeleton"); if (skeleton != null && skeleton.exists() && skeleton.isVisible() && getTabs().getOpen().equals(Tab.MAGIC)){ getMagic().castSpellOnEntity(Spells.NormalSpells.CRUMBLE_UNDEAD, skeleton); sleep(3000L); } else { sleep(random(100,250)); getTabs().open(Tab.MAGIC); } break; Let me know if anything is unclear Apaec
  24. Added. Enjoy!
×
×
  • Create New...