Paste #21983: Untitled Paste

Date: 2015/10/30 16:41:46 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


quest_1:
    type: book
    title: Quest 1
    author: CorporalBruno
    signed: true
    text:
    - <&4>Fwiz<black>: Hi, my name is Fwiz. You can find me in my office at the Google headquarters building.<p>I know this is creepy because we have never met and you can't see me right now, but I have something important I want to share with you.
    - <&4>Fwiz<black>: This is a private conversation because it is related to our business. So, please come alone.<p>There is much money at stake for us. This is why I want you to come talk to me directly in my office for further details.

quest_0:
  type: book
  title: QuestBook 0
  author: CorporalBruno
  signed: true
  text:
  - §6╔═══════════╗<n>§6║§4§l§oBrunosRealmQuest§6║<n>§6║§4§l§oAnd Help Book.     §6║<n>§6╚═══════════╝§0<n>www.BrunosRealm.com

Open_Book:
  type: task
  definitions: book
  script:
    - inventory close
    - define PrevItem <player.item_in_hand||i@air>
    - inventory set o:<def[Book]> d:<player.inventory> slot:<player.item_in_hand.slot>
    - adjust <player> open_book
    - if <def[PrevItem]> == i@air { 
      - take <def[Book]> 
      - queue clear 
    } 
    - inventory set o:<def[PrevItem]> d:<player.inventory> slot:<player.item_in_hand.slot> 

Adjust:
  type: task 
  script: 
  - adjust i@Book1 book:PAGES|<pl.flag[Pages].as_list.after[li@]> save:book 
  - run Open_Book def:<entry[book].result>

Combine:
  type: task
  speed: 1
  script:
  - define book i@Quest_Book[book=author|<i@quest_0.book.author>|title|<i@quest_0.book.title>|pages|<i@quest_0.book.pages.include[<i@quest_1.book.pages>]>]
  - run Open_Book def:<def[book]>