$spawn(id,hp,pct) doesnt seem to work

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

User avatar
Undies
a ghoul
a ghoul
Posts: 94
Joined: Mon Oct 20, 2003 9:12 pm

$spawn(id,hp,pct) doesnt seem to work

Post by Undies » Tue Nov 04, 2003 8:06 am

If I do

/target pc @MasterName
/varset MasterID $target(id)

then later (inside a loop)

/if n $spawn(@MasterID,hp,pct)<20

it only seems to work if the PC is targeted. If the PC is not targeted the HP value is never updated.

Is there any way of getting this to work without specifically targetting @MasterName?

eg.

/target pc @MasterName
/if $target(hp,pct)<20

would do what I want, but I get all this targetting spam on the telnet link which I would prefer to avoid.

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

Post by LordGiddion » Tue Nov 04, 2003 8:55 am

Nope no way to do it, server doesn't send hp updates for non-group members unless you have them targeted.

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 Nov 04, 2003 10:40 am

Does this mean that every time you target something, it gets sent to the server or does the client request info about a particular spawn (your target)? Seems to me that you can target stuff a lot faster than you could send the packets to the server, that's why I'm thinking the latter.

If it is the former wouldn't the method of searching for spawns by '/target next' that I've seen many macros use be a bad thing (pretty easy to detect)?

EqMule
Developer
Developer
Posts: 2697
Joined: Fri Jan 03, 2003 9:57 pm
Contact:

Post by EqMule » Tue Nov 04, 2003 11:13 am

every time you target something its ID is sent to the server. If you loose your target its reprted as well.
My status o/
If you like MQ2 and would like to contribute, please do. My goal is 25 donations per month.
So far I've received Image donations for this month's patches.

Bitcoin: 1Aq8ackjQ4f7AUvbUL7BE6oPfT8PmNP4Zq
Krono: PM me.
I can always use characters for testing, PM me if you can donate one.