SRL Archive - OSR Help

Ideas On Script [Help]


NoUserName

2012-04-15 18:37:35

Right i have a collection script that im trying to make i have 23 baskets in my invent that i need to fill easy enough

but how would i make it totally random is there anything i can do cant seam to find anyhting?

script will run as

pick from tree
fill basket
carry on picking
Bank
kinda of thing

btw this is my first script all help is gladly taken!

thanks

Paradoxium

2012-04-20 12:06:21

I think that you dont really need to fill them randomly… Im getting that you are trying to think of an antiban? My recommendation is for your script to misclick instead. You could mess with the time between fills… There are plenty of ways lol ( check some scripts out for that) now if you really want to fill your baskets randomly… I would think that you would make a list of cases and then tell it to choose one at random. The problem with that is that it could do a case twice, nog do another…. I havnt really looked at the random funcs but theremight be a func that would help you out :)

Good luck!

Gala

2012-04-20 16:41:14

You could make an array and fill the bucket array[random(23)]. Make sure you blacklist the bucket to not fill it twice.

NoUserName

2012-04-22 11:22:32

well as soon as im back scripting im guna have a look go to fix my access violation error first… i just see it as if every things random then there is no patterns to record so more human like.

Daniel

2012-04-22 11:24:44

Wouldn't it be more human to fill the buckets in a pattern (e.g. in order, diagonal)? Try for that. :)

NoUserName

2012-04-25 03:22:30

thinking about it it probably would i could do it off a random 1 to 28 or 28 to 1 kind off thing *took your advise and doing it this way*

EDIT:

ok so im withdrawing items from my bank useing

Withdraw(1, 0, 20);

but it keeps typing in 20 is there a way to get it to click the 20 that's already there?

Hazzah

2012-04-25 08:48:45

From: tubs-12
thinking about it it probably would i could do it off a random 1 to 28 or 28 to 1 kind off thing *took your advise and doing it this way*

EDIT:

ok so im withdrawing items from my bank useing

Withdraw(1, 0, 20);

but it keeps typing in 20 is there a way to get it to click the 20 that's already there?


you could use an if then statement probably, something like

 
begin
if Not(Clickoption('20') then
begin
Withdraw(1, 0, 20)
wait(RandomRAnge(100,1000);
end;
or until Not(FindDTM(Basket....)) then
TerminateScript;
end;

Please bear in mind this probably wont work but it gives you the idea (Im a noob when it comes to scripting still!)

NoUserName

2012-04-25 13:01:42

thanks for the reply at least your trying to help and learn like myself and not leaching off this fantastic forum

as for an if statement its a possibility but the "Withdraw" command used i though should only type it in if its not there and it will but 20 is always there and only types like 10% off the time just cant see why it would want to!

Imagine

2012-04-25 21:24:17

If you really want to do it randomly, you could look into using bitwise operators.

You can assign a 23 digit binary number, the first digit is the first basket, etc.

To mark that say basket 1 is done, you would use the AND operator. ETC.

NoUserName

2012-04-26 04:16:23

im going to do it in order figured as Paradoxium siad it would mess with times im just going to make it fill 1 to 23 then 23 to 23 to 1 but random im looking in to making a script go afk atm any ideas on that one?