Paste #41096: Edit of P#41095 - Librarian

Date: 2017/04/01 21:19:59 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


- 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.