Post Reply Home » Forums » Vanguard » VGExtreme General Discussion

Corpse check ! : VGExtreme General Discussion

Posted: November 16th, 2007
User avatar
Total Posts:374 Joined:2005
looking for a way to check if my current target is a corpse !
i want make my loot routine more accurate.

so thx for any examples :)
Posted: November 16th, 2007
User avatar
Premium
Total Posts:6718 Joined:2004
should be able to call target.hp and if the hp is 0?

_________________
Use Search first, ask questions later!
Posted: November 16th, 2007
beergeek
just use a macro with the following:

/targetnextcorpse
/lootall
Posted: November 17th, 2007
User avatar
Total Posts:374 Joined:2005
beergeek wrote:just use a macro with the following:

/targetnextcorpse
/lootall
the point is i want to harvest my death mob.. so normal macro is
/targetnextnode
/autoattack

is now a Node close to my mob is possible my macro try to harvest the Node not the mob.


ok i try the target.hp thing.
if there is a death mob corpse and a plant remains both show with 0% or sometimes with 100% hp... so seems me not the perfect way.
need a save way that my current target is the death corpse from mob and not a remains from plant.

Edit:
i try this:
if (getTargetLevel > 2) then

Plants always lvl 1
and mobs mostly above

so i know my current target must be a death mob.
Posted: November 17th, 2007
beergeek
Since plant nodes have a limited set of names... you could just use something like

if (InStr(getTargetName, "Firegrass") <= 0) AND _
(InStr(getTargetName, "Silkbloom") <= 0) Then
....harvest...
end if
Posted: November 22nd, 2007
User avatar
Total Posts:374 Joined:2005
beergeek wrote:Since plant nodes have a limited set of names... you could just use something like

if (InStr(getTargetName, "Firegrass") <= 0) AND _
(InStr(getTargetName, "Silkbloom") <= 0) Then
....harvest...
end if
ahhh that was my missing Part thx alot :)
Ready to join the community? Click here and see all of the benefits!
blue large dotWho is online
Users browsing this forum: No registered users and 10 guests
Post Reply