SRL Archive - Reflection Help

DebugTItemArray


Sabzi

2009-03-29 07:34:54

So I want to use
DebugTItemArray(arrTI : TItemArray);
to get the informations about items in my inventory. And also to learn some scripting.
I think I am almost there but I can't make it working. I have searched but I couldn't find how to do this so pls help me. Maybe I am blind :P.

Method

2009-03-29 13:21:40

You can use it with any function that returns a TItemArray or with one you construct yourself. You can do something like DebugTItemArray(GetInventoryItems); to output the contents.

Sabzi

2009-03-29 13:25:28

I did't think that it is so simple. I tried loops and other more complicated things. I have to learn thinking simple. But thx this works.

Nava2

2009-03-29 13:26:11

Hehe, I wrote it to be easy to use, since RSBots item ID's like to be different. :(