Date: 2014/08/06 07:32:47 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
{
"assignment": {
"interact scripts": [
"10 TutorialQuest"
],
"type": "assignment"
},
"secondtask": {
"type": "interact",
"steps": {
"1": {
"click trigger": {
"script": [
"chat \"Oh hi there! <player.name>\"",
"wait 1",
"chat \"Welcome to this server\"",
"wait 2",
"chat \"My name is <name.npc>\"",
"narrate \"you feel welcomed <player.name>\"",
"wait 1",
"chat \"<&4> but i need you help !\"",
"wait 1",
"chat \"can you help me? yes or no?\""
]
},
"chat trigger": {
"1": {
"triggers": "/yes/, I guess i can give you a hand",
"script": [
"chat \"oh really !!!!???\"",
"chat \"thats great !\"",
"wait 1",
"narrate \"the man seems excited\"",
"wait 1",
"chat "i just need 10 gold bars\"",
"zap step:2"
]
},
"2": {
"triggers": "/no/, im to bussy right now",
"script": [
"chat \"Ohh, well you can always come back later!\""
]
}
}
},
"2": {
"click trigger": {
"script": [
"if <player.inventory.contains[GOLD_INGOT].qty[10]> - ^take gold_ingot qty:10 - chat \"nice you got my items!\" - wait 2 - narrate \"The npc gives <player.name> some items\" - give money 15 - zap step:3 } else { - chat \"Oh, it doesnt seems you have the required items\" - wait 1"
]
}
},
"3": {
"click trigger": {
"script": [
"chat \"thanks so much for your help\"",
"wait 1",
"chat \"thanks again!\""
]
}
}
}
}
}