Paste #12715: Servers Official Army - Recruitment Unfinished AGAIN

Date: 2015/01/09 19:54:39 UTC-08:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


#NPC "WingOfWar" 
#Starter Quest
#Location: Sheep Nation Spawn
#SN Army Rank: Major
sheepnation_main_quest_starter:
    type: assignment
    interact scripts:
    - 10 main_questline_starter
main_questline_starter:
    type: interact
    steps:
        'start*':
            click trigger:
                script:
                - narrate format:achat 'Listen Maggot! We need people like you to join the SN Army!'
                - wait 20t
                - narrate format:achat 'SN Army is a great honour and requires hard work! You want in!?'
                - narrate format:echat 'Type into the chat'
                - narrate format:echat 'Yes or No'
            chat trigger:
                'yes':
                    trigger: '/Yes/ okay I<&sq>ll join.'
                    script:
                    - narrate format:bchat 'MAGGOT! You will address me as Sir from now on!'
                    - flag player questline_starter
                    - flag player questline_starter_count:0
                    - wait 10t
                    - narrate format:bchat 'Take this book and do what is required! Bring me back the items and you<&sq>re in!'
                    - give i@SN_Army_recruitment_booklet 1
                    - zap 'recruit_zombie'
                'no':
                    trigger: '/No/ thanks.'
                    script:
                    - narrate format:achat 'RRRRAAAWWWWRRRR! YOU DON<&sq>T DESERVE TO BE ON THIS LAND!'
                    - wait 5t
                    - narrate format:achat 'COME BACK TO ME WHEN YOU GROW UP!'
        'recruit_zombie':
            click trigger:
                script:
                - if <player.has_flag[starter_questline]> {
                    - narrate format:bchat 'Great work newbie. Get on with the other tasks.' 
                    - flag player starter_questline:!
                    - zap 'recruit_iron'
                    - queue clear
                    }
                - narrate format:bchat 'Don<&sq>t come back here until you<&sq>ve completed one of those quests!'
                - flag plater recruit_extra_job:0
                - flag player recruit_extra_job:++
        'recruit_iron':
            click trigger:
                script:
                - if <player.inventory.contains[iron_ingot].qty[5]> {
                    - take iron_ingot qty:5
                    - narrate format:bchat 'Now hurry up and go help people!'
                    - zap 'recruit_help'
                    - queue clear
                    }
                - narrate format:bchat 'Don<&sq>t come back here until you<&sq>ve completed one of those quests!'
                - flag player recruit_extra_job:++
        'recruit_help':
            click trigger:
                script:
                - if <player.flag[recruit_extra_job]> >= 4 {
                    - narrate format:bchat 'Listen here you little bitch!'
                    - wait 5t
                    - narrate format:bchat 'Click on me one more time and I<&sq>ll give you an extra job to complete!'
                    - flag player recruit_extra_job:0
                    - flag player recruit_extra_job_activate
                    - queue clear
                    }
                - if <player.flag[calagrah_helper]> >= 3 {
                    - narrate format:bchat 'WELCOME TO THE TEAM <player.name>!'
                    - wait 10t
                    - narrate format:bchat 'Every recruit gets these. Use them well.'
                    - zap 'recruit'
                    - give item: recruitment_helmet
                    - give item: recruitment_chestplate
                    - give item: recruitment_boots
                    - give item: recruitment_sword
                    - give item: recruitment_book
                    - flag player SN_Army_recruit
                    - queue clear
                    }
                - if <player.has_flag[recruit_extra_job_activate]> {
                    - narrate format:bchat 'RRRRAAAWWWWRRRR!!! FINE THEN. YOU<&sq>VE PISSED ME OFF.'
                    - wait 5t
                    - narrate format:bchat 'GO GET ME 16 GOLD INGOTS YOU SHIT!'
                    - zap 'recruit_gold'
                    - queue clear
                    }
                - narrate format:bchat 'Don<&sq>t come back here until you<&sq>ve completed one of those quests!'
                - flag player recruit_extra_job:++
        'recruit_gold':
            click trigger:
                script:
                - if <player.inventory.contains[gold_ingot].qty[16]> {
                    - narrate format:bchat 'NOW HURRY UP AND HELP THOSE PEOPLE!'
                    - take gold_ingot qty:16
                    - zap 'recruit_help'
                    - queue clear
                    }
                - narrate format:bchat 'DO YOU WANT AN EVEN HARDER JOB? GET THOSE GOLD!!'
        'recruit':
            click trigger:
                script:
                - narrate format:bchat 'Just because you<&sq>re a part of the army doesn<&sq>t mean I have to like you!'
                - wait 10t
                - narrate format:bchat 'NOW GET OUT OF MY FACE!'


















#_________________________________                    
#From here on are the world scripts
#Used for kill requirements
#_________________________________                                    
#                    
newbie_zombie_requirements:
    type: world
    events:
        on player kills zombie:
            script:
            - if !<player.has_flag[questline_starter]> queue clear
            - flag player questline_starter_count:++
            - if <player.flag[questline_starter_count]> == 5 {
                - flag player questline_starter:!
                - flag player questline_starter_count:!
                - flag player starter_questline
                }









#_________________________________                    
#From here on are the items and books
#custom made. 
#_________________________________                    

SN_Army_recruitment_booklet:
    type: book
    title: SN Army Recruitment Booklet
    author: SN General Warx247
    signed: true
    text:
    - Welcome newbie. <n>In order to join us as a Recruit you must first complete these tasks. <p>Complete these and return the items to WingOfWar in order. <p>Your first task is to kill 5 zombies.
    - After you have finished with the zombies your next task will be to collect 5 iron ingots and pass them on to Major WingOfWar. 
    - Your third task is to help out the people of Calagrah. The armys main objective is to help. Second is to kill. <p>I want you to go and help 3 people from that town. This is your final task.
    - Best of luck. Signed Warx247

SN_Army_recruit_book:
    type: book
    title: SN Army Handbook
    author: SN General KiwiClipClop
    signed: true
    text:
    - Congratulations recruit! <p>Welcome to the army. Now don't give us a bad name! <p>Report to base! We have a special job that you need to complete. <n>Don't bring anything but your recruit gear. <n>Report to 

#Recruit Items

recruitment_helmet:
    type: item
    material: i@diamond_helmet
    display name: &4&lSN Soldiers Helmet
    lore:
    - Helmet mostly worn by recruits
    - This is your symbol of office
    enchantments:
    - protection:1
    - unbreaking:1
recruitment_chestplate:
    type: item
    material: i@diamond_chestplate
    display name: SN Soldiers Chestplate
    lore:
    - This chestplate is worn by recruits
    - This is your symbol of office
    enchantments:
    - protection:1
    - unbreaking:1
recruitment_boots:
    type: item
    material: i@diamond_boots
    display name: SN Soldiers Boots
    lore:
    - These boots are worn by recruits
    - Good for dropping heavy items on your toes
    enchantments:
    - protection:1
    - unbreaking:1
recruitment_sword:
    type: item
    material: i@diamond_sword
    display name: SN Soldiers Sword
    lore:
    - A recruits best friend
    enchantments:
    - sharpness:1
    - unbreaking:1