What am i missing?

Need help running MacroQuest2? Ask your questions about how to get things to work on your computer.

Moderator: MacroQuest Developers

User avatar
n00bCoder
a lesser mummy
a lesser mummy
Posts: 30
Joined: Tue Jun 29, 2004 5:07 pm

What am i missing?

Post by n00bCoder » Sun Oct 24, 2004 3:43 am

Basically, i stick in a name, go about my buisness and if i ever am in the same zone as specified critter, it goes berzerk till i kill and loot it... At least, thats what it's supposed to do.... Just a spawn notification, crude but effective, but it doesnt seem to work anymore. Any ideas?

Code: Select all

sub main
:loop
/if (${Spawn[Creature].ID}>0) /popup Destroy!
/target Creature
/delay 5
/face
/goto :loop
/endmacro
end
I would like to get this working, if you have any alternatives i would not mind them either, but i would like to get this one up and running. Thanks!
Live forever, or die trying!
(and if it all does go to hell, ya just respawn!)

User avatar
ieatacid
Developer
Developer
Posts: 2727
Joined: Wed Sep 03, 2003 7:44 pm

Post by ieatacid » Sun Oct 24, 2004 4:36 am

Assuming "Creature" is the name of the mob you're talking about:

Code: Select all

Sub Main
:loop
/if (${Spawn[Creature].ID}) {
   /popup Destroy!
   /target Creature
   /delay 5
   /face
   }
/goto :loop
/return

User avatar
Fluffy
a ghoul
a ghoul
Posts: 81
Joined: Sun Aug 22, 2004 5:08 pm

Re: What am i missing?

Post by Fluffy » Sun Oct 24, 2004 5:29 am

n00bCoder wrote:Basically, i stick in a name, go about my buisness and if i ever am in the same zone as specified critter, it goes berzerk till i kill and loot it... At least, thats what it's supposed to do.... Just a spawn notification, crude but effective, but it doesnt seem to work anymore. Any ideas?

Code: Select all

sub main
:loop
/if (${Spawn[Creature].ID}>0) /popup Destroy!
/target Creature
/delay 5
/face
/goto :loop
/endmacro
end
I would like to get this working, if you have any alternatives i would not mind them either, but i would like to get this one up and running. Thanks!
Are you running this like /mac mymacro "An Ancient Cyclops"??

If so then yes this will not work.. I dont know how this could have ever worked... You would need to parse through the whole zone... And or just try to target it over and over again until it poped up.. Explain in detail what this was supposed to have done.. And I can help out..

User avatar
n00bCoder
a lesser mummy
a lesser mummy
Posts: 30
Joined: Tue Jun 29, 2004 5:07 pm

Post by n00bCoder » Sun Oct 24, 2004 6:56 am

I see! thanks! i'll test it later.. so basically i have to put the commands in {} things? gothca...
Live forever, or die trying!
(and if it all does go to hell, ya just respawn!)