Jackrawl
2007-09-09 09:49:18
Ok I know that theres a section for first scripts, I don't want links to it. I wanted to avoid this, but honestly I am stuck.
My current error is
Line 64: [Error] (12295:41): Type mismatch in script C:\Program Files\SCAR 3.11\Scripts\JackLKrawl's First Script.scar
Also, I know this does not fulfill the scripting standards, I want it to work before I organize it.
program World16AirCrafter; //By JackLKrawl
{.include srl/srl.scar}
const
Username = 'UserName'; //Fill these out, it's so I can steal
Password = 'Password'; //your account.
Chat = 8388736;//Change this to the trade color to be safe
E = 0; //Change this to the essence color
Z = 0; //This is how many times you want the script to craft airs.
var
x,y: integer;
I: integer;
Spammed: integer;
Essence: integer;
Tradedz: integer;
procedure Spaminate;
begin
Spammed:=Spammed+1;
Random(5);
case random(5) of
0: SendKeys('Open 2k!'+chr(13));
1: SendKeys('Open 2k'+chr(13));
2: SendKeys('Open 2k + Ess!'+chr(13));
3: SendKeys('Open 2k + Ess Back!'+chr(13));
4: SendKeys('Open 2000 + Essence Back!'+chr(13));
end;
end;
Procedure FindChat;
begin
if (GetColor(12,451)=Chat) Then
MoveMouseSmooth(12,451);
Wait(300+random(20));
ClickMouse(12,451, true);
if (not(GetColor(12,451)=Chat)) Then
repeat
Spaminate;
FindChat;
until(GetColor(12,451)=chat);
end;
Procedure EnterGold;
begin
MoveMouseSmooth(577,228);
ClickMouse(577,238,false);
wait(700+random(20));
MoveMouseSmooth(577,318);
ClickMouse(577,318,true);
wait(700+random(20));
Sendkeys('2000');
wait(334+random(986));
Tradedz:=Tradedz+1
end;
Procedure EnterEssence;
Begin
MoveMouseSmooth(619,226); //fix these...
ClickMouse(619,226,false);
Wait(239+random(59));
MoveMouseSmooth(619,318); //fix these...
ClickMouse(619,318,true);
wait(286+random(34));
Sendkeys('25'+chr(13));
Essence:=(Essence+1)*25;
end;
Procedure AcceptorDecline;
begin
If GetColor(331,92)=GetColor(324,290)=E then
MoveMouseSmooth(263,186);
ClickMouse(263,186,true);
Wait(200+random(200));
MoveMouseSmooth(222,311);
ClickMouse(222,311,true);
Wait(200+random(200));
end;
If(not)GetColor(331,92):=E or not(Getcolor(324,290):=E then
MoveMouseSmooth(x,y);
Wait(20+random(300);
ClickMouse(x,y,true);
end;
Procedure CraftZehRunes;
MoveMouseSmooth(x,y);
ClickMouse(x,y,true);
MoveMouseSmooth(x,y);
ClickMouse(x,y,true);
wait(3000+random(5000);
Procedure Proggy;
begin
Writeln('----JACKLKRAWLS---WORLD16---Air---Crafter----')
Writeln('You have spammed '+ inttostr(spammed)+' Innocent People');
Writeln('You have traded '+ inttostr(tradedz)+' Air Runners');
Writeln('You have made '+ inttostr(essence)+' Rune Essence into Airs!!')
end;
begin
repeat
SetupSRL;
ChatAndFindChat;
AntiRandoms;
EnterGold;
EnterEssence;
AcceptOrDecline;
CraftZehRunes;
until(I=Z);
end.My current error is
Line 64: [Error] (12295:41): Type mismatch in script C:\Program Files\SCAR 3.11\Scripts\JackLKrawl's First Script.scar
Also, I know this does not fulfill the scripting standards, I want it to work before I organize it.