SRL Archive - OSR Help

Stuck with scripting again


kriss1993

2013-05-23 08:19:58

So, im trying to follow guide from youtube once again to get basic idea of scripting but I get stuck all the time with some stupid things and most of the times the reasons are that im being stupid but cant figure this1 out again could any1 help me with this1? ty.
screen: http://www.upload.ee/image/3331050/stuck.png
dont have the whole msg on the screen so Ill put it here : Unknown identifier 'PluOne' at line 19
Compiling failed.

also I think it should of ben id'd by this line :PlusOne:= InvCount + 1;
I think im doing something wrong that I cant figure out.

Sjoe

2013-05-23 08:23:56

It's a typo, U typed PluOne, should be PlusOne

kriss1993

2013-05-23 08:45:16

Oh, thnx I never noticed even I was looking at the code like 30 mins also now I got other problem now its spamming the +1 for some reason as it clicks on chop the tree.
http://www.upload.ee/image/3331121/why_is_it_spamming.png

Sjoe

2013-05-23 09:20:54

Your Writeln('+1); is OUTSIDE the if then statement, meaning it will play everytime.
you need a new begin and end; for multiple actions example:


repeat
if InvCount = Plusone then // now if then statement applies to everything between begin end;
begin
Wait(300);
Writeln('+1'); // between begin end now.
end;
until(InvCOunt = Plusone);

Also refrain yourself from using movemouse and clickmouse, these are a very HIGH BANRISK. (very computer like)
instead use MMouse and Clickmouse2.

kriss1993

2013-05-23 10:45:48

Thnx and I know about the ban risk however this script is just for learning the basic its not like im ever going to actually use it and sure if Ill be using mouse movements Ill be adding randomness and delay randomness to it.
any advice what to learn? also what I need for my script is talking with npcs and banking etc. that I will do once I got enough knowledg of simba.