Code: Select all
/if n $target(hp,pct)<=15 /if n $target(distance)>2000 {
/cleanup
/call gettarget
}
Moderator: MacroQuest Developers
Code: Select all
/if n $target(hp,pct)<=15 /if n $target(distance)>2000 {
/cleanup
/call gettarget
}
Code: Select all
/if n $target(hp,pct)<=15 /if n $target(distance)>2000 {
/cleanup
/echo Target warped, acquiring another
/call gettarget
}
Code: Select all
/if $defined(HealSong)!=false /if n @SeloTimer<1460 {
/if n $char(hp,pct)<@HealthMin {
/varadd HealthCount 1
/varset HealthCountt 0
/if n @HealthCount>=5 {
/varset HealthCount 5
/if n @Songs(1)!=@HealSong {
/echo Healing On - Health: $char(hp,pct)% to @HealthMax%
/varset Songs(1) @HealSong
}
}
} else {
/varadd HealthCountt 1
/varset HealthCount 0
/if n @HealthCountt>=5 {
/varset HealthCountt 5
/if n @Songs(1)!=@OrigSong {
/echo Healing Off
/varset Songs(1) @OrigSong
}
}
}
}
Code: Select all
/if $defined(HealSong)!=false /if n @SeloTimer<1460 {
/if n $char(hp,pct)<@HealthMin {
/if n @Songs(1)!=@HealSong {
/echo Healing On - Health: $char(hp,pct)% to @HealthMax%
/varset Songs(1) @HealSong
}
} else /if n $char(hp,pct)>@HealthMax {
/if n @Songs(1)!=@OrigSong {
/echo Healing Off
/varset Songs(1) @OrigSong
}
}
}
Code: Select all
/if $defined(HealSong)!=false /if n @SeloTimer<1460 {
/if n $calc($calc($char(hp,cur)/$char(hp,max))*100)<@HealthMin {
/if n @Songs(1)!=@HealSong {
/echo Healing On - Health: $char(hp,pct)% to @HealthMax%
/varset Songs(1) @HealSong
}
} else /if n $calc($calc($char(hp,cur)/$char(hp,max))*100)>@HealthMax {
/if n @Songs(1)!=@OrigSong {
/echo Healing Off
/varset Songs(1) @OrigSong
}
}
}
Code: Select all
$char(hp,pct)
Code: Select all
$calc($calc($char(hp,cur)/$char(hp,max))*100)