I got this script written up to the point where it is supposed to move the mouse to the item the player wants to trade....But for some reason it doesn't get that far. Could someone explain to me why not? 
SCAR Code:
program MerchantMaster;
{.Include SRL/SRL.scar}
{.include srl\srl\extended\xtext.scar}
{.include srl/srl/misc/amount.scar}
const //fill these out, or it won't work!!!!!
howmany = 10; //how many of the item you want.
whatyouwannabuy='lobs'; //what IS the item you want?
eaprice=200; //Just wondering, how much would you want to buy each?
Var
Message1:String; //sets up the buying message
{------------------------------------------------------------------------------------------}
procedure BuyTrade; //This starts the procedure of a Buying Trade
begin
MoveMouse(470,292);
Wait(10000);
if Option2('lobster')then //Type in the object you want to buy in the ''
end;
{------------------------------------------------------------------------------------------}
procedure StartTrade; //This moves the mouse to start the trade
var cx, cy, Fx, Fy : integer;
begin
If (FindColor(Fx, Fy, 8388736, 21, 416, 29, 425))then //if it finds trade in the chat box...
begin
Wait(500);
Mouse(cx+10,cy+3,0,0,True); //it will move the mouse towards it.
Wait(500);
BuyTrade
end;
end;
procedure Buyingstatement; //This starts talking using your buying statement.
var Fx, Fy : integer;
begin
wait(1000); //Waits a few seconds before typing again.
Message1:= 'buying up to '+ IntToStr(howmany) + ' ' + whatyouwannabuy +'! for ' + IntToStr(eaprice) + 'ea!'; //this SHOULD make the typing message work....
typesend(Message1); //this will make it look like the line above is being typed by a human.
if (FindColor(Fx, Fy, 8388736, 21, 416, 29, 425)) then
begin
StartTrade;
end;
end;
{------------------------------------------------------------------------------------------}
var Fx, Fy : integer;
begin ///////////////////////////////////
repeat //////{ Rinse, Lather, Repeat. }//
buyingstatement; ///////////////////////////////////
until(FindColor(Fx, Fy, 8388736, 21, 416, 29, 425)); //until the trade color is found in the last chat line.
////////////////////////////////////
end.