Paste #21786: Untitled Paste

Date: 2015/10/28 11:29:27 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


# This is a group promotion script for I'm not sure what version
# This script is kept simple to allow a base scripting example to extend upon.
#
# @author Aortal
# @version 1.1
# @last-updated April 2 2013

"Promotion":
    type: assignment


    # Here is the click trigger
    actions:
      on assignment:
      - trigger name:click toggle:true

    # Define the interact script
    interact scripts:
        - 15 Freischalter

'Freischalter':
    type: interact

    steps:

        'getPromotion*':
            click trigger:
                script:
                # Wenn der Spieler Klickt
                - chat '<gray>Hallo ich bin Der <gold>Freischalter <gray>wie kann ich dir helfen?'
                # - chat '<gray>M<&ouml>chtest du Freigeschaltet werden ? &e<player.name>&7?'
                #
                - NARRATE "Tippe in den Chat: <aqua>Freischalten<white> |<aqua> Garnicht<white> | <aqua>rundflug"
                # Lets wait for a player to say the Yes, No or Info wildcard..
            chat trigger:
                '1':
                    trigger: '<gold>[Freischalter]:<gray>/Freischalten/? So Moment ... Ich versuche dich nun Freizuschalten'
                    script:
                    - if <player.in_group[default]> run "SCRIPT:Checkdefault"
                      else run "SCRIPT:Checktutorial"

                '2':
                    trigger: '<gray>Gerade<aqua> /Garnicht/?<gray> Wohl kein zeit najut Bye'
                    script: 


                '3':
                    trigger: 'Ich h<&auml>tte gerne noch ein paar /info/rmationen bevor ich mich entscheide'
                    script: 
                    - chat 'Du Musst voher den Rang <gold>LVL 15<gray> haben bevor du VIP werden kannst.'
                    - WAIT 1
                    - chat 'Und der Rang Kostet auch noch 500 <gold>Spielmarken<white>.'
                    - WAIT 1
                    - chat 'Aktuell hast du  <player.money.asint> <gold>Spielmarken<white>.'             
                '4':
                    trigger: '/rundflug/'
                    script: 
                    - execute asserver 'tp <player.name> -1193 80 504' 
                    - WAIT 1                    
                    - execute asserver 'tp <player.name> -1180 63 402' 
                    - WAIT 1    
                    - execute asserver 'tp <player.name> -124 70 228'
                    - WAIT 2    
                    - execute asserver 'tp <player.name> -1222 80 421'   
                    - WAIT 2
                    - execute asserver 'tp <player.name> -1203 68 481'  
                    - WAIT 1                    
                    - execute asserver 'msg <player.name> Ups sry h<&auml>tte dich fast verloren'                      

'Checkdefault':
        Type: task
        Script:
        - WAIT 4
        - CHAT "<gray> Ahh wie ich sehe bist du noch nicht soweit ...   Damit ich dich Freischalten kann musst Dieses Tutorial durchlaufen."
        - WAIT 5
        - CHAT "<gray>Bitte Begebe dich zu meiner Freundin in die Bibliothek Ihr name ist<gold> Tina <gray> Achja die Bibliothek ist hintermir im Hochaus. Bitte bestell ihr Sch<&ouml>ne Gr<&uuml><&chr[00df]>e von Mario hust hust sry <gold>Freischalter."


'Checktutorial':  # Player has the correct Rank but do they have the correct change?
        Type: task
        Script:
        - if <player.in_group[Tutorial]> run "SCRIPT:creeper"
          else chat "Du bist doch schon Freigeschaltet" 


'creeper':  # Player has the correct Rank but do they have the correct change?
        Type: task
        Script:
        - if <player.inventory.contains[spawn_egg:50]> run "SCRIPT:Goldschaufel"
          else chat "Du Schreinst noch nicht fertig zu sein bitte mach das tutorials fertig"          




'Goldschaufel':  # Player has the correct Rank but do they have the correct change?
        Type: task
        Script:
        - execute asserver 'clear <player.name>'
        - execute asserver 'give <player.name> golden_shovel 1'
        - execute asserver 'manuadd <player.name> builder'