Getting item link information
Posted: Mon May 17, 2004 8:14 pm
Hi all! I'm trying to write some macros for keeping track of loot, and my idea was to do things like:
/macro loot <itemlink>
and this would insert information into a database that <target> won the item <itemlink>.
Ideally, I want to grab the internal ID of this item, as well as the name, such that I can generate links to these items later when I retreive the info from the database. However, I can't seem to get the parameter as an 'item' type, it's passed in as a string (with the ID stripped off). I've tried:
but it seems I'm only getting a string passed to me. Is there a way to do this?
/macro loot <itemlink>
and this would insert information into a database that <target> won the item <itemlink>.
Ideally, I want to grab the internal ID of this item, as well as the name, such that I can generate links to these items later when I retreive the info from the database. However, I can't seem to get the parameter as an 'item' type, it's passed in as a string (with the ID stripped off). I've tried:
Code: Select all
Sub Main(item it)
...