// Author: Di
// Description: seek low hp friend, miniheal, disrupt paralyze and invisibility if mortaled
// Seek
@unsetalias 'target'
for 15
@getfriend 'humanoid' 'transformation' 'friend'
if not @findobject 'friend'
break
elseif @inrange 'friend' 10 and not dead 'friend'
if criminal 'friend' or murderer 'friend'
if @inregion 'guards' 'friend'
continue
endif
endif
if not @findobject 'target' or hits 'target' > hits 'friend'
@setalias 'target' 'friend'
endif
endif
endfor
@setalias 'friend' 'target'
// Help
if @findobject 'friend' and not dead 'friend'
if targetexists 'beneficial'
target! 'friend'
endif
if paralyzed 'friend'
cast 'clumsy' 'friend'
elseif yellowhits 'friend'
cast 'invisibility' 'friend'
else
miniheal 'friend'
endif
while waitingfortarget
if criminal 'friend' or murderer 'friend'
if @inregion 'guards' 'friend'
sysmsg 'Target cancelled, guards zone!' 55
cancelautotarget
break
endif
endif
endwhile
else
headmsg '* No friend *' 25
endif
zulu2401 wrote:Lol let's make a script for auto invisibility when mortal so you can get withered or conflag
well, not everyone play a mage / will be able to perform area attacks in case you are inside guards zone / will have the ability to think and act that fast...
if you consider a gank situation it may help enough so a friend can eat an apple or drink a potion once mortal is gone
ofc I just posted this to help so people can edit and make it the way they like