SRL Archive - OSR Help

how can you make a very fast pouch emptying procedure?


blockay

2013-03-11 12:04:21

I have been working on a runecrafting script and I can't figure out how to make an accurate pouch emptying procedure, I just can't manage to make it as fast as I'd like. Can someone help me out?

Right now to empty the pouches I have it clicking the pouch, then the altar, waiting until I gain xp or 1 second. And then it waits a certain amount of time for each pouch before clicking on the next pouch. I have the times set as low as I could get them without clicking on the pouches too early otherwise it won't empty the ess and it will skip the pouch.

Runehack123

2013-03-11 12:15:01

Two ways I can think of:
-Reduce time it waits before clicking on another pouch
-Compare experience you have every Xms and if it matches the previous value then move on to the next pouch. (Since that means you haven't gained any EXP in that time)

blockay

2013-03-11 12:23:11

From: Runehack123
Two ways I can think of:
-Reduce time it waits before clicking on another pouch
-Compare experience you have every Xms and if it matches the previous value then move on to the next pouch. (Since that means you haven't gained any EXP in that time)

ya i've got the wait times pretty much dialed in i'm making 7600 astrals per hour at 15 minutes of run time but i was just wondering if there was anything i could do to make it faster besides decreasing wait because it would not craft them

Runehack123

2013-03-11 12:41:19

From: blockay
ya i've got the wait times pretty much dialed in i'm making 7600 astrals per hour at 15 minutes of run time but i was just wondering if there was anything i could do to make it faster besides decreasing wait because it would not craft them


I already told you my second way and you can also compare InvCount to see when it stopped decreasing if rune essence is disappearing in your inventory. Otherwise just use the second way I told you. Sin made a function called WaitInvCountDec I found in Ashaman's firemaker and used in the one I made.

blockay

2013-03-11 12:43:28

From: Runehack123
I already told you my second way and you can also compare InvCount to see when it stopped decreasing if rune essence is disappearing in your inventory. Otherwise just use the second way I told you. Sin made a function called WaitInvCountDec I found in Ashaman's firemaker and used in the one I made.

"waiting until I gain xp or 1 second"
I already have it set to wait until i gain xp. and if u wait for ess to appear in inv that is way slower i've already tried that

Runehack123

2013-03-11 12:49:14

From: blockay
"waiting until I gain xp or 1 second"
I already have it set to wait until i gain xp. and if u wait for ess to appear in inv that is way slower i've already tried that


Not to appear, but to disappear. By the way, I don't quite know how this Runescape thing works with what you're saying so please explain. What changes in your inventory, what is in your inventory etc..
You can check if your InvCount is at X every couple of milliseconds I don't see how you're finding it slow.
While InvCount > X Do >>>
For to Do >>>
Repeat until InvCount X>>

What's happening when you are doing this please explain in more detail.

blockay

2013-03-11 13:08:24

From: Runehack123
Not to appear, but to disappear. By the way, I don't quite know how this Runescape thing works with what you're saying so please explain. What changes in your inventory, what is in your inventory etc..
You can check if your InvCount is at X every couple of milliseconds I don't see how you're finding it slow.
While InvCount > X Do >>>
For to Do >>>
Repeat until InvCount X>>

What's happening when you are doing this please explain in more detail.

oh i hadn't even thought of waiting for ess to disappear..that may work i'll see what i can do.
when u runecraft u do some animation when u craft the runes so u have to wait, then you have to empty your pouch, not too soon otherwise it will not register because you are crafting runes. and not too late cuz i want fast xp. and after you empty your pouches u have to click on the altar again.

Runehack123

2013-03-11 13:15:07

From: blockay
oh i hadn't even thought of waiting for ess to disappear..that may work i'll see what i can do.
when u runecraft u do some animation when u craft the runes so u have to wait, then you have to empty your pouch, not too soon otherwise it will not register because you are crafting runes. and not too late cuz i want fast xp. and after you empty your pouches u have to click on the altar again.

Okay thanks. Just wait for your InvCount to be equal to however many items pouches you have in your inventory that are not rune essence. I wouldn't do WaitInvCountDec either since you're almost guaranteed that all the rune essence will disappear in one go and if it doesn't you can always add some sort of failsafe timer.

Element17

2013-03-11 13:34:30

From: blockay
oh i hadn't even thought of waiting for ess to disappear..that may work i'll see what i can do.
when u runecraft u do some animation when u craft the runes so u have to wait, then you have to empty your pouch, not too soon otherwise it will not register because you are crafting runes. and not too late cuz i want fast xp. and after you empty your pouches u have to click on the altar again.


I mean I understand wanting fast exp but at the most you would only lose like 2 seconds. Not that much time, but either way Runehack gave some good suggestions.

Runehack123

2013-03-11 13:42:45

Just thought of another thing - make it hover over the next pouch you want to click on for even faster XP instead of leaving it sitting around after you click the altar. I'm sure you can squeeze in an extra few ms like that! And the most delay you'll get will be less than 300ms or even less. Just depends on how you go about checking if your inventory is at a certain point. :)

blockay

2013-03-11 13:49:44

From: Element17
I mean I understand wanting fast exp but at the most you would only lose like 2 seconds. Not that much time, but either way Runehack gave some good suggestions.

ya but when ur doing laps in under a minute, 2 seconds will add up!

From: Runehack123
Just thought of another thing - make it hover over the next pouch you want to click on for even faster XP instead of leaving it sitting around after you click the altar. I'm sure you can squeeze in an extra few ms like that! And the most delay you'll get will be less than 300ms or even less. Just depends on how you go about checking if your inventory is at a certain point. :)

ya i was doing that now hahah that will definitely help i'll let u know how fast i get it going :P right now im averaging 7868 astrals/hour at 36 minutes

just found out about repair rune pouch spell gonna try and use that too, should help astrals/hr

Runehack123

2013-03-11 14:05:45

From: blockay
ya but when ur doing laps in under a minute, 2 seconds will add up!


ya i was doing that now hahah that will definitely help i'll let u know how fast i get it going :P right now im averaging 7868 astrals/hour at 36 minutes

just found out about repair rune pouch spell gonna try and use that too, should help astrals/hr

Faster, better, stronger! Best of luck!
Maybe some anti-ban to blend in better? e.g. just if you level up check your XP or some sort of mini-break every 50 minutes or so. Some little out-of-the-blue mouse movements here and there :) ..that's how I would do it at least. You need to make it situational since any normal player would just go for the most runes/h and would just poom pooom poom for the XP/money so anti-ban has to be appropriate I think. This is something you'll really have to put some serious thought into! Maybe no anti-ban at all? Who knows - it's down to you now so best of luck!