Edit: Fixed somthingso i wanted to make a free-for-all healer slave
################################KM autohealer########################
automacro autoheal2{
pubm /h(eal|il)/i
call heal
}
macro heal{
do sp 28 $.lastpub
}
automacro autoheal{
pubm /h(eal|il) (\d+)/i
call {
$maxHeal = 10
$maxHealAmount = 20000
$healStrength = 1300
if ($.lastMatch2 <= $maxHeal && $.lastMatch2 >= 1) goto amount1
if ($.lastMatch2 <= $maxHealAmount && $.lastMatch2 >= $healStrength) goto amount2
stop
:amount1
$amount = @eval ($.lastMatch2)
$amountHeal = @arg ("$amount", 1)
call heal $amountHeal
stop
:amount2
$amount = @eval ($.lastMatch2/$healStrength)
$amountHeal = @arg ("$amount", 1)
call heal $amountHeal
stop
}
}
#######################################################################
#p.s can anyone make this simpler?
Public Heal slave Macro
Moderator: Moderators
-
- Noob
- Posts: 18
- Joined: 02 Apr 2011, 07:22
- Noob?: No
Public Heal slave Macro
author: KM
-
- Noob
- Posts: 18
- Joined: 02 Apr 2011, 07:22
- Noob?: No
Re: Public Heal slave Macro
when ppl say:
heal= 1 heal
*help*= 1 heal
heal 9 = 9 heals
heal 19000 = heals about 19k worth
$maxHeal = max number of heals
$maxHealAmount = max heal amout someone cud ask for
$healStrength = the strength of 1 heal, << you should change this
-i also have a public buff macro but im to lazy to post it.
-any questions?
heal= 1 heal
*help*= 1 heal
heal 9 = 9 heals
heal 19000 = heals about 19k worth
$maxHeal = max number of heals
$maxHealAmount = max heal amout someone cud ask for
$healStrength = the strength of 1 heal, << you should change this
-i also have a public buff macro but im to lazy to post it.
-any questions?
Re: Public Heal slave Macro
Pornograffitti wrote:when ppl say:
heal= 1 heal
*help*= 1 heal
heal 9 = 9 heals
heal 19000 = heals about 19k worth
$maxHeal = max number of heals
$maxHealAmount = max heal amout someone cud ask for
$healStrength = the strength of 1 heal, << you should change this
-i also have a public buff macro but im to lazy to post it.
-any questions?
sir, do u have warp macro?
-
- Noob
- Posts: 7
- Joined: 04 Jun 2013, 02:17
- Noob?: Yes
Re: Public Heal slave Macro
Is it possible to have heal three times per each call.
For example, when I say heal, then my priest will heal me three times.
For example, when I say heal, then my priest will heal me three times.
Re: Public Heal slave Macro
Replace the goto/label the if/elsif
Code: Select all
automacro autoheal2{
pubm /h(eal|il)/i
call heal
}
macro heal{
do sp 28 $.lastpub
}
automacro autoheal{
pubm /h(eal|il) (\d+)/i
call {
$maxHeal = 10
$maxHealAmount = 20000
$healStrength = 1300
if ($.lastMatch2 <= $maxHeal && $.lastMatch2 >= 1) {
$amount = @eval ($.lastMatch2)
$amountHeal = @arg ("$amount", 1)
call heal $amountHeal
} elsif ($.lastMatch2 <= $maxHealAmount && $.lastMatch2 >= $healStrength) {
$amount = @eval ($.lastMatch2/$healStrength)
$amountHeal = @arg ("$amount", 1)
call heal $amountHeal
}
}
}