Moderator: MacroQuest Developers

Code: Select all
/ini "NPCini" "$zone" "$target(name,clean).DistanceMelee" 17

Code: Select all
[Doomfire, The Burning Lands]
Jaxoliz Dawneyes.DistanceMelee=30
a soldier of fire.DistanceMelee=15
Pyronis.DistanceMelee=25
Blazzax the Omnifiend.DistanceMelee=60
Criare Sunmane.DistanceMelee=50
Quavonis Firetail.DistanceMelee=50
a diviner of fire.DistanceMelee=15
General Druav Flamesinger.DistanceMelee=25
Code: Select all
/ini "NPCini" "$zone" "$target(name,clean).DistanceMelee" 17

Code: Select all
/mac stick.mac 0
Code: Select all
/mac stick 0 bash
Code: Select all
/mac stick

Code: Select all
/echo @MeleeAttack_1
/echo @MeleeAttack_2
/echo @MeleeAttack_3
Code: Select all
/if "@MeleeAttack_1"!="NULL" /if $char(casting)!=TRUE /if n $target(distance)<=@MeleeDistance /if $char(ability,"@MeleeAttack_1")>0 /doability "@MeleeAttack_1"
/if "@MeleeAttack_2"!="NULL" /if $char(casting)!=TRUE /if n $target(distance)<=@MeleeDistance /if $char(ability,"@MeleeAttack_2")>0 /doability "@MeleeAttack_2"
/if "@MeleeAttack_3"!="NULL" /if $char(casting)!=TRUE /if n $target(distance)<=@MeleeDistance /if $char(ability,"@MeleeAttack_2")>0 /doability "@MeleeAttack_3"
Code: Select all
|/doability "@MA_SB"
/varset Time_MA_SB @MA_Timer_SB
Code: Select all
|/if "$char(class)"=="Shadow Knight" /if $target(id)==@MobID /if $char(casting)!=TRUE /if n $target(distance)<=@MeleeDistance /goto :attackSpellsSK
/goto :attackMeleeLoop
:attackSpellsSK
/if n $char(gem,"Zevfeer's Bite")>0 /if n $char(mana,pct)>20 /if n $target(hp,pct)<90 /[color=red]call[/color] cast "Zevfeer's Bite"
/if n $char(gem,"Aura of Hate")>0 /if n $char(mana,pct)>20 /if n $target(hp,pct)<90 /[color=red]call[/color] cast "Aura of Hate"
/if n $char(gem,"Spear of Decay")>0 /if n $char(mana,pct)>50 /if n $target(hp,pct)<90 /[color=red]call[/color] cast "Spear of Decay"
/if n $char(gem,"Spear of Plague")>0 /if n $char(mana,pct)>50 /if n $target(hp,pct)<90 /[color=red]call[/color] cast "Spear of Plague"
/if n $char(hp,pct)<90 /if n $char(buff,"Bond of Death Recourse")==0 /if n $char(gem,"Bond of Death")>0 /if n $char(mana,pct)>20 /if n $target(hp,pct)<90 /[color=red]call[/color] cast "Bond of Death"
Code: Select all
|/if "$char(class)"=="Shadow Knight" /if $target(id)==@MobID /if $char(casting)!=TRUE /if n $target(distance)<=@MeleeDistance /goto :attackSpellsSK
/goto :attackMeleeLoop
:attackSpellsSK
/if n $char(gem,"Zevfeer's Bite")>0 /if n $char(mana,pct)>20 /if n $target(hp,pct)<90 /cast "Zevfeer's Bite"
/if n $char(gem,"Aura of Hate")>0 /if n $char(mana,pct)>20 /if n $target(hp,pct)<90 /cast "Aura of Hate"
/if n $char(gem,"Spear of Decay")>0 /if n $char(mana,pct)>50 /if n $target(hp,pct)<90 /cast "Spear of Decay"
/if n $char(gem,"Spear of Plague")>0 /if n $char(mana,pct)>50 /if n $target(hp,pct)<90 /cast "Spear of Plague"
/if n $char(hp,pct)<90 /if n $char(buff,"Bond of Death Recourse")==0 /if n $char(gem,"Bond of Death")>0 /if n $char(mana,pct)>20 /if n $target(hp,pct)<90 /cast "Bond of Death"
