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.

Sorting tailor and smith bods into separate books

j_monroy

Squire
Hey all, this is a uosteam script I created to put green bods (tailor) into a book you can select, and gray bods (smith) into another book that you will also select.

Code:
if not @findalias 'tailor book'
  promptalias 'tailor book'
endif
if not @findalias 'smith book'
  promptalias 'smith book'
endif
if @findtype 0x2258 '1155' 'backpack'
  @setalias 'bod' 'found'
  @moveitem 'bod' 'tailor book'
elseif @findtype 0x2258 '1102' 'backpack'
  @setalias 'bod' 'found'
  @moveitem 'bod' 'smith book'
endif
if not @findtype 0x2258 'any' 'backpack'
  sysmsg 'there are no bods in your book'
  @unsetalias 'tailor book'
  @unsetalias 'smith book'
  stop
endif

'1155' is the color for tailor bods
'1102' is the color for smith bods

I have the script unset the book because otherwise your next character will attempt to put them into the previously used books, which will obviously not work since they are not there.

Let me know if this is useful.
 
Top