Jump to content

lakikimeni

Members
  • Posts

    5
  • Joined

  • Last visited

  • Feedback

    0%

Profile Information

  • Gender
    Male

lakikimeni's Achievements

Newbie

Newbie (1/10)

0

Reputation

  1. My bad. Cheers Explv! Working code: if(clayRock1 != null){ if(!myPlayer().isAnimating()){ clayRock1.interact("Mine"); sleep(random(2000, 2200)); }else if(missed == true){ clayRock1.interact("Mine"); missed = false; sleep(random(2000, 2200)); } }else if(clayRock1 == null){ log("empty"); if(myPlayer().isAnimating()){ missed = true; } }
  2. Can you please give me an example of Method 1? I've tried this but i cant get it to work. Method 2 will not work because the mine option is always available. Cheers
  3. Hello So im writing a mining script and I need a way to work out if someone else has beaten me to the ore that I have also been mining. My script can recognise when new ore appears (and my character is not mining), but i would like my script to detect when my player has not gotten the ore, so that i can mine another rock (ie, I dont want to wait for my character animation to stop before triggering the next event in my script). What i currently have - "if player is idle and rock is minable -> mine". Entity clayRock1 = objects.closest(ID_CLAY1); if(clayRock1 != null && !myPlayer().isAnimating()){ clayRock1.interact("Mine"); sleep(random(2000, 2200)); } What i need - "if player was unsuccessful in attaining ore -> [do this]". ie "if rock has turned empty and player is still mining ore (that no longer exists - hence is a waste of time) -> [do this]". I've tried a few methods, but nothing works. Any help is much appreciated, Cheers!
  4. Vikiuks, nope didnt work. Joseph, nope didnt work either Ill try reinstall client, and dl a script from the site and try those. Will get back to you in coming weeks. Cheers!
  5. Hello, I have been writing my own scripts recently. I have two functional scripts, however when i put them both into the scripts folder under users (on windows- and yes im putting it in the correct directory) only the most recent script will show in my client. I would like both to show. Im using eclipse to create the scripts (FYI). halp plss Cheers
×
×
  • Create New...