SRL Archive - OSR Help

Count a stacked item


Mr. Doctor

2011-07-17 22:03:44

I looked in the Inventory include and didn't find anything that would count the number of a stacked item. If there isn't any, how would I be able to create a function myself?

I'm trying to make the script to detect the number of air runes, to make myself more clear.

Thanks in advance.

Jakkle

2011-07-17 22:08:22

From: Mr. Doctor
I looked in the Inventory include and didn't find anything that would count the number of a stacked item. If there isn't any, how would I be able to create a function myself?

I'm trying to make the script to detect the number of air runes, to make myself more clear.

Thanks in advance.

Reflection is

GetItemStackSizeAt(slot)

Mr. Doctor

2011-07-17 22:14:44

Nothing color related? Something that could read the small font? I could do something else but this would be way shorter, and much easier.

TomTuff

2011-07-17 22:19:38

GetAmount. It asks for coordinate input, so use InvItemToCoords or whatever the func is.

NCDS

2011-07-17 22:28:26

All the stuff your looking for is in Amount.scar, not Inventory. ;)

Flight

2011-07-17 22:31:46

Yeah I think we have runes amount and arrows amount? If not I remember there being a way to search for an amount in an area that you define.

Mr. Doctor

2011-07-17 22:51:22

Thanks everyone. Especially TomTuff. I'm trying to make everything color, first.

@NCDS I wish I could have seen that earlier. I remember there being some sort of file in SRL include and when you open it, it would have sections and you could easy CTRL + F stuff. I tried looking for it before, but I guess I couldn't find it.

NCDS

2011-07-17 22:57:11

From: Mr. Doctor

@NCDS I wish I could have seen that earlier. I remember there being some sort of file in SRL include and when you open it, it would have sections and you could easy CTRL + F stuff. I tried looking for it before, but I guess I couldn't find it.


Open Simba, open a script that includes SRL, right below the function list on the left there is a box to type in. Type any function name and it will show which folder it's located in along with it params. :)

Coh3n

2011-07-18 09:33:19

From: NCDS
Open Simba, open a script that includes SRL, right below the function list on the left there is a box to type in. Type any function name and it will show which folder it's located in along with it params. :)

In addition, you can double click the function in the list and it'll open the file it's in.