Date: 2016/01/23 11:34:56 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
77
78
79
80
81
82
Drwal:
type: assignment
actions:
on assignment:
- trigger name:click state:true
- trigger name:chat state:true
interact scripts:
- 3 zniszcz_drewno
cchat:
type: format
format: "<&5>[Ncraft.eu]<&9><npc.name><&6>=><&2><text>"
zniszcz_drewno:
type: interact
steps:
1:
click trigger:
script:
- if <player.has_flag[npc_engaged]> queue clear
- if <player.has_flag[zniszcz_drewno_quest_cooldown]> {
- narrate "<red>Mozesz powtorzyc ten quest za <player.flag[zniszcz_drewno_quest_cooldown].expiration.formatted>"
- queue clear
}
- if <player.has_flag[zniszcz_drewno_quest]> queue clear
- flag player npc_engaged
- if <player.has_flag[zniszcz_drewno_quest_count]> >= 3 {
- narrate format:cchat "Dobra robota! Oto twoja nagroda!"
- give money qty:300
- flag player zniszcz_drewno_quest_count:!
- flag player zniszcz_drewno_quest:!
- flag player zniszcz_drewno_quest_cooldown duration:20s
- disengage
- flag player npc_engaged:!
- zap step:1
}
- engage
- narrate format:cchat "Witaj chcialbys zaliczyc ten quest ?"
- narrate " <&5>[Odpisz <green>Tak <&5>lub <red>Nie]"
- disengage
- flag player npc_engaged:!
chat trigger:
1:
trigger: /Tak/. Co mam zrobic ?
script:
- if <player.has_flag[zniszcz_drewno_quest_cooldown]> {
- queue clear
}
- if <player.has_flag[zniszcz_drewno_quest]> queue clear
- engage
- narrate format:cchat "Wiec tak wiesniacy nie maja czym palic."
- narrate format:cchat "Aby zaliczyc ten quest musisz sciac i przyniesc drewno dla wiesniakow"
- narrate " <blue>[Zetnij i przynies 40 drewna]"
- flag player zniszcz_drewno_quest
- flag player zniszcz_drewno_quest_count:0
- disengage
2:
trigger: /Nie/. Mam teraz wazniejsze sprawy.
script:
- if <player.has_flag[zniszcz_drewno_quest]> queue clear
- random {
- narrate format:cchat "Trudno"
- narrate format:cchat "Bywa"
- narrate format:cchat "Spodziewalem sie innej odpowiedzi"
- narrate format:cchat "Liczylem na ciebie"
- narrate format:cchat "Zawiodlem sie na tobie"
- narrate format:cchat "Nie spodziewalem sie tego po tobie"
- narrate format:cchat "szkoda"
- narrate format:cchat "Liczylem na inna odpowiedz"
- narrate format:cchat "myslalem ze znajdziesz dla mnie troche czasu"
}
drewnoquest_drewno_world:
type: world
events:
on player breaks birch_log:
- if !<player.has_flag[zniszcz_drewno_quest]> queue clear
- flag player zniszcz_drewno_quest_count:++
- if <player.has_flag[zniszcz_drewno_quest_count]> >= 3 {
- narrate " <&2>[Wroc z drewnem do Drwala]"
- flag player zniszcz_drewno_quest:!
}