I'll fix it. Thanks.
I'll fix it. Thanks.
Just found your tutorial posted in here: http://rsunleash3d.smfforfree3.com/i...topic,4.0.html
No even credits gave to you, this is some kind of leechers community.
I told them a few words already.
EDIT: He credited now, and deleted my posts.
Wow, thanks for all the info, this has really helped
Good Job
thanks, this script helped alot.
man, this is an awsum guide, i wish more pplz could make more in-depth/practical guides about scar, i was going to give up but now ive seen this im gonna keep trying. thnx heaps :P
Another post by your freindly scar-scripter wannabe nibblit :P
Thank you. Your tut helped me,I needed the if,then,else.
I am making my very first script finally, and I want it to be good can you tell me if this is an "okay" procedure,it's part of my script (AutoWCer)Got it made thanks to you:
SCAR Code:Procedure DropandCount;
Var
LogLoadsCut : Integer;
Const
LogLoadsToCut := 10;
Begin
Begin
If InvFull then
Begin
WriteLn('Your Inventory is full.');
DropAll;
While(DropAll) do
Begin
WriteLn('Dropping logs and find Randoms.');
FindRandoms;
end;
end else
WriteLn('Still not full.');
ChopTrees;
end;
If InvEmpty then
Begin
WriteLn('All logs dropped.');
LogLoadsCut:=LogLoadsToCut - 1;''Hope I did this part right....
WriteLn('You have' + IntToStr(LogLoadsCut)+'loads cut.')
End;
End;
Did I do it right? Hopefully I did;I really want my very first script a masterpiece.
Great tutorial, this is a very well written guide.
I only see a few mistakes. Good job.
SCAR Code:procedure DropandCount;
Var
LogLoadsCut : Integer;
Const //Have this const at the beginning of the script (can't have it here)
LogLoadsToCut = 10; //consts use = not :=
Begin
Begin
If InvFull then
Begin
WriteLn('Your Inventory is full.');
DropAll;
//You can't integrate DropAll and while; just make it do that stuff after it drops
Begin
WriteLn('Dropping logs and find Randoms.');
FindRandoms;
end;
end else
WriteLn('Still not full.');
ChopTrees;
end;
If InvEmpty then
Begin
WriteLn('All logs dropped.');
LogLoadsCut := LogLoadsCut - 1;//Hope I did this part right.... - use // for comments; I also fixed the counter for you
//You want it to count down one after each time subtracted
//Yours just always subtracts 1 from 10 so it's always nine
WriteLn('You have' + IntToStr(LogLoadsCut)+' loads cut.')
End;
End;
Also, because you want to tell Scar what LogLoadsCut is before you subtract from it each time the procedure goes through, you have to do it at the beginning of the script (out of the forever loop, though; just put it before you write the stuff that it will do over and over). To do that, just add this line to the beginning of your script (once again, place it before any repeats).
LogLoadsCut := LogLoadsToCut;
Of course, there are less confusing ways to do this, but I just built off of yours. It's pretty much all just straight-forward math . Hope it's not too confusing. Overall, great job.
Hands down the best
TuT = \/\/icked....... /\/ice \/\/ork /\/\an..... lolz
/\/\ust have took a |_ ongggggggg time to /\/\ake huh?
Unmatched BG + Unmatched BG (Hands on) = Noob to Pro tranformation.... >_>
OR
Both your tuts change noobs into pros =P
Very nice tut, thx! =D
http://www.srl-forums.com/forum/why-t25531.html <-- go and check my threat please
Thanks heaps man! This guide has sent me well on my way on my first script
Awesome guide to learn from - everything made sense!
Niiiiice! thx for the help
Thanx for the hands on tut Pity I did not see it when I did your 1st one
amazing tutorial, im so new to scripting, im taking notes and teaching myself everyday, -
this is the first tutorial ive been able to start with , without any prior knowledge of scripting.
lol thanks for this, i made a script that randomly moves the mouse around my screen :P
Code:program Mouse_Random; begin repeat MoveMouse(random(1000),random(1000)); until(false); end.
Nice tut! now i understand like 25% more than i did before. Now when i read a complex script atleast i identify which is a function, procedure, boolean etc . congrats you are a very good teacher and tyvm!
There are currently 1 users browsing this thread. (0 members and 1 guests)