Paste #80256: npc_0021_manuel

Date: 2021/02/02 05:36:06 UTC-08:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


'npc_0021_manuel':
  type: assignment
  interact scripts:
  - npc_0021_manuel_Interaction
  actions:
    on assignment:
    - trigger name:click toggle:true
    - trigger name:chat toggle:true
    - trigger name:proximity toggle:true radius:7

'npc_0021_manuel_Interaction':
  type: interact
  steps:
   default:
       click trigger:
           script:
           - narrate "<&7>[<&6><player.name><&7>]: Hallo, ich bin <&e><player.name><&7>."
           - wait 3
           - chat "<&7>Hey, schön dich kennenzulernen, <&e><player.name><&7>. Ich bin <&e><npc.name><&7>."
           - wait 3
           - chat "<&7>Kannst du mir in dieser <&e>Goldmine <&7>helfen?"
           - wait 3
           - chat "<&7>Zwei Händler sind hier vorbei gekommen und nun stecken sie in der Höhle fest."
           - wait 3
           - chat "<&7>Der Eingang ist eingestürtzt, aber ich werde ihn dir öffnen."
           - wait 3
           - ~walk <npc> <npc.anchor[eingang]>
           - equip <npc> hand:golden_pickaxe
           - wait 2
           - playsound <player.location> sound:ENTITY_WITHER_BREAK_BLOCK
           - modifyblock <location[ap-002-eingang-1]> air"
           - wait 1
           - playsound <player.location> sound:ENTITY_WITHER_BREAK_BLOCK
           - execute as_npc "setblock 1187 74 1198 air"
           - wait 1
           - playsound <player.location> sound:ENTITY_WITHER_BREAK_BLOCK
           - execute as_npc "setblock 1187 73 1198 air"
           - wait 1
           - playsound <player.location> sound:ENTITY_WITHER_BREAK_BLOCK
           - execute as_npc "setblock 1186 73 1198 air"
           - wait 1
           - playsound <player.location> sound:ENTITY_WITHER_BREAK_BLOCK
           - execute as_npc "setblock 1186 72 1198 air"
           - wait 1
           - playsound <player.location> sound:ENTITY_WITHER_BREAK_BLOCK
           - execute as_npc "setblock 1187 72 1198 air"
           - wait 2
           - equip <npc> hand:air
           - ~walk <npc> <npc.anchor[manuel]>
           - execute as_npc "setblock 1188 74 1198 cracked_polished_blackstone_bricks"
           - execute as_npc "setblock 1187 74 1198 cracked_polished_blackstone_bricks"
           - execute as_npc "setblock 1187 73 1198 cracked_polished_blackstone_bricks"
           - execute as_npc "setblock 1186 73 1198 cracked_polished_blackstone_bricks"
           - execute as_npc "setblock 1186 72 1198 cracked_polished_blackstone_bricks"
           - execute as_npc "setblock 1187 72 1198 cracked_polished_blackstone_bricks"
       proximity trigger:
           entry:
               script:
               - chat "<&7>Hallo <&b>Fremder<&7>! <&7>Was machst du den hier?"