Enchanter macro problem.. wont cast items

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

Moderator: MacroQuest Developers

wpgxman
a lesser mummy
a lesser mummy
Posts: 46
Joined: Tue Aug 10, 2004 12:36 pm

Enchanter macro problem.. wont cast items

Post by wpgxman » Mon Jan 03, 2005 1:33 am

I am trying to get Mychant .mac to work .. its in the macros 3 forum, however it will not cast items.. it says casting NULL at target but doesnt cast , only thinks it does. If i take the item, Serpent of Vindication out of its slot , it says item not found.

i am using /call cast "serpent of vindication" item

Can anyone shed any light on this?

Thanks much.

Goofmester1
a hill giant
a hill giant
Posts: 241
Joined: Thu Nov 06, 2003 4:26 am

Post by Goofmester1 » Mon Jan 03, 2005 5:17 am

well I can tell you that the /call cast "item name" item is not a command for the macro in question but for an inc. Either spellcast.inc or spell_routines.inc. Make sure you have a good copy of wich ever the macro wants.

Also I looked at page 1 and 2 of the macro section and didn't see the macro you speak of. Searching for it is more than I really care to do to help right now, a link to it or post on it to get it to top would probly help with helping you.

A_Druid_00
Macro Maker Extraordinaire
Posts: 2378
Joined: Tue Jul 13, 2004 12:45 pm
Location: Rolling on the Lawn Farting

Post by A_Druid_00 » Mon Jan 03, 2005 12:38 pm

IIRC mychant uses spellcast.inc. I converted a copy to use spell_routines.inc a while ago. Here it is. Don't ask me to help customize it for you, but it's mostly working as is.

Code: Select all

| MyChant.mac
| Last Updated: 17-May-2004 by Chill
| A Simple chanter macro to: Tash, Slow, and Nuke single pulls, then check basic buff and boggle when agro.
|
| Usage: /mac MyChant [Main Assist] [Nukes]
|   [Main Assist] will default to the last tank used and stored in the ini file
|   [Nukes] can be 0 for none, 1 for Insanity only, or 2 to chain Insanity and Dementing Visions

#include spell_routines.inc
#include buffbeg.inc
#chat tell
#chat group
#event Damage "#*#hits YOU#*#"

Sub Main
/call BuffBegDeclares
/declare MyTarget       string outer
/declare Nukes          int    outer 2
/declare TargetReturn   string outer
/declare BuffGuy        string outer
/declare MA             string outer
/declare MATarget       int    outer
/declare IniFile        string outer
/declare CheckBuffTimer timer  outer 0
/declare SlowTimer      timer  outer
/declare TashTimer      timer  outer

/varset IniFile "MyChant.ini"

| INI setup variables
/if (${Defined[Param0]}) {
  /ini "${IniFile}" Settings MA ${Param0}
  /varset MA ${Param0}
} else {
  /varset MA ${Ini[${IniFile},Settings,MA,NOTFOUND]}
  /if (${MA.Equal["NOTFOUND"]}) {
    /echo You need to start the macro with /mac MyChant [Main Assist] and generate your .INI file.
    /endmacro
  } else {
    /echo Assisting ${MA}
  }
}
/if (${Defined[Param1]}) {
  /ini "${IniFile}" Settings Nukes ${Param1}
  /varset Nukes ${Param1}
} else {
  /varset Nukes ${Ini[${IniFile},Settings,Nukes,2]}
}

:MainLoop
/if (${SpawnCount[npc radius 200]}==0) /goto :MainLoop
:wait4hps
/doevents
/call CheckBuffs
/call BuffBeg
/if (${MATarget}!=${Target.ID}) {
  /varset SlowTimer 0
  /varset TashTimer 0
}
/assist ${MA}
/delay 2s ${Target.ID}
/if (${Target.Type.Equal[NPC]} && ${Target.PctHPs}<=95 && ${Target.PctHPs} > 10) {
  /varset MATarget ${Target.ID}
  /call TashSlow
  /call Nuke
} else {
  /echo ${Target.Name} not yet engaged
  /doevents
  /goto :wait4hps
}
/goto :MainLoop

