SRL Archive - First Scripts

East Varrock Tea Stealer and Banker


Foundry

2013-08-09 18:33:42

I started learning scripting a few weeks ago and came up with this tea stealer. It doesn't have much antiban atm, but does rarely use a right click option on the stall. Sorry in advance if it is hard to read. Also, I understand the script doesn't really make any money, but if a few people could test it for me that would be great. I want to perfect this one script and learn in the process before moving on to useful ones. :)

Currently, your interface must be almost exactly the same as the red portion in the picture below for it to detect if your inventory is full and to use the fixedflag function I made. In addition, your graphical settings must be on Minimum quality, DirectX, and max brightness..



You can start anywhere near the tea stall (as long as you can see the pink cloth).

Thanks to King for the DDTM walking tutorial and BMWxi for the IsMouseOverText function.

Features-
Red- Will add
Green- Implemented(I hope anyways)

Currently working on walking and banking. Also, should bank correctly now as it is based on waits and not my fixedflag function -.-

Steals tea of course!
Banks the tea.
Can input the amount of tea or the time the script will run for.
Fixes your position if you somehow end up in a spot where the tea guardian can see you.

More antiban, like random mouse movements and skill hovering.
Smoother walking.
Longer run time/more reliability.

rj

2013-08-09 18:40:05

this is actually really nice for a first script great job!

Ian

2013-08-09 18:49:22

Congrats on your first script! :)

I looked over it and it's pretty good for a first, I'll test it for a bit.

E: Having got to lv 5 thieving so I could steal from the stall, I can't find any pinkish cloth. Would you mind circling it or something so I know where it is? Thanks :)

Foundry

2013-08-09 19:18:13

From: BMWxi
Congrats on your first script! :)

I looked over it and it's pretty good for a first, I'll test it for a bit.

E: Having got to lv 5 thieving so I could steal from the stall, I can't find any pinkish cloth. Would you mind circling it or something so I know where it is? Thanks :)


Updated to show what I was talking about.

@Officer Barbrady
Thanks! It took a while to make and its nice to know that its decent :D

Ian

2013-08-09 20:05:07

I tried it out for a bit, had to change a few things to get it to work. I used ACA to get new Hue/Sats, and I changed the area where it looks for the stall. For me it was looking in the wrong place. I also changed the FindColorTolerance number in StealTea. After that it stole the tea perfectly until my inventory was full. Then it tried to walk to the bank, but just clicked the toggle run button and the compass. Although my interfaces were in the right place, I noticed that I'd been in safemode but your screenshot was in OGL mode. This explains the color changes I had to do, as well as why walking had not worked. I will test again in OGL mode.

Still didn't want to walk. I'd suggest using SPS, it has worked well for me for my scripts :)

Foundry

2013-08-09 20:11:44

Excuse my ignorance but… how do I set mine to safemode? I only have DirectX and OpenGL in the options list, and I was using DirectX. Also, thanks for the feedback.

Ian

2013-08-09 20:20:10

From: HardcorBoter
Excuse my ignorance but… how do I set mine to safemode? I only have DirectX and OpenGL in the options list, and I was using DirectX. Also, thanks for the feedback.


When you use SMART it forces runescape to load in safemode by holding down the 's' key while it loads. You can force the browser to load in safemode by holding down the 's' key while it loads too :)

Foundry

2013-08-09 20:28:19

Never knew about that… Should I make my scripts in that setting from now on?

Ian

2013-08-09 20:44:23

From: HardcorBoter
Never knew about that… Should I make my scripts in that setting from now on?


Well in the past that's what all the scripts were made in because that was what SMART loaded, but when SRL6 is released it will use OGL mode so that we can make use of Brandon's OGL plugins as well as color. So right now I still make my scripts in SafeMode but I'll switch to OGL once SRL6 is released. So it doesn't really matter which you make scripts in at the moment as long as the user knows which mode to have it set to, although I prefer SafeMode because that is what SMART loads be default :)

Foundry

2013-08-09 20:51:53

From: BMWxi
Well in the past that's what all the scripts were made in because that was what SMART loaded, but when SRL6 is released it will use OGL mode so that we can make use of Brandon's OGL plugins as well as color. So right now I still make my scripts in SafeMode but I'll switch to OGL once SRL6 is released. So it doesn't really matter which you make scripts in at the moment as long as the user knows which mode to have it set to, although I prefer SafeMode because that is what SMART loads be default :)


Thanks for the info! I will fix the sat and hue mods for that color (I forgot to when I copied and pasted a new color into it) and I will post what settings I use in the OP.

arotane

2013-08-11 00:49:38

yeah got a question I start up script says everything is executed and everything is fine but client never pops up the smart8.2 client

Ian

2013-08-11 11:39:04

From: arotane
yeah got a question I start up script says everything is executed and everything is fine but client never pops up the smart8.2 client


If you look at the top of the script you can see that there is no {$DEFINE SMART8} or {$DEFINE SMART}. This means that SMART will not pop up and this script was probably made for use in the browser. You can make SMART pop up by adding {$DEFINE SMART8} above {$I SRL/SRL.simba}. :)

arotane

2013-08-11 11:46:10

LOL thanks bro but figured it out now that took an hour of pulling out my hair but I got it hahaha hey can u send me a link to download srl-osr an disnt that for old school scripts?

Ian

2013-08-11 12:47:32

From: arotane
LOL thanks bro but figured it out now that took an hour of pulling out my hair but I got it hahaha hey can u send me a link to download srl-osr an disnt that for old school scripts?


Yes, SRL-OSR is for oldschool. Guide on how to install it: http://villavu.com/forum/showthread.php?t=99577

Although lets try to keep this on-topic :)