Date: 2020/10/30 11:55:57 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
obchodnik:
type: assignment
actions:
on assignment:
- trigger name:click state:true
interact scripts:
- obchodnik_script
obchodnik_script:
type: interact
steps:
1:
click trigger:
script:
- narrate "<&a>[D] <&6>Roman<&f> <>> Ahoj! Copak mohu pro tebe udělat?"
- wait 2
- narrate "<&a>[D] <&6>Roman<&f> <>> Chtěl by ses kouknout na aukce, nebo si něco najít v obchodu?"
- wait 2
- inventory open d:obchodnik_menu
obchodnik_menu:
type: inventory
title: <&6> Roman
size: 27
slots:
- "[] [] [] [] [] [] [] [] []"
- "[] [] [obchodnik_slot1] [] [] [] [obchodnik_slot2] [] []"
- "[] [] [] [] [] [] [] [] []"
inventory: CHEST
obchodnik_slot1:
type: item
material: diamond
display name: <&e>Aukce
obchodnik_slot2:
type: item
material: emerald
display name: <&2>Obchod
obchodnik_handler:
type: world
events:
on player clicks obchodnik_slot1 in obchodnik_menu priority:1:
- determine cancelled passively
- execute as_player shop
on player clicks obchodnik_slot2 in obchodnik_menu priority:1:
- determine cancelled passively
- execute as_player ah
on player clicks in obchodnik_menu priority:2:
- determine cancelled passively
on player drags in obchodnik_menu priority:2:
- determine cancelled passively
lodnik:
type: assignment
actions:
on assignment:
- trigger name:click state:true
interact scripts:
- lodnik_script
lodnik_script:
type: interact
steps:
1:
click trigger:
script:
- rotate <NPC> duration:1s
- wait 1
- lookclose <npc> state:true
- narrate "<&a>[D] <&6>Břetislav<&f> <>> Ah, konečně jses vzbudil!"
- wait 2
- narrate "<&a>[D] <&6>Břetislav<&f> <>> Už jsme dopluli zpátky k ostrovu Hamernice"
- wait 3
- narrate "<&a>[D] <&6>Břetislav<&f> <>> Přeplav už ten kousek a zajdi za Vincentem"
- wait 3
- narrate "<&a>[D] <&6>Břetislav<&f> <>> On ti řekne vše o kempu"
- lookclose <npc> state:false
- rotate <NPC> yaw:-10.0 duration:1s
- wait 1
- look <NPC> <server.flag[MYAWESOMEFLAG]>
- zap 2
2:
click trigger:
script:
- narrate "nope not"