Advertisement
Guest User

NPC

a guest
Oct 22nd, 2017
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 2.52 KB | None | 0 0
  1. #NPC für Ph0nyx
  2. #Erstellt von AlexPlays2000
  3.  
  4. 'PlayerScript_1902_1':
  5.   type: assignment
  6.   interact scripts:
  7.  - 10 PlayerScript_1902_1_Interaction
  8.   actions:
  9.     on assignment:
  10.    - trigger name:proximity toggle:true radius:5
  11.     - ^execute as_op "npc select <npc.id>"
  12.     - ^execute as_op "npc skin -p MrsKnuddel"
  13.     - ^execute as_op "npc lookclose"
  14.  
  15. 'PlayerScript_508_5_Interaction':
  16.   type: interact
  17.   steps:
  18.     default:
  19.       proximity trigger:
  20.         entry:
  21.           script:
  22.            - chat "<&6>Hallo <&f><player.name>"
  23.             - wait 0.5
  24.             - chat "<&6>Wohin kann ich dich bringen?"
  25.       click trigger:
  26.         script:
  27.          - chat "In welchen Shops willst du denn einkaufen gehen?"
  28.           - wait 0.5
  29.           - execute as_server 'tellraw <player.name> ["",{"text":"Zu den Shops oben","color":"orange","clickEvent":{"action":"run_command","value":".1"},"hoverEvent":{"action":"show_text","value":{"text":"","extra":[{"text":"<&6>Ich möchte mich nochmal oben umschauen."}]}}}
  30.           - wait 0.5
  31.           - execute as_server 'tellraw <player.name> ["",{"text":"Zum Casino","color":"orange","clickEvent":{"action":"run_command","value":".2"},"hoverEvent":{"action":"show_text","value":{"text":"","extra":[{"text":"<&6>Ich möchte mich nochmal beim Casino umschauen."}]}}}
  32.           - wait 0.5
  33.           - execute as_server 'tellraw <player.name> ["",{"text":"Zurück zum Spawn","color":"orange","clickEvent":{"action":"run_command","value":".3"},"hoverEvent":{"action":"show_text","value":{"text":"","extra":[{"text":"<&6>Ich möchte mich nochmal am Spawn umschauen."}]}}}
  34.       chat trigger:
  35.         '1':
  36.           trigger: "<&7>Ich möchte mich nochmal obenumschauen /REGEX:1/."
  37.           script:
  38.          - ^teleport <player.name> l@2086,93,-3598,0,-180,andora
  39.         '2':
  40.           trigger: "<&7>Ich möchte mich nochmal beim Casino umschauen /REGEX:2/."
  41.           script:
  42.          - wait 0.5
  43.           - chat "<&7>Kauf dich arm und viel Spaß!"
  44.           - wait 1
  45.           - ^teleport <player.name> l@2180,62,-3612,0,0,andora
  46.         '3':
  47.           trigger: "<&7>Ich möchte mich nochmal am Spawn umschauen /REGEX:3$/."
  48.           script:
  49.          - wait 0.5
  50.           - chat "<&7>Kauf dich arm und viel Spaß!"
  51.           - wait 1
  52.           - ^teleport <player.name> l@2179,46,-3669,0,-80,andora
  53.          'CatchAll':
  54.           trigger: /REGEX:\w+/
  55.           script:
  56.          - chat "Tut mir leid, aber zu dem Ort <&dq><context.message><&dq> kann ich dich nicht teleportieren."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement