SRL Archive - First Scripts

PricePicker


lordsaturn

2007-03-31 13:46:12

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




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?

nielsie95

2007-03-31 14:05:03

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

lordsaturn

2007-03-31 14:29:28

From: nielsie95
You could try something like
e := (Random(10) / 11,2) * 10



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

Nava2

2009-05-21 06:42:38

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

:)

Griff

2009-05-21 06:49:13

Im better than an srl master!!! :)

Sir R. M8gic1an

2009-05-21 14:19:57

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

~RM

The Claw

2009-05-21 16:59:27

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