SRL Archive - OSR Help

How to drop logs


Benny

2012-06-22 12:38:23

Hey guys i need a drop logs thing and i can't figure it out as i haven't learnt DTMs.

Is there a way do drop logs without using DTMs?

ps. I'm using teaks so yeah

Many thanks

Harry

2012-06-22 12:41:21

DropItem(i: slot);

Based Lord

2012-06-22 12:42:02

http://docs.villavu.com/srl-5/inventory.html
Has multiple ways of dropping things :)

YoHoJo

2012-06-22 13:20:18

Check out my video tutorial on DTMs!
That's how I would do it, with DTMs!
YoHoJoSRL is the channel name, it's posted in tut section here too.

Tniffoc

2012-06-22 13:31:59

If you really, really, really, hate DTMs then someone (Nava2?) had this cool way of just counting the black border pixels to identify inventory objects. It was pretty sweet.

But, to be honest, outside of a select few applications, DTMs will still be the best method for this.

Benny

2012-06-22 13:33:11

At the moment all I'm looking for is a drop all function that would clear inventory except for slot one.

Not sure how to get that to work

Tniffoc

2012-06-22 13:36:49

Well, it is more robust to use a DTM to search for the thing that you don't want to drop then drop everything except for that, but for learning purposes, hard-coding in the inventory slot to ignore is probably fine. This function probably suits your needs perfectly.

http://docs.villavu.com/srl-5/inventory.html#dropallexcept

EDIT:

If you want to simplify your use of DTMs, this might help!

http://docs.villavu.com/srl-5/inventory.html#dropitemsbyidentifier

Nebula

2012-06-22 13:41:56

Or you could just use DropAll…

Benny

2012-06-22 13:43:45

Ideally yes but what about wc pures?

Tniffoc

2012-06-22 13:45:30

From: -Benny
Ideally yes but what about wc pures?


Please read my post. It gives you the opportunity to not drop your axe. Documentation is your friend, believe it or not.

Nebula

2012-06-22 13:46:12

DropAllExcept.

Runaway

2012-06-22 14:28:01

If you're interested in DTM-like item finding without having to use DTM's check out the FilterTPASegment in my signature :)

Mark

2012-06-22 14:53:01

On phone so only short i used to use this
For dropping

Somet like this can't remebr atm
For I:= 2 to 28 do
If existitem(I)then
Begin
Cb:= Ib.getinvent(I);
Mouse(cb.box.x1,cb.box.y1,cb.box.x2,cb.box.y2,Mouse_Right );
ChooseOption('rop');
End;

Always worked for me

Benny

2012-06-22 14:55:27

From: CRU1Z1N
On phone so only short i used to use this
For dropping

For I:= 2 to 28 do
If existitem(I)then
Begin
Mouse( bla bla )
ChooseOption('rop')
End;

Always worked for me


Sweet thanks!!