Simple Twist v2.5 unlimited song twist

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

Moderator: MacroQuest Developers

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

Simple Twist v2.5 unlimited song twist

Post by Virtuoso65 » Mon Aug 30, 2004 12:16 pm

I realize that not many use twisting macros much now days with the mq2twist plugin working so well. But there might as well be another way to do it for times like when MQ's structs are messed up from large patch changes.

Usage: /mac twist # # # # # #....#n
Usage: Where # can be any spell gem
Usage: Using a single param will not actually twist the song but instead it will just keep it playing and recast it in the advent of getting stunned.

Code: Select all

| twist.mac by: Virtuoso65
| MQData & MQ2DataVars complient V2.5
#event Loading "#*#LOADING, PLEASE WAIT...#*#"
#event Recover "#*#You miss a note, bringing your song to a close!#*#"
#event Recover "#*#You haven't recovered yet...#*#"
Sub MAIN
/declare a[${Macro.Params}] int outer 0
/declare nsongs int outer 0
/declare cursong int outer 0
/declare t0 timer outer 0
/declare pcount int outer 0
/declare bcount int outer 0
/varset nsongs ${Macro.Params}

/if (!${Defined[Param0]}) {
	/echo Usage: /mac twisting # # # #....
	/echo Usage: Where # is any Spell Gem number 1-8.
	/end
}

  /for pcount 0 to ${Macro.Params}
  	  /if (${Defined[Param${pcount}]}) {
  	    /varcalc bcount ${pcount}+1
            /varset a[${bcount}] ${Param${pcount}}
	    /echo Song ${bcount}: ${Me.Gem[${Param${pcount}}]}
          }
  /Next pcount

/varset cursong 0
/varset t0 1
/if ((${Defined[Param0]})&&(!${Defined[Param1]})) /goto :loop2

:Loop1
  /if (${t0}<=0) {
    /stopsong
    /delay 2
    /varset t0 32
    /varcalc cursong ${cursong}+1
    /if (${cursong}>${nsongs}) /varset cursong 1
 |   /popup Song ${cursong}: ${Me.Gem[${a[${cursong}]}]}
    /cast ${a[${cursong}]}
    }
  /doevents
/goto :Loop1

:loop2
  /if (!${Bool[${Me.Casting}]}) {
	/stopsong
	/delay 1
	/cast ${Param0}
	/doevents
	/delay 3
  }
/goto :Loop2

/return

Sub Event_Loading
    /endmacro
/return

Sub Event_Recover
  /varcalc cursong ${cursong}-1
  /varset t0 1
/return
Last edited by Virtuoso65 on Tue May 31, 2005 11:43 am, edited 1 time in total.

Dade666
decaying skeleton
decaying skeleton
Posts: 2
Joined: Tue May 31, 2005 4:34 am

OMG i Love it

Post by Dade666 » Tue May 31, 2005 8:28 am

this Macro has made me soo happy. lol i spent all night lookinfg at macros. and found this. only thing i had to do to was make it 9 spells and not 8

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

Post by Virtuoso65 » Tue May 31, 2005 11:42 am

Glad you like it, the macro has served me well in the downtimes when structs were broken enough to cause MQ2Twist to fail.

User avatar
xantan
a ghoul
a ghoul
Posts: 98
Joined: Wed Feb 09, 2005 11:17 pm
Location: Nevada
Contact:

/melody

Post by xantan » Sat Jun 04, 2005 11:43 am

quote:
--------------------------------------------------------------------------------

\Mel"o*dy\, n.; pl. Melodies. [OE. melodie, F. m['e]lodie, L. melodia, fr. Gr. ? a singing, choral song, fr. ? musical, melodious; ? song, tune + ? song. See Ode.] 1. A sweet or agreeable succession of sounds.

Lulled with sound of sweetest melody. --Shak.

2. (Mus.) A rhythmical succession of single tones, ranging for the most part within a given key, and so related together as to form a musical whole, having the unity of what is technically called a musical thought, at once pleasing to the ear and characteristic in expression.

Note: Melody consists in a succession of single tones; harmony is a consonance or agreement of tones, also a succession of consonant musical combinations or chords.
----------------------------------------------------------------------------

Ever tried /melody 1 2 3 as a bard? constant twisting, any spell, etc, safe and great! just telling you guys...[/quote]
[b]=/[/b]

User avatar
Night Hawk
a grimling bloodguard
a grimling bloodguard
Posts: 590
Joined: Fri Aug 13, 2004 4:56 pm

Post by Night Hawk » Sat Jun 04, 2005 1:45 pm

