View Full Version : Need Some Scripting Help!
Da Der Der
11-18-2006, 03:49 PM
I don't really feel like typing it all out on here but I will explain. I am a first time scripter and I read Bebemycat2's tutorial and I thought it was great. I am trying to make my first script ever and I need some problems. Please if you can, post your AIM screen name so you can help me out a little bit. Or, you can just message me at:
AIM: xxxSIMONCICxxx
Thank you for your time!
IronTeapot
11-18-2006, 04:28 PM
Or.... You can just post your problems on the forums and have them solved here?
Hey321
11-18-2006, 04:40 PM
Add me. Laith1972
Da Der Der
11-18-2006, 04:43 PM
Um ok, but it's imbarassing for me because I am still a noob at scripting. But ok, here it goes: I am making my first script ever, a High/Low Alcher. I am using the Squig4 include. This is what I have so far:
{////////////////////////////////////\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\}
{/////////////////////============================\\\\\\\\\\\\\\\\\\\\\\ \}
{/////////////////////= Da Der Der Scripts =\\\\\\\\\\\\\\\\\\\\\\\}
{/////////////////////= is proud to present: =\\\\\\\\\\\\\\\\\\\\\\\}
{/////////////////////= our first script =\\\\\\\\\\\\\\\\\\\\\\\}
{/////////////////////= THE HIGH OR LOW ALCHER =\\\\\\\\\\\\\\\\\\\\\\\}
{/////////////////////============================\\\\\\\\\\\\\\\\\\\\\\ \}
/////////////////////////////////////\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\}
{////////////////////////////////////\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\}
{\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\////////////////////////////////////}
{\\\\\\\\\\\\\\\\\\\\\============================///////////////////////}
{\\\\\\\\\\\\\\\\\\\\\= DA SETUP =///////////////////////}
{\\\\\\\\\\\\\\\\\\\\\= =///////////////////////}
{\\\\\\\\\\\\\\\\\\\\\= Move the note that you =///////////////////////}
{\\\\\\\\\\\\\\\\\\\\\= are alching to the =///////////////////////}
{\\\\\\\\\\\\\\\\\\\\\= inventory space behind =///////////////////////}
{\\\\\\\\\\\\\\\\\\\\\= the high or low alch =///////////////////////}
{\\\\\\\\\\\\\\\\\\\\\= button =///////////////////////}
{\\\\\\\\\\\\\\\\\\\\\============================///////////////////////}
{\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\////////////////////////////////////}
program High_Low_Alcher;
{.include squig4.scar}
const
Alchs='0'; {Number of alchs that you will be completing}
Procedure Alch;
begin
MouseC(838,491,1);
Wait(500)
MouseC(838,503,1);
wait(3000)
end;
----------------------------------------------------------------------------------------------------
1. Now, what I need to know is do I have the constant part right?
^ If I don't can you tell me and EXPLAIN to me what I have to do?
2. How would I make it repeat the Alch procedure until all the alchs run out. Now I know this has to do with the constant part of the script, but would it be like this:
begin
repeat
Setupsquig;
Alch;
until(Alchs=0)
end;
^ If that is wrong, please tell me what I did wrong and explain.
3. Can someone give me a FULL anti random procedure. Like so my script solves any random event that comes to me? Or does Squig4 have one? Could you tell me it?
Thanks for all your help everyone.
Wrycu
11-18-2006, 05:00 PM
Put in a counter, increase it by one each time until its equal to your constant.
Hey321
11-18-2006, 05:02 PM
Ok, what you would do is in the alching proc. put this AFTER its alched.
Alchs:=Alchs+1;
Then you will have to make Alchs and Integer variable.
By doing this
var
Alchs: Integer;
at the top of the script.
THEN at the bottom put
until(Alchs= NumLoops);
and call Alchs and the top of the script in the const NumLoops instead.
Or in other words it would look like this
program Alcher;
var
Alchs: Integer;
const
NumLoops=100//Example
procedure Alch;
BLAH BLAH BLAH
Alchs:=Alchs+1;
end;
begin
Alch
until (Alchs=NumLoops)
end. As and example. BLAH BLAH BLAH is your Alching code.
Wrycu
11-18-2006, 05:44 PM
I am happy to announce his problem #1 has been solved.
Boreas
11-18-2006, 06:21 PM
Use SRL. It will be harder to switch over later.
Hey321
11-18-2006, 08:33 PM
Glad to announce that its been SRL-ized and that it now has anti-randoms :).
Wrycu
11-18-2006, 08:53 PM
Gooooooooooooooooooooooooooooooooooooooooooooooooo d. I tried helping him stick with the squig thing but it took too long. Could you help me? I have a thread under "free scripts'...
And i have a problem with the new SRL Miner v2.6
Hey321
11-18-2006, 10:13 PM
Add me on AIM. Laith1972 ill see what i can do.
Powered by vBulletin® Version 4.2.1 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.