Page 1 of 1

[uosteam] read serial of item wielded/worn in location

Posted: Tue Dec 15, 2020 4:17 pm
by sarmatian
is it possible to read in uosteam script what is item serial that I am holding in my left/right hand?
I want to shorten time for potion drinking ...
instead of clearhands
// do drinking stuff
equipitem
equipitem

I would like to remember, put away, and reequip that item from one hand.
similar when I have small script to equip weap1+shield weap2 ...
i would like to check first if it is not already equiped instead of always ... clearhands

There is similar code in one of published taming scripts
where my character is following taming target

Code: Select all

  if not @inrange 'tobetamed' 1
    if @x 'tobetamed' > x 'self' and @y 'tobetamed' > y 'self'
      walk 'Southeast'
    elseif @x 'tobetamed' < x 'self' and @y 'tobetamed' > y 'self'
      walk 'Southwest'
so @x 'tobitamed' is in object notation tobetamed.x

can I have something like me.lefthand ?