C++ Random Prevention

Discussion in 'Programming General' started by False Skorpion, Feb 18, 2008.

C++ Random Prevention
  1. Unread #1 - Feb 18, 2008 at 5:50 PM
  2. False Skorpion
    Referrals:
    0

    False Skorpion Guest

    C++ Random Prevention

    I recently made a power miner in c++ and was wondering about how to include random prevention. I can think of two different ways to run a program sucessfully for a long time.

    1) Run your script in areas without randoms.

    2) Have your script complete randoms or run from them.

    Now obviously the first one would be the easiest. However, the only place that I know of without randoms is the duel arena (assuming it wasn't patched). Does anyone know any other places without randoms?

    You make the majority of money by extracting raw materials, like fishing or mining. So it looks like I will have to go with option two. I'm really very new to programming and don't even know where to start when it comes to random prevention. What are the best ways to stop randoms? Also, how do you deal with a random such as evil bob or the drill sergeant who teleports you to the random?

    Thanks for all of the help and if you can please try to explain in very basic language as I said earlier I am very new to c++.
     
  3. Unread #2 - Feb 18, 2008 at 6:41 PM
  4. Nullware
    Joined:
    Jan 30, 2007
    Posts:
    1,761
    Referrals:
    4
    Sythe Gold:
    0

    Nullware Guru

    C++ Random Prevention

    Only barrows and the pest control boats are still random-free.

    The best way to begin is start with anti-randoms that you just have to talk to by having it recognize certain distinct colors on those randoms. My own way has been to have a function called FindRandoms that just checks/solves randoms whenever called. An example format is like:

    Code:
    Function FindRandoms
    if FindColor(GenieColor) = True then
    TalkTo(Genie)
    elseif FindColor(RickTurpentineColor) = True then
    TalkTo(Rick)
    End if
    End function
    
    This isn't actual code of course, merely an example of how I've done it myself. Of course above the function "TalkTo" would merely be the code that tells it to click on the random that it found and talk to it. i just make sure to call the whole function whenever it's chopping or dropping something and sometimes also if it's walking for a bit. If you'd ever want to talk about anything bot-related just add me on MSN and I'd be more than happy to.
     
  5. Unread #3 - Feb 18, 2008 at 7:33 PM
  6. [OneWhoSighs]
    Referrals:
    0

    [OneWhoSighs] Guest

    C++ Random Prevention

    Isn't the duel arena balcony random free also?
     
< Need Help Please!!!! | Can someone help me with an auto clicker??? >

Users viewing this thread
1 guest


 
 
Adblock breaks this site