A forum for feature requests/discussions and user submitted patches that improve MQ2
Moderator: MacroQuest Developers
-
merkzu
- a ghoul

- Posts: 99
- Joined: Wed May 14, 2003 2:08 pm
Post
by merkzu » Wed May 21, 2003 11:50 pm
I noticed most (all?) the autohunters just use /target nopcnear <radius> for finding targets, but this misses mobs that people just happen to be standing by, and targets mobs that people are kiting. How difficult would it be to put in an /ignore function that makes /target "forget" about a mob?
With that you could just do something like:
:target
/target npc giant
/varset kscheck $target(id)
/assist
/if $target(id)==$kscheck /goto :killit
/ignoreid $kscheck
/goto :target
Now it never killsteals and doesnt get confused if someone is near a mob.
-
dont_know_at_all
- Developer

- Posts: 5450
- Joined: Sun Dec 01, 2002 4:15 am
- Location: Florida, USA
-
Contact:
Post
by dont_know_at_all » Wed May 21, 2003 11:58 pm
make an array of targetids you wish to ignore and check them yourself.
-
TheColonel
- of what?

- Posts: 164
- Joined: Thu Oct 10, 2002 6:34 pm
- Location: Golden, CO
-
Contact:
Post
by TheColonel » Sat May 24, 2003 4:58 pm
Probably the wrong place for it, but couldn't you just check to see what the target's target is? And if it' a PC don't attack? I don't see anything in the variable's definition but I know it's in the struct... or you can /ass it. (assist)
edit: I don't actually see it in the spawninfo, and don't have the ability to look for something like that, sounds like I need to pull my crap together... but there's a fair amount of unknowns there, one's gotta be a pointer to the target or the spawn ID or WCS a name.. how else could you /assist something?
Hell hath no fury like a woman's scorn for EQ.
-==(UDIC)==-
-
Amadeus
- The Maestro

- Posts: 2036
- Joined: Sat Jun 29, 2002 3:51 pm
Post
by Amadeus » Sat May 24, 2003 8:38 pm
I'll try to go through spawninfo and find the 'target' pointer at some point in the next few days. I remember wondering about this myself a lonooong time ago, and the logic you speak does hold.
-
zedisdeadbaby
- a ghoul

- Posts: 83
- Joined: Sun Nov 03, 2002 4:24 pm
Post
by zedisdeadbaby » Sun May 25, 2003 2:36 am
I've found the best anti KS method is to check the target's hitpoints. If it's less than 100% forget it.
You can also tell if a PC has agro by checking the heading of the mob. If it's exactly facing a PC then you know there's a good chance it's enganged.
EDIT: Sorry as usual I didnt read the question.
-
Valerian
- a grimling bloodguard

- Posts: 709
- Joined: Sun Jul 28, 2002 3:29 am
Post
by Valerian » Sun May 25, 2003 3:39 am
/assist queries the server for the target's target, which then replies to your client to set your target, or that's how I understood it anyway.
-
anOrcPawn00
- a lesser mummy

- Posts: 41
- Joined: Sat May 10, 2003 6:15 am
Post
by anOrcPawn00 » Sun May 25, 2003 3:46 am
To an extent any form of targetting (innate to EQ at least) transmits something to/from the server. One of the SEQ options allows you to set it to highlight your target (happens automatically, so there must be some info about your switch of targets in the network transfers)
The question is if the data is store in memory or just requested on a need basis. Anyone who can log in atm wanna pull their network cable and see if /assist still works?
-
merkzu
- a ghoul

- Posts: 99
- Joined: Wed May 14, 2003 2:08 pm
Post
by merkzu » Mon May 26, 2003 7:48 pm
i think this works for what i was trying to do but havnt tried it yet
Code: Select all
:targloop
/alert add 1 npc kobold
/target npc alert 1 noalert 2
/varset v1 $target(name)
/assist
/if $target(name)==$v1 /goto :killit
/alert add 2 $target(name)
/goto :targloop
just checking health isnt good as snare etc dont do damage
the important part is to make sure if the mob is targeting a pc that it gets ignored on the next target attempt, so the script doesnt sit there targetting the same mob over and over until its dead. if its got a pc target you want to skip it next time
-
zedisdeadbaby
- a ghoul

- Posts: 83
- Joined: Sun Nov 03, 2002 4:24 pm
Post
by zedisdeadbaby » Mon May 26, 2003 9:14 pm
Oh yes. Also another thing I've ran across rarely is the case when the target is charmed.
There is a charmed byte in the spawn structure but it wasn't correct.