Twitch macro

Got a cool macro idea? Wanna request a macro? Here is the place for you!

Moderator: MacroQuest Developers

uloseirl
orc pawn
orc pawn
Posts: 15
Joined: Thu Jan 22, 2004 9:15 pm

Twitch macro

Post by uloseirl » Tue Jan 27, 2004 7:54 pm

Anyone wanna make a twitch macro so who ever sends a tell to the necro with mana and the necro will sit mem xxxspellset then twitch them?

User avatar
Bad Karma
a snow griffon
a snow griffon
Posts: 346
Joined: Sat Nov 22, 2003 9:34 pm
Contact:

Post by Bad Karma » Thu Jan 29, 2004 5:26 am

That's almost too easy.
You can mod one of the many Buff Bot mac's.

If you really can't figure that out yourself, though, post the spells/spellset you need. I don't play a Necro...
[b]- Bad Karma
________________________________________[/b]

In our own quest for excellence, we should strive to take the time to help those who help themselves.

All others should [b]RTFM[/b]!!!!!!!!!

uloseirl
orc pawn
orc pawn
Posts: 15
Joined: Thu Jan 22, 2004 9:15 pm

Post by uloseirl » Sat Jan 31, 2004 12:58 am

I was thinking if the necro got a tell, he would sit, mem the spell set, wait for it to refresh, use /rt to target them and cast twitch until they send a tell, "thx" or use a defined chat channel. The request for mana could be, "mana plz"

For where i put the masters name in, put "masters name" .. ill look it over and modify it Q____Q


Thx btw,....

... also can you show a modified version of it where i just turn on the macro with someone on target and it casts the spell over and over until 1500 mana left?


The info on the twitch spell is this

id: 1718
recovery time. 2.25
recast time. 8.0

the spellset i have it called atm is twitch

uloseirl
orc pawn
orc pawn
Posts: 15
Joined: Thu Jan 22, 2004 9:15 pm

Post by uloseirl » Sat Jan 31, 2004 2:43 am

the spell is in the 4th slot if that matter :) !!!

User avatar
Bad Karma
a snow griffon
a snow griffon
Posts: 346
Joined: Sat Nov 22, 2003 9:34 pm
Contact:

Post by Bad Karma » Mon Feb 09, 2004 3:00 am

Whoa...sorry I dropped the ball on this.
Work has had me busting my ass for the last couple weeks. no time for email, let alone EQ/MQ. I haven't read the depot yet, but if you still need this, let me know and I'll look at it again now that I finally have more time on my hands.
[b]- Bad Karma
________________________________________[/b]

In our own quest for excellence, we should strive to take the time to help those who help themselves.

All others should [b]RTFM[/b]!!!!!!!!!

User avatar
Leezard
a ghoul
a ghoul
Posts: 81
Joined: Wed Feb 04, 2004 12:54 pm

Post by Leezard » Mon Feb 09, 2004 11:40 am

May not be what you want, but if I for some reason need to chain twitch, like say for CoH, I just target the dude, and hit the twitch macro, it chain casts 2 twitchs, and I can just chat etc. You could even set it up to cycle between 3 or 4 people, which is what I'll do when it gets xegony time. :lol:
Death is merely a doorway, for a god!

C247
orc pawn
orc pawn
Posts: 21
Joined: Tue Jan 27, 2004 9:09 pm

Post by C247 » Mon Feb 09, 2004 10:23 pm

Hehe, my first code post. Woot go me. I've been really working on some bot macros for power leveling and lazy grouping/raiding. Only way to learn on this is to practice practice practice, debug, and practice some more. This is kind of what I have been doing.

Code: Select all

| twitch.mac
| /macro twitch.mac
| Please read this macro and edit it. You need to get spellcast.inc from the Snippets section on the forum, and change the spell cast name.  Other then that, it looks pretty good, except I havent debugged it, so go ahead and try it and tell me if there are any bugs.
#turbo

#include spellcast.inc

#chat tell

Sub Main
/echo >>Beginning TWITCH.mac<<
/echo This macro will respond when told to twitch them.

:MainLoop
   /doevents
  /goto :MainLoop
/return

Sub Event_Chat(ChatType,Sender,ChatText)
  /if "@ChatText"~~"twitch me" {
  /pause 2s
  /target "@Sender"
  /sit off
 /delay 1s
:CastLoop
 /call Cast "your twitch spell name"
 /delay 12s  
/goto :CastLoop
}
/return
Now, I am still learning, and dont know how to make him stop. :lol: If any of the programmers would help me out on how to make him stop the loop on command, i'd really appreciate it, also. :)

I think it would be like this

Code: Select all

/if "@ChatText"~~"okay thats good" {
/goto :MainLoop }
/return
Does that work?

User avatar
Bad Karma
a snow griffon
a snow griffon
Posts: 346
Joined: Sat Nov 22, 2003 9:34 pm
Contact:

Post by Bad Karma » Tue Feb 10, 2004 1:32 am

I'll have to plug this in and run it to see exactly how that handles. Have you tried it?

I'm thinking /return, rather than /goto.
My brain is still a little fuzzy from work at the moment.
[b]- Bad Karma
________________________________________[/b]

In our own quest for excellence, we should strive to take the time to help those who help themselves.

All others should [b]RTFM[/b]!!!!!!!!!

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

