Date: 2014/06/17 11:31:40 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
jayblues:
Type: Assignment
Actions:
on assignment:
- trigger name:chat toggle:true
- trigger name:click toggle:true
#- lookclose state:true
Interact Scripts:
- 1 Q1
Q1:
type: Interact
Requirements:
Mode: None
List:
#- -flagged player "jayblues1Done:true"
Steps:
1:
Proximity trigger:
Entry:
#entry radius: 2
Script:
- lookclose toggle:true
- random 2
- narrate "<&lb><red><npc.name><white><&rb><&co><yellow> DON'T HURT ME!"
- narrate "<&lb><red><npc.name><white><&rb><&co><yellow> NOT THE FACE!"
Exit:
#exit radius: 4
Script:
- narrate "<&lb><red><npc.name><white><&rb><&co><yellow> Please hurry <player.name>!"
- lookclose toggle:false
Click Trigger:
Script:
- narrate "<&lb><red><npc.name><white><&rb><&co><yellow> Oh, hi <player.name>, I thought you were a skeleton ..."
- wait 1
- narrate "<&lb><red><npc.name><white><&rb><&co><yellow> I was mining and opened a tomb and now it's after me!"
- wait 1
- narrate "<&lb><red><npc.name><white><&rb><&co><yellow> Hey <player.name>, can you do me a favour and go kill it?"
- wait 1
- narrate "<&lb><red><npc.name><white><&rb><&co><yellow> I found some gems worth a few gold in there, you can have them if you bring me proof you killed it."
- wait 2
- narrate "<dark_gray><&lb>Hint <&co> Yes to accept the quest, No to decline.<&rb>"
Chat Trigger:
1:
Trigger: /Yes/ I'll help you!
Script:
- narrate "<&lb><red><npc.name><white><&rb><&co><yellow> Great!"
- wait 1
- narrate "<&lb><red><npc.name><white><&rb><&co><yellow> It's at the end of the tombs."
- wait 1
- narrate "<red> Scared to the Bones - Quest Started"
- ^listen kill type:entity target:skeleton qty:1 script:CryptQuestCheck
- zap step:2
2:
Trigger: /No/ way, I'm not going down there!
Script:
- narrate "<&lb><red><npc.name><white><&rb><&co><yellow> Ok, well, I didn't like my life anyway ..."
- wait 1
- narrate "<npc.name> looks scared"
2:
Click Trigger:
Script:
- if "<player.inventory.contains.display[Funny Bone].qty[1]>" {
- ^take "Funny Bone" qty:1
- narrate "<&lb><red><npc.name><white><&rb><&co><yellow> You did it!"
- wait 1
- narrate "<&lb><red><npc.name><white><&rb><&co><yellow> You actually did it! Here, I promised you these."
- wait 1
- narrate "<red> Scared to the Bones - Quest Completed"
- flag player "jayblues1Done:true"
- give money qty:200
- give xp qty:50
- ^zap Step:3
}
else {
- narrate "<&lb><red><npc.name><white><&rb><&co><yellow> It's, It's not dead yet...."
- wait 1
- narrate "<npc.name> Looks scared."
}
3:
Click Trigger:
Script:
- narrate "<&lb><red><npc.name><white><&rb><&co><yellow> Thank you so much <player.name>, you really did save me!"