@tniffoc
program AutoTalkerv1;
{.include SRL/SRL.scar}
//Credits to Duke Richard//
// And to Bebbe//
// You May edit this script any way you want//
// I Present you here Faget Auto Talker V2//
// My Goal now is to Make a ChopperDropper Named//
// FagetAutoChopperDropperHopper//
Const
Message1='Hey'; // Edit this if you wanna Say somthing else
Message2='Hello'; // Edit this if you wanna Say something else
procedure Hello;
begin
Wait(1000+random(500));
if(IsFKeyDown(4)) then
TypeSend(Message1);
Wait(1000+random(500));
if(IsFKeyDown(5)) then
TypeSend(Message2);
end;
begin
SetupSRL;
ActivateClient;
repeat
hello;
until(false);
end.
this will type, 'Hey' if you press F4, and 'Hello' if you press F5. What does this is the
if(IsFKeyDown(4)) then
TypeSend(Message1);
that will…
1. Check to see if F4 has/is being pressed.
2. If it is, it will type the message in the window it activated (ActivateClient).
3. Stop sending the message once F4 isn't being pressed. But if you press it again, it will type it again :)
+rep please? >.> ;)
EDIT: Hax0r, you don't have to give cred (you can if you want) but just play around with the
if(IsFKeyDown(4));
procedure :) it can also be used in a script to end it,
(if you understand this, then thats good :))
[this is just showing the MainLoop]
begin
SetUpSRL;
ActivateClient;
repeat
begin
FindTheTree;
CutTheTree;
DropTheLogs
end;
until(IsFKeyDown(12));
end.
so if that were the MainLoop for a PowerChopper script, it would…
SetUpSRL: Load everything in SRL that you need it to
ActivateClient: makes it so you don't have to click to RS to start autoing, it does it for you
then it will REPEAT the following procedures.
FindTheTree: it will try to find the tree
CutTheTree: if the tree was found, it will cut it
DropTheLogs: if the tree was found, it will cut it, and then it will drop the logs
and it will continue to do everything in between
repeat
and
until(IsFKeyDown(12));
UNLESS you press F12
make any sense?
(remember to press the little white check mark inside the little blue box and +rep this post :D)