canniv4-Caster Bot macro, updated 1-6-06

Post your completed (working) macros here. Only for macros using MQ2Data syntax!

Moderator: MacroQuest Developers

Veron
decaying skeleton
decaying skeleton
Posts: 2
Joined: Tue Sep 06, 2005 4:28 pm

Post by Veron » Tue Sep 06, 2005 4:30 pm

Great job, I'll be using this as a base for mine. Saves me writing it.. appreciate you posting this. :P

B_rizzleB
orc pawn
orc pawn
Posts: 10
Joined: Mon Sep 26, 2005 10:15 am
Location: Mq centrel

could you?

Post by B_rizzleB » Mon Oct 10, 2005 12:06 pm

Could this be changed into a druid macro so instead of /t yourbot slow, we could go /t yourbot snare, all u'd have to do is just change the codes, secondly for cheal over Quiescence at 80perecent, and just keep the fastheal, but change it to the druid spellnames! if i get it to work i'll post it and give credit!

User avatar
fearless
Not a Psychic
Posts: 2684
Joined: Wed Mar 10, 2004 3:52 pm

Re: could you?

Post by fearless » Mon Oct 10, 2005 2:18 pm

B_rizzleB wrote:Could this be changed into a druid macro so instead of /t yourbot slow, we could go /t yourbot snare, all u'd have to do is just change the codes, secondly for cheal over Quiescence at 80perecent, and just keep the fastheal, but change it to the druid spellnames! if i get it to work i'll post it and give credit!
Sure, go ahead.
Reading . . . it's not just for me.

[url=http://www.catb.org/~esr/faqs/smart-questions.html]How To Ask Questions The Smart Way[/url]
[quote="Ccomp5950"]Fearless showed me the light, you too shall learn.[/quote]

B_rizzleB
orc pawn
orc pawn
Posts: 10
Joined: Mon Sep 26, 2005 10:15 am
Location: Mq centrel

ugh

Post by B_rizzleB » Mon Oct 10, 2005 9:32 pm

for /t urbot assist it crashes any advice to fix?

B_rizzleB
orc pawn
orc pawn
Posts: 10
Joined: Mon Sep 26, 2005 10:15 am
Location: Mq centrel

help

Post by B_rizzleB » Mon Oct 10, 2005 9:48 pm

can some1 tell me why its crashing when i give it a certain command like assist and cast "spellname"? please

Dbick
orc pawn
orc pawn
Posts: 19
Joined: Thu Sep 01, 2005 7:59 pm

Post by Dbick » Mon Oct 10, 2005 11:45 pm

This macro is working fine for me. I suggest checking your spell routines inc and make sure its up to date.

BTW thanks bardsaretooeasy. this macro rocks in its simplicity and ease of setup.

B_rizzleB
orc pawn
orc pawn
Posts: 10
Joined: Mon Sep 26, 2005 10:15 am
Location: Mq centrel

ok

Post by B_rizzleB » Tue Oct 11, 2005 10:01 am

in the snippets section im using rusty's spellroutines.inc or whatever, another thingy for the autofollow when not on a mount, it doesnt exstis

Sub Event_followme(Text,MasterName,FollowName)
/if (${MasterName.Equal[${MyMaster}]}) {
/if (${FollowName.Length} || ${FollowName.Equal[me]} || ${FollowName.Equal[${MyMaster}]}) {
/tar pc ${MyMaster}
/if (!${Me.Mount.ID}) {
/squelch /stick 15
} else {
/fol
}
} else {
/tar pc ${FollowName}
/if (!${Me.Mount.ID}) {
/squelch /stick 15
} else {
/fol
}
}
/t ${MyMaster} I'm now following ${Target.Name}
}
/return

the mount should be taken out then saved, so it will enable autofollow when the bot is not on a mount!, this is a niffty lilbot and once i mess around with it more i'll try to make it for other classes, I'm pretty new to this but i can read this bot quite easiliy =)

User avatar
fearless
Not a Psychic
Posts: 2684
Joined: Wed Mar 10, 2004 3:52 pm

Re: ok

Post by fearless » Tue Oct 11, 2005 10:34 am

B_rizzleB wrote:in the snippets section im using rusty's spellroutines.inc or whatever, another thingy for the autofollow when not on a mount, it doesnt exstis

the mount should be taken out then saved, so it will enable autofollow when the bot is not on a mount!, this is a niffty lilbot and once i mess around with it more i'll try to make it for other classes, I'm pretty new to this but i can read this bot quite easiliy =)
Code tags maintain indentation, USE THEM.

Code: Select all

Sub Event_followme(Text,MasterName,FollowName)
/if (${MasterName.Equal[${MyMaster}]}) {
  /if (${FollowName.Length} || ${FollowName.Equal[me]} || ${FollowName.Equal[${MyMaster}]}) {
    /tar pc ${MyMaster}
    /if (!${Me.Mount.ID}) {
      /squelch /stick 15
    } else {
      /fol
    }
  } else {
    /tar pc ${FollowName}
    /if (!${Me.Mount.ID}) {
      /squelch /stick 15
    } else {
      /fol
    }
  }
  /t ${MyMaster} I'm now following ${Target.Name}
}
/return
Autofollow is "enabled" regardless when on a mount or not. The piece of code you should be evaluating is this:

Code: Select all

    /if (!${Me.Mount.ID}) {
      /squelch /stick 15
    } else {
      /fol
    }
