Date: 2015/10/30 16:41:46 UTC-07:00
Type: Denizen Script
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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]>