- D1 Meta Docs - Denizen Script -
Home Page / Pi to one million places / Contact mcmonkey / Donate / Paste Scripts / Denizen Help /
You are browsing as a guest.
Login | Register


Click here to create your own public paste ~ ~ click to duplicate and edit this paste


TitleUntitled Paste
TypeDenizen Script
Date2019/08/23 05:35:41 UTC-07:00
ByGuest
Other
Paste
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
6200
Fisherman: 
    type: assignment 
    actions: 
        on assigment: 
        - trigger name:click state:true 
        - trigger name:chat state:true 
    interact scripts: 
        - fisherman_interact            
fisherman_interact:
    type: interact
    steps:
        1:
            click trigger: 
                script:
                - if <player.has_flag[fisherman_cooldown]>:
                    - chat "Hey! You did a really great job, come back in <player.flag[fisherman_cooldown].expiration.formatted> and I'll give you more work" targets:<player>
                    - disengage
                    - stop
                - if <player.has_flag[fisherman_job]>:
                    - chat "You're doing a great job, keep it up!"
                    - queue clear
                - chat "Hi! are you looking for work?"
                - wait 5t
                - chat "I need some fish catching for me, it'll only take a day?"
                - wait 5t
                - chat "Yes, you'd like to, or No, not this time?"
                - wait 5t
            chat trigger:
                1:
                    trigger: /Yes/
                    script: 
                    - engage
                    - wait 10t
                    - chat "Awesome dude! I need you to collect me 5 scutes, they make like the best drinks cups"
                    - wait 5t
                    - actionbar "<green> Catching fish will earn you money for the next 24 hours.
                    - flag <player> fisherman_job duration:24h
                    - disengage
                2:
                    trigger: /No/
                    script: 
                    - engage
                    - random {
                      - chat "Next time then"
                      - chat "Aww, that sucks!"
                      - chat "Ok then, cya."
                      }
                    - disengage
fisherman_job:
    type: world
    events:
        on player fishes *fish :
        - if <player.has_flag[fisherman_job>:
            - actionbar "<green> you have earned 50p."
            - give money quantity:0.5 
            - stop
expires:
    type: world
    events:
        on player flag fisherman_job expires:
        - flag <player> fisherman_cooldown duration:48h



RawRaw



Pastes made: 74241