Date: 2014/01/27 13:36:02 UTC-08: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
BecomingaMember:
type: assignment
interact scripts:
- 0 Rules
actions:
on assignment:
- trigger name:click toggle:true
- trigger name:chat toggle:true
- trigger name:proximity toggle:true
BookoftheServer:
type: book
title: Server Rules
author: DoCraft
text:
# each new "-" is a new page... the \n is used for a new line and <p> is used for a new paragraph
- "<black>Welcome to DoCraft!"
- "<black>Rules of the Server:<red> \n \n - Do Not Spam! \n \n - Do Not Annoy Others! \n \n - Do Not Use Cheats/Hacks! \n \n - Do Not Ask For Rank/OP!"
- "<black>Commands to remember:<red> \n \n - /help ,/helpop ,/sethome ,/home ,/spawn ,/money ,/afk ,/msg ,/seen ,/iconomy help"
Tophat:
type: item
material: 298
display name: 'Tophat'
bound: true
color: white
'Rules':
type: interact
steps:
1:
proximity trigger:
entry:
script:
- run "RulesCheck"
2:
click trigger:
script:
- flag <player> welcome:Collected
- ^give 19 qty: 1
- ^give 272 qty: 1
- ^give 273 qty: 1
- ^give 274 qty: 1
- ^give 274 qty: 1
- ^give bread qty:2
- ^give 364 qty:2
- ^give Tophat qty:1
- ^cast HEALTH_BOOST power:1 duration:500
- ^cast SPEED power:1 duration:500
- scribe give 'script:BookoftheServer'
- narrate "<&e><npc.name> hands you a book of the server rules..."
- zap step:1
3:
proximity trigger:
exit:
script:
- zap step:1
'RulesCheck':
type: task
script:
- if 267|268|272|276 contains <player.item_in_hand.id> run "Deny Interaction" {
} else if <player.flag[welcome]> == Collected {
- run "ServerBook2"
} else if <player.flag[welcome]> != Collected {
- run "ServerBook"
}
'ServerBook':
type: task
script:
- narrate "<&b> *************"
- narrate "<&b>* <&e>H<&f>elp and <&e>H<&f>ints <&b>*"
- narrate "<&b> *************"
- narrate "<&b>* <&f>Welcome to <&b>D<&f>o<&b>C<&f>raft!"
- narrate "<&b>* <&f>Right Click <yellow>Cpt Joshua Door<&f> to get started"
- narrate "<&b> *************"
- zap step:2 script:Rules
'ServerBook2':
type: task
script:
- narrate "You already a copy of the rules"
- zap step:1 script:Rules
"Deny Interaction":
type: task
script:
# If the player has a weapon, the NPC will say one of the following things.
- ^random {
- chat "<yellow>Oi mate, put ye blade away!."
- chat "<yellow>Har har har! Thats no blade! Thats a kitchen knife! Put it away before I send you to work in the kitchens."
- chat "<white><npc.constant[Townname]><yellow> aint want no brawlers. Put ye blade away before I throw ye scrawny ass in the dungeon."
- chat "<yellow>Who you think you be?! iNFy the Infamous? Harhar! Put that puny blade away before you hurt yourself."
- chat "<yellow>Do I look like a whale?! Are we being attacked by serpents?! No we're not, so put that blade back where it came from!" }