Flight
2011-02-25 09:34:01
This is kinda hard for me to explain so I'll give an example.
In my script, I use FindDTM to determine if I have a certain item within my inventory tab. I want to use that information to determine in which inventory slot it's in in order to use "Dropitem(i)", and "i" being the item's DTM that was located.
I haven't looked into how SRL determines inventory slots, maybe it's based on a set X/Y parameter, if so then could you not grab the x/y coords of the DTM and match it to the inventory's slot x/y parameter to determine which slot it's in?
Also, same question but for bitmaps as well.
In my script, I use FindDTM to determine if I have a certain item within my inventory tab. I want to use that information to determine in which inventory slot it's in in order to use "Dropitem(i)", and "i" being the item's DTM that was located.
I haven't looked into how SRL determines inventory slots, maybe it's based on a set X/Y parameter, if so then could you not grab the x/y coords of the DTM and match it to the inventory's slot x/y parameter to determine which slot it's in?
Also, same question but for bitmaps as well.