Macro requests from before the user variable changes that broke all macros
Moderator: MacroQuest Developers
-
Jojongua
- decaying skeleton

- Posts: 7
- Joined: Thu Dec 05, 2002 3:16 pm
Post
by Jojongua » Sat Dec 21, 2002 2:44 pm
Hi guys. I'm having a lil trouble getting started with a section of macro I am working on right now. Was hoping yall might be able to help.
I want to cycle through every mob in the zone from level (x) to level (y)
Target first mob
If hp's == 100 percent
Then /con mob
Else move to next mob
rinse and repeat
Any ideas how this could be written? Thanks in advance
Jojongua
-
YKW-28983
- a hill giant

- Posts: 252
- Joined: Sun Dec 01, 2002 11:37 pm
Post
by YKW-28983 » Sat Dec 21, 2002 10:33 pm
why would you want to target every mob in the zone? wouldn't you just want to target something within a certain rage, zip lining to a mob will look strange and may cause a petition if you keep doing it over and over again.
-
Imperfect
- Macro Author

- Posts: 319
- Joined: Fri Jun 14, 2002 1:52 am
Post
by Imperfect » Sat Dec 21, 2002 10:58 pm
Actually targeting mobs that are too far away will give inaccurate HP levels. SO all in all this is a decent idea it just doesn't work in practice.
-
Jojongua
- decaying skeleton

- Posts: 7
- Joined: Thu Dec 05, 2002 3:16 pm
Post
by Jojongua » Sun Dec 22, 2002 5:46 am
Imperfect - You bring up a very valid point, and I may want to leave that check out.
YKW - Whoever said I was going to go anywhere near the mob? Mwuhahahahah...
/em thinks he shouldn't post after drinking.
Jojongua
-
L124RD
- Site Admin

- Posts: 1343
- Joined: Fri Jun 14, 2002 12:15 am
- Location: Cyberspace
-
Contact:
Post
by L124RD » Mon Dec 23, 2002 12:56 am
Salutations,
this goes back towondering if multiple notid's work... I really need to get on EQ and try...
-
rizwank
- Huggle Police

- Posts: 524
- Joined: Tue Jul 23, 2002 12:07 am
-
Contact:
Post
by rizwank » Tue Dec 24, 2002 4:29 am
"Whoever said I was going to go anywhere near the mob? Mwuhahahahah... "
want to explain that?
#macroquest op
Macroquest Official Documentarion
Macroquest Board Moderator
All around cool guy
[img]http://medicomuerte.users.btopenworld.com/images/fairy_bounce08.gif[/img]
-
lifewolf
- a ghoul

- Posts: 143
- Joined: Fri Oct 18, 2002 6:29 pm
Post
by lifewolf » Tue Dec 24, 2002 8:51 pm
Imperfect wrote:Actually targeting mobs that are too far away will give inaccurate HP levels. SO all in all this is a decent idea it just doesn't work in practice.
You can target an NPC, hit tab, hit tab (Cycle from mob target to yourself to the mob) and its health will start to drop down to where it is... Tab twice again and its health will be at the proper level.
Does take time though =/
-
lifewolf
- a ghoul

- Posts: 143
- Joined: Fri Oct 18, 2002 6:29 pm
Post
by lifewolf » Tue Dec 24, 2002 8:55 pm
Jojongua wrote:I want to cycle through every mob in the zone from level (x) to level (y)
Target first mob
If hp's == 100 percent
Then /con mob
Else move to next mob
...
Jojongua
held.mac from \Release\Macros wrote:
Code: Select all
#turbo
Sub Main
/varset l0 $id(0)
:Loop
/if "$spawn($l0,held,right)$spawn($l0,held,left)$spawn($l0,held,shield)"=="NULLNULLNULL" /goto :Nothing
/mqlog $spawn($l0,name,clean):
/if "$spawn($l0,held,right)"!="NULL" /mqlog R: $spawn($l0,held,right)
/if "$spawn($l0,held,left)"!="NULL" /mqlog L: $spawn($l0,held,left)
/if "$spawn($l0,held,shield)"!="NULL" /mqlog S: $spawn($l0,held,shield)
/mqlog
:Nothing
/varset l0 $spawn($l0,next)
/if $l0>0 /goto :Loop
/return
-
Jojongua
- decaying skeleton

