UOGamers Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

  • To obtain new Razor updates, please reinstall Razor from our new website.

UOSteam Crosshealing Macro

MB

Knight
This will heal anybody in range that's on your friends list. You can also modify it for pets by adding their body types.

//set to do not auto interrupt
if not listexists 'BodyTypes'
createlist 'BodyTypes'
//human
pushlist 'BodyTypes' 0x190
pushlist 'BodyTypes' 0x191
//wraith
pushlist 'BodyTypes' 0x2ec
pushlist 'BodyTypes' 0x2eb
//elf
pushlist 'BodyTypes' 0x25d
pushlist 'BodyTypes' 0x25e
//lich
// pushlist 'BodyTypes' 0x2ed
//vamp
// pushlist 'BodyTypes' 0x2e9
// pushlist 'BodyTypes' 0x2e8
endif
if not listexists 'ghosts'
createlist 'ghosts'
pushlist 'ghosts' 0x192
pushlist 'ghosts' 0x193
pushlist 'ghosts' 0x260
pushlist 'ghosts' 0x25f
endif
//res dead friends if res precast
clearignorelist
if targetexists 'beneficial'
for 0 to 'ghosts'
while @findtype ghosts[] 'any' ground 1 1
if @infriendlist 'found'
target! 'found'
endif
ignoreobject 'found'
endwhile
endfor
endif
//paralyzed friends
clearignorelist
ignoreobject 'self'
for 0 to 'BodyTypes'
while @findtype BodyTypes[] 'any' ground 0 10
if @infriendlist 'found' and paralyzed 'found'
cast 'clumsy' 'found'
endif
ignoreobject 'found'
endwhile
endfor
//find lowest hp friend
clearignorelist
ignoreobject 'self'
@setalias 'buddy' 'self'
for 0 to 'BodyTypes'
while @findtype BodyTypes[] 'any' ground 0 10
if not @findalias 'buddy' and @infriendlist 'found'
if murderer 'found' and @inregion 'guards' 'found' 10
headmsg 'Murderer in guards!' 33 'found'
elseif criminal 'found' and @inregion 'guards' 'found' 10
headmsg 'Criminal in guards!' 1000 'found'
else
@setalias 'buddy' 'found'
endif
endif
if @infriendlist 'found' and hits 'found' < hits 'buddy'
if not yellowhits 'found'
if murderer 'found' and @inregion 'guards' 'found' 10
headmsg 'Murderer in guards!' 33 'found'
elseif criminal 'found' and @inregion 'guards' 'found' 10
headmsg 'Criminal in guards!' 1000 'found'
else
@setalias 'buddy' 'found'
endif
else
headmsg 'Mortaled!' 54 'found'
endif
endif
ignoreobject 'found'
endwhile
endfor
if targetexists 'server' or targetexists 'beneficial'
target! 'buddy'
endif
if poisoned 'buddy' and @inrange 'buddy' 10
cast 'cure' 'buddy'
elseif hits 'buddy' < 95 and @inrange 'buddy' 10
cast 'heal' 'buddy'
endif
 

Nordon

Sorceror
Fair enough.
However, I'm a person dealing with scripting and I have these urges to know stuff and possibly find ways to optimize. :)
 

c0d3r

Traveler
IF you use that macro change:
Code:
if targetexists 'server' or targetexists 'beneficial'
  target! 'buddy'
endif
to:
Code:
if targetexists 'harmful'
  target! 'enemy'
elseif targetexists 'beneficial'
  target! 'buddy'
endif
@canceltarget
unless you want to "accidentally" dump harmful targets on your friends.
you are welcome :)
 

Daho

Wanderer
i cant find that Friends List. Where is it? I would like to use this macro to heal my pets. I add their types and nothing happenes with them and with people in party as well.
 

kobra89pl

Sorceror
i cant find that Friends List. Where is it? I would like to use this macro to heal my pets. I add their types and nothing happenes with them and with people in party as well.
**************************
if poisoned 'mount'
cast 'cure' 'mount'
elseif hits 'mount' < 90
cast 'heal' 'mount'
endif
**************************
this one will works nice for your pet, if you do not know how add friends on UOS go to
Options -> Friends, insert and target your new friend, also use:
Include party members
Consider only this as valid friends
 

Pipino

Wanderer
I have a question about @infriendlist.
I wann make a simple macro that says hello to my friends in friendlist when i meet them or play another macro.

4 example
//say hello to my friends


if not listexists 'BodyTypes'
createlist 'BodyTypes'
//human
pushlist 'BodyTypes' 0x190
pushlist 'BodyTypes' 0x191
clearignorelist
ignoreobject 'self'
for 0 to 'BodyTypes'
while @findtype BodyTypes[] 'any' ground 0 10
if @infriendlist 'found'
msg 'hello'
endif
ignoreobject 'found'
endwhile
endfor

obviously it doesn't use :D

what's wrong ?
 

MB

Knight
I have a question about @infriendlist.
I wann make a simple macro that says hello to my friends in friendlist when i meet them or play another macro.

4 example
//say hello to my friends


if not listexists 'BodyTypes'
createlist 'BodyTypes'
//human
pushlist 'BodyTypes' 0x190
pushlist 'BodyTypes' 0x191
endif
clearignorelist
ignoreobject 'self'
for 0 to 'BodyTypes'
while @findtype BodyTypes[] 'any' ground 0 10
if @infriendlist 'found'
msg 'hello'
endif
ignoreobject 'found'
endwhile
endfor

obviously it doesn't use :D

what's wrong ?
 
I need one for greater dragon, or all other pet with 3 digit Body ID.

It works for cu sidhe

We think the reason it doesn't work for Greater Dragon, or other pet is because it has 3 digit Body Id while cusidhe has 4, but this is our theory so far so if anybody can give me an idea how to make it work for Greater Dragon it's much appreciated.
 
Top