SRL Archive - News and General

Scripting wait times


Baked0420

2009-06-18 22:56:36

I was thinking while doing herblore legitly, if I wanted to make a script for it, what would I make the wait times. I would want to do it fast, but not too fast like a bot. I was wondering what a good time would be, then I came up with a solution. So tell me what you guys think first, then when this gets a decent amount of replies with times I'll edit this and tell everyone what I came up with, I think I had a really good idea, hopefully you guys will like it.

Oh by the way, the wait times I was talking about (because there could be thousands of different places to put them in a script) was when you use your herb with the vial, when the last vial gets the herb in it, how long to wait before you use the secondary ingredient with the unfinished potion (assuming you clicked the secondary ingredient while the herbs and being places in the vials, so once the last vial gets an herb you just click on the vial to start using secondary ingredients with unfinished pots).

So you can start posting how long the wait should be, if your confused bout what I'm talking bout just tell me I'll try to make it more clear.


EDIT: ok so what I mean is when the screen looks like this:
(By the way, with the screen shot you can't tell, but I have my mouse hovering the last vial of water, unless you checked the uptext)

(you have the vials starting to be mixed, and a secondary herb clicked ready to be used with unfinished pots)




How long would you wait to make your script click the unfinished pot to make them start being made after the last vial of water has recieved an herb.

so it starts doing this:





I want what you think would be the MOST HUMAN-LIKE wait time.

So far I've gotten:

Shuttleu:—- 300+random(300)
Runescapian: 200+random(300)
Zytex:——— 200+random(200)
Coh3n:——– x+random(1000) (I prefer x to already be defined :p)



Well I didn't get quite as many responses as I would've liked but I got impatient and just want to say what I got, I was thinking something like you guys with the wait, and you all are pretty much right. What I decided to do to figure out how long I should make my wait, and this was to see what my personal wait time should be, was I googled reflex time, so I could get a site to test me. I found one here, if anyone wants to test theirs:

http://www.happyhub.com/network/reflex/

I wound up getting mostly all in the .300's of a second, which is 300ms, so only twice I think I got in the 290's. So I would do wait(300+random(100)), I just wanted to see how accurate us scripters would be at a human-like wait time, and it seems like we are pretty dead on :) good job guys. now I know though, my randoms for waiting should only be bout 100ms and wait times for clicking on que should be about 300ms. I think the best way to find out your personal wait time should be to also use that site to test your reflex, it's pretty fun to see what you get.

Gu3st...

2009-06-18 23:00:25

Just do a search for the colour to change and then use a Wait(200+Random(200)); or something similar :)

Capricorn

2009-06-18 23:00:41

What I do is I mix all of the herbs into vials first, then I mix all of the secondarys into those vials. Easier to bank that way (You only have two sets of items instead of 3)

Baked0420

2009-06-18 23:03:04

Zytex, I know how to do it, I was just wondering what you guys would put as wait times, and Capricorn, I'm not sure of how your saying to do it, but the way I do it is I take out 9 vials, herbs, and 2nd ingredients. It's faster cuz in two times of opening the bank you've made 18 pots, if you do 14 herbs, and vials, mix em, then open bank again for 2nd ingredient you get 14 pots with two times banking.

I think I'll post a pic of what I mean to make it more clear of what I'm asking.

Coh3n

2009-06-18 23:03:09

Um, this doesn't really answer you question, but are you saying you do Herblore with all the ingredients in your inventory? If so, let me suggest a better way IMO.

What I do is treat it as if I was stringing bows. Make all the unfinished potions at once, then add the second ingredients. I could be wrong, but wouldn't that make your script simpler?

For your waiting time, why don't you just time it. See how long it takes to finish and write it something like this:

Wait([Time] + Random(1000))

Or something like that.

EDIT: @Capricorn - You beat me to it. :p

ShowerThoughts

2009-06-18 23:06:29

Hmm, just try counting your own times when you're doing it?

Btw lol @
Tags
herblore, speed

ian.

2009-06-18 23:13:17

>.> I make small little scripts for myself all the time and never get reported or anything. It's not that important. If you saw my old sig with a 9 line curser, then you'd know what I mean. For an herblore script I made, I used MouseBox for the two spots in bank, CloseBank;, used MouseBox for the two things in inventory, MouseBox to do MakeAll and then repeat Wait(RandomRange(50, 100)); until(InvCount = 14); and I would run it and watch tv or something so if I leveled I could easily just do it again, which is what I think kept me from not being banned :p

