Date: 2023/12/21 08:43:53 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
gem_deposit_handler:
type: world
debug: true
events:
on player clicks gem_filler_item in gem_deposit_inventory:
- determine cancelled
after player drags item_flagged:currency in gem_deposit_inventory:
- if <context.clicked_inventory.script.exists>:
- if <context.slot> <= 27:
- determine cancelled
- else:
- define quantity <context.clicked_inventory.quantity_item[gems]>
- take item:gems quantity:<[quantity]> from:<context.clicked_inventory>
- flag <player> gem_bank:+:<[quantity]>
- narrate "<&a> You just deposited <[quantity].proc[gem_display_amt]><&a> to your account!" targets:<player>
- else:
- determine passively cancelled
after player clicks in gem_deposit_inventory with:item_flagged:currency:
- if <context.clicked_inventory.script.exists>:
- if <context.slot> <= 27:
- determine cancelled
- else:
- define quantity <context.clicked_inventory.quantity_item[gems]>
- take item:gems quantity:<[quantity]> from:<context.clicked_inventory>
- flag <player> gem_bank:+:<[quantity]>
- narrate "<&a> You just deposited <[quantity].proc[gem_display_amt]><&a> to your account!" targets:<player>
- else:
- determine passively cancelled
after player shift_right clicks item_flagged:currency in gem_deposit_inventory:
- if <context.is_shift_click>:
- if <context.slot> <= 27:
- determine cancelled
- else:
- define quantity <context.clicked_inventory.quantity_item[gems]>
- take item:gems quantity:<[quantity]> from:<context.clicked_inventory>
- flag <player> gem_bank:+:<[quantity]>
- narrate "<&a> You just deposited <[quantity].proc[gem_display_amt]><&a> to your account!" targets:<player>
- else:
- determine passively cancelled
after player shift_left clicks item_flagged:currency in gem_deposit_inventory:
- if <context.is_shift_click>:
- if <context.slot> <= 27:
- determine cancelled
- else:
- define quantity <context.clicked_inventory.quantity_item[gems]>
- take item:gems quantity:<[quantity]> from:<context.clicked_inventory>
- flag <player> gem_bank:+:<[quantity]>
- narrate "<&a> You just deposited <[quantity].proc[gem_display_amt]><&a> to your account!" targets:<player>
- else:
- determine passively cancelled
#on player clicks item_flagged:currency in gem_deposit_inventory:
# - determine passively cancelled
christmas_cookies:
type: item
material: cookie
mechanisms:
custom_model_data: 10002
display name: <&a>Christmas <&6>cookie
flags:
currency: events
gems:
type: item
material: paper
mechanisms:
custom_model_data: 10000
display name: <&f>Gem
flags:
currency: gem