Date: 2016/11/08 05:51:21 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
83
84
85
"Fly":
Type: assignmnet
Interact scripts:
- 10 flying
Actions:
on assignmnet:
- trigger name:chatt toggle: true
- trigger name: click toggle: true
- lookclose state: true
Default constants:
#price for 2h fly
Price2h: 20000
#price for 5h fly
price5h: 40000
'buy fly':
type: interact
steps:
Default:
'fly shop':
Proximity trigger:
entry radius: 5
entry:
script:
#Swedish, translation "Ah, i see that you found your way here. Welcome"
- chat "ahh, jag ser att du hittat hit."
- wait 1
- chat "Välkommen!"
Click trigger:
script:
#translation "To fly is menat for birds."
- chat "Att flyga är en förmåga ämnad för fåglar"
- wait 1
#translation "Or is it so?"
- chat "Eller är det så?....."
- wait 1
#translation "For a price i cna help you reach the sky"
- chat "För ett pris kan jag hjälpa dig nå himlen"
- wait 1
#translation "20000:- for 2 hours or 40000 for 5 hours"
- chat "20000:- för 2 timmar eller 40000 för 5 timmar"
- wait 1
#translation "your choice"
- chat "vad väljer du?"
Chat trigger:
1:
#translation "I want to fly for 2 hours"
Trigger: /20000/, Jag vill flyga i två timmar.
Script:
- if <player.money> OR_MORE 20000 {
- take money qty:20000
- flag <player>Canfly duration:2h
- if <player.flag[canfly].is_expired>
- adjust <player> can_fly:false
#translation "Dont fly to close to the sun!"
- chat "Flyg inte för nära Solen!"
#Translation "Du har nu <player.money>"
- narrate "Du har nu <player.money>"
- zap default
-else {
- chat "You do not have enough money!"
- zap default
}
2:
trigger: /40000/, Jag vill flyga i 5 timmar.
Script:
- if <player.money> OR_MORE 40000 {
- take money qty:40000
- flag <player> Canfly duration:5h
- if <player.flag[canfly].is_expired>
- adjust <player> can_fly:false
#translation "Dont fly to close to the sun!"
- chat "Flyg inte för nära Solen!"
#Translation "Du har nu <player.money>"
- narrate "Du har nu <player.money>"
- zap default
-else {
- chat "You do not have enough money!"
- zap default