SRL Archive - Help

Inventory Slot questions


schnubbel15

2012-12-04 18:11:07

yo,
atm i use the FindObjEx function combinied with MIX1,MIY1, MIX2, MIY2 thing.
i wonder if theres a function like the banking function where u can judt say which slot to interact with?

DannyRS

2012-12-04 18:14:00

Probably somewhere, but if its a single slot, you can get the co-ords yourself in like 5 seconds lol :P, if you want to find a single item in your inv, look at using DTMs, theres a bunch of tutorials in the section, then just input the MIX1 etc etc

schnubbel15

2012-12-04 18:14:53

ye i know but i need every slot :P


EDIT: i need a function which goes through the whole inventory, when i use DTM'S it will also hovers over every single slot :(

DannyRS

2012-12-04 18:18:31

I cant remember the Y value, but inventory slots in RS are exactly 42 pixels apart horizontally so you can write a for loop to do something for every slot pretty easily that way

Dynamite

2012-12-04 18:19:34

What are you trying to achieve?

Rezozo

2012-12-04 18:26:37

What are you trying to do. If you need to deposit certain Items then:
 
if ExistsItem(i) then
DropItem(i);

If you just want to click it, then :
 
MouseItem(i, true);

This is all assuming you assign a number where 'i' is.

What exactly are you trying to do?
~Rez

schnubbel15

2012-12-04 18:26:43

EDIT: anyway Rezozo, that MouseItem was what i was looking for thanks :)

EtherFreak

2012-12-04 20:49:13

Invmouse(slot,action) is another. Look in the inventory sells include.

Rezozo

2012-12-04 21:42:29

From: schnubbel15
EDIT: anyway Rezozo, that MouseItem was what i was looking for thanks :)


Glad you got it.
~Rez