SRL Archive - First Scripts

My First Script (Auto-Fighter)


BigE

2008-11-23 23:12:17

Hi Guys this is my first script and it still needs some adjustments, (still needs: mouse speed slowed down a little, be able to solve randoms, auto-bans, and whatever you guys reply telling me what else it needs) but it runs fairly well.

Altho it is an autofighter, right now it is setup to kill cows near crafting guild. If you want it to fight something else just change the monstercolor.

It would be very much apprieciated for comments about how well the script worked for you. :(h):

Kyle Undefined

2008-11-23 23:32:07

Fix the MoveMouseSmooth's. They should be MMouse. MoveMouseSmooth can be detected which equals in a ban. ClickMouse needs to be Mouse. ClickMouse also results in a ban. It's a simple first script. Keep it up ;)

~Camo

gimillii1592

2008-11-23 23:50:56

cool..ill try and tell you how it worked

Kyle Undefined

2008-11-23 23:52:33

From: gimillii1592
cool..ill try and tell you how it worked


Unless you want to get banned I wouldn't.

~Camo

marpis

2008-11-24 01:40:48

Read tutorials, and learn to use procedures. As 1st script, try to make a simple wood cutter and log burner instead! Fighter is quite too hard. Good luck with your scripts :)

(Don't use that script anymore, it'll get you perm banned)

gimillii1592

2008-11-24 10:29:33

From: Camo Kyle
Unless you want to get banned I wouldn't.

~Camo


Ha ha thanks…didnt know he used the movemousesmooth…he probably uses Coordinates too!
LOL

noidea

2008-11-24 17:49:39

From: gimillii1592
Ha ha thanks…didnt know he used the movemousesmooth…he probably uses Coordinates too!
LOL


You go ahead and make a script then… Impress us all…

NCDS

2008-11-24 18:08:35

From: noidea
You go ahead and make a script then… Impress us all…


He is a cocky little guy isnt he?


as for the script, I looked at it read through some of it, it is very simple, you can solve your randoms problem by just adding FindNormalRandoms; for now. Perhaps try for a somewhat simpler goal until you are more advanced?

BigE

2008-11-24 21:44:11

thank you guys for the information i will change the things to become auto bann but as for the change my goal, i would but i have my heart set on an auto fighter therfore i wont stop til i get it right

NCDS

2008-11-24 22:22:25

From: BigE
but as for the change my goal, i would but i have my heart set on an auto fighter therfore i wont stop til i get it right


Thats a good attitude to have, I wish you luck!

senrath

2008-11-24 22:28:57

From: BigE
thank you guys for the information i will change the things to become auto bann but as for the change my goal, i would but i have my heart set on an auto fighter therfore i wont stop til i get it right


You don't have to stop working on it, but I would recommend making some simpler scripts first. I find it's easier to learn a new concept by making a script revolving around that concept, rather than trying to work said concept together with other ones. Once you get something down, then you can apply it to your autofighter. That way you're still working on your autofighter, just not directly.

D1zl3

2008-11-25 00:02:37

From: BigE
thank you guys for the information i will change the things to become auto bann but as for the change my goal, i would but i have my heart set on an auto fighter therfore i wont stop til i get it right


haha good attitude, and my first script was a autofighter too :), just work on procedures like said before, then think of other neat procedures no one else has, piece it all together and voila! you have a dandy script.

Enchanted

2008-11-25 02:30:02

program autofight;
{.include SRL\SRL.scar}

The above includes the functions/procedures in the SRL include.

MoveMouseSmooth(x, y);
ClickMouse(x, y, false);

That moves the mouse and clicks, but change it to:

Mouse(x, y, 5, 5, false);

The "5, 5" is randomness, it will click x + random(5), y + random(5) etc.

But very good for a first script :)

Suggestions: Maybe look into bitmaps/dtm?

Best of luck, Enchanted.