SRL Archive - Non-RuneScape Scripts

Autodropper


Amsterdamn

2012-08-18 01:55:52

Now i got alot of help with my autofighter script which i thank everyone for, but i want to add an addition to it. i want to add an auto dropper, where it detects that the inv is full and starts dropping stuff but i want it not to drop anything in the first 4 inv spaces. Thing is that i have no clue how to start it.. Any help?

riwu

2012-08-18 02:02:59

If InvFull then
DropAllExcept([1,2,3,4]);

Note that it might not work for private servers.

Amsterdamn

2012-08-18 02:06:32

Yeah the thing is that i need it for a private server

Peanuts

2012-08-18 02:11:57

Why do you need it to drop all ? Doesn't it just collect charms?

They take one spot..
let ur inv fill with junk..

theres no bot detection on private servers so who cares if u look suspicious ?

Amsterdamn

2012-08-18 02:18:28

but the thing is that when you attack the monster it doesnt only drop the charms, it drops noted junk aswell, so when the monster dies it only detects the noted item and not the charm, so i made it loot both. So now i have an inv full of junk that i want to drop

Peanuts

2012-08-18 02:44:53

When you hover over the charm/noted item.

Mouse(X, Y, 5, 5, False);
WaitOption('harm', 250);

That'll pick up the charm and if there is no charm it'll continue the script in 250ms.

no need to pick up junk.

Amsterdamn

2012-08-18 02:51:30

but the thing is that there always is a charm, its just covered by the noted junk that covers it, thats why i always have to pick up the noted item so it can see the charm

Peanuts

2012-08-18 03:01:04

Just right click on the pile…

WaitOption('harm', 250);

It will only pick up items with the word 'harm' in them.

Do you understand?

CephaXz

2012-08-18 03:23:37

I don't think waitoption works with private server because of the text.

Amsterdamn

2012-08-18 04:12:36

yeah it isnt working, im guessing because the text is different

Amsterdamn

2012-08-18 05:30:26

so does anyone know how to make a dropper procedure? one for a private server?

CephaXz

2012-08-18 05:34:39

When you right click on floor, does the charm name has different text color than other items?

Amsterdamn

2012-08-18 05:43:54

nope it doesnt. This is what it looks like:


CephaXz

2012-08-18 05:47:05

Does it always only drop that 2 items?

Amsterdamn

2012-08-18 05:48:21

nope, it sometimes drops the charm by itself or it drops a noted item with it. The noted item is always random

CephaXz

2012-08-18 05:54:03

That sucks, everything is just hard to work with a private server. That's why I hate making scripts for private servers lol.

What about making a DTM of the option, making the script to find for the DTM which is the option to pick up charms after the right click? Can't think of some other way now.

Amsterdamn

2012-08-18 05:58:23

i'm fine with picking up the noted stuff because I'm not that familiar yet with dtm's. But if theres a way to detect that my inv is full and begin to drop stuff, itll be great! but like it was said earlier, it might be hard for a private server

riwu

2012-08-18 05:58:34

Made this just for you :sasmokin:
You will have to add in and edit all the coordinates urself.
If this is too complicated for you, go read up some tutorials.

program new;
{$i SRL/srl.simba}

procedure DropInv;
var
InvBoxPS: TBoxArray;
i,x,y: Integer;
begin
InvBoxPS:=[IntToBox(xs,yx,xe,ye),IntToBox(xs,yx,xe,ye),IntToBox(xs,yx,xe,ye)];
//add in all the boxes of the inv slot that you want it to drop. Replace xs,yx,xe,ye with the boundaries of the box

for i:=0 to High(InvBoxPS) do
begin
if FindColor(x, y, srl_outline_black, InvBoxPS[i].x1, InvBoxPS[i].y1, InvBoxPS[i].x2, InvBoxPS[i].y2) then
//im assuming the private server items have 'srl_outline_black' too, if not change the color
begin
Mouse(RandomRange(InvBoxPS[i].x1,InvBoxPS[i].x2), RandomRange(InvBoxPS[i].y1,InvBoxPS[i].y2),0,0,false);
GetMousePos(x,y);
Mouse(x+50,y+50,2,2,true); //change that 50 to the distance b/w the click and the drop option
end;
end;
end;

begin
MouseSpeed:=20;
DropInv;
end.

EDIT: you may be able to get the coordinates by getting the whole inventory box, then dividing the difference in x by 4, and y by 7. (i.e. like drawing a grid of 28 equally sized small boxes in the big inv box)

putonajonny

2012-08-18 05:59:21

From: Amsterdamn
so does anyone know how to make a dropper procedure? one for a private server?


Can you post a high quality screenshot of you right clicking on an item and then I can…

Amsterdamn

2012-08-18 06:33:10

yeah riwu im gonna need to go over some tuts to understand that. But i have edited abit of it and putonajonny i inboxed you

Amsterdamn

2012-08-18 06:50:57

yayyyy i got your script to work riwu, thank you very much!! and thank you to everyone else on the feedback, you all helped!! :)