Results 1 to 7 of 7

Thread: PricePicker

  1. #1
    Join Date
    Mar 2007
    Posts
    1,700
    Mentioned
    0 Post(s)
    Quoted
    8 Post(s)

    Default PricePicker

    Just a simple script i use to pick the price that i am selling per mil rsgp to an rl friend.


    SCAR Code:
    program PricePicker;
    var e: extended;

       procedure PickPrice;
     begin
     e:= random(10)
       if (e<10) then writeln('todays price=$' +floattostr(e))
          if (e=0) then
          begin
          cleardebug
          clickmouse(518,195,true)
          end;
          end;
    begin
      cleardebug
      PickPrice
    end.








    Could someone explain to me how to make the price a decimal or extended please?

  2. #2
    Join Date
    Sep 2006
    Posts
    6,089
    Mentioned
    77 Post(s)
    Quoted
    43 Post(s)

    Default

    You could try something like
    e := (Random(10) / 11,2) * 10
    Hup Holland Hup!

  3. #3
    Join Date
    Mar 2007
    Posts
    1,700
    Mentioned
    0 Post(s)
    Quoted
    8 Post(s)

    Default

    Quote Originally Posted by nielsie95 View Post
    You could try something like
    e := (Random(10) / 11,2) * 10

    ok....but i dont really understand this...maybe you could explain?

  4. #4
    Join Date
    Jan 2008
    Location
    Ontario, Canada
    Posts
    7,805
    Mentioned
    5 Post(s)
    Quoted
    3 Post(s)

    Default

    I'm sorry I'm bumping this just to show everyone starts somewhere.

    Writing an SRL Member Application | [Updated] Pascal Scripting Statements
    My GitHub

    Progress Report:
    13:46 <@BenLand100> <SourceCode> @BenLand100: what you have just said shows you 
                        have serious physchological problems
    13:46 <@BenLand100> HE GETS IT!
    13:46 <@BenLand100> HE FINALLY GETS IT!!!!1

  5. #5
    Join Date
    Mar 2007
    Location
    Alberta, Canada
    Posts
    1,780
    Mentioned
    0 Post(s)
    Quoted
    11 Post(s)

  6. #6
    Join Date
    Jul 2007
    Location
    Right now? Chair.
    Posts
    8,488
    Mentioned
    3 Post(s)
    Quoted
    12 Post(s)

    Default

    pssshhht! let's hide Saturn`'s past! he's always been epic, this was his evil brother.

    ~RM

    I & I know Zion. It is in the spirit, body and mind of every one of us
    RMouse(obj: TMSIObject): boolean;

  7. #7
    Join Date
    Apr 2007
    Location
    Australia
    Posts
    4,163
    Mentioned
    9 Post(s)
    Quoted
    19 Post(s)

    Default

    Why would you even randomize the price of mills lol? Bit indecisive?

Thread Information

Users Browsing this Thread

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

Posting Permissions

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