Date: 2017/04/01 21:19:59 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
- if <player.flag[hogwarts_library_book]> != false {
- if <player.inventory.contains.display[<player.flag[hogwarts_library_book]>]> { - take bycover:<player.flag[hogwarts_library_book]> quantity:1
- chat "Thank you for returning <player.flag[hogwarts_library_book]>, <player.name>."
- flag player hogwarts_library_book:false
}
else {
- chat "I do not see your library book, <player.flag[hogwarts_library_book]>. Make sure it is in your inventory to return it."
- chat "If you have lost a library book, you'll need to pay to replace it before you can check out another one."
- chat "Say 'lost book' if you have lost your library book."
}
[04:17:57 INFO]: +- Executing dCommand: IF/p@Azami7 ---------+
[04:17:57 INFO]: +> Executing 'IF': use_braces='true'
[04:17:57 INFO]: Filled tag <player.flag[hogwarts_library_book]> with
'Standard Book of Spells Grade 1'.
[04:17:57 INFO]: Logic='NEGATIVE', Comparable='Element(Standard Book of Spells
Grade 1)', Operator='EQUALS', ComparedTo='Element(false)' -->
OUTCOME='true'
[04:17:58 INFO]: Queue 'MADAM_PINCE PROXIMITY TRIGGER_ExpandingIncorporateOil'
Executing: IF
"<player.inventory.contains.display[<player.flag[hogwarts_library_book]>]>"
"{" "-" "take" "bycover:<player.flag[hogwarts_library_book]>"
"quantity:1" "-" "chat" "Thank you for returning
<player.flag[hogwarts_library_book]>, <player.name>." "-"
"flag" "player" "hogwarts_library_book:false" "}" "else" "{"
"-" "chat" "I do not see your library book,
<player.flag[hogwarts_library_book]>. Make sure it is in your
inventory to return it... * snip! *
[04:17:58 INFO]: +- Executing dCommand: IF/p@Azami7 ---------+
[04:17:58 INFO]: +> Executing 'IF': use_braces='true'
[04:17:58 INFO]: Filled tag <player.flag[hogwarts_library_book]> with
'Standard Book of Spells Grade 1'.
[04:17:58 INFO]: Filled tag <player.inventory.contains.display[Standard Book
of Spells Grade 1]> with 'true'.
[04:17:58 INFO]: Queue 'MADAM_PINCE PROXIMITY TRIGGER_ExpandingIncorporateOil'
Executing: TAKE "bycover:<player.flag[hogwarts_library_book]>"
"quantity:1"
[04:17:58 INFO]: +- Executing dCommand: TAKE/p@Azami7 ---------+
[04:17:58 INFO]: Filled tag <player.flag[hogwarts_library_book]> with
'Standard Book of Spells Grade 1'.
[04:17:58 INFO]: +> Executing 'TAKE': Type='BYCOVER' qty='1'
inventory='in@player[holder=p@555731f0-a8df-4d61-8ecd-f5ba7ff06527]'
Items='null' cover='li@Standard Book of Spells Grade 1'
[04:17:58 INFO]: Queue 'MADAM_PINCE PROXIMITY TRIGGER_ExpandingIncorporateOil'
Executing: CHAT "Thank you for returning
<player.flag[hogwarts_library_book]>, <player.name>."
[04:17:58 INFO]: +- Executing dCommand: CHAT/p@Azami7 ---------+
[04:17:58 INFO]: Filled tag <player.flag[hogwarts_library_book]> with
'Standard Book of Spells Grade 1'.
[04:17:58 INFO]: Filled tag <player.name> with 'Azami7'.
[04:17:58 INFO]: +> Executing 'CHAT': talkers='li@n@224'
targets='li@p@555731f0-a8df-4d61-8ecd-f5ba7ff06527'
message='Thank you for returning Standard Book of Spells Grade
1, Azami7.' range='5.0'
[04:17:58 INFO]: Filled tag <def[talker].name> with 'Madam Pince'.
[04:17:58 INFO]: Filled tag <def[message]> with 'Thank you for returning
Standard Book of Spells Grade 1, Azami7.'.
[04:17:58 INFO]: Filled tag <def[talker].name> with 'Madam Pince'.
[04:17:58 INFO]: Filled tag <def[target].name> with 'Azami7'.
[04:17:58 INFO]: Filled tag <def[message]> with 'Thank you for returning
Standard Book of Spells Grade 1, Azami7.'.
[04:17:58 INFO]: Queue 'MADAM_PINCE PROXIMITY TRIGGER_ExpandingIncorporateOil'
Executing: FLAG "player" "hogwarts_library_book:false"
[04:17:58 INFO]: +- Executing dCommand: FLAG/p@Azami7 ---------+
[04:17:58 INFO]: +> Executing 'FLAG': flag_name='HOGWARTS_LIBRARY_BOOK'
Action/Value='SET_VALUE(false)' flag_target='p@Azami7'
[04:17:58 INFO]: Completing queue 'MADAM_PINCE PROXIMITY
TRIGGER_ExpandingIncorporateOil' in 462ms.