Jump to content

d0zza

Scripter II
  • Posts

    780
  • Joined

  • Last visited

  • Days Won

    1
  • Feedback

    100%

Everything posted by d0zza

  1. If you don't know what api is (as you mentioned above) then you're not gonna get very far with scripting. I'm not trying to be a dick I'm just telling the truth. If you did understand what the code is doing then it would be clear that you would need to modify this part of your program to change which npc to steal from case PICKPOCKET: log("Pickpocket"); NPC farmer = getNpcs().closest("Master Farmer"); if (farmer != null) { getNpcs().closest("Master Farmer").interact("Pickpocket"); } else { if (!myPlayer().isAnimating()) ; }
  2. Well read through your code again then. Switch cases need a break at the end of them otherwise they'll just go into the next case and perform those actions too
  3. It sounds like you've just found this code online somewhere and don't actually understand most of what it's doing. If you want to actually learn how to script look through the tutorials on this forum, this one is a good place to start: Not many people are willing to spoonfeed others
  4. Declare a public integer for your kill counter in KillChickens.java called killCount (Or whatever you want to name it). You can then access it in your main with KillChickens.killCount
  5. You can try checking if the mob you're currently fighting is doing the death animation
  6. I'm not sure how to do it in eclipse but in IntelliJ you can change where the jar file builds in the artefacts section in your script settings. So just change this to your Osbot scripts folder, you might get a warinh saying it can't delete the file but it still works
  7. d0zza

    Clicking

    Nope, if the steal option is the option seen when you hover the object it'll left click it. Honestly the best way to learn these kinds of things is to test them out yourself and see what it does first hand.
  8. d0zza

    Clicking

    A cake stand is an object. You can directly interact with objects so you don't have to do anything with mouse destinations or click mouse event. Read through this thread:
  9. I personally just add a 1 to the script name in both the IDE and the jar file it builds and drag it into the directory. However there might be a better way, I'm not sure
×
×
  • Create New...