SRL Archive - First Scripts

First script: Wired357's Range Guild.scar


wired357

2008-11-30 03:46:35

This is my first script. It was inspired by raf bomber's rangeguild.scar

This script plays the Ranging Guild mini-game. Make sure that you can see the Judge and at least a couple targets and the #3 inv slot is empty.

I tried to include AntiRandoms but I get the following error when it is enabled:

Range in line 1087 in script C:\Program Files\SCAR 3.15\includes\SRL/SRL/Core/AntiRandoms/AntiRandoms.scar


I don't know how to correct this error and welcome any suggestions on how to fix it.

I tried to include some fail safes. ex: Exiting if script cannot find the judge or the targets. This does not seem to work.

I also tried to implement some AntiBan but the script seems to get off track when it is enabled. I am not exactly sure of the proper usage.

Other than that :( , I have tested it for 10 loops while attended and it works fine. (got enough tickets for 100 rune arrows while testing)

A progress report is also in the works.

I tried to keep with the formatting standards.

Please Let me know how I can improve this script. :D

SirPa

2008-11-30 04:39:02

Pretty nice for a first script :)
I haven't tested it though , cause i'm not a member at the moment.

However, i would like you a little with your script ;)

While scanning over your script, i've seen this a few times:

Mouse(x,y,1,1, True);
wait(500+random(500));
//ChooseOption('Talk');

I'm guessing you wanted to make the script right click the judge, and choose Talk, but it didn't work. This is easily fixed. You need to change the True to a False.
True = Left click
False = Right click
It works then :)

You also asked (in the script) if the Username and Password part was really neccesary. Well, it is.
The script uses it to log the player in, but you didn't implent that yet.

I thought i'll help you out a little, so i fixed a few little things, and added some more (Like ActivateClient, to activate RS)
Also antirandoms and antiban should work now.

Good luck!

~Sir

JuKKa

2008-11-30 05:50:29

quite horrible

SirPa

2008-11-30 06:09:38

Ah come on Jukka , its his first script ;)
He has allot to learn, ok, but atleast he tried unlike allot of other people on here

wired357

2008-11-30 15:35:13

From: sirpali
Pretty nice for a first script :)

I'm guessing you wanted to make the script right click the judge, and choose Talk, but it didn't work. This is easily fixed. You need to change the True to a False.
True = Left click
False = Right click
It works then :)

You also asked (in the script) if the Username and Password part was really neccesary. Well, it is.
The script uses it to log the player in, but you didn't implent that yet.

I thought i'll help you out a little, so i fixed a few little things, and added some more (Like ActivateClient, to activate RS)
Also antirandoms and antiban should work now.

Good luck!

~Sir



Thank you for you help and input :)

Yes, I had it set up to right click on the judge and choose talk, but I thought it would be more human to just click him. At least that's how I played the mini-game normally. I left it in there just in case. Is it better (SCAR-wise/human-wise) to use the right click/choose vs the direct left click?

The LoopsToDo const was in the works, but it was almost 0300 and I was tired. :redface:

I have tested your revision and still get the same error for AntiRandoms and a similar error for LoginPlayer. Since I am testing this while attended, I have disabled them for now.

Again, thank you for your help :)



From: JuKKa
quite horrible


I partially agree JuKKa.

Perhaps you could deign to descend for a moment from your vertiginous Ivory Tower and bestow upon me a token gift of your vast and limitless wisdom?:rolleyes:

Personally, I don't think it's all that bad for a first script considering I've had two strokes in the last year, and I have virtually no modern programming experience (unless you want to count a wee bit of COBOL and FORTRAN many years ago). The script meets 90% of my design criteria and it works (which is more than I can say for a lot of the others posted in the first script forum).

jakeyboy29

2008-11-30 15:39:23

From: JuKKa
quite horrible


for some-one with 6 posts? i think not.

raf bomber

2008-11-30 19:32:42

dude it is very much like my script just looks like u have split the main procedure up into smaller procedures and then put the loop at teh end.

wired357

2008-11-30 22:46:46

From: raf bomber
dude it is very much like my script just looks like u have split the main procedure up into smaller procedures and then put the loop at teh end.



I'm sorry you think that raf. To err on the side of caution and courtesy, I have removed to download link.

The sections i think you are referring to are essentially the same in nearly every script I have seen that uses them. e.g. Declare Players, AntiRandoms, and AntiBan. If there are any other items that you feel are your own unique creations, please let me know exactly what they are and I will refrain from using them in the future.

I will re-write the entire script just for you to ensure that it uses nothing you have created.

raf bomber

2008-12-01 00:54:17

thank you
just ask in future and i will be happy to lend procedures or even work with u to make a better one. i am always open to new suggestions or ideas.

wired357

2008-12-01 01:41:57

From: raf bomber
thank you
just ask in future and i will be happy to lend procedures or even work with u to make a better one. i am always open to new suggestions or ideas.


Swing and a miss.


raf, you missed this part of my last post:

If there are any other items that you feel are your own unique creations, please let me know exactly what they are and I will refrain from using them in the future.

I will re-write the entire script just for you to ensure that it uses nothing you have created.:rolleyes:


Present evidence for your claims. Nothing that I used from your script went uncredited. I guess you overlooked that too.

I am not scrapping my script because I happened to use a few commands that were similar to ones you used.

Justen

2008-12-16 16:39:10

Where exactly is it? Yes, i'm a noob.

Brimmy

2008-12-18 11:55:10

Just what i need for my pure, tyvm :)