Getting item link information

Need help with a macro you are writing? Ask here!

Moderator: MacroQuest Developers

danilo
decaying skeleton
decaying skeleton
Posts: 2
Joined: Sun May 16, 2004 12:11 pm

Getting item link information

Post by danilo » 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:

Code: Select all

Sub Main(item it)
...
but it seems I'm only getting a string passed to me. Is there a way to do this?

Chill
Contributing Member
Contributing Member
Posts: 435
Joined: Fri May 07, 2004 5:06 pm
Location: Erie, PA

Post by Chill » Mon May 17, 2004 8:26 pm

look at http://macroquest2.com/phpBB2/viewtopic.php?t=6879 its the only post that even comes to mind.

If that doesnt help, ask ml2517 ... nicely :-)