Feat Req: /target npccorpse

A forum for feature requests/discussions and user submitted patches that improve MQ2

Moderator: MacroQuest Developers

LordGiddion
a snow griffon
a snow griffon
Posts: 352
Joined: Sat Sep 13, 2003 6:12 pm
Contact:

Feat Req: /target npccorpse

Post by LordGiddion » Sun Oct 12, 2003 9:06 am

Is it possible to have a parameter for /target like npccorpse that will target the nearest corpse not belonging to a PC?
/target corpse targets the nearest corpse but might get pc corpses if one is the closest corpse.

kagonis
a hill giant
a hill giant
Posts: 228
Joined: Sat May 24, 2003 8:48 pm

Post by kagonis » Sun Oct 12, 2003 6:32 pm

/target corpse npc

Plazmic
The One
The One
Posts: 800
Joined: Fri Jun 14, 2002 12:31 am
Contact:

Post by Plazmic » Mon Oct 13, 2003 3:42 am

Nope, sorry... I haven't seen a way to know if the corpse came from a PC or an NPC ;(
- Plazmic

honduras
orc pawn
orc pawn
Posts: 14
Joined: Sat Aug 30, 2003 5:22 pm

Post by honduras » Mon Oct 13, 2003 5:57 am

normally would just

/target corpse <name of corpse>

eg /target corpse spider |would target any corpse that belong to a velium spider, stupid spider, or dumb spider and nothing else that does not contain spiders.

LordGiddion
a snow griffon
a snow griffon
Posts: 352
Joined: Sat Sep 13, 2003 6:12 pm
Contact:

Post by LordGiddion » Mon Oct 20, 2003 7:24 pm

Is the corpse timer on a corpse available to your client before you click on it? Odviously corpse timer on a pc corpse would return a different value.

User avatar
Imperfect
Macro Author
Macro Author
Posts: 319
Joined: Fri Jun 14, 2002 1:52 am

Post by Imperfect » Mon Oct 20, 2003 7:52 pm

If corpse level is 55 or greater and is less than 30 minutes odds are it is an npc corpse or if corpse is 54 or less and the corpse timer is less than 7 minutes it is most likelly an npc corpse again.

By no means would this be accurate but, it would work in the vast majority of situations.

LordGiddion
a snow griffon
a snow griffon
Posts: 352
Joined: Sat Sep 13, 2003 6:12 pm
Contact:

Post by LordGiddion » Mon Oct 20, 2003 9:03 pm

Also just thought about this, PC corpses have 2 timers, rot and rez, NPC don't - well they have 2 loot and rez but they are odviously different.

Lax
We're not worthy!
We're not worthy!
Posts: 3524
Joined: Thu Oct 17, 2002 1:01 pm
Location: ISBoxer
Contact:

Post by Lax » Mon Oct 20, 2003 9:14 pm

When you check rez timers they come back as a result of sending /consider to the server, I don't believe theyre in the struct
Lax Lacks
Master of MQ2 Disaster
Purveyor of premium, EULA-safe MMORPG Multiboxing Software
* Multiboxing with ISBoxer: Quick Start Video
* EQPlayNice, WinEQ 2.0

blakbelt
a lesser mummy
a lesser mummy
Posts: 70
Joined: Wed Aug 27, 2003 12:40 pm
Location: Scotland UK

Post by blakbelt » Tue Oct 21, 2003 4:15 am

Imperfect wrote:If corpse level is 55 or greater and is less than 30 minutes odds are it is an npc corpse or if corpse is 54 or less and the corpse timer is less than 7 minutes it is most likelly an npc corpse again.
This wouldnt work on any raid i have been on :( everyone is 65 and generally we are back up and running within 10 mins from a wipe.
Blakbelt

wassup
Official Guardian and Writer of TFM
Official Guardian and Writer of TFM
Posts: 1487
Joined: Sat Oct 26, 2002 5:15 pm

Post by wassup » Tue Oct 21, 2003 4:23 am

blakbelt wrote:
Imperfect wrote:If corpse level is 55 or greater and is less than 30 minutes odds are it is an npc corpse or if corpse is 54 or less and the corpse timer is less than 7 minutes it is most likelly an npc corpse again.
This wouldnt work on any raid i have been on :( everyone is 65 and generally we are back up and running within 10 mins from a wipe.
He is talking about when you right click a corpse.

If it is a PC corpse and you right click it/con it, you get a message about how long the corpse has to be ressed.

An NPC corpse doesn't return this message when you right click it. It gives you the amount of time left to loot.

Plazmic
The One
The One
Posts: 800
Joined: Fri Jun 14, 2002 12:31 am
Contact:

Post by Plazmic » Tue Oct 21, 2003 9:17 am

I'm not 100% sure about this yet, but it appears $target(hp,cur) of a PC's corpse returns a negative value, while an NPC corpse returns zero.
- Plazmic

LordGiddion
a snow griffon
a snow griffon
Posts: 352
Joined: Sat Sep 13, 2003 6:12 pm
Contact:

Post by LordGiddion » Tue Oct 21, 2003 9:45 am

Thanks for the hit Plaz I'll try that.

User avatar
blueninja
a grimling bloodguard
a grimling bloodguard
Posts: 541
Joined: Thu Aug 28, 2003 7:03 am
Location: Göteborg, Sweden

Post by blueninja » Tue Oct 21, 2003 11:07 am

This seems to work most of the time but I've seen instances where it doesn't. From the log of my macro (pc name changed):
[2003/10/21 15:35:01] orc_centurion's_corpse0 has 10 hp
[2003/10/21 15:38:11] Player's corpse0 has 32 hp
This is out of some 30-40 corpses that were in the zone at that time (about 7-8 were pc corpses).

Looking through this logfile I just noticed something else, it seems npc corpses have an underscore before the word corpse and player corpses have a space, like in the quoted lines. Player corpses are named "Player's corpseX" while mob corpses are named "mob's_corpseX". This holds true for all the mobs in my log but perhaps it won't if the mob's name doesn't have any spaces. Someone go kill lockjaw and see if the corpse is named "lockjaw's_corpse0" or "lockjaw's corpse0" :) ..

User avatar
Imperfect
Macro Author
Macro Author
Posts: 319
Joined: Fri Jun 14, 2002 1:52 am

Post by Imperfect » Tue Oct 21, 2003 10:41 pm

Considering you are on a raid (not taking into Plaz's ideas about corpses and hp values) every player corpse would have a greater than 30 minute rot timer

User avatar
blueninja
a grimling bloodguard
a grimling bloodguard
Posts: 541
Joined: Thu Aug 28, 2003 7:03 am
Location: Göteborg, Sweden

Post by blueninja » Mon Oct 27, 2003 1:31 pm

Plazmic wrote:I'm not 100% sure about this yet, but it appears $target(hp,cur) of a PC's corpse returns a negative value, while an NPC corpse returns zero.
Took some time before I found any, but all of a sudden I find ~10 pc corpses at the same time that had 0 hp (at BoT gy). Seems this doesn't work :(