Page 1 of 1

Copying Books - NOT Runebooks ?

Posted: May 10th, 2020, 2:26 am
by kentares
Good evening,

Does anyone have a UOS script that allows for copying one book, to multiple blank books? I am trying to copy one book to 125 blank books; here is what I have worked up so far:

Code: Select all

useskill 'Inscription'
waitfortarget 15000
// Book to Copy from
target! 0x413f400c
waitfortarget 15000
// List of books to copy to 
target! 0x41419795
Trying to figure out how to have the script copy all 125 books that I have in a basket. The book I am copying from is sitting or a desk or can be moved into my backpack.

Thank you for your time and consideration,




kentares

Re: Copying Books - NOT Runebooks ?

Posted: May 10th, 2020, 3:15 am
by kentares

Code: Select all

useskill 'Inscription'
waitfortarget 15000
target! '0x413f400c'
waitfortarget 15000
if findtype 0xff2 '1157' '0x421df058' 1
  autotargetobject 'found'
  moveitem 'found' 'backpack'
endif
Getting closer, still a bit buggy.

Re: Copying Books - NOT Runebooks ?

Posted: May 10th, 2020, 3:39 am
by kentares
Good evening Everyone,

I believe this script is done.

Code: Select all

useskill 'Inscription'
waitfortarget 15000
//Master Copy
target! '0x413f400c'
waitfortarget 15000
//Book(s) to Copy
if findtype 0xff2 '1157' '0x421df058' 1
  target! 'found'
  // Only move the book to another container if it was successfully copied
  waitforjournal 'You make a copy of the book.' 10000 'system'
  if @injournal 'You make a copy of the book.' 'system'
    moveitem 'found' '0x43496a1d'
    pause 500
    @clearjournal
  endif
endif
Any critiques, suggestions, or criticisms are welcome.

Thank you for your time,




kentares

Re: Copying Books - NOT Runebooks ?

Posted: May 10th, 2020, 5:13 pm
by The Silvertiger
kentares wrote: May 10th, 2020, 3:39 am Good evening Everyone,

I believe this script is done.

Code: Select all

useskill 'Inscription'
waitfortarget 15000
//Master Copy
target! '0x413f400c'
waitfortarget 15000
//Book(s) to Copy
if findtype 0xff2 '1157' '0x421df058' 1
  target! 'found'
  // Only move the book to another container if it was successfully copied
  waitforjournal 'You make a copy of the book.' 10000 'system'
  if @injournal 'You make a copy of the book.' 'system'
    moveitem 'found' '0x43496a1d'
    pause 500
    @clearjournal
  endif
endif
Any critiques, suggestions, or criticisms are welcome.

Thank you for your time,




kentares

Code: Select all

//Master Copy
if not @findalias 'Master Copy'
promptalias 'Master Copy'
endif
//Books to be copied location
if not @findalias 'Book Restock'
promptalias 'Book Restock'
endif
//Finished Books Location
if not @findalias 'Completed Books'
promptalias 'Completed Books'
endif
//Main Script
while @findtype 0xff2 '1157' 'Book Restock' 1
useskill 'Inscription'
waitfortarget 15000
//Book(s) to Copy
if @findtype 0xff2 '1157' 'Book Restock' 1
  target! 'found'
  // Only move the book to another container if it was successfully copied
  waitforjournal 'You make a copy of the book.' 10000 'system'
  if @injournal 'You make a copy of the book.' 'system'
    moveitem 'found' 'Completed Books'
    pause 500
    @clearjournal
  endif
endif
endwhile
unsetalias 'Master Copy'
That makes it easier to implement between players and will run until all books are completed. The only issue is multiple types of books. That could be remedied with or's and multiple if statements. However, I don't have access to the graphics and this is based purely on memory. I'm sure it could be streamlined more too. Could have headmsg's instructing what to do as well.