just for the basis here's the code before I messed with it
Code: Select all
| - twist.mac -
| /mac twist <GEMs>
| Modified from Colonel's Macro
|Modiefied to current form 11/7/2003
| <GEMs> is an any length song list of the gem slots. 12345678 or 213457 or 78
| hint make sure selos is in the gem list if you are kiting
#event MissedNote "You miss a note, bringing your song to a close!"
#event Recovered "You haven't recovered yet..."
#turbo
Sub Main(Param0)
/if $defined(Param0)==false /endmacro
/declare CASTTIME global
/declare cursong global
/declare nncsongs global
/declare ncsongs global
/declare prevsong global
/declare ncSongList global
/declare cSongList global
/declare SingTime timer
/declare I global
/declare J global
/declare ncSongArray array
/declare cSongArray array
/varset CASTTIME 33
/varset cursong 1
/varset nncsongs $strlen(@Param0)
/varset ncsongs $strlen(@Param1)
/varset ncSongList @Param0
/varset cSongList @Param1
/for I 1 to @nncsongs
/varcalc J $int(@I-1)
/varset ncSongArray(@I) $mid(@J,1,@ncSongList)
/next I
/for I 1 to @ncsongs
/varcalc J $int(@I-1)
/varset cSongArray(@I) $mid(@J,1,@cSongList)
/next I
/varset CASTTIME 33
:Loop
/if "$char(state)"!="SIT" {
/if "$combat"=="TRUE" /if n @SingTime<=0 /call Sing @cSongArray(@cursong)
/if "$combat"!="TRUE" /if n @SingTime<=0 /call Sing @ncSongArray(@cursong)
}
/if $char(state)=="DUCK" /press d
/doevents
/goto :Loop
/return
Sub Sing
/varset SingTime @CASTTIME
/stopsong
/cast @Param0
/varset prevsong @cursong
/varadd cursong 1
/if n @cursong>@nncsongs /varset cursong 1
/doevents
/return
Sub Event_MissedNote
/varset cursong @prevsong
/varset SingTime 0
/doevents
/return
Sub Event_Recovered
/varset SingTime 0
/varset cursong @prevsong
/doevents
/return
All I'm trying to do is allow for a click based song to be included into the twist.
So then assuming it's the BoH which instant clicks "nivs"...
change basic input to either include 'click' or a blank field for when I can afford to sacrifice melee for the click or bypass the click altogether.
/macro twist <song list1> <song list2> <blank|"click">
example
/macro twist 123 456 click
/macro twist 123 456
I just hot key the click item and slave it to function F6
so when it's time to click said item at the end of the twist
Code: Select all
Sub clickit
/stopsong
/press F6
/delay 2m
/return
So then I'm having trouble getting the macro to properly read the click/blank and even when forcing the click, getting it to fire off at the end of each cycle... once lol
I'm sure it's merely syntax giving me the run arounds as per my usual as for the first part but how to make click a "4th" (or"5") song is throwing me for the loop - no pun intended - honestly.
any help? =/
+Benev0


