- D1 Meta Docs - Denizen Script -
Home Page / Pi to one million places / Contact mcmonkey / Donate / Paste Scripts / Denizen Help /
You are browsing as a guest.
Login | Register


Click here to create your own public paste ~ ~ click to duplicate and edit this paste


TitleUntitled Paste
TypeDenizen Script
Date2016/09/12 19:23:54 UTC-07:00
ByGuest
Other
Paste
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
4300
        on player clicks rankup_menu_slot1 in rankup_menu:
        - if <player.money> >= 5000 && <player.has_permission[denizen.group.peasant]> {
          - execute as_server "manuadd <player.name> wanderer"
          - take money quantity:5000
          - execute as_server "gal broadcast <&8>[<&c>Upgrades<&8>] <&e><player.name> <&7>upgraded to the <&8>[<&7>Wanderer<&8>] <&7>rank!"
          - flag <player> wanderer
          }
          else {
            - narrate "<&c>Error: You do not have enough to purchase this upgrade or you are not Peasant."
          }
        - inventory close d:in@rankup_menu
        on player clicks rankup_menu_slot2 in rankup_menu:
        - if <player.has_flag[wanderer].not> {
          - narrate "<&c>Error: You do not have enough to purchase this upgrade or do not already have the Wanderer upgrade. You may have already purchased this rank!"
          - narrate "<&7>Thanks for playing online <&b>Mythical Realms<&7>."
          }
          - if <player.has_flag[wanderer]> && <player.money> >= 15000 && <player.has_permission[denizen.group.wanderer]> {
            - execute as_server "manuadd <player.name> adventurer"
            - take money quantity:15000
            - execute as_server "gal broadcast <&8>[<&c>Upgrades<&8>] <&e><player.name> <&7>upgraded to the <&8>[<&7>Adventurer<&8>] <&7>rank!"
            - flag <player> adventurer
            - flag <player> wanderer:!
            }
            else {
              - narrate "<&c>Error: You do not have enough to purchase this upgrade or do not already have the Wanderer upgrade."
            }
        - inventory close d:in@rankup_menu
        on player clicks rankup_menu_slot3 in rankup_menu:
        - if <player.has_flag[adventurer].not> {
          - narrate "<&c>Error: You do not have enough to purchase this upgrade or do not already have the Adventurer upgrade. You may have already purchased this rank!"
          - narrate "<&7>Thanks for playing online <&b>Mythical Realms<&7>."
          }
          - if <player.has_flag[adventurer]> && <player.money> >= 50000 && <player.has_permission[denizen.group.adventurer]> {
            - execute as_server "manuadd <player.name> squire"
            - take money quantity:50000
            - execute as_server "gal broadcast <&8>[<&c>Upgrades<&8>] <&e><player.name> <&7>upgraded to the <&8>[<&7>Squire<&8>] <&7>rank!"
            - flag <player> adventurer:!
            - flag <player> squire
            }
            else {
              - narrate "<&c>Error: You do not have enough to purchase this upgrade or do not already have the Adventurer upgrade."
            }



RawRaw



Pastes made: 76852