[UOSteam] Autoattack with weapon ability.

If you make a Client-side script you can publish it here for other players to use
Locked
Elmseeker
Novice Scribe
Posts: 9
Joined: Thu Apr 07, 2011 5:18 pm

[UOSteam] Autoattack with weapon ability.

Post 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
jerco05
Adept Scribe
Posts: 43
Joined: Sun Aug 17, 2014 9:14 pm

Re: [UOSteam] Autoattack with weapon ability.

Post 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!
PM Richter in game
Locked