Paste #21780: Untitled Paste

Date: 2015/10/28 08:46:35 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 we set the constants
    default constants:
        reqFee: 500
        reqGroup: default
    default gruppe:
        reqGroup: Admin        
    # 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>M<&ouml>chtest du Freigeschaltet werden &e<player.name>&7?'
                # - chat '<gray>M<&ouml>chtest du Freigeschaltet werden ? &e<player.name>&7?'
                #
                - NARRATE "- Tippe ja/nein/rundflug"
                # Lets wait for a player to say the Yes, No or Info wildcard..
            chat trigger:
                '1':
                    trigger: '<gold>[Freischaltet]:<gray> Freut mich <yellow><player.name><gray> das du <aqua>/ja/ <gray>ausgew<&auml>hlt hast ich versuch nun mein bestes'
                    script:
                    - if <player.in_group[<cons:reqGroup>]> run "SCRIPT:Checkdefault"
                      else run "SCRIPT:Checktutorial"
                    - zap step:getPromotion SCRIPT:Freischalter
                    - RUN 'SCRIPT:CheckRank'

                '2':
                    trigger: '<yellow>[<player.name>]:<gray> /nein/ Ich m<&ouml>chte noch nicht.'
                    script: 
                    - wait 2
                    - chat "<gray>kein Problem man sieht sich"

                '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:
        - CHAT "<white>du bist default"


'Checktutorial':  # Player has the correct Rank but do they have the correct change?
        Type: task
        Script:
        - if <player.in_group[<gruppe:reqGroup>]> run "SCRIPT:Checkitem"
          else chat "du wars noch nicht beim Kolegen" 

'Checkitem':  # Player has the correct Rank but do they have the correct change?
        Type: task
        Script:
        - if <player.in_group[<gruppe:reqGroup>]> run "SCRIPT:Goldschaufel"
          else chat "Du wurdest schon freigeschaltet" 

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