Sub TashSlow
/echo Engaged ${Target.Name} at ${Target.PctHPs}%
/if (${TashTimer}==0) {
  /call Cast "Howl of Tashan" gem4
  /varset TashTimer ${Math.Calc[${Spell[Howl of Tashan].Duration.TotalSeconds}-10]}s
}
/doevents Damage
/call Boggle
:SlowResisted
/if (${Target.ID}==${MATarget} && ${SlowTimer}==0) {
  /call Cast "Serpent of Vindication" item 10s
  /if (${castReturn.Equal[CAST_SUCCESS]}) {
    /echo Slowed ${Target.Name} at ${Target.PctHPs}%
    /varset SlowTimer ${Math.Calc[${Spell[Forlorn Deeds].Duration.TotalSeconds}-10]}s
    /doevents Damage
    /call Boggle
    /return
  } else {
    /if (${castReturn.Equal[CAST_IMMUNE]}) {
      /echo ${Target.Name} Immune to slow
      /varset SlowTimer 300s
      /doevents Damage
      /call Boggle
      /return
    }
  } else {
    /if (${castReturn.Equal[CAST_RESISTED]}) {
      /echo ${Target.Name} Resisted slow
      /goto :SlowResisted
    }
  } else {
    /if (${SpellNotHold}==1) {
      /varset SlowTimer 300s
      /return
    }
  }
}
/return

Sub Boggle
/if (${Me.TargetOfTarget.ID}==${Me.ID}) {
  /echo Boggling ${Target.Name} at ${Target.PctHPs}%
  /call Cast "Boggle" gem9
}
/return

Sub Nuke
/echo Nuking ${Target.Name} at ${Target.PctHPs}%
:nuke
/if (${Target.PctHPs}>=10 && ${Me.PctMana}>=30 && ${Nukes}>0) /call Cast "Psychosis" gem5
/doevents
/call Boggle
/if (${Target.PctHPs}>=10 && ${Me.PctMana}>=30 && ${Nukes}>1) /call Cast "Insanity" gem6
/doevents Damage
/call Boggle
/return

Sub CheckBuffs
/if (${Me.Buff[Ethereal Rune].Duration}<60) /call Cast "Ethereal Rune" gem8
/if (${CheckBuffTimer}==0) {
  /echo Checking Buffs...
  /if (${Me.Buff[Illusion: High Elf].Duration}<60) /call Cast "Inlaid jade hoop" item
  /if (${Me.Buff[Overwhelming Splendor].Duration}<60) {
    /target myself
    /call Cast "Overwhelming Splendor" gem7
  }
  /if (${Me.Buff[Aura of Eternity].Duration}<60) /call Cast "Celestial Cloak" item
  /if (!${Me.Buff[Talisman of Wunshi].ID} && !${Me.Buff[Wunshi's Focusing].ID} && !${Me.Buff[Focus of the Seventh].ID} && !${Me.Buff[Focus of Soul].ID} && ${Me.Buff[Shield of Maelin].Duration}<60) /call Cast "Shield of Maelin" gem7
  /if (${Me.Buff[Clairvoyance].Duration}<60) {
    /target myself
    /call Cast "Clairvoyance" gem7
  }
  /varset CheckBuffTimer 60s
}
/return

Sub Event_Damage
/if (${Me.AltAbilityReady[Eldritch Rune]}) /call Cast "Eldritch Rune" alt
|} else {
  |   /if (${Me.ItemReady[Oculus of Persuasion]}) /call Cast "Oculus of Persuasion" item
} else {
  /if (${Me.AltAbilityReady[Doppleganger]}) /call Cast "Doppleganger" alt
} else {
  /if (${Me.AltAbilityReady[Soothing Words]}) /call Cast "Soothing Words" alt
} else {
  /if (${Me.AltAbilityReady[Mind Over Matter]}) /call Cast "Mind Over Matter" alt
} else {
  /if (${Me.AltAbilityReady[Color Shock]}) /call Cast "Color Shock" alt
} else {
  /if (${Me.AltAbilityReady[Stasis]}) /call Cast "Stasis" alt
}
/return

Sub Event_Chat(ChatType,Sender,ChatText)
/varset BuffGuy ${Sender}
/if (${ChatText.Find[VoQ]} || ${ChatText.Find[KEI]} || ${ChatText.Find[Clair]} || ${ChatText.Find[Clar]} || ${ChatText.Find[c5]} || ${ChatText.Find[C6]} || ${ChatText.Find[mana buff]} || ${ChatText.Find[buffs]}) {
  /call TargetGuy
  /if (${TargetReturn.Equal[TARGET_SUCCESS]} && ${Target.Distance}<100) /call Cast "Clairvoyance" gem2 10s
}
/if (${ChatText.Find[haste]} || ${ChatText.Find[sov]} || ${ChatText.Find[salik]} || ${ChatText.Find[speed]} || ${ChatText.Find[buffs]}) {
  /call TargetGuy
  /if (${TargetReturn.Equal[TARGET_SUCCESS]} && ${Target.Distance}<100) /call Cast "Speed of Salik" gem3 10s
}

/if (${ChatText.Find[invis]}) {
  /call TargetGuy
  /if (${TargetReturn.Equal[TARGET_SUCCESS]} && ${Target.Distance}<100) /call Cast "Invisibility" gem7 10s
}
/if (${ChatText.Find[frog]} || ${ChatText.Find[guktan]}) {
  /call TargetGuy
  /if (${TargetReturn.Equal[TARGET_SUCCESS]} && ${Target.Distance}<100) {
    /call Cast "Project Illusion" alt 10s
    /call Cast "Illusion: Guktan" gem7
  }
}
/if (${ChatText.Find[gnome]}) {
  /call TargetGuy
  /if (${TargetReturn.Equal[TARGET_SUCCESS]} && ${Target.Distance}<100) {
    /call Cast "Project Illusion" alt 10s
    /call Cast "Illusion: Gnome" gem7
  }
}
/if (${ChatText.Find[half elf]}) {
  /call TargetGuy
  /if (${TargetReturn.Equal[TARGET_SUCCESS]} && ${Target.Distance}<100) {
    /call Cast "Project Illusion" alt 10s
    /call Cast "Illusion: Half Elf" gem7
  }
}
/target clear
/assist ${MA}
/delay 2s ${Target.ID}
/return

Sub TargetGuy
/squelch /target clear
/target pc ${BuffGuy}
/if (!${Target.ID}) {
  /varset TargetReturn TARGET_FAILED
  /return
}
/varset TargetReturn TARGET_SUCCESS
/return
[quote]<DigitalMocking> man, A_Druid_00 really does love those long ass if statements
<dont_know_at_all> i don't use his macro because i'm frightened of it[/quote]
[quote][12:45] <dont_know_at_all> never use a macro when you can really fuck up things with a plugin[/quote]

JP5
a lesser mummy
a lesser mummy
Posts: 70
Joined: Tue Jul 06, 2004 10:32 pm

Post by JP5 » Thu Jan 06, 2005 3:05 pm

yep that's spell_routines.inc

If you don't wanna use an inc (I usually don't use inc files, they seem to be too much out of my control when it isn't my code..), then you can use something like this:

Code: Select all

/itemnotify ${FindItem[Serpent of Vindication].InvSlot} leftmouseup
I forget the exact syntax as I haven't been on everquest, and therefore haven't been writing macros, for a while.. but that's the general idea.

A_Druid_00
Macro Maker Extraordinaire
Posts: 2378
Joined: Tue Jul 13, 2004 12:45 pm
Location: Rolling on the Lawn Farting

Post by A_Druid_00 » Fri Jan 07, 2005 7:45 am

Of course, that would requie you to have serpent equipped. spell_routines will find the item in your inventory, click it, and swap it back. Handy for chanters who have their Epic 1.5 and can actually stand to have that ugly ass thing equipped.
[quote]<DigitalMocking> man, A_Druid_00 really does love those long ass if statements
<dont_know_at_all> i don't use his macro because i'm frightened of it[/quote]
[quote][12:45] <dont_know_at_all> never use a macro when you can really fuck up things with a plugin[/quote]

xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: Enchanter macro problem.. wont cast items

Post by xyilla » Sat Mar 15, 2025 1:11 am


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: Enchanter macro problem.. wont cast items

Post by xyilla » Sat Mar 15, 2025 1:12 am


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: Enchanter macro problem.. wont cast items

Post by xyilla » Sat Mar 15, 2025 1:13 am


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: Enchanter macro problem.. wont cast items

Post by xyilla » Sat Mar 15, 2025 1:14 am


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: Enchanter macro problem.. wont cast items

Post by xyilla » Sat Mar 15, 2025 1:15 am


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: Enchanter macro problem.. wont cast items

Post by xyilla » Sat Mar 15, 2025 1:16 am


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: Enchanter macro problem.. wont cast items

Post by xyilla » Sat Mar 15, 2025 1:17 am


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: Enchanter macro problem.. wont cast items

Post by xyilla » Sat Mar 15, 2025 1:19 am


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: Enchanter macro problem.. wont cast items

Post by xyilla » Sat Mar 15, 2025 1:20 am


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: Enchanter macro problem.. wont cast items

Post by xyilla » Sat Mar 15, 2025 1:21 am