Moderator: MacroQuest Developers

Notice the line I highlighted. That's the one you would use if you had the same setup described above it.student_01 wrote:Ok when i set up this script do i have to edit anything here:
/echo usage: chant.mac <DOTs, LVL6 Selos> <49selo> <radius> [<heal song>]
/return
Or if my spell gems are set up correctly do i not have to edit anything and just setup/run like this:
Usage Examples:
| -Scenario 1: If you are using...
| ...DOTs in Gems 4, 5, 6, and 7
| ...Level 49 Selo in Gem 2
| ...Radius of 55
| ...Hymn of Restoration in Gem 1
| ...If you wanted the script to start paused
| syntax: /mac chant 4567 2 55 1 1
I tried to ask the question as best as i could i hope i was detaild enough for yout to understand.
**EDIT** A coupel of things , if this seems like a stupid question let me explain.I usaly just use macro quest for tracking/foraging , also i like the built in anti cpu hog feature.

kasodo wrote:For all those wanting this mac to kite at a certain loc you can change the following code:
toCode: Select all
Sub Circ /declare CirX local /declare CirY local /call CheckObst /if (${Target.ID}) { /varset CirX ${Target.Y} /varset CirY ${Target.X} } else { /if (${TargetUpNext}!=0) { /varset CirX ${Spawn[ID ${TargetUpNext}].Y} /varset CirY ${Spawn[ID ${TargetUpNext}].X} /if (${Spawn[ID ${TargetUpNext}].Distance}<=${Math.Calc[${CirR}*2]}) { /if (${Target.ID}) { /if (${Target.ID}!=${TargetUpNext}) { /target id ${TargetUpNext} } } else { /target id ${TargetUpNext} } /varset TargetUpNext 0 } } } /if (${Math.Distance[${CirX},${CirY}]}<${Math.Calc[${CirR}/2]}) { /face heading ${Math.Calc[${Heading[${CirX},${CirY}].DegreesCCW}+180]} } else { /face heading ${Math.Calc[${Heading[${CirX},${CirY}].DegreesCCW}+${Math.Calc[90*${CirR}/${Math.Distance[${CirX},${CirY}]}]}]} } /return
Note: this isn't a great fix but does the trick for me. It will kite around the loc you start the mac at..... if you want to be able to pass a loc to it you would have to add more code and I don't feel like doing it.Code: Select all
Sub Circ /declare CirX local /declare CirY local /call CheckObst /if (${Target.ID}) { [color=red] /varset CirX ${RubberY} /varset CirY ${RubberX}[/color] } else { /if (${TargetUpNext}!=0) { [color=red] /varset CirX ${RubberY} /varset CirY ${RubberX}[/color] /if (${Spawn[ID ${TargetUpNext}].Distance}<=${Math.Calc[${CirR}*2]}) { /if (${Target.ID}) { /if (${Target.ID}!=${TargetUpNext}) { /target id ${TargetUpNext} } } else { /target id ${TargetUpNext} } /varset TargetUpNext 0 } } } /if (${Math.Distance[${CirX},${CirY}]}<${Math.Calc[${CirR}/2]}) { /face heading ${Math.Calc[${Heading[${CirX},${CirY}].DegreesCCW}+180]} } else { /face heading ${Math.Calc[${Heading[${CirX},${CirY}].DegreesCCW}+${Math.Calc[90*${CirR}/${Math.Distance[${CirX},${CirY}]}]}]} } /return
Code: Select all
#event NeedTarget "#*#You must first select a target for this spell!#*#"
#event Exp "#*#You gain #*#"
#event Died "#*#You have entered#*#"
#event Caster "#*# begins to cast a spell.#*#"
#event Tell "#*#tells you#*#"
Code: Select all
#event Tell "#1#tells you #2#"
thats a rubber anchor ... he wants a static anchor. i.e. NO movement.Is it bad to quote yourself? This will be the last time I mention this if you cant figure out how to kite around a static loc then dont run this damn macro you will get everyone in trouble if you use this and dont know what the hell you are doing.
Hi Jackass... know how macros work? I didn't think so. Know how to read macro code? Didn't think so..... take your dumbass comments somewhere else if you dont want to read the fucking god damn code... asshole....RDPidb wrote:thats a rubber anchor ... he wants a static anchor. i.e. NO movement.Is it bad to quote yourself? This will be the last time I mention this if you cant figure out how to kite around a static loc then dont run this damn macro you will get everyone in trouble if you use this and dont know what the hell you are doing.
Try reading next time.
*golf clap* 4 u.
~





Kasodo: Yes I do, I write my own thanks.Hi Jackass... know how macros work? I didn't think so. Know how to read macro code? Didn't think so..... take your dumbass comments somewhere else if you dont want to read the fucking god damn code... asshole....
and here is what you just replied:thats a rubber anchor ... he wants a static anchor. i.e. NO movement.
This WILL kite around YOUR rubber anchor WHICH is SET WHEN YOU RUN THE FUCKING MACRO
Code: Select all
Sub Circ
/declare CirX local
/declare CirY local
/call CheckObst
/if (${Target.ID}) {
/varset CirX ${Target.Y}
/varset CirY ${Target.X}
} else {
/if (${TargetUpNext}!=0) {
/varset CirX ${Spawn[ID ${TargetUpNext}].Y}
/varset CirY ${Spawn[ID ${TargetUpNext}].X}
Code: Select all
Sub Circ
/declare CirX local
/declare CirY local
/call CheckObst
/varset CirX ${LOCY}
/varset CirY ${LOCX}