Author Topic: Book Copier?  (Read 3165 times)

0 Members and 1 Guest are viewing this topic.

Offline GreenieTopic starter

  • Newbie
  • *
  • Posts: 2
  • Activity:
    0%
  • Reputation Power: 1
  • Greenie has no influence.
  • Respect: 0
  • Referrals: 0
    • View Profile
Book Copier?
« on: February 28, 2021, 09:50:51 AM »
0
Hey Everyone!

I am sorry to ask this here, I dunno what more to search. I am looking for a script that will copy text from one book to another. Not a runebook or spellbook, but the plain NPC purchasable books.

Thanks in advance for any direction or links.

Offline Gaderian

  • Elite
  • *
  • *
  • Posts: 486
  • Activity:
    0%
  • Reputation Power: 10
  • Gaderian barely matters.Gaderian barely matters.
  • Respect: +50
  • Referrals: 3
    • View Profile
Re: Book Copier?
« Reply #1 on: February 28, 2021, 10:39:57 AM »
0
I do not know if there is one, but the code itself to copy from one book to another is simple.

set the ID of the book you want to copy from as %SourceBook.
buy a bunch of the books from an NPC (provisioner???)
you may have to adjust the types set in the variable %books...
Code: easyuo
  1. set %books XYF_AZF
  2. set %SourceBook XXXXXX ; set this to the id of the book you want to copy from
  3. ignoreitem %SourceBook
  4. finditem %books C_ , #backpackid
  5. if #findcnt > 0
  6.  {
  7.  for #findindex 1 #findcnt
  8.  {
  9.   event macro 13 23
  10.   wait 40
  11.   set #LTARGETID %SourceBook
  12.   set #LTARGETKIND 1
  13.   event macro 22 0
  14.   wat 40
  15.   set #LTARGETID #findid
  16.   set #LTARGETKIND 1
  17.   event macro 22 0
  18.   }
  19.  }
  20. halt
  21.  

That will copy your source book to all the various books you bought in your backpack.

« Last Edit: March 01, 2021, 05:15:24 PM by Gaderian »
"Go ahead ask me: 'Should I use hard waits or timers?'"
You say:"Should I"
Gaderian:"Timers!"
You Say:"use hard waits or timers?"

The serious side of timer use is illustrated here: http://www.scriptuo.com/index.php?topic=12094.msg101926#msg101926

However, every time I go back and look at this [AutoLooter] script, I realize I had wrote it in my zen state of EUO scripting - so it makes my brain hurt.

Tags: