Results 1 to 7 of 7

Thread: Thomis' Simple Powerminer

  1. #1
    Join Date
    Jun 2007
    Posts
    8
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Thomis' Simple Powerminer

    This is one of my first scripts and you can tell me what i can add to this script to make it better.

    I'll try to improve it little by little, so don't tell me to add multiplayer and everything right away

  2. #2
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    5,553
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    good start but...(btw never use powerminers they are so botty if i playing legit you see so easy its a powerminer)

    in the clickit;
    you could use findcolorspiraltolerance because its searches from the middle to the corners so it clicks the closest rock

    and you could better do
    if invfull
    then
    loads:= loads + 1
    and then in the proggy
    add loads
    and remove the clicks did thats not accurate because you dont know how much they mined

    edit:
    ow sorry i didnt look good you got loads thingy but remove the clicks k maybe put time in it
    ~Hermen

  3. #3
    Join Date
    Jun 2007
    Posts
    8
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    ok i've done everything you said except for the findcolorspiraltolerance part.

    I didn't find anything about a function with spiral in it, if you meant something else, please tell me the exact function or procedure name.

    But still thanks

  4. #4
    Join Date
    Nov 2006
    Posts
    1,103
    Mentioned
    0 Post(s)
    Quoted
    6 Post(s)

    Default

    function FindColorSpiralTolerance(var x, y: Integer; color, xs, ys, xe, ye: Integer; Tolerance: Integer): Boolean;
    Works like the regular FindColorSpiral but with a tolerance parameter for finding any similar color. Tolerance is used to find a color in range of the color you are looking for. The greater color range you want, the higher the tolerance parameter should be.
    Infractions, reputation, reflection, the dark side of scripting, they are.

  5. #5
    Join Date
    Jun 2007
    Posts
    8
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    do i have to add an include for that cause i didnt find the function in SRL3.81 manual

    btw, i added the newer version but there's still a problem:
    Line 80: [Error] (15409:1): Identifier expected in script...

    It would be nice if you could check that out for me.

    It's something with the elses but i dont know what.

  6. #6
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    5,553
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    use srl 4.0 beta
    ~Hermen

  7. #7
    Join Date
    Jun 2007
    Posts
    8
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    ok thanks but do i have to specify the xs, ys, xe, ye?
    and what do you suggest i put in tolerance?

    Is this right?
    SCAR Code:
    if(FindColorSpiralTolerance(fx,fy,color,MSX1,MSY1,MSX2,MSY2,6))then

    I also still have the error in line 80:
    Line 80: [Error] (15409:1): Identifier expected in script...

    The thing with the else

    can someone help me there please?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How To Make A Simple PowerMiner
    By Blumblebee in forum OSR Intermediate Scripting Tutorials
    Replies: 18
    Last Post: 07-19-2009, 04:17 AM
  2. first simple powerminer -- comments?
    By zildjohn01 in forum First Scripts
    Replies: 7
    Last Post: 05-07-2008, 01:58 AM
  3. loads in a powerminer (simple)
    By RudeBoiAlex in forum OSR Help
    Replies: 6
    Last Post: 05-06-2007, 10:45 PM
  4. My Simple PowerMiner
    By Shockwave in forum First Scripts
    Replies: 1
    Last Post: 04-22-2007, 10:08 PM
  5. Help with my simple powerminer script
    By !bezo! in forum OSR Help
    Replies: 4
    Last Post: 01-28-2007, 09:08 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •