Date: 2014/07/04 04:42:52 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
GrilleIronQuest:
type: assignment
Actions:
on assignment:
- trigger name:chat toggle:true
- trigger name:click toggle:true
#- lookclose state:true
Interact Scripts:
- 1 IronQuest
IronQuestGrille:
type: Interact
Steps:
1:
Click Trigger:
Script:
- narrate "<&lb><red><npc.name><white><&rb><&co><yellow> Did Aranys send you? Just in time, I am about to run out of Iron."
- wait 1
- narrate "<&lb><red><npc.name><white><&rb><&co><yellow> The Rebels have taken control of the mineshaft and now I am not getting any shipments of Iron from the mine!"
- wait 1
- narrate "<&lb><red><npc.name><white><&rb><&co><yellow> Could you help me?"
- execute as_npc "tellraw <player.name> ['Click or type ', {text:'Yes',color:green,clickEvent:{action:run_command,value:'Yes'}}, ' to accept the quest, ', {text:'No',color:red,clickEvent:{action:run_command,value:'No'}}, ' to decline.']"
chat trigger:
1:
trigger: /Yes/, I will help you out!
script:
- narrate "<&lb><red><npc.name><white><&rb><&co><yellow> Good to hear that <player.name>! Clear out the rebels inside the mineshaft south-west from here and bring me 10 iron ores."
- narrate <yellow><&co> Rebellion of the Mine - <red> Quest Started"
- zap step:2
2:
trigger: /No/, I dont have time for this.
script:
- narrate "<&lb><red><npc.name><white><&rb><&co><yellow> Very well then, come back if you change your mind!"
- zap step:1
2:
Click Trigger:
Script:
- if <player.has_finished[IronQuestGrille]> {
- narrate "<&lb><red><npc.name><white><&rb><&co><yellow> Excellent work, young hero. Here, take these for your trouble"
- execute as_npc give LEATHER_LEGGINGS 1
- give xp 100
- zap step:3
} else {
- if <player.inventory.contains[IRON_ORE].qty[10]> {
- execute as_npc ^take iron_ore qty:10
- finish
- zap step:2
} else {
- narrate "<&lb><red><npc.name><white><&rb><&co><yellow> Clear out the rebels at the mineshaft near by!"
}}}
3:
Click Trigger:
Script:
- random 2
- narrate "<&lb><red><npc.name><white><&rb><&co><yellow> Thank you for clearing out those rebels from the mines. They are a causing a lot of trouble around here."
- narrate "<&lb><red><npc.name><white><&rb><&co><yellow> Perhaps one day all of the rebels have been driven out of our lands."