Results 1 to 3 of 3

Thread: random command selecting?

  1. #1
    Join Date
    Dec 2006
    Posts
    354
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default random command selecting?

    Code:
    procedure RandomChop;
    var
      AA,BB :Integer;
     begin
     ChooseOption(AA, BB, 'Chop')
    end;

    i want to be able to use ChooseOption, and Mouse(AA,BB,2,2,true);
    what's the most simple way to do this. I want a random result every time. Either ChooseOption or Mouse. 50 50 chance. Help is appreciated
    Thick As Blood

  2. #2
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    SCAR Code:
    Procedure Chop
    Begin
     If FindColorSpiral(x,y,TREECOLOR,MSX1,MSY1,MSX2,MSY2) Then
       MMouse(X,y,4,4);
     Case Random(1) Of
       0:Mouse(x,y,0,0,True);
       1:Begin
           Mouse(x,y,0,0,False);
           Wait(100+Random(50));
           ChooseOption(x,y,'Chop');
         End;
     End;
    End;

  3. #3
    Join Date
    Dec 2006
    Posts
    354
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    thanks a lot dude, works great. look for it in my firemaker, soon to come
    Thick As Blood

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. help with command
    By lemonfuzz in forum OSR Help
    Replies: 2
    Last Post: 05-24-2008, 12:02 PM
  2. Is there a command for...
    By Jacobdm0 in forum OSR Help
    Replies: 3
    Last Post: 11-17-2007, 04:33 PM
  3. The 'With' Command...
    By Pancakes in forum OSR Help
    Replies: 1
    Last Post: 08-20-2007, 12:43 AM
  4. Selecting Item in Backpack
    By joedeagan in forum OSR Help
    Replies: 2
    Last Post: 06-03-2007, 02:24 AM

Posting Permissions

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