pet help

Need help with a macro you are writing? Ask here!

Moderator: MacroQuest Developers

aristocle
orc pawn
orc pawn
Posts: 27
Joined: Mon Dec 13, 2004 3:54 pm

pet help

Post by aristocle » Wed Dec 15, 2004 10:45 pm

i am tring to get my mac to resummon a pet after it dies but am having no luck if anyone can see what i am doing wrong please inform me

Code: Select all

#event   nopet    #*#dont have a pet#*#
i get spammed nonstop with you dont have a pet to command so i choose that as a event if this is my problem can anyone suggest a differnt way of doing the event

Code: Select all

Sub Event_nopet

 /if (${engaged}) /return
 /if (${Command.Equal[pet]} && ${SummonPet}==0) { 
      /varset SummonPet TRUE 
      /echo Summoning Pet:   ${SummonPet} 
   } else /if (${Command.Equal[pet]}) { 
      /varset SummonPet FALSE 
      /echo Summoning Pet:   ${SummonPet} 
 /gsay Summoning My Pet
 /gsay Please Dont Pull Till Pet is Ready
 /if (!${Me.Pet.ID} && ${SummonPet} && ${Spell[${SpellPet}].Mana}<=${Me.CurrentMana}) { 
      /call cast ${SpellPet} gem5 25s 
      /echo Buff ${Me.Pet.ID} with ${SpellPet} 
   } 
   /declare i int local 
   /for i 1 to ${SpellPetBuff.Size} 
   /if (!${Me.PetBuff[${SpellPetBuff[${i}]}]} && ${Spell[${SpellPetBuff[${i}]}].Mana}<=${Me.CurrentMana}) { 
      /pet target 
      /delay 2 
      /call cast ${SpellPetBuff[${i}]} gem5 9s          
    } 
   /next i 
/gsay Pets Ready Resume Pulles Now!
/return 

JJ
a hill giant
a hill giant
Posts: 227
Joined: Thu Nov 11, 2004 5:50 am

Re: pet help

Post by JJ » Wed Dec 15, 2004 11:15 pm

aristocle wrote:

Code: Select all

#event   nopet    #*#dont have a pet#*#
Try inside of quotes. Will add more as I read further.

And I am assuming that this isn't all the code and you have the variables declared earlier on in the macro?

Virtuoso65
a hill giant
a hill giant
Posts: 150
Joined: Wed Oct 15, 2003 2:29 pm

Post by Virtuoso65 » Thu Dec 16, 2004 12:11 am

Why not just have a check for ${Me.Pet.ID} to trigger your sub like..

/if (!${Me.Pet.ID}) /call repetsub

aristocle
orc pawn
orc pawn
Posts: 27
Joined: Mon Dec 13, 2004 3:54 pm

Post by aristocle » Thu Dec 16, 2004 2:24 am

doh i forgot the quotes lol will try that first soon as a fix comes out for patch thanks

and yes its just the event/sub for that part of the cript everything else is set it calls pet buffs pet and everything but when pet dies it just spams u dont have a pet to command and starts buffing me over and over cause it cant target pet