uosteam vs razor

severus

Grandmaster
can anyone explain to me why the exact same macro doesnt work the same?

on razor
dbc bandage
pause .25
last target
las targe
last target
last target
pause 4.25

(heals pets perfectly)

usetype 0xe21 'any'

pause 250

target! 'last'

target! 'last'

target! 'last'

target! 'last'

target! 'last'

target! 'last'

target! 'last'

target! 'last'

pause 4250


This one fails to finish applying 90% of time.. any ideas why? sometimes also fails to start applying
 

Jager

Grandmaster
i personally just started using UOSteam myself and have had some issues with the pre-made scripts. unfortunately i dont have an aswer to your question, i had to tweak mine a bit and gonna see if it works when i head home for lunch.
 
Try this

usetype 0xe21 0x0 backpack
waitfortarget 1000
target 'last'
pause 4250


or alternatively, if you want to make sure this macro only targets your pet even when you change your last target, use the command
-setalias pet
and target your nightmare or dragon. Now replace target 'last' with target 'pet'
Let me know if this works for you
 

halygon

Grandmaster
This is similar to bong ele's code but is a bit more comprehensive as a macro:

Code:
promptalias 'pet2heal'
while hits 'pet2heal' < maxhits 'pet2heal'
  if @findtype 0xe21 'any' 'backpack'
    usetype 0xe21 'any' 'backpack'
    waitfortarget 5000
    target! 'pet2heal'
  else
    sysmsg 'No Bandaids in backpack!'
  endif
  pause 4500
endwhile
sysmsg 'Pet healed'
 

bane

Master
This is similar to bong ele's code but is a bit more comprehensive as a macro:

Code:
promptalias 'pet2heal'
while hits 'pet2heal' < maxhits 'pet2heal'
  if @findtype 0xe21 'any' 'backpack'
    usetype 0xe21 'any' 'backpack'
    waitfortarget 5000
    target! 'pet2heal'
  else
    sysmsg 'No Bandaids in backpack!'
  endif
  pause 4500
endwhile
sysmsg 'Pet healed'

I use this one. It is an extension of the one above and I like it better since if I interrupt it to cast something then activate the macro again it won't heal my pet until the first bandage was applied. I just set it to loop but allow it to be interrupted by other macros.

Code:
if not findalias 'Pet1'
  promptalias 'Pet1'
endif
if not timerexists 'Pet1HealTimer'
  settimer 'Pet1HealTimer' 6501
endif
if timer 'Pet1HealTimer' >= 6500 and hits 'Pet1' < maxhits 'Pet1'
  usetype 0xe21 'any' backpack
  waitingfortarget 1000
  @target 'Pet1'
  settimer 'Pet1HealTimer' 0
endif
 
Top