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

Discussion about the technical aspects of scripting. Ask about all issues involving your freelance projects here.
Post Reply
sarmatian
Grandmaster Scribe
Posts: 88
Joined: Fri May 29, 2020 10:55 am

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

Post 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 ?
Post Reply