putonajonny
2011-11-09 17:20:02
This is another alcher, please help me as this is my first script and it doesn't work very well, I would love it if you could help:
version 1.0
version 1.0
program SimpleAlch;
{.include srl/srl.scar}
{$DEFINE SMART}
{$i SRL/SRL.scar}
var xval, yval, xinval, yinval: integer;
const
Message1='Lets Cast';
Message2='Casted...';
Procedure DeclarePlayers;
begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;
Players[0].Name :=''; // Copy and paste to add more players
Players[0].Pass :='';
Players[0].Nick :=''; //Used for random events
Players[0].Active:=True;
end;
procedure Cast;
begin
while GetCurrentTab = tab_Inv do
begin
Gametab(tab_Magic);
Wait(100+ Random(100));
end;
while GetCurrentTab = tab_Magic do
begin
Wait(200 + Random(50));
xval := Random(10)+687; //Can somebody tell me how to get these values as at the moment I just guess.
yval := Random(10)+341;
Mouse(xval, yval, 1, 1, True);
xinval := Random(20)+569;
yinval := Random(20)+219;
Mouse(xinval, yinval, 1, 1, True);
end;
FindNormalRandoms
wait(1000)
// Writeln(Message2);
end;
begin
Writeln(Message1);
Smart_Server := 28; //Set to world you'd like to use
Smart_Members := False; //Can be set t true
Smart_Signed := True;
Smart_SuperDetail := False;
SetUpSRL;
ActivateClient;
LoginPlayer;
Writeln(Message1);
Cast;
end.