So the point in that nonsense is, don't worry too much. :]

Baked0420

2009-06-18 23:19:34

From: Hermen
Hmm, just try counting your own times when you're doing it?

Btw lol @


Tags
herblore, speed




I think I know why you lol'd at that, but I didn't even notice until you said something :p


and 99_, I'm not worrying, just wondering what you guys would make the wait time, because I think I found a way to get very good wait times.

ian.

2009-06-18 23:32:28

I honestly didn't even use waits. The only time I had a wait was when they were being made, and it was just repeat Wait(RandomRange(50, 100)); until(InvCount = 14); :p

Baked0420

2009-06-18 23:38:05

ohh, oh well, I took it the wrong way, but I'm going to leave it there until I edit my first post again. So what do you guys think, how long should a wait be from the time the last unfinished pot gets made till you click on that pot to use it with an ingredient? What would you make it to be MOST HUMAN-LIKE. I want more responses.

Coh3n

2009-06-18 23:59:58

From: Baked0420

Coh3n: x+random(1000) (I prefer x to already be defined :p)


Lol I'd define it for you if my main was a member. I don't have a members account so I can't time it myself.

You should really think about making all Unfinished potions first, then adding the ingredients. You can fill the whole inventory that way, which will speed it up (I know it's not much but it adds up).

From: 99_
I honestly didn't even use waits. The only time I had a wait was when they were being made, and it was just repeat Wait(RandomRange(50, 100)); until(InvCount = 14); :p


I would think that's a more accurate way of doing it, don't you think?

Runescapian321

2009-06-19 00:03:28

A concentrated human would be rather quick. I'd go with about what Zyt3x said, 200+random(300) maybe.

EDIT: Wtf O_O

Tags
cannabis, cocaine, herblore, poo, speed

ian.

2009-06-19 00:06:12

What I'd do is move the mouse to the area first and then wait. That's what I do.

Baked0420

2009-06-19 00:25:27

From: Coh3n
Lol I'd define it for you if my main was a member. I don't have a members account so I can't time it myself.

You should really think about making all Unfinished potions first, then adding the ingredients. You can fill the whole inventory that way, which will speed it up (I know it's not much but it adds up).



I would think that's a more accurate way of doing it, don't you think?


in my other post, I showed that, that way is not faster, then you withdraw 14 vials and herbs, mix, then withdraw 14 ingredients, which is two times banking and you only store 14 pots, if you do 9 vials, herbs, and ingredients, then store, then do it again, then you've only banked two times and have made 19 pots, 5 more then your way, it adds up ;)

99_ I move the mouse to the area and wait till the last pot is mixed also, but after it's mixed, I'm asking what would be most human-like wait time.

Runescapian, I tagged it herblore, and speed, then someone tagged cannabis and cocaine lol, then someone stupid tagged poo :p.

Gu3st...

2009-06-19 01:15:30

oh, it seems like I did not fully understand your question at first :P

But still, 200 + Random(200) or Random(300) as Runescapian said would be perfect.

Shuttleu

2009-06-19 02:18:29

i would say 300+Random(300)

~shut

Lance

2009-06-19 11:13:58

i would say switch it up.. like:

case Random(8) of
0..7: wait(100+RandomRange(100, 300));
8: wait(500+RandomRange(100, 300));
end;

Baked0420

2009-06-19 15:59:02

I think wait(300+random(100)) should be good then for a little antiban maybe make it wait (2500+random(1500)) like the person wasn't paying attention for a sec, or whatever you'd want to make it, but I was just asking what people was thinking what the most human-like time was, before I told them how I found my answer. When paying attention I always got in the 300ms except twice I managed to get in the 200's but I'm pretty sure it was in the 290's so the really high 200's.

EDIT: You guys should test your reflexes with that link I posted then see how accurately you can guess your reflex time. You can even post it here to compare multiple people's reflex times, so you have a general idea for when your scripting.

Shuttleu

2009-06-20 01:29:48

my lowest was 344 ms
but seeing that i would change my time to 500+Random(500)
because if you click it as soon as its finished then it will look botty
so if you give it half to one second then it will be less bannable

~shut

cycrosism

2009-06-20 05:01:15

Use DTM,s make it if it finds the DTM in 1 slot of the inventory (the slot you want it to be in) then it continues. usefull for fletchers too

Da 0wner

2009-06-20 05:05:14

300 + random(300)