- Posts: 7
- Joined: Thu Dec 05, 2002 3:16 pm
Post
by Jojongua » Thu Dec 26, 2002 12:42 am
Life - I am having trouble using this code. I think my problem is a lack of understanding regarding the left, right, shield type of stuff.
Anyone that can explain $spawn($l0,held,right)... or more importantly how it is used?
Riz - I very rarely care to explain myself, but I'm more or less playing with macro's and arrays. Or trying to.
L124Rd - I love to see your brain at work bud. any luck with multiple notid's?
Jojongua
-
L124RD
- Site Admin

- Posts: 1343
- Joined: Fri Jun 14, 2002 12:15 am
- Location: Cyberspace
-
Contact:
Post
by L124RD » Thu Dec 26, 2002 4:07 am
Salutations,
haven't tried... I will tomorrow, tomorrows plan:
- get up
run around like an idiot
eat break fast
sit down at comp
start playing everquest
realize I haven't taken a shower yet
take a shower
get dressed
sit down at comp
slack off for 10 hours ( www.sluggy.com )
forget to do multiple notid's
sleep
any additions to this list will be added as they come, but thats my plan right now :p
-
SingleServing
- a hill giant

- Posts: 195
- Joined: Tue Dec 17, 2002 11:00 pm
Post
by SingleServing » Thu Dec 26, 2002 4:51 am
L124RD wrote:Salutations,
forget to do multiple notid's
I doubt multiple notid's works as MQ handles it...havn't found a need to test it out tho...in the case that it does NOT work
The best way to accomplish such a task I am thinking would be to
clear alert list
:loop
do action (who/target) with not alert argument
add result to alert
goto loop
[color=DarkBlue]Everything,[/color] [color=DarkBlue][b]is[/b][/color] [color=black]black[/color] [color=DarkBlue]and[/color] [color=white]white[/color][color=DarkBlue], when you zoom out it looks[/color] [color=gray]grey[/color][color=DarkBlue].[/color]
-
L124RD
- Site Admin

- Posts: 1343
- Joined: Fri Jun 14, 2002 12:15 am
- Location: Cyberspace
-
Contact:
Post
by L124RD » Thu Dec 26, 2002 2:20 pm
Salutations,
wow, very good idea... testing notid's now, then we'll know... both our ways work, but you're right, yours is much prettier...
-
L124RD
- Site Admin

- Posts: 1343
- Joined: Fri Jun 14, 2002 12:15 am
- Location: Cyberspace
-
Contact:
Post
by L124RD » Thu Dec 26, 2002 2:43 pm
Salutations,
nope, last notid is the one its uses... alerts would work though, good thinkin'
-
SingleServing
- a hill giant

- Posts: 195
- Joined: Tue Dec 17, 2002 11:00 pm
Post
by SingleServing » Thu Dec 26, 2002 4:32 pm
Must be a reason so many people are interested in this... hmm
[color=DarkBlue]Everything,[/color] [color=DarkBlue][b]is[/b][/color] [color=black]black[/color] [color=DarkBlue]and[/color] [color=white]white[/color][color=DarkBlue], when you zoom out it looks[/color] [color=gray]grey[/color][color=DarkBlue].[/color]
-
Jojongua
- decaying skeleton

- Posts: 7
- Joined: Thu Dec 05, 2002 3:16 pm
Post
by Jojongua » Fri Dec 27, 2002 3:39 am
First off, you have all been incredibly helpful.
Second... I've got another question for ya. How can I add my target to an alert list? I just read a great post by L124RD regarding alerts, but didn't see a command that would add my target to the alert. Thanks in advance.
Jojongua