Date: 2016/11/23 05:35:11 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
68
69
70
71
72
73
74
75
76
quest1:
type: assignment
actions:
on assignment:
- trigger name:click state:true
- trigger name:chat state:true
interact scripts:
- 10 npc_ques
cchat:
type: format
format: "<&b><npc.name> <&f> to you <&co> <&2><text>"
npc_ques:
type: interact
steps:
1:
click trigger:
script:
- if <player.flag[pedido1]> queue clear
- if <player.flag[necesitaPiedra_cooldown]> {
- narrate "vuelve en <player.flag[necesitaPiedra_cooldown].expiration.formatted>"
- queue clear
}
- flag player pedido1
- engage
- if <player.flag[cantidadPiedra]> == 5 {
- narrate "muy bien!!, toma tu premio"
- give 4@diamond
- player flag necesitaPiedra=!
- player flag necesitaPiedra_cooldown duration:2
- player flag cantidadPiedra=!
- disengage
- player flag pedido1:!
- queue clear
}
- narrate format: cchat "hola ! quieres un premio??"
- wait &t
- narrate format: cchat "quieres traerme algo?"
- wait 2s
- narrate "[<&o>type <&b><&o>Si <&f><&o> o <&b><&o>No<&7>]"
- disengage
- player flag pedido1:!
chat trigger:
1:
trigger: /si/ ahora te lo traigo
script:
- if <player.flag[necesitaPiedra]> queue clear
- engage
- narrate "Buenisimo" format: cchat
- wait &t
- narrate "traeme 5 de piedra"
- flag player necesitaPiedra
- flag player cantidadPiedra=0
- disengage
2:
trigger: /no/ no no ahora no
script:
-random{
-narrate format: cchat "vete a la mierda"
-narrate format: cchat "oh dale!"
-narrate format: cchat "por que no?"
}
Quest_vaso_de_agua:
type: world
events:
on player picks up stone:
- if !<player.flag[necesitaPiedra]> queue clear
- if <player.flag[cantidadPiedra]> == 5 {
- narrate "vuelve con la piedra!!"
- flag player necesitaPiedra:!
}