Paste #2538: Untitled Paste

Date: 2014/03/15 05:33:16 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


TutorialQuestsAssignment:
    type: assignment
    interact scripts:
    - 10 TutorialQuests

TutorialQuests:
    type: interact
    steps:
        1:
            click trigger:
                script:
                - if <npc.name> = "Trainer Fabian" {
                    - narrate '<blue><npc.name><&co> <yellow>Welcome <aqua><player.name><white>,'
                    - wait 1
                    - narrate '<blue><npc.name><&co> <white>This Universe Is Known As <gold>Yuri Isles<white>,'
                    - wait 1
                    - narrate '<blue><npc.name><&co> <white>And Consists Of 3 Dimensions.'
                    - wait 1
                    - narrate '<blue><npc.name><&co> <white>We Are Currently Standing In The First'
                    - wait 1
                    - narrate '<blue><npc.name><&co> <white>Dimension <light_purple>Valhalla<white>.'
                    - wait 1
                    - narrate '<blue><npc.name><&co> <white>But You Must Be Tired From Your Journey,'
                    - wait 1
                    - narrate '<blue><npc.name><&co> <white>So Rest And Talk To Me Once You<&sq>re Ready To'
                    - wait 1
                    - narrate '<blue><npc.name><&co> <white>Move On.'
                    - wait 1
                    - narrate '<gold>Help<&co> <gray>You Can Say "Ready" Or "Not Ready"'
                    }
                    - else if <npc.name> = "Staff Leon" {
                    - narrate  '<blue><npc.name><&co> <white>I<&sq>m Sorry, I<&sq>m Busy Please Talk To <light_purple>Trainer Fabian<white>.'
                    }
            chat trigger:
                1:
                    trigger: I Am /Ready/!
                    script:
                    - if <npc.name> = "Trainer Fabian" {
                        - wait 2
                        - narrate '<blue><npc.name><&co> <white>Okay,'
                        - wait 2
                        - narrate '<blue><npc.name><&co> <white>Well As You Are New To This <dark_purple>Universe<white>,'
                        - wait 1
                        - narrate '<blue><npc.name><&co> <white>You must First <green>Register <white>To Become A <aqua>Citizen<white>.'
                        - wait 1
                        - narrate '<blue><npc.name><&co> <white>Take This To <light_purple>Staff Leon<white> To Begin The'
                        - wait 1
                        - narrate '<blue><npc.name><&co> <white>Process.'
                        - give i@RegistrationPapers qty:1
                        - narrate '<yellow>You Recieved "Registration Papers."'
                        - narrate '<gold>Quest Accepted<&co> Become A Citizen!'
                        - flag player BecomeACitizen:2
                        - zap step:2

                        }
                        - else if <npc.name> = "Staff Leon" {
                        - narrate  '<blue><npc.name><&co> <white>Ready For What, Go Talk To <light_purple>Trainer Fabian<white>.'
                        }

        2:
            click trigger:
                script:
                - if <npc.name> = "Staff Leon" {
                    - narrate '<blue><npc.name><&co> <white>Do You Have Somthing For Me?'
                    - wait 1
                    - if <player.inventory.contains[item:RegistrationPapers]>  {
                        - ^take i@RegistrationPapers qty:10000
                        - narrate '<yellow> You hand Over "Registration Papers."'
                        - wait 1
                        - narrate '<blue><npc.name><&co> <white>Oh More PaperWork...'
                        - wait 1
                        - narrate '<blue><npc.name><&co> <white>Well Everything looks Fine,'
                        - wait 1
                        - narrate '<blue><npc.name><&co> <white>But Before We Move On You'  
                        - narrate '<blue><npc.name><&co> <white>Must Agree To The Terms Of Service.'
                        - wait 1
                        - narrate '<blue><npc.name><&co> <white>Read This, Then come Back To Me.'
                        - give i@TheTermsOfService qty:1  
                        - zap step:3
                        }

                        -  else if !<player.inventory.contains[item:RegistrationPapers]>  {
                        - narrate '<blue><npc.name><&co> <white>Oh, You Lost It,'
                        - narrate '<blue><npc.name><&co> <white>Well Maybe Trainer Fabian Has A Spare.'
                        }
                    - else if <npc.name> = "Trainer Fabian" {
                    - narrate '<blue><npc.name><&co> <white>You Don't need To Talk To Me Anymore.'
                    - wait 1
                        }
                    - if <player.inventory.contains[item:RegistrationPapers]>  {
                        - narrate '<blue><npc.name><&co> <white>You Don't need To Talk To Me Anymore.'
                        }

                        - else if <player.inventory.contains[item:TheTermsOfService]>  { 
                        - narrate '<blue><npc.name><&co> <white>Oh, Staff Leon Asked You To Read That?'
                        - wait 1
                        - narrate '<blue><npc.name><&co> <white>Well Get On With It.' 
                        }
                        - else if !<player.inventory.contains[item:TheTermsOfService]>  {
                        - narrate '<blue><npc.name><&co> <white>Huh... How Could You Lose Your Papers?'
                        - give i@RegistrationPapers qty:1
                        - narrate '<blue><npc.name><&co> <white>Well Acidents Happen. Don't Lose Them Again.'
                    }




TestScript:
    type: world
    events:
        on player right clicks: 
        - if <context.item> == "<i@TheTermsOfService>" { 
            - narrate 'you have read the terms of service.'
            - flag player ReadTerms:1
            }






RegistrationPapers:
    type: item
    material: i@339
    display name: Registration Papers
    lore:
    - Show This To Staff Leon
    - To Start The Registration Process.
    enchantments:
    recipe:
    furnace_recipe:
    no_id:
    bound: true
    color:
    book:

TheTermsOfService:
    type: book
    title: Terms Of Service
    author: Yuri Isles
    text:
    - This is my book. There are many like it, but this one is mine!
    - Many <n>new <n> lines!
    - <p>Paragraphs, <p>too!

QuestCommand:
    type: world
    events:
        on questlog command:
        - narrate '<gold>---------------------------------------------'
        - narrate 'This Is The QuestLog,'
        - narrate 'Quests Are Colour Coded Acording To Your Progress.'
        - narrate '<dark_gray>Can<&sq>t Accept <gray>Can Accept <yellow>Active Quest <green>Completed Quest'
        - narrate '<dark_purple>Repeatable Quest.'
        - narrate '<gold>---------------------------------------------'
# Quest Become A Citizen       
        - if <player.flag[BecomeACitizen].asint> = 0 {
            - narrate '<dark_gray>Become A Citizen.'
            }
        - if <player.flag[BecomeACitizen].asint> = 1 {
            - narrate '<gray>Become A Citizen.'
            }
        - if <player.flag[BecomeACitizen].asint> = 2 {
            - narrate '<yellow>Become A Citizen.'
            }
        - if <player.flag[BecomeACitizen].asint> = 3 {
            - narrate '<green>Become A Citizen.'
            }
        - if <player.flag[BecomeACitizen].asint> = 4 {
            - narrate '<dark_purple>Become A Citizen.'
            }
# Quest Get Gear
        - if <player.flag[GetGear].asint> = 0 {
            - narrate '<dark_gray>Get Gear.'
            }
        - narrate '<gold>---------------------------------------------'    
        - determine fulfilled

        on quest command:
        - narrate '<gold>Commands<&co> /questlog'
        - determine fulfilled


JoinEvent:
    type: world
    events:
        on player joins:
            - flag player Joined:1
            - if <player.flag[Joined].asint> = 1 {
                - teleport <player> -151,214,134,Valhalla
                - execute as_op "ci"
                - flag player BecomeACitizen:0
                - flag player GetGear:0
                }