- 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








The script repo is an archive of historical scripts. For modern scripts, or to post your own, please use the Scripts forum section.





Teleporting Tour Guide


By STiCory
Created: 2014/12/14 18:39:39 UTC-08:00 (10 years and 11 days ago)
Edited: 2014/12/28 16:42:23 UTC-08:00 (9 years and 362 days ago)
Likes: 0

Denizen Version: 0.9.6
Script Version: 1.0
Description:

About:
I created this "Tour Guide" script as I wanted custom NPC's that can be interacted with and are able to interact players as well. The NPC's that are created and assigned this script are more dynamic than signs, or basic TP signs. This makes the server more RPG-esque and much more fun!
Instructions:
Simply write down the coordinates that you want the players to be teleported to when they interact with the Tour Guides, drop this script into your scripts folder, and edit the noted coordinates on lines 99, 108, 117, 126, 135, 144, 153 into their "block" coordinates in the F3 debug screen in Minecraft. Also please please free to edit the names of the locations as well, or even add or remove locations as well! Then simply create the NPC's, add this assignment and away you go! For instance I name all of my guides "Tour Guide" same things so it's not at all confusing!


Download script | View raw 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
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
17900

tourguide:
    type: assignment
    interact scripts:
    - 1 fulltour

fulltour:
    type: interact
    steps:
        1:
            click trigger:
                script:
                 - chat "Hello there <player.name>, do you need help finding anything?"
            chat trigger:
                1:
                    trigger: /Yes/, actually, what are my options?
                    script:
                    - chat "You can go to the Blacksmith, Church, Stables, Alchemist, Library, Inn, or the Food Hall."
                2:
                    trigger: /No/, not at this time.
                    script:
                    - random 4
                    - chat "Alright!"
                    - chat "Take Care!"
                    - chat "Be seeing you!"
                    - chat "Go forth, for victory!"
                3:
                    trigger: I am looking to find the /Blacksmith/.
                    script:
                    - chat "Excellent, I will Teleport you now, please confirm by saying 'blacksmith' or 'no' to cancel."
                    - zap step:2
                4:
                    trigger: I am looking to find the /Church/.
                    script:
                    - chat "Excellent, I will Teleport you now, please confirm by saying 'Church' or 'no' to cancel."
                    - zap step:2
                5:
                    trigger: I am looking to find the /regex:(?i)stable(s)?/.
                    script:
                    - chat "Excellent, I will Teleport you now, please confirm by saying 'Stables' or 'no' to cancel."
                    - zap step:2
                6:
                    trigger: I am looking to find the /Alchemist/.
                    script:
                    - chat "Excellent, I will Teleport you now, please confirm by saying 'Alchemist' or 'no' to cancel."
                    - zap step:2
                7:
                    trigger: I am looking to find the /Library/.
                    script:
                    - chat "Excellent, I will Teleport you now, please confirm by saying 'Library' or 'no' to cancel."
                    - zap step:2
                8:
                    trigger: I am looking to find the /Inn/.
                    script:
                    - chat "Excellent, I will Teleport you now, please confirm by saying 'Inn' or 'no' to cancel."
                    - zap step:2
                9:
                    trigger: I am looking to find the /Food Hall/.
                    script:
                    - chat "Excellent, I will Teleport you now, please confirm by saying 'Food Hall' or 'no' to cancel."
                    - zap step:2
                hello:
                    trigger/regex:(?i)hello|hey|hi/
                    script:
                    - random 3
                    - chat "Hey there!"
                    - chat "Hello!"
                    - chat "Hi, <player.name>!"
                bye:
                    trigger/regex:(?i)bye|see ya|goodbye|good bye|later/
                    script:
                    - random 4
                    - chat "See ya!"
                    - chat "Take Care!"
                    - chat "Be seeing you!"
                    - chat "Go forth, for victory!"
                unknown:
                    trigger/regex:.+/
                    script:
                    - chat "I'm sorry, I don't understand!"
        2:
            click trigger:
                script:
                - chat "Hello there <player.name>, do you need help finding anything?"
                - zap step:1
            chat trigger:
                blacksmith:
                    trigger: I confirm /Blacksmith/!
                    script:
                    - chat "Summoning portal, this will only take a second."
                    - wait 1
                    - animate <npc> animation:ARM_SWING
                    - wait 1
                    - execute as_npc "tp <player.name> X Y Z"
                    - zap step:1
                church:
                    trigger: I confirm /Church/!
                    script:
                    - chat "Summoning portal, this will only take a second."
                    - wait 1
                    - animate <npc> animation:ARM_SWING
                    - wait 1
                    - execute as_npc "tp <player.name> X Y Z"
                    - zap step:1
                stables:
                    trigger: I confirm /Stables/!
                    script:
                    - chat "Summoning portal, this will only take a second."
                    - wait 1
                    - animate <npc> animation:ARM_SWING
                    - wait 1
                    - execute as_npc "tp <player.name> X Y Z"
                    - zap step:1
                alchemist:
                    trigger: I confirm /Alchemist/!
                    script:
                    - chat "Summoning portal, this will only take a second."
                    - wait 1
                    - animate <npc> animation:ARM_SWING
                    - wait 1
                    - execute as_npc "tp <player.name> X Y Z"
                    - zap step:1
                library:
                    trigger: I confirm /Library/!
                    script:
                    - chat "Summoning portal, this will only take a second."
                    - wait 1
                    - animate <npc> animation:ARM_SWING
                    - wait 1
                    - execute as_npc "tp <player.name> X Y Z"
                    - zap step:1
                inn:
                    trigger: I confirm /Inn/!
                    script:
                    - chat "Summoning portal, this will only take a second."
                    - wait 1
                    - animate <npc> animation:ARM_SWING
                    - wait 1
                    - execute as_npc "tp <player.name> X Y Z"
                    - zap step:1
                foodhall:
                    trigger: I confirm /Food Hall/!
                    script:
                    - chat "Summoning portal, this will only take a second."
                    - wait 1
                    - animate <npc> animation:ARM_SWING
                    - wait 1
                    - execute as_npc "tp <player.name> X Y Z"
                    - zap step:1
                cancel:
                    trigger: /No/ actaully, I change my mind.
                    script:
                    - chat "Not a problem, please let me know if I can be of any assistance!"
                    - zap step:1
                hello:
                    trigger/regex:(?i)hello|hey|hi/
                    script:
                    - random 3
                    - chat "Hey there!"
                    - chat "Hello!"
                    - chat "Hi, <player.name>!"
                    - zap step:1
                bye:
                    trigger/regex:(?i)bye|see ya|goodbye|good bye|later/
                    script:
                    - random 4
                    - chat "See ya!"
                    - chat "Take Care!"
                    - chat "Be seeing you!"
                    - chat "Go forth, for victory!"
                    - zap step:1
                unknown:
                    trigger/regex:.+/
                    script:
                    - chat "I'm sorry, I don't understand!"









View History