Page 1 of 1

[UOSteam] Autoattack with weapon ability.

Posted: Tue May 10, 2016 11:29 am
by Elmseeker
A simple script that auto attacks and uses your weapon ability as well as consecrate weapon. It will try to save enough mana for you to use an emergency heal if needed.

Code: Select all

cast 'consecrate weapon'
for 12
  @getenemy! 'murderer' 'enemy' 'criminal' 'gray' 'closest'
  if @findobject! 'enemy'
    if 'mana' > 32
      @setability! 'primary' 'on'
    endif
    if not targetexists 'any'
      autotargetobject! 'enemy'
    endif
    @attack 'enemy'
  endif
  pause 1000
  @clearusequeue
  @cancelautotarget
  @canceltarget
endfor

Re: [UOSteam] Autoattack with weapon ability.

Posted: Thu Sep 22, 2016 7:47 pm
by jerco05
Hiyo! That's a great basic script and while there's no right and wrong way to script, I figured I'd toss a simple "auto attack closest with primary weapon ability" script in here. It doesn't do any chiv casting, but it does attack the nearest target while spamming primary ability.

Code: Select all

@getenemy 'murderer' 'criminal' 'enemy' 'gray' 'closest'!
if @inrange 'enemy' 10
  @attack 'enemy'
  setability 'primary' 'on'
endif
pause 250
@cleartargetqueue
replay
Enjoy!