Date: 2016/12/14 21:17:26 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
davis_the_npc:
type: assignment
actions:
on assignment:
- trigger name:click state:true
- trigger name:chat state:true
interact scripts:
- 1 davis_talk_interact
davis_talk_interact:
type: interact
steps:
1:
click trigger:
script:
- if <player.has_flag[npc_engaged]> queue clear
- if <player.has_flag[tarefa2]> {
- narrate format:cchat "Oh, vejo que voce conseguiu concluir a missao com sucesso!"
- wait 5t
- narrate format:cchat "Vou preencher seus papeis e parabens, voce e um de nos agora."
- flag player aventureiro
- announce "<player.name> se tornou um membro da Guilda dos Aventureiros"
- scoreboard add obj:TAREFA lines:<player.name> score:1
- zap step:2
- queue clear
}
- if <player.has_flag[tarefa1]> {
- narrate format:cchat "Então, conseguiu achar Wilfred?"
- wait 5t
- narrate format:cchat "Ele mora em Marshlands, numa casa térrea."
- wait 5t
- narrate format:cchat "Você pode pegar um trem para ir até lá, se não souber chegar."
- queue clear
}
- flag npc_engaged
- engage
- narrate format:cchat "Olá. Estamos recrutando alguns aventureiros."
- wait 5t
- narrate format:cchat "Se você quiser provar que merece se juntar a guilda, deve completar uma tarefa."
- wait 5t
- narrate format:cchat "Você deseja aceitar a quest?"
- narrate "[<&o>Diga <&b><&o>Sim<&f><&o> ou <&b><&o>Nao<&7>]"
- disengage
- flag player npc_engaged:!
chat trigger:
1:
trigger: /Sim/
script:
- narrate format:cchat "Preciso que você vá até a cidade vizinha, Marshlands, encontre meu amigo Wilfred e entregue uma carta a ele"
- wait 5t
- narrate format:cchat "Não deve ser difícil encontrá-lo, não existem muitas casas térreas por lá... Mas tome cuidado, sim?"
- wait 5t
- narrate format:cchat "Depois volte aqui e fale comigo de novo."
- wait 5t
- narrate "[Você recebeu a carta e a guardou em seu bolso]"
- flag player tarefa1
- flag player guilda_aventureiros
2:
trigger: /Nao/
script:
- if <player.has_flag[guilda_aventureiros]> queue clear
- narrate format:cchat "Tudo bem."
2:
click trigger:
script:
- narrate format:cchat "Bom dia, <player.name>."