Advertisement
Guest User

Untitled

a guest
Mar 20th, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 7.87 KB | None | 0 0
  1. #Bierfkopf
  2.   #Erstellt von F3sti
  3.   #Ostern-2019
  4.   #Projekt: NahrungsQuest
  5.  
  6.   #-----------------------------------------------------------------------------------------------------------
  7.  
  8.   #
  9.   #Items:
  10.   #
  11. Osterscript_2019_NahrungsQuest_Grasbueschel_Item:
  12.   type: item
  13.   material: i@tall_grass
  14.   display name: Grasbündel
  15.   lore:
  16.    - <&d>Schmackhaftes Gras für Esel!
  17.     - Oster-Item 2019
  18.    
  19. Osterscript_2019_NahrungsQuest_Aepfel_Item:
  20.   type: item
  21.   material: i@apple
  22.   display name: Apfel
  23.   lore:
  24.    - <&d>Frisch gepflückter Apfel!
  25.     - Oster-Item 2019
  26.    
  27.   #-----------------------------------------------------------------------------------------------------------
  28.  
  29.   #
  30.   #Log:
  31.   #
  32.  
  33.  
  34.   #-----------------------------------------------------------------------------------------------------------
  35.  
  36. #
  37. #Ferdinand
  38. #
  39.  
  40. Osterscript_2019_NahrungsQuest_Ferdinand:
  41.   type: assignment
  42.   interact scripts:
  43.  - Osterscript_2019_NahrungsQuest_Ferdinand_Interaction
  44.   actions:
  45.     on assignment:
  46.    - trigger name:click toggle:true
  47.     - trigger name:chat toggle:true
  48.     - trigger name:proximity toggle:true radius:3
  49.     - ^execute as_op "npc select <npc.id>"
  50.     - ^execute as_op "npc lookclose"
  51.     - ^execute as_op "npc rename Ferdinand"
  52.     - ^execute as_op "npc skin afesraca"
  53.    
  54.    
  55. Osterscript_2019_NahrungsQuest_Ferdinand_Interaction:
  56.   type: interact
  57.   steps:
  58.     default:
  59.       proximity trigger:
  60.         entry:
  61.           script:
  62.            - chat "<&7> Hallo <player.name>!"
  63.             - wait 0.5
  64.             - chat "<&7> Ich bin <npc.name>."
  65.             - wait 0.5
  66.             - chat "<&7> Sind Esel nicht wunderbare Tiere?"
  67.             - wait 0.5
  68.             - chat "<&7> Also ich kümmere mich immer gerne um die Esel."
  69.    
  70.     Queststart:
  71.       proximity trigger:
  72.         entry:
  73.           script:
  74.            - chat "<&7> Hallo <player.name>!"
  75.             - wait 0.5
  76.             - chat "<&7>Ich bin <npc.name>, der Stallbursche für die Esel."
  77.             - wait 0.5
  78.             - chat "<&7> Mir fehlen leider noch ein paar Nahrungsmittel für die Esel."
  79.             - wait 0.5
  80.             - chat "<&7> Aber kann hier leider nicht weg."
  81.             - wait 0.5
  82.             - chat "<&7> Könntest du mir helfen, es zu besorgen?"
  83.             - wait 0.5
  84.             - narrate "<&f>Antorte mit <&6>Ja <&f>oder <&6>Nein <&f>."
  85.      
  86.       chat trigger:
  87.         '1':
  88.           trigger: "<&7>/Ja/, Ich helfe dir die Nahrung zu besorgen."
  89.           script:
  90.            - chat "<&7> Vielen Dank, damit hilfst du mir sehr."
  91.             - wait 0.5
  92.             - chat "<&7> Ich bräuchte noch:"
  93.             - wait 0.5
  94.             - chat "<&7> 5 Grasbündel"
  95.             - chat "<&7> und"
  96.             - chat "<&7> 5 Äpfel"
  97.             - wait 0.5
  98.             - chat "<&7> Falls du unterwegs vergessen solltest, was ich brauche, guck einfach unter <&6>/Questlog <&7>nach."
  99.             - ^flag player 'Ostern2019_Questlog:->:["",{"text":"Stallbursche Ferdinand","color":"gold","hoverEvent":{"action":"show_text","value":{"text":"","extra":[{"text":"Besorge mir Bitte:"}]}}}]'
  100.             - ^zap QuestStep
  101.             - ^zap QuestStart s@Osterscript_2019_NahrungsQuest_Alfons_Interaction
  102.             - ^zap QuestStart s@Osterscript_2019_NahrungsQuest_Test_Interaction
  103.            
  104.         '2':
  105.           trigger: "<&7>/Nein/, mir fehlt gerade leider die Zeit dafür!"
  106.           script:
  107.            - chat "<&7>Hmm..."
  108.             - wait 0.5
  109.             - chat "<&7>Naja, kann man nicht ändern."
  110.             - wait 0.5
  111.             - chat "<&7>Vielleicht magst du mir später noch helfen."
  112.            
  113.     QuestStep:
  114.       proximity trigger:
  115.         entry:
  116.           script:
  117.            - chat "<&7>Na, bist du so vergesslich, dass du vergessen hast, was mir fehlt?"
  118.             - chat "<&7>Oder hast du es unterwegs Verloren?"
  119.            
  120.     QuestAbgabe:
  121.       proximity trigger:
  122.         entry:
  123.           script:
  124.            - if <player.inventory.contains[i@OsterScript_2019_NahrungsQuest_Äpfel|i@OsterScript_2019_NahrungsQuest_Grasbündel].gty[5]>
  125.              - "<&7>Gib mir bitte die Äpfel und das Gras!"
  126.               - queue clear
  127.               }
  128.             else {
  129.               - ^zap default s@Osterscript_2019_NahrungsQuest_Ferdinand_Interaction
  130.               - ^zap QuestEnde
  131.               - chat "<&7>Vielen Dank. Hier deine Belohnung."
  132.               - ^take
  133.               - ^take
  134.               - equip <npc> hand:egg
  135.               - give OsterScript_2019_Belohnung_Ei qty:1
  136.               - equip <npc> hand:air
  137.               - flag player Ostern2019_QuestEnde_NahrungsQuest
  138.              
  139.     QuestEnde:
  140.       proximity trigger:
  141.         entry:
  142.           script:
  143.            - chat "<&7>Vielen Dank nochmal!"
  144.             - chat "<&7>Dank dir haben die Esel nun mehr abwechslung beim essen."
  145.            
  146.            
  147. #
  148. #Alfons
  149. #
  150.  
  151. Osterscript_2019_NahrungsQuest_Alfons:
  152.   type: assignment
  153.   interact scripts:
  154.  - Osterscript_2019_NahrungsQuest_Alfons_Interaction
  155.   actions:
  156.     on assignment:
  157.    - trigger name:click toggle:true
  158.     - trigger name:chat toggle:true
  159.     - trigger name:proximity toggle:true radius:3
  160.     - ^execute as_op "npc select <npc.id>"
  161.     - ^execute as_op "npc lookclose"
  162.     - ^execute as_op "npc rename Alfons"
  163. #    - ^execute as_op "npc skin "
  164.    
  165. Osterscript_2019_NahrungsQuest_Alfons_Interaction:
  166.   type: interact
  167.   steps:
  168.     default:
  169.       proximity trigger:
  170.         entry:
  171.           script:
  172.            - chat "<&7>Hallo <player.name>,"
  173.             - wait 0.5
  174.             - chat "<&7>Ich muss noch so viele Äpfel plücken!"
  175.             - wait 0.5
  176.             - chat "<&7>Und hab nur noch so wenig Zeit."
  177.             - wait 0.5
  178.             - chat "<&7>Dann gehe ich mal weiter pfücken."
  179.            
  180.     QuestStart:
  181.       proximity trigger:
  182.         entry:
  183.           script:
  184.            - chat "<&7>Hallo <player.name>,"
  185.             - wait 0.5
  186.             - chat "<&7>Brauchst du Äpfel?"
  187.             - narrate "<&f>Antorte mit <&6>Ja."
  188.            
  189.       chat trigger:
  190.         '1':
  191.           trigger: "<&7>/Ja/, ich brauche 10 Äpfel für Ferdinand."
  192.           script:
  193.            - chat "<&7>Dann will ich mal nicht so sein."
  194.             - wait 0.5
  195.             - chat "<&7>Hier hast du, die Äpfel für Ferdinand."
  196.             - equip <npc> hand:apple
  197.             - give i@Osterscript_2019_NahrungsQuest_Aepfel_Item qty:10
  198.             - equip <npc> hand:air
  199.            
  200. #
  201. #<Name>
  202. #
  203.  
  204. Osterscript_2019_NahrungsQuest_Test:
  205.   type: assignment
  206.   interact scripts:
  207.  - Osterscript_2019_NahrungsQuest_Test_Interaction
  208.   actions:
  209.     on assignment:
  210.    - trigger name:click toggle:true
  211.     - trigger name:chat toggle:true
  212.     - trigger name:proximity toggle:true radius:3
  213.     - ^execute as_op "npc select <npc.id>"
  214.     - ^execute as_op "npc lookclose"
  215.     - ^execute as_op "npc rename <Name>"
  216. #    - ^execute as_op "npc skin "
  217.    
  218. Osterscript_2019_NahrungsQuest_Test_Interaction:
  219.   type: interact
  220.   steps:
  221.     default:
  222.       proximity trigger:
  223.         entry:
  224.           script:
  225.            - chat "<&7>Hallo <player.name>,"
  226.             - wait 0.5
  227. #            - chat "<&7>"
  228.            
  229.     QuestStart:
  230.       proximity trigger:
  231.         entry:
  232.           script:
  233.            - chat "<&7>Hallo <player.name>,"
  234.             - wait 0.5
  235.             - chat "<&7>Wie kann ich dir helfen?"
  236.             - narrate "<&f>Antorte mit <&6>Grasbüschel."
  237.            
  238.       chat trigger:
  239.         '1':
  240.           trigger: "<&7>Ich brauche 5 /Grasbüschel/ für Ferdinand."
  241.           script:
  242.            - chat "<&7>Dann will ich mal nicht so sein."
  243.             - wait 0.5
  244.             - chat "<&7>Hier hast du, die Grasbüschel für Ferdinand."
  245.             - equip <npc> hand:tall_grass
  246.             - give Osterscript_2019_NahrungsQuest_Grasbueschel_Item qty:5
  247.             - equip <npc> hand:air
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement