For the slave:
Code: Select all
##Slave##
#This macro will have slave PM the master when it's SP is below an amount.
#Good for letting your player-controlled character know when it is time
#to use pots and not rely on the slave for heals
automacro ShoutSP {
sp < 30 #or whatever amount is lowest sp cost for heal#
call {
do pm ("MainChar") (SP low) #c public, p party, g guild, pm private)#
}
timeout 12
}
For the master (player):
Code: Select all
##Master##
#After receiving message from slave, "SP low", will do self check to
#determines if it should use pots so as not to die! Must satisfy all
#conditions: 1) Received message from slave that "SP low", #2) HP
#lower than set amount and 3) Has "white potion" in inventory to even use
automacro RelyOnPots {
$.lastpmMsg ("SP low") [BotHealer]
hp < 20%
inventory "white potion" >= 1
call {
do is white potion
}
timeout 1
}
Cheers