Post by Goofmester1 » Tue Feb 10, 2004 2:09 am

No time to test it but try this for your stop on command part.

Code: Select all

| twitch.mac 
| /macro twitch.mac 
| Please read this macro and edit it. You need to get spellcast.inc from the Snippets section on the forum, and change the spell cast name.  Other then that, it looks pretty good, except I havent debugged it, so go ahead and try it and tell me if there are any bugs. 
#turbo 

#include spellcast.inc 

#chat tell 

Sub Main 
/echo >>Beginning TWITCH.mac<< 
/echo This macro will respond when told to twitch them. 

:MainLoop 
   /doevents 
  /goto :MainLoop 
/return 

Sub Event_Chat(ChatType,Sender,ChatText) 
  /if "@ChatText"~~"twitch me" { 
  /pause 2s 
  /target "@Sender" 
  /sit off 
/delay 1s 
:CastLoop 
/call Cast "your twitch spell name" 
/delay 12s
/doevents  
/goto :CastLoop 
} 
 
/if "@ChatText"~~"okay thats good" { 
/goto :MainLoop } 

/return 
 
No real time to test this. But in theroy it should check your events during every twitch loop and check if the person told you to stop.

C247
orc pawn
orc pawn
Posts: 21
Joined: Tue Jan 27, 2004 9:09 pm

Post by C247 » Tue Feb 10, 2004 6:28 pm

Sweet, I was wondering about my bot macro.. I'd tell it to follow, then to stop him. But I didnt know where to put the doevents. Thanks.

Hope ya enjoy yer macro. Goodluck

User avatar
psychotik
a ghoul
a ghoul
Posts: 112
Joined: Mon Oct 06, 2003 3:48 am

Post by psychotik » Tue Feb 10, 2004 6:35 pm

you cant do that, mainloop doesnt exist in the event chat sub, you would have to /return

Caladine
a hill giant
a hill giant
Posts: 164
Joined: Fri Feb 13, 2004 9:29 pm

Post by Caladine » Mon Feb 16, 2004 12:01 pm

One little problem with this macro.

It's a bad idea to /doevents from inside the event handler. You end up with a bunch of stacked calls from (probably) unintended recursion if you get multiple tells for mana. A smarter way to do this is to setup a flagging/queue arrangement in the event handler, and have the main loop do all the twitching when the queue is not empty.

tehnec
orc pawn
orc pawn
Posts: 10
Joined: Tue Mar 02, 2004 9:35 pm

Post by tehnec » Thu Mar 04, 2004 8:45 pm

hmm... doesnt seem to work for me... does this work for anyone else?

neobot
decaying skeleton
decaying skeleton
Posts: 1
Joined: Thu Jul 29, 2004 8:30 am

Necro Feed Me bot

Post by neobot » Thu Jul 29, 2004 8:27 am

I played around with it a bit. I added an autofollow component that sorta works.

The feedme portion works very well..

Code: Select all

| Feedme2.mac
| /Feedme.mac 
| /macro twitch.mac 
|  You need to get spellcast.inc from the Snippets section on the forum. Props to Goofmester1 for writing it. I just made it necro ready. 

#turbo 

|#include spellcast.inc
| You could use the spellcast.inc if you wished but for simplicity's sake I removed it 

#include follow.inc

#chat tell 


Sub Main 
/declare feedflag bool outer false
/declare followflag bool outer false


/echo Feedme.mac has started 
/echo A tell "feed me" starts feeding, a tell "FM" ends feeding 
/doevents
:MainLoop 
   /doevents 
	/if ( ${feedflag} ) {
	  |/call Cast "Sedulous Subversion" gem6 
	  |/delay 13s 
	  |/Cast 6
	  /cast 6
	  /delay 13s
	}
	/if ( ${followflag} ) {
	  /if (${Target.Distance}>60) /keypress up hold

      	  /if (${Target.Distance}<40) /keypress up 

          /face fast

          /delay 2

   	}

/goto :MainLoop 
 
/return

Sub Event_Chat(ChatType,Sender,ChatText) 
  /if (${ChatText.Equal[feed me]}) { 
  /target ${Sender} 
  /varset feedflag true
  /return
}
/if (${ChatText.Equal[FM]}) {
  /varset feedflag false
  /return 
}
/if (${ChatText.Equal[follow]}) { 
  /target ${Sender} 
  /varset followflag true
  /return
}

/return



EQBot_man
a ghoul
a ghoul
Posts: 111
Joined: Mon May 17, 2004 6:35 pm

Post by EQBot_man » Thu Jul 29, 2004 12:23 pm

Yeah...those other macros are fine, but a raiding necro always decides who is worthy of their mana. So here is the macro that I use. Its crude and spams you with useless text a lot, but it does the job without all the neat gizmos of the other ones:


Code: Select all

|
|  twitch.mac
|       by EQBot_Man  7.24.2004
|
|  1.  Target someone
|  2.  /macro twitch
|  3.  When you are done.  /endmacro
|  4.  Happy clerics
|
Sub Main
:Continue
:Sed
/if (!${Me.SpellReady["Sedulous Subversion"]}) /goto :Cov
/cast "Sedulous Subversion"

:Cov
/if (!${Me.SpellReady["Covetous Subversion"]}) /goto :Sed
/cast "Covetous Subversion"
/goto :Continue
/return