Corpse NO DROP items

Need some help with that macro you're working on or aren't quite sure how to get your macro to do something? Ask here!

Moderator: MacroQuest Developers

NotSoCSharp
a ghoul
a ghoul
Posts: 85
Joined: Sat Oct 25, 2003 10:48 am

Corpse NO DROP items

Post by NotSoCSharp » Fri Jan 30, 2004 11:56 am

Is there any way to tell if an item on a corpse is NO DROP before you loot it.

I want my bots to loot corpses but don't want them to loot an item if it is NO DROP.

Any ideas?

Thanks!

Preocts
a snow griffon
a snow griffon
Posts: 312
Joined: Thu Jan 29, 2004 1:02 pm

Indeed

Post by Preocts » Sat Jan 31, 2004 10:28 am

Having the $item var work with the corpse loot window would be nice. Working on an LDON script that includes a fast loot sub and really really don't want to be looting Augments quickly :wink:

Been searching the forums for about an hour now, filing through macros and more macros. Will keep at it until I can't stay awake anymore.

ionsf
a ghoul
a ghoul
Posts: 94
Joined: Wed Jan 14, 2004 10:19 pm

Post by ionsf » Sat Jan 31, 2004 12:27 pm

I have an idea of another way to look at it...

Make sure you have it prompt you to loot nodrop... Then make script try to loot it. Window will pop up asking if you want to loot. Make it say NO.
Then have script let you know that it was NO-DROP.

Preocts
a snow griffon
a snow griffon
Posts: 312
Joined: Thu Jan 29, 2004 1:02 pm

That could work.

Post by Preocts » Sat Jan 31, 2004 12:59 pm

Make sure you have it prompt you to loot nodrop... Then make script try to loot it. Window will pop up asking if you want to loot. Make it say NO.
Then have script let you know that it was NO-DROP.
Interesting... Don't know if there is a way to check for the Loot No Drop window. I'll keep looking into this and post my findings.

SomeEqDude
orc pawn
orc pawn
Posts: 26
Joined: Sun Dec 07, 2003 6:44 am

Post by SomeEqDude » Sat Jan 31, 2004 6:46 pm

Left click loot.
If cursor contains item -- autoinv it
If curssor does not contain loot -- It's nodrop, stop lootin.

Mckorr
Developer
Developer
Posts: 2326
Joined: Fri Oct 18, 2002 1:16 pm
Location: Texas

Post by Mckorr » Mon Feb 02, 2004 2:27 pm

There is a way to check for the existence or lack there of of any window. Unfortunately it's source code, not macro. Shouldn't be too hard to add an extra parameter or three to check for this kind of thing though....

Preocts
a snow griffon
a snow griffon
Posts: 312
Joined: Thu Jan 29, 2004 1:02 pm

Well, there it is then.

Post by Preocts » Mon Feb 02, 2004 4:22 pm

Left click loot.
If cursor contains item -- autoinv it
If curssor does not contain loot -- It's nodrop, stop lootin.
This is basically what I ended up doing. Small delay with an incrementing variable worked for a 'Timeout' factor. Basically covered the problem of loot no drops and Lore items.

Problem with the "if cursor contains item" check is when you loot a Lore item you already have. Items disappears and your loop is sitting and spinning.

Running a test of my code now, will post it in Snippets section as soon as I have it working. :)