ScriptUO

Official ScriptUO EasyUO Scripts => Scripting Chat => Topic started by: Crisis on March 13, 2015, 06:40:59 PM

Title: killing and healing subs
Post by: Crisis on March 13, 2015, 06:40:59 PM
I have been Googling to see if there were any PvM killing subs or health monitor subs but no luck, just full scripts. I think I may be able to figure out the health monitor/heal sub but not feeling very optimistic about a PvM killing sub. Does anyone know where I can find any working ones?
Title: Re: killing and healing subs
Post by: TrailMyx on March 13, 2015, 06:57:13 PM
I looked to see if I had anything subed out, but I don't seem to have anything.  My healer kinda runs in another tab and you forget about it.  You'd know if it's active by monitoring a !TM_HEAL flag (or also *TM_HEAL).  You could just run my healer and look at those flags and farm away.
Title: Re: killing and healing subs
Post by: Crisis on March 13, 2015, 08:06:49 PM
I was hoping this might work to give me a start but I obviously did something wrong. I think it is in setting the target but not positive.

Code: [Select]
set %KOS PHB_QHB
findItem %KOS G_12
if findcnt > 0
  {
  gosub killtime
  }
  
sub killtime
findItem %KOS G_12
KillLoop:
event macro 15 41
target 5s
set #ltargetid %KOS
set #ltargetkind 1
event macro 22 0
wait 50
finditem %KOS
if #findcnt > 0
   {
      goto KillLoop
   }
if #HITS < ( #MAXHITS - 50 )
  {
  set #lobjectid
  event macro 15 28
  wait 20
  target
  event macro 23 0
  wait 20
  }
return