When tryin to cast it via
Code: Select all
/cast $char(gem,2)
ANyway thanks for any help!
Draekz
Moderator: MacroQuest Developers

Code: Select all
/cast $char(gem,2)

Code: Select all
Sub Main
/varset nsongs 0
/if $p3!="" /if $p3!=NULL {
/varadd nsongs 1
/varset a(0,2) $p3
/echo Song 1: $char(gem,$p3)
}
/if $p4!="" /if $p4!=NULL {
/varadd nsongs 1
/varset a(0,2) $p4
/echo Song 2: $char(gem,$p4)
}
/if $p5!="" /if $p5!=NULL {
/varadd nsongs 1
/varset a(0,3) $p5
/echo Song 3: $char(gem,$p5)
}
/if $p6!="" /if $p6!=NULL {
/varadd nsongs 1
/varset a(0,4) $p6
/echo Song 4: $char(gem,$p6)
}
/varset cursong 1
/varset exper $char(exp)
Code: Select all
/if $p3!="" /if $p3!=NULL {
/varadd nsongs 1
/varset a(0,2) $p3
/echo Song 1: $char(gem,$p3)
}[b]else /if $p3~~"Selo's" {
/varadd nsongs 1
/varset a(0,2) "Selo`s Accelerando"
/echo Song 1: $char(gem,"Selo`s Accelerando")
}[/b] Code: Select all
/cast "<songname>" Code: Select all
/cast $char(gem,2)Code: Select all
/cast "tnarg`s mending"
Code: Select all
| - Twist1.mac -
| - Created by:
| - TheColonel -
| * Edited by:
| * Viisual
| + Touched up:
| + don't_know_at_all
|
| Description: This macro will run a bard in a circle, starting at an
| x,y loc you input and a radius you input and cast songs
| from the gem#(s) that you input
| Call : /macro <macroname> <xloc> <yloc> <radius> <song1> <song2>
| <song3> <song4>
|______________________________________________________________________
#event MissedNote "You miss a note, bringing your song to a close!"
#event Recovered "You haven't recovered yet..."
#event NeedTarget "You must first select a target for this spell!"
#event Slow "You slow down"
#event Exp "You gain "
#event Outof "out of range"
#event SpawnCheck "check"
#define cursong v1
#define exper V2
#define nsongs v3
#define targcount v4
#define songname v5
#define CastTimer t0
#define xpleft v14
Sub Main
/varset nsongs 0
/if $p3!="" /if $p3!=NULL /if $p3=="Selo`s Accelerando" {
/varadd nsongs 1
/varset a(0,2) $p3
/echo Song 1: $char(gem,$p3)
}
/if $p4!="" /if $p4!=NULL {
/varadd nsongs 1
/varset a(0,2) $p4
/echo Song 2: $char(gem,$p4)
}
/if $p5!="" /if $p5!=NULL {
/varadd nsongs 1
/varset a(0,3) $p5
/echo Song 3: $char(gem,$p5)
}
/if $p6!="" /if $p6!=NULL {
/varadd nsongs 1
/varset a(0,4) $p6
/echo Song 4: $char(gem,$p6)
}
/varset cursong 1
/varset exper $char(exp)
:Loop
/varset songname $char(gem,$cursong)
/call Sing $int($a(0,$cursong))
/call circ $p0 $p1 $p2
/doevents
/varset CastTimer $int($spell("$songname",casttime)*10+$spell("$songname",recoverytime)*10)
:casting
/call circ $p0 $p1 $p2
/if n $CastTimer>0 /goto :casting
/doevents
/cal circ $p0 $p1 $p2
/goto :Loop
/return
Sub Sing
/stopsong
/cast $p0
/varadd cursong 1
/if n $cursong>$nsongs /varset cursong 1
/doevents
/return
sub circ
/face heading $calc($heading($p0,$p1)+90+$calc($p2-$distance($p0,$p1))/2)
/varset v6 $calc($p2-$distance($p0,$p1))
/if n $v6>10 {
/face heading $calc($heading($p0,$p1)+180)
} else /if n $v6<-10 {
/if n $v6<-180 /varset v6 -180
/face heading $calc($heading($p0,$p1)+90+$v6/2)
} else {
/face heading $calc($heading($p0,$p1)+90)
}
/return
Sub Event_MissedNote
/varcalc cursong $cursong - 1
/if n $cursong<1 /varset cursong 1
/varset t0 0
/return
Sub Event_Slow
/if n $cursong!=1 {
/varset cursong 1
/varset t0 0
/doevent
}
/return
Sub Event_Outof
/varset t0 0
/varadd targcount 1
/if n targcount<=4 /if $target(hp)<"100" {
/varset targcount 0
/tar npc
}
/doevents
/return
Sub Event_Recovered
/delay .4
/doevents
/return
Sub Event_NeedTarget
/varadd cursong 1
/if n $cursong>nsongs /varset cursong 1
/tar npc
/return
Sub Event_Exp
/varset xpleft $calc(100-$char(exp))
/varcalc exper $char(exp)-$exper
/echo Kill:$exper% Left:$xpleft
/varset exper $char(exp)
/tar npc
/return
Sub Event_SpawnCheck
| /ooc Big Island raptors
/return
Code: Select all
/call Sing $int($a(0,$cursong))
Code: Select all
/if $p3!="" /if $p3!=NULL /if $p3=="Selo`s Accelerando" {
/varadd nsongs 1
/varset a(0,2) $p3
/echo Song 1: $char(gem,$p3)
}
Code: Select all
/if $p3!="" /if $p3!=NULL /if $p3=="Selo`s Accelerando" {
/varadd nsongs 1
/varset a(0,1) $p3
/echo Song 1: $char(gem,$p3)
}

Don't do this.Draekz wrote:I dunno how to explain this, but is there anyway around the ' error in Selo`s Accelerando?
When tryin to cast it viaCode: Select all
/cast $char(gem,2)