Why the hell would you use /melody when you can use something like this? /melody doesn't handle missed notes at all.

User avatar
Cr4zyb4rd
Plugins Czar
Posts: 1449
Joined: Tue Jul 20, 2004 11:46 am

Post by Cr4zyb4rd » Mon Jun 06, 2005 6:38 am

Back before I got MQ2Twist into (for me) tolerably working shape, and made the plugin to do the instrument swapping or whatnot, I had a huge monolithic bard macro that did all of the above and way too much other gingerbread, and I passed it out to a few people around here.

Just wanted to say that if anybody still has any of that stuff and wants to give it out, or any other odds and ends of mine, feel free. I'm well and truely done with EQ, and as far as I'm concerned anything I wrote or worked on is public domain...if somebody wants to move my stuff from VIP to the general boards or do anything else at all with it, you won't hear me grumbling.

colt45
orc pawn
orc pawn
Posts: 16
Joined: Thu Jun 10, 2004 5:29 am

Post by colt45 » Tue Jun 21, 2005 8:39 pm

Crazybard this monolithic bard macro has my interested, if anyone has this it would be awesome to see, I would love to try it out aswell

JimJohnson
a grimling bloodguard
a grimling bloodguard
Posts: 1299
Joined: Sat Oct 11, 2003 6:00 am

Post by JimJohnson » Tue Jun 21, 2005 11:59 pm

id love to check out Crazys bard macro he used. part to learn part because it prolly do everything i could ever think of needing a bard to do

User avatar
Cr4zyb4rd
Plugins Czar
Posts: 1449
Joined: Tue Jul 20, 2004 11:46 am

Post by Cr4zyb4rd » Wed Jun 22, 2005 12:01 pm

nobody i talk to seems to still have it. i'll keep asking around

Airvz
Custom Builder
Custom Builder
Posts: 128
Joined: Tue Nov 18, 2003 3:36 pm

Post by Airvz » Sat Jun 25, 2005 1:10 am

There is a bug with mastery of the past get 1 rank of it as a bard and you'll never miss a note again! So /melody is the safe effect as /twist if you get that aa.

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

Post by Virtuoso65 » Sat Jun 25, 2005 4:59 pm

I wrote this long before Melody was put in and this macro is still far superior to the limited ability of SoE's version.

Like Crazybard I too have quit, and I agree, any code I have posted is imo public domain.

macrolove
decaying skeleton
decaying skeleton
Posts: 5
Joined: Wed Dec 07, 2005 6:12 am

Post by macrolove » Wed Dec 07, 2005 6:47 am

Thanks you Virtuoso65, for this wonderful macro. I have used it for ages, tryed others - but allways go back to this one :)

Even i dont feel totally blond when i read it, since its so clean and "simple" made - even i can understand how the macro works :P

Any tip on how to add "forage" to this one without loosing rhytem?

I used some "normal" macro's where i bind it to other keys that all ends like this:

/doability 1
/pause 4
/autoinv

But it would be love if you Virtuose65 (or others reading the forum), could give me a tip on how to add it to the twisting macro AND keep all 4 songs up at once :)
Tryed to add commands from other foraging-MQ2 programs, but allways ends up to totally screw up the twisting, or atleast miss 1 song each round.

Thanks in advance for any helpfull comments :)

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 » Wed Dec 07, 2005 7:13 am

There are a couple forage macros in this Depot, which you can convert to be a .inc file and #include in this macro. Or, you can get VIP and use the MQ2Twist Plugin to twist, while the MQ2Combat plugin forages for you and the MQ2Cursor plugin handles your foraged items for you.
[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]

macrolove
decaying skeleton
decaying skeleton
Posts: 5
Joined: Wed Dec 07, 2005 6:12 am

Post by macrolove » Wed Dec 07, 2005 7:34 am

UPS! Seems i am blonder, then i like to admit... *blush*


convert to be a .inc file and #include in this macro

Thats what i have been trying. But i am just a silly girl, not a programmer - so my blond head doesnt seem to get it correct *s*

For the VIP thingy: Paypal have never seem to work for me. Maybe i got a slacker bank, but they never seem to find my "code" to activate it.

Ok..ok.... Have to admit i dont have blond hair.. But i sure feel like the classic example on been "blond" when i read here :)

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 » Wed Dec 07, 2005 8:29 am

Look at my feedme.inc and feedme.mac. You should be able to put 2 and 2 together to figure out how to convert a macro to an include. If you can't contribute and you can't donate, I'm thinking MQ might be too much for you anyway.
[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]