You are browsing as a guest.
Login | Register
~ mcmonkey's simpler pastebin ~ Inspired by Hastebin ~ home page ~ Denizen help ~
click to use the normal pastebin instead ~ Click to make your own paste ~ click to duplicate and edit this paste


Title:
Type:
Date:
By:
Raw:
Other:
...
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
9300

Untitled Paste
Denizen Script
2016/04/28 12:37:48 UTC-07:00
Guest
Click here to view this paste as a raw text file | Or download the script


RancherQuest1:
    type: assignment
    interact scripts:
    - 1 RancherMain

RancherMain:
    type: interact
    steps:
        1:
            click trigger:
                script:
                - narrate format:FormatScript "Help! I left the gate open over night and now the horses are running free on the field!"
                - wait 2s
                - narrate format:FormatScript "Please, can you help me bring them back?"
                - wait 1s
                - narrate "[<&o>Type <&b><&o>Yes<&f> or <&b><&o>No<&7>]"
            chat trigger:
                1:
                    trigger<&a>/Yes/, I will help you get your horses back!
                    script:
                    - wait 2s
                    - narrate "<&e>[Quest]<&a> - Oh horsie started.
                    - wait 2s
                    - narrate format:FormatScript "Thank you so much! Here, take this leash with you."
                    - give i@LEASH
                    - wait 1s
                    - narrate format:FormatScript "Right-click a horse with it and bring it back here."
                    - wait 1s
                    - narrate format:FormatScript "Once again, thank you."
                    - zap step:2
                2:
                    trigger<&a>/No/, I dont have time for this right now.
                    script:
                    - random {
                        - narrate format:FormatScript "Okay, well if you have time later come see me."
                        - narrate format:FormatScript "Okay then."
                        - narrate format:FormatScript "Farewell."
                        }
                    - zap step:1
        2:
            click trigger:
                script:
                - if <player.location.find.entities[HORSE].within[4]> >= 1 {
                    - foreach <player.location.find.entities[HORSE].within[4]> {
                        - if <%value%.get_leash_holder> == <player> {
                            - run s@HorseReturn delay:1 def:%value%
                            }
                        }
                    } else {
                    - narrate format:FormatScript "Hurry up <player.name>. Bring my horses back here."
                    - wait 2s
                    - narrate format:FormatScript "I am sorry for being rude, I dont know what to do without them."
                    }
            3:
                click trigger:
                    script:
                    - narrate format:FormatScript "Thank you for helping me out!"

HorseReturn:
    type: task
    script:
    - narrate format:FormatScript "Thank you so much for bringing my horse back!"
    - wait 2s
    - narrate format:FormatScript "Let me put a post down for that leash."
    - wait 1s
    - animate <npc> animation:ARM_SWING
    - modifyblock 1@-927,4,1255,world m@fence
    - leash %value% holder:1@-927,4,1255,world
    - wait 1s
    - narrate format:FormatScript "You have helped me, my friend"
    - wait 1s
    - narrate format:FormatScript "Here, take this, its the least I can do"
    - - narrate "<&e>[Quest]<&a> - Oh horsie completed."
    - give i@lapis_block
    - zap s@RancherMain step:3
    - run s@RancherCleanup delay:10



RancherCleanup:
    type: task
    script:
    - remove <npc.location.find.entities[HORSE].within[4]>
    - modifyblock 1@-927,4,1255,world m@air

RancherCleanupWorld:
    type: world
    events:
        on server start:
        - if <1@-927,4,1255,world.material> == m@fence {
            - modifyblock 1@-927,4,1255,world m@air
            }