Date: 2015/12/01 16:54:39 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
ABetterLife:
type: assignment
interact scripts:
- 10 ABetterLifeStart
ABetterLifeStart:
type: interact
steps:
1:
click trigger:
script:
- chat "Hello, <player.name>."
- wait 2
- chat "My name is <npc.name>, I am a Night Elf from Kalimdor. I have traveled here through boat seeking a better life."
- wait 2
- chat "However, I don't have any money to get started."
- wait 2
- chat "Can you help me?"
chat trigger:
1:
trigger: /Yes/, I will help you!
script:
- chat "Great! I need 10 gold bars to start my journey here."
- wait 1
- chat "Deliver these to me once you have gathered them!"
- zap step:2
2:
trigger: /No/, I cannot help you.
script:
- chat "Okay. Please come back later when you can assist me!"
2:
click trigger:
script:
- if <player.inventory.contains[GOLD_INGOT].qty[10]> {
- ^take gold_ingot qty:10
- chat "Yes yes yes! Thank you so much for bringing these to me!"
- wait 2
- chat "Now I can start my new life here!"
- wait 1
- chat "Thank you very much, <player.name>."
- wait 1
- chat "Oh, Here!"
- wait 2
- narrate "<npc.name> hands you small, green tokens surrounded by wooden padding"
- wait 1
- chat "Here, I want you to have some tokens from my home land. They haunt me with terrible memories from my past."
- wait 1
- give i@DruidicTradingCurrency qty: 10
- zap step:3
} else {
- chat "Oh, come back when you have 10 gold bars!"
- wait 1
- narrate "<npc.name> frowns at you."
}
3:
click trigger:
script:
- chat "Thanks again, <player.name> for all of your help!"
- flag ABetterLifeStart duration:1m
- zap step:1
DruidicTradingCurrency:
type: item
material: emerald
display name: <green>Druidic trading currency
lore:
- <green>Trading currency used to purchase or trade items in the Druid lands of Kalimdor.