Blender
2008-10-14 19:02:15
Well, this is my absolutely FIRST SRL script. It works pretty good, but I added my own custom include file.
Sorry, but I don't know how to make a proggy. If you can, please help me!
ANY COMMENTS I WILL APPRECIATE!
Also, to run the script you have to use my custom include file. First, make a folder called "cust" alongside "core", "misc", and "skill". Put "AutoTalk.scar" INTO the folder and you have the include file done.
PLEASE LEAVE ANY SUGGESTIONS!
:fiery: :fiery: :fiery: :fiery: :fiery: :fiery: :fiery: :fiery: :fiery: :fiery: :fiery:
:fiery: AutoTalk.scar
:fiery: Powerminer Version 1.00
:fiery: :fiery: :fiery: :fiery: :fiery: :fiery: :fiery: :fiery: :fiery: :fiery: :fiery:
AutoTalk.scar
Sorry, but I don't know how to make a proggy. If you can, please help me!
ANY COMMENTS I WILL APPRECIATE!
Also, to run the script you have to use my custom include file. First, make a folder called "cust" alongside "core", "misc", and "skill". Put "AutoTalk.scar" INTO the folder and you have the include file done.
PLEASE LEAVE ANY SUGGESTIONS!
:fiery: :fiery: :fiery: :fiery: :fiery: :fiery: :fiery: :fiery: :fiery: :fiery: :fiery:
:fiery: AutoTalk.scar
:fiery: Powerminer Version 1.00
:fiery: :fiery: :fiery: :fiery: :fiery: :fiery: :fiery: :fiery: :fiery: :fiery: :fiery:
program GrapeAndBank;
{.Include SRL\SRL\misc\SMART.SCAR}
{.Include SRL\SRL.scar}
{.Include SRL\SRL\skill\Mining.scar}
{.Include SRL\SRL\cust\AutoTalk.scar}
var GasX, GasY, IronX, IronY, TheRock: Integer;
const
RockType = 'Iron';
Level = 99;
procedure DeclarePlayers;
begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;
Players[0].Name := '';
Players[0].Pass := '';
Players[0].Nick := '';
Players[0].Active := True;
end;
procedure AntiRandom;
begin
FindNormalRandoms;
SolveBox;
NoGameTabLocs;
HandlePlayerChat;
SolveNonTalkingRandoms;
FindInventoryRandoms;
FindTalk;
DwarfItem;
if FindFight then
begin
AntiRandom;
RunAway('n', True, 2, 6745);
end;
FindPick;
end;
procedure MineIron;
begin
AntiRandom;
FindObjRock(IronX, IronY, TheRock);
Mouse(IronX, IronY, 3, 3, True);
Sleep(6000 + Random(1000));
AntiRandom;
end;
var
a: Integer;
Procedure DropOres;
Begin
For a:= 1 to 28 do
Begin
MMouseItem(a);
If (LowerCase(GetUpText)= LowerCase('Use ' + RockType + ' ore / 2 more options')) Then
begin
DropItem(a);
end;
End;
End;
begin
SMARTSetUp('world57', True, True, False);
SetTargetDC(SMARTGetDC);
ClearDebug;
DeclarePlayers;
ActivateClient;
SetupSRL;
SetupMining;
LoadRockRecords;
case LowerCase(RockType) of
'iron': TheRock := Varrock_Iron;
'tin': TheRock := Varrock_Tin;
'copper': TheRock := Varrock_Copper;
'clay': TheRock := Varrock_Clay;
end;
LoginPlayer;
sleep(10000);
FindPickHeadColor;
repeat
LoginPlayer;
AntiRandom;
HandlePlayerChat;
if FindGas(GasX, GasY) then
begin
AntiRandom;
RunAway('e', True, 2, 3000);
end;
if InvFull then
begin
DropOres;
end;
AntiRandom;
MineIron;
AntiRandom;
HandlePlayerChat;
AntiRandom;
MineIron;
SRLRandomsReport;
HandlePlayerChat;
until(false);
end.AutoTalk.scar
procedure HandlePlayerChat;
begin
if InChat('hi!') then
begin
case Random(7) of
0: TypeSend('wattup');
1: TypeSend('hey');
2: TypeSend('wats up?');
3: TypeSend('whats up?');
4: TypeSend('yo');
5: TypeSend('wats up');
6: TypeSend('whats up');
end;
Sleep(2000 + Random(1000));
end;
if InChat('hel') then
begin
case Random(7) of
0: TypeSend('hi');
1: TypeSend('hey');
2: TypeSend('wats up?');
3: TypeSend('whats up?');
4: TypeSend('wattup');
5: TypeSend('wats up');
6: TypeSend('whats up');
end;
Sleep(2000 + Random(1000));
end;
if InChat('aut') then
begin
case Random(7) of
0: TypeSend('no');
1: TypeSend('nope');
2: TypeSend('does it look like i am?');
3: TypeSend('yep');
4: TypeSend('i obviously am');
5: TypeSend('ya');
6: TypeSend('yep. I sure am!');
end;
Sleep(2000 + Random(1000));
end;
if InChat('macr') then
begin
case Random(7) of
0: TypeSend('no');
1: TypeSend('nope');
2: TypeSend('does it look like i am?');
3: TypeSend('yep');
4: TypeSend('i obviously am');
5: TypeSend('ya');
6: TypeSend('yep. I sure am!');
end;
Sleep(2000 + Random(1000));
end;
if InChat('noo') then
begin
case Random(7) of
0: TypeSend('your the nub here');
1: TypeSend('noob');
2: TypeSend('nub');
3: TypeSend('my main is lvl 69');
4: TypeSend('of course i am');
5: TypeSend('n00b');
6: TypeSend('yes i am the noob');
end;
Sleep(2000 + Random(1000));
end;
if InChat('lol') then
begin
case Random(7) of
0: TypeSend('...');
1: TypeSend('rargh');
2: TypeSend('hehehheee!');
3: TypeSend('...');
4: TypeSend('k');
5: TypeSend('?');
6: TypeSend('wtf?');
end;
Sleep(2000 + Random(1000));
end;
if InChat('say') then
begin
case Random(7) of
0: TypeSend('waht');
1: TypeSend('what?');
2: TypeSend('what');
3: TypeSend('???');
4: TypeSend('nub');
5: TypeSend('im too busy atoing...');
6: TypeSend('hehhheeee');
end;
Sleep(2000 + Random(1000));
end;
end;