Last time I checked, that says "If I don't have a mount, stick to my target. If I have a mount, use /fol." Stick being a tool from mq2moveutils, /fol being the eq command follow.

If you are complaining that "if I have a mount it doesn't use stick", then just change /fol to /squelch /stick 15. If you do that you could actually clean it up significantly more, but that's another rant.
Reading . . . it's not just for me.

[url=http://www.catb.org/~esr/faqs/smart-questions.html]How To Ask Questions The Smart Way[/url]
[quote="Ccomp5950"]Fearless showed me the light, you too shall learn.[/quote]

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 » Tue Oct 11, 2005 10:41 am

Code: Select all

Sub Event_Chat 
/if (${ChatText.Find[follow]}) {
  /if (${ChatText.Arg[2].Length} && ${Spawn[pc ${ChatText.Arg[2]}].ID}) /varset FollowGuy ${Spawn[pc ${ChatText.Arg[2]}].ID}
  /if ((!${ChatText.Arg[2].Length} || !${Spawn[pc ${ChatText.Arg[2]}].ID}) && ${Spawn[pc ${Sender}].ID}) /varset FollowGuy ${Spawn[pc ${Sender}].ID}
  /target id ${FollowGuy}
  /delay 1s ${Target.ID}==${FollowGuy}
  /squelch /stick hold uw
  /varset FollowOn 1
  /varset MakeCamp 0
  /varset StickTarget ${FollowGuy}
}
That's how I do it, but I'm a complicated kind of guy.
[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]

BardsAreTooEasy
a lesser mummy
a lesser mummy
Posts: 39
Joined: Sun Feb 27, 2005 3:01 pm

Post by BardsAreTooEasy » Tue Oct 11, 2005 5:50 pm

I made it /fol rather than stick on a mount because when you /stick on a mount, if the leader stops the follower does this little ping-pong bit, and everyone goes, "hey that's not eq follow /wink!" Assist isn't crashing me btw ? I use this all the time for my drood. I genereally add an event in canniv4.mac like this:

Code: Select all


#event IncomingSnare "soandso tells you, 'Inc. #1#'"

|add these 2 lines in :MainLoop
/if (!${Defined[NeedToSnare]}) /declare NeedToSnare int outer 0
/if (${IncSnare}==0 && ${Defined[IncSnare]} && ${NeedToSnare}==0) /call IncomingSnare

Sub Event_IncomingSnare
	/if (!${Defined[IncSnare]}) /declare IncSnare timer outer 0
	/varset IncSnare 320
	/varset NeedToSnare 0
/return



Sub IncomingSnare
	/varset NeedToSnare 1
	/tar soandso
	/delay 1s
	/if (${Target.PctHPs}<70) /call Cast "${FastHealSpell}"
	/assist
	/delay 2s
	/call Cast "Ensnare" gem3
	/delay 1s
	/call Cast "Grasping Roots" gem8
	/tar soandso
/return

I use it like this because I can tell my bot from my master Inc.... and my bot will just auto snare and root, thus avoiding many commands from master to bot. I'll add a SnareOnAssist option though for you droods =) If you are crashing maybe it's from spell_routines.inc. If you don't have VIP you can get my crappyspell.inc from the snippets sec. and use that instead.
Last edited by BardsAreTooEasy on Fri Oct 14, 2005 12:44 am, edited 1 time in total.

B_rizzleB
orc pawn
orc pawn
Posts: 10
Joined: Mon Sep 26, 2005 10:15 am
Location: Mq centrel

cool

Post by B_rizzleB » Tue Oct 11, 2005 6:13 pm

cool i'll use that, ty man, check ur PM box bardsaretooeasy!

B_rizzleB
orc pawn
orc pawn
Posts: 10
Joined: Mon Sep 26, 2005 10:15 am
Location: Mq centrel

problem

Post by B_rizzleB » Tue Oct 11, 2005 6:55 pm

it tells me when i go cast splurt {BotSpellName} was not found in your book

ultimateq
a lesser mummy
a lesser mummy
Posts: 44
Joined: Sun Aug 07, 2005 11:50 am

Post by ultimateq » Fri Oct 14, 2005 3:56 pm

I think i found a problem in the crappyspells.inc

on line 80 it reads

Code: Select all

   /call Cast "${SpellName}
I think it should read

Code: Select all

   /call Cast "${SpellName}"
Otherwise I cant wait to try it out

edit:argh. I cant get the complete healing to work...

I've tried

Code: Select all

/if (!${Defined[HealSpell]}) /declare HealSpell string outer "Complete Healing"
and

Code: Select all

/if (!${Defined[HealSpell]}) /declare HealSpell string outer Complete Healing
and niether seem to work

BardsAreTooEasy
a lesser mummy
a lesser mummy
Posts: 39
Joined: Sun Feb 27, 2005 3:01 pm

Post by BardsAreTooEasy » Sat Oct 15, 2005 1:03 am

Thanks, ultimateeq. Fixed that /call Cast ".." under FDFAIL, also fixed the bug under Sub Event_Watch that was causing you to not cast Complete Healing. Grab caster5_6.inc, update the #include in canniv4_1.mac, and you'll be casting bro =)

ultimateq
a lesser mummy
a lesser mummy
Posts: 44
Joined: Sun Aug 07, 2005 11:50 am

Post by ultimateq » Mon Oct 17, 2005 4:07 am

Awsome :lol: