TRiLeZ
2009-03-22 01:49:32
If you want to use animations in your script and not want to download anytihng then this is the tutorial for you.
First off, you will want to get your animation.
Use this script that I made to get it.
There are many ways to include your animation in your script.
Here is an example. Scar waits while do your animation.
If you want to do multiple actions as you do your animation you could use:
Also in those last 2 codes, you could make them (GetAnimation > 0) instead of (GetAnimation = 1337).
If you didnt know that too then your a bigger noob. LOL :D
Just to let you know, the animation -1 is nothing and if the script says your not doing an animation and your sure you were, it could mean your animation went by too fast and the script couldnt catch it. If that happens, try inserting the script in your script after it clicks something in Runescape.
Thanks for reading my tutorial on Using Animations.
First off, you will want to get your animation.
Use this script that I made to get it.
program GetAnimation;//By TRiLeZ
{.include SRL\SRL\Misc\Smart.scar}
{.include SRL\SRL.scar}
{.include SRL\SRL\Reflection\Reflection.scar}
var
Ref_Ani: Integer;
begin
SmartSetupEx(154, False, True, False);
SetTargetDc(SmartGetDC);
SetupSRL;
Ref_Ani := GetAnimation;
if (Ref_Ani > -1) then
begin
WriteLn('_______________________');
WriteLn('Animation ' + IntToStr(Ref_Ani));
WriteLn('=======================');
end;
if (Ref_Ani = -1) then
begin
WriteLn('_______________________');
WriteLn('Not doing an animation');
WriteLn('=======================');
end;
end.
Now you are wondering how to use your animation in a script.There are many ways to include your animation in your script.
Here is an example. Scar waits while do your animation.
While(GetAnimation = 1337) do wait(100);
If you want Scar to wait while doing any animation, you can use this code.
While(GetAnimation > 0) do wait(100);
You dont have to wait 100 ms, so change it to whatever ms you want to wait.If you want to do multiple actions as you do your animation you could use:
If (GetAnimation = 1337) then
begin
//Whatever you want your script to do
end;
Or
While(GetAnimation = 1337) then
begin
//Whatever you want your script to do
end;
If you really needed to know how to do multiple actions then I say your a noob. LOL :DAlso in those last 2 codes, you could make them (GetAnimation > 0) instead of (GetAnimation = 1337).
If you didnt know that too then your a bigger noob. LOL :D
Just to let you know, the animation -1 is nothing and if the script says your not doing an animation and your sure you were, it could mean your animation went by too fast and the script couldnt catch it. If that happens, try inserting the script in your script after it clicks something in Runescape.
Thanks for reading my tutorial on Using Animations.