Paste #127355: Rune NPC Script

Date: 2024/10/19 23:26:54 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


rune:
    type: assignment
    actions:
        on assignment:
        - trigger name:click state:true
    interact scripts:
    - rune_main

rune_main:
    type: interact
    steps:
        # 1:
        #     click trigger:
        #         script:
        #         - ratelimit <player> 10s
        #         - narrate "<&7>{<&f>Aeronaut<&7>}<&6>Rune<&f>: Do you have an affinity for alchemy? I'll let you join the Sorcerer's guild if you can brew 20 potions."

        # 2:
        #     click trigger:
        #         script:
        #         - narrate "<&7>{<&f>Aeronaut<&7>}<&6>Rune<&f>: Brew another 10 potions, then come back."

        1:
            click trigger:
                script:
                - narrate "<&7>{<&f>Aeronaut<&7>}<&6>Rune<&f>: Would you like to join the guild and work as a Sorcerer? <&7><&o>Yes"

            chat trigger:
                1:
                    trigger: /ye|ok/
                    hide trigger message: true
                    show as normal chat: false
                    script:
                    - if <placeholder[jobsr_user_joinedjobcount]> >= <placeholder[jobsr_maxjobs]>:
                        - narrate "<&7>{<&f>Aeronaut<&7>}<&6>Rune<&f>: You must leave a job before you can become a Sorcerer."
                    - else:
                        - jobs join Sorcerer
                        - narrate "<&7>{<&f>Aeronaut<&7>}<&6>Rune<&f>: Do you feel the magic?"