Date: 2014/09/17 11:43:09 UTC-07:00
Type: Denizen Script
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
Untitled Paste
Denizen Script
2014/09/17 11:07:55 UTC-07:00
Guest
Click here to view this paste as a raw text file
Quackie:
type: assignment
debug: false
actions:
on assignment:
- run locally assignment instantly
on chat:
- run locally chatSubScript def:<c.message.to_lowercase> delay:1t
assignment:
- flag npc respawn_location:<npc.location>
- trigger name:chat state:true radius: 10
- trigger name:click state:true
- trigger name:proximity state:false
- trigger name:damage state:false
- vulnerable state:false
- lookclose true
- run locally spawn instantly
chatSubScript:
- if <def[1].contains[hi]> || <def[1].contains[hey]> {
- random {
- flag ChatChapter:1
- run s@chat1
- run s@chat2
- run s@chat3
- run s@chat4
- run s@chat5
}
}
- if <def[1].contains[diagon]> && <def[1].contains[where]> {
- random {
- flag ChatChapter:2
- run s@chat1
- run s@chat2
- run s@chat3
- run s@chat4
- run s@chat5
}
}
- if <def[1].contains[how]> && <def[1].contains_any[are|r]> && <def[1].contains_any[you|u]> {
- random {
- flag ChatChapter:3
- run s@chat1
- run s@chat2
- run s@chat3
- run s@chat4
- run s@chat5
}
}
- if <def[1].contains[bye]> || <def[1].contains[bai]> || <def[1].contains[ltr]> || <def[1].contains[l8tr]> || <def[1].contains[ltr]> {
- random {
- flag ChatChapter:4
- run s@chat1
- run s@chat2
- run s@chat3
- run s@chat4
- run s@chat5
}
}
chat1:
type: task
debug: false
script:
- if <player.flag[chatchapter]> == 1 {
- narrate "<&lb>NPCNAME<&rb> -<>> You<&co> Hi, I<&sq>m Duckie! Are you new to Knockturn?"
}
else if <player.flag[chatchapter]> == 2 {
- narrate "<&lb>NPCNAME<&rb> -<>> You<&co> Yikes, are you new? You don<&sq>t know that Diagon Alley is down the road?"
}
else if <player.flag[chatchapter]> == 3 {
- narrate "<&lb>NPCNAME<&rb> -<>> You<&co> I<&sq>m doin<&sq> good bruh! Whats your, Quack! Deal here? You gonna got something for me?"
}
else if <player.flag[chatchapter]> == 4 {
- narrate "<&lb>NPCNAME<&rb> -<>> You<&co> I<&sq>m doin<&sq> good bruh! Whats your, Quack! Deal here? You gonna got something for me?"
}
chat2:
type: task
debug: false
script:
- if <player.flag[chatchapter]> == 1 {
- narrate "<&lb>NPCNAME<&rb> -<>> You<&co> Sup? Are you a newbie? I like newbies!"
}
else if <player.flag[chatchapter]> == 2 {
- narrate "<&lb>NPCNAME<&rb> -<>> You<&co> You gonna go shopping at Diagon just past the leaky cauldron?"
}
else if <player.flag[chatchapter]> == 3 {
- narrate "<&lb>NPCNAME<&rb> -<>> You<&co> I<&sq>m doing okay! Gotta help newbies all day! Talk about laaaaammmmmeeee"
}
else if <player.flag[chatchapter]> == 4 {
- narrate "<&lb>NPCNAME<&rb> -<>> You<&co> I<&sq>m doing okay! Gotta help newbies all day! Talk about laaaaammmmmeeee"
}
chat3:
type: task
debug: false
script:
- if <player.flag[chatchapter]> == 1 {
- narrate "<&lb>NPCNAME<&rb> -<>> You<&co> Quack! Quack Quack! Oh, wait, Hi! Do you speak Duck?"
}
else if <player.flag[chatchapter]> == 2 {
- narrate "<&lb>NPCNAME<&rb> -<>> You<&co> Do I have to tell you where Diagon is?"
}
else if <player.flag[chatchapter]> == 3 {
- narrate "<&lb>NPCNAME<&rb> -<>> You<&co> Sucky right now! My job sucks! I mean who wants to talk to newbs all day? Quack!"
}
else if <player.flag[chatchapter]> == 4 {
- narrate "<&lb>NPCNAME<&rb> -<>> You<&co> Sucky right now! My job sucks! I mean who wants to talk to newbs all day? Quack!"
}
chat4:
type: task
debug: false
script:
- if <player.flag[chatchapter]> == 1 {
- narrate "<&lb>NPCNAME<&rb> -<>> You<&co> Meow! Woof! No I know I am a Duck! Hi! Quack, Quack, Quack"
}
else if <player.flag[chatchapter]> == 2 {
- narrate "<&lb>NPCNAME<&rb> -<>> You<&co> Dude, Quack! You don<&sq>t even know how to get to Diagon, it<&sq>s like right down the street!"
}
else if <player.flag[chatchapter]> == 3 {
- narrate "<&lb>NPCNAME<&rb> -<>> You<&co> Everything is wonderful! I loooooooveee working at Knockturn! Pande is the BEST!"
}
else if <player.flag[chatchapter]> == 4 {
- narrate "<&lb>NPCNAME<&rb> -<>> You<&co> Everything is wonderful! I loooooooveee working at Knockturn! Pande is the BEST!"
}
chat5:
type: task
debug: false
script:
- if <player.flag[chatchapter]> == 1 {
- narrate "<&lb>NPCNAME<&rb> -<>> You<&co> Hi. I don't know you. Why are you still here? Quack."
}
else if <player.flag[chatchapter]> == 2 {
- narrate "<&lb>NPCNAME<&rb> -<>> You<&co> You're like not even a block from Diagon, are you like stupid? Quack! Opps ! Quack Quack! Hiccups."
}
else if <player.flag[chatchapter]> == 3 {
- narrate "<&lb>NPCNAME<&rb> -<>> You<&co> It would be great. Except I<&sq>m here. With you....."
}
else if <player.flag[chatchapter]> == 4 {
- narrate "<&lb>NPCNAME<&rb> -<>> You<&co> It would be great. Except I<&sq>m here. With you....."
}