This is exactly where I am stumbling over a lil problem as well :)
Ok, basically this macro should do the following: Upon incoming you start the macro and your friendly neighbourhood wizard'll summon a flaming sword of xuzl, then activate the swarm pet AA and then start a nuke rotation (and every now and then twist in concussion using the ele legs). Now I am having troubles detecting wether or not the character is casting, as right now the check does nothing and the char tries to nuke while xuzl AA is activated.
Also, the same check should be used should you run low on mana and then cast either harvest or harvest of druzzil, what ever comes first, and then delay long enough (as you're stunned).
As I didn't find a way to check wether a spell or AA was castable ATM or not (sort of something like "spellup" or something) I wanted to use the check wether or not your casting... and if you're casting just wait long enough.
Following is the code, don't let the german spellnames distract you, using ancient cold nuke, icemeteor, icespear of solist and ele leggins, flaming sword of xuzl, call of xuzl, harvest and harvest of druzzil.
Code: Select all
Sub Main
/zapvar
/declare zZeit1 global
/declare zZeit2 global
/declare zZeit3 global
/declare zZeit4 global
/declare zZeit5 global
/varcalc zZeit1 25+10*$spell("Alt: Zerstörung des Eises",casttime)
/varcalc zZeit2 25+10*$spell("Eisspeer von Solist",casttime)
/varcalc zZeit3 25+10*$spell("Eismeteor",casttime)
/varcalc zZeit4 25+20
/varcalc zZeit5 25+10*$spell("Flammenschwert von Xuzl",casttime)
/echo Xuzl's Feuermesser --> $target(name,clean)
/cast "Flammenschwert von Xuzl"
/delay @zZeit5
/echo Xuzl-Messer (plural) --> $target(name,clean) FALLS UP!!
/alt activate 208
/if $char(casting)==TRUE /delay 9s
:Nuke
/echo Alt: Zerstörung des Eises --> $target(name,clean)
/cast "Alt: Zerstörung des Eises"
/delay @zZeit1
/if $target(name)=="NULL" {
/echo Mob down
/endmacro
}
/echo Eisspeer von Solist --> $target(name,clean)
/cast "Eisspeer von Solist"
/delay @zZeit2
/if $target(name)=="NULL" {
/echo Mob down
/endmacro
}
/cast item "Maelins Überhosen des Wissens"
/delay @zZeit4
/if $target(name)=="NULL" {
/echo Mod down
/endmacro
}
/echo Eismeteor --> $target(name,clean)
/cast "Eismeteor"
/delay @zZeit3
/if $target(name)=="NULL" {
/echo Mob down
/endmacro
}
/cast item "Maelins Überhosen des Wissens"
/delay @zZeit4
/if $target(name)=="NULL" {
/echo Mob down
/endmacro
}
/if n $char(mana,pct)<=80 {
/echo Mache mir massig Mana! (Harvest!)
/cast "Ernte"
if $char(casting)==TRUE /delay 13s
}
/if n $char(mana,pct)<=80 {
/echo Mache mir massig Mana! (Harvest of Druzzil)
/alt activate 172
if $char(casting)==TRUE /delay 13s
}
/if $target(name)=="NULL" {
/echo Mod down
/endmacro
}
/goto :Nuke
/return
Any ideas where I'm going wrong?