Paste #19950: Diff note for paste #19949

Date: 2015/09/07 19:12:11 UTC-07:00
Type: Diff Report

View Raw Paste Download This Paste
Copy Link


 cchat:
     type: format
     format: "<&b><npc.name><&f><&co><&a><text>"
 
-shadowassignment:
+enderknight1:
     type: assignment
     actions:
         on assignment:
+        
+        - flag global masternpc:<^npc>
+        - trigger name:click state:true
         - trigger name:proximity state:true
-        - trigger name:click state:true
+        - trigger name:chat state:true
         - adjust <npc> skin:leonellus
-        #- run masterpath npc:<npc> def:<npc>
+        - narrate <global.flag[masternpc]>
+        on click:
+        - narrate format:cchat "please do not touch me i am in a hurry i must find someone who can help me!"
     interact scripts:
-    - 10 shadowquest
-shadowquest:
+    - 10 enderquest
+enderquest:
     type: interact
     steps:
         1:
-            click trigger:
-                script:
-                - narrate format:cchat "please do not touch me i am in a hurry. the kingdom is in a state of emergency."
             proximity trigger:
                 entry:
                     script:
-                    - wait 2
+                    - flag <player> active:false
+                    - narrate format:cchat "excuse me! i am in a hurry. i must find someone who can help me!"
                 exit:
                     script:
-                    - narrate format:cchat "Wait!!! You there. Your name is <player.name> I have heard tales of you. You might be able to save the kingdom."
-                    - ^create player "Ender Knight" <npc.location> save:"Ender Knight"
-                    #- ^adjust <player> hide_entity:<npc>
-                    #- ^adjust <server.list_online_players.exclude[<player>]> hide_entity:"<entry[Ender Knight].created_npc>"
-                    - inject assgn npc:"<entry[Ender Knight"].created_npc>" def:<^npc>
-                    - flag <entry["Ender Knight"].created_npc> flag:<^npc>
+                    
+                    - if <player.flag[active]> {}
+                    else{
+                    - narrate format:cchat "Wait your <player.name> you might be able to help me. i have heard of you in the castle. i have an urgent quest can you help me?"
+                    - create player EnderKnight <npc.location> save:EnderKnight
+                    - flag <player> active:true
+                    - ^adjust <player> hide_entity:<npc> 
+                    - ^adjust <server.list_online_players.exclude[<player>]> hide_entity:"<entry[Ender Knight].created_npc>" 
+                    - run clonetask npc:<entry[EnderKnight].created_npc> def:<^npc>}
                     - zap 2
-assgn:
+clonetask:
     type: task
-    definitions: masternpc
     script:
-    - assignment set script:questassign
-
-questassign:
+    - adjust <npc> skin:leonellus
+    - ^while <npc.location.distance[<player.location>].is[or_more].then[5]>{ 
+    - walk <npc> <player.location> 
+    - wait 5
+    - ^if <npc.location.distance[<player.location>].is[or_less].then[6]>{
+    - assignment set script:cloneassignment
+    - walk <npc> stop}
+    - narrate format:cchat "please wait i need to talk to you"}}
+    
+    
+cloneassignment:
     type: assignment
     actions:
         on assignment:
+        - trigger name:click state:true
         - trigger name:proximity state:true
-        - trigger name:click state:true
         - trigger name:chat state:true
-        - flag <npc> masternpc:<masternpc>
-        - narrate format:cchat "a dangerous creature has moved itself into the sewers. everyone i have tried to ask will not help me. but you can. will you? yes or no?"
+        - adjust <npc> skin:leonellus
+        - narrate <npc>
+        on exit proximity:
+        - ^while <npc.location.distance[<player.location>].is[or_more].then[5]>{ 
+        - walk <npc> <player.location> 
+        - wait 5
+        - ^if <npc.location.distance[<player.location>].is[or_less].then[6]>{
+        - walk <npc> stop}}
+        - narrate format:cchat "please wait i need to talk to you"}}
     interact scripts:
-     - 10 quest
-quest:
+    - 10 clonequest
+clonequest:
     type: interact
     steps:
         1:
             chat trigger:
                 1:
-                    trigger: /yes/ i will help you! this evil must be stopped.
+                    trigger: /help/ me i dont know what you want!
                     script:
-                        #- run questrun npc:<npc>
-                        - run queststop npc:<npc>
-                        - zap 1 
+                    - narrate format:cchat "my current options are yes,help,leavemealone"
+                2:    
+                    trigger: /leave/ me alone!
-                2:
-                    trigger: /no/ i will not put myself in danger for you.
                     script:
-                        - narrate format:"fine i will have to find someone else"
-                        - adjust <player> show_entity: <masternpc>
-                        - remove <npc>
-                        - zap 1
+                    - narrate format:cchat "very well than i will find someone else"
+                    - ^inject ending
+ending:
+    type: task
+    script:
+    - adjust <player> show_entity:<global.flag[masternpc]>
+    - adjust <global.flag[masternpc]> skin:leonellus
+    - flag <player> active:false
+    #- run masterpath npc:<global.flag[masternpc]>
+    - remove <npc>
+    - zap enderquest 1