Paste #39499: Diff note for paste #39498

Date: 2017/01/31 02:08:38 UTC-08:00
Type: Diff Report

View Raw Paste Download This Paste
Copy Link


-30.01 14:08:13 [Server] INFO ERROR in script 'GUIDE_PATH'! Woah! Invalid arguments were 
-30.01 14:08:13 [Server] INFO ERROR! 'npc' is an unknown argument! 
-30.01 14:08:13 [Server] INFO ERROR in script 'GUIDE_PATH'! Tag <npc> is invalid! 
-30.01 14:08:13 [Server] INFO Filled tag <npc> with 'npc'. 
-30.01 14:08:13 [Server] INFO ERROR! Invalid or missing NPC for tag <npc>! 
-30.01 14:08:13 [Server] INFO +- Executing dCommand: REMOVE/p@hd ---------+
+cchat:
+    type: format
+    format: "<&b><npc.name><&f><&co> <&a><text>"
+
+Guide:
+    type: assignment
+    actions:
+        on assignment:
+        - trigger name:chat state:true
+        - trigger name:click state:true
+    Interact Scripts:
+    - 10 guide_interact
+    
+guide_interact:
+    type: Interact
+    Steps:
+        '1':
+            click trigger:
+                Script:
+                - narrate format:cchat "Hello! Would you like a tour?"
+                - narrate "Say /yes/ or /no/"
+            chat trigger:
+                1:
+                    trigger: /Yes/, I'd love to
+                    script:
+                    - narrate format:cchat "Great! Follow me!"
+                    - ^create player Guide <npc.location> save:guide
+                    - ^adjust <player> hide_entity:<npc>
+                    - ^adjust <server.list_online_players.exclude[<player>]> hide_entity:<entry[guide].created_npc>
+                    - ^run guide_path npc:<entry[guide].created_npc> def:<^npc>
+                    - zap 2
+                    
+                2:
+                    trigger: /No/, I don't want to
+                    script:
+                    - narrate format:cchat "Okay, enjoy your time!"
+                    
+guide_path:
+    type: task
+    definitions: masterguide
+    script:
+    - ~walk <def[masterguide].anchor[spot1]> auto_range
+    - ^inject guide_trypause
+    - ~walk <def[masterguide].anchor[spot2]> auto_range
+    - ~inject guide_talk_money
+    - ^inject guide_trypause
+    - ~walk <def[masterguide].anchor[spot3]> auto_range
+    - ~inject guide_talk_land
+    - ^inject guide_trypause
+    - ~walk <def[masterguide].anchor[spot4]> auto_range
+    - ~inject guide_talk_city
+    - ^inject guide_trypause
+    - ~walk <def[masterguide].anchor[spot5]> auto_range
+    - ~inject guide_talk_ranks
+    - ^inject guide_trypause
+    - ~walk <def[masterguide].anchor[spot6]> auto_range
+    - ~inject guide_talk_graveyards
+    - ^inject guide_trypause
+    - ~walk <def[masterguide].anchor[spot7]> auto_range
+    - ~inject guide_talk_shops
+    - ^inject guide_trypause
+    - ~walk <def[masterguide].anchor[spot8]> auto_range
+    - ~inject guide_talk_dnq
+    - ^inject guide_trypause
+    - wait 1
+    - remove <npc>
+    - adjust <player> show_entity:<def[masterguide]>
+    - zap 1 script:s@guide_interact
+        
+guide_trypause:
+    type: task
+    script:
+    - ^if <npc.location.distance[<player.location>].is[OR_MORE].than[5]>
+    - narrate format:cchat "I see you don't want the tutorial! Enjoy your time at Eldin!"
+    - remove <npc>
+    - adjust <player> show_entity:<def[masterguide]>
+    - zap 1 script:s@guide_interact
+    - ^else while <npc.location.distance[<player.location>].is[OR_MORE].than[5]> {
+      - random 3
+      - narrate format:cchat "Try to keep up!"
+      - narrate format:cchat "Hurry up! I'm waiting!"
+      - narrate format:cchat "Come on!"
+      - wait 4
+      }
+    
+guide_talk_money:
+    type: task
+    script:
+    - narrate format:cchat "Hello, this is the first line of the money making guide."
+    - wait 3
+    - narrate format:cchat "And this is the second line of the money making guide."
+    
+guide_talk_land:
+    type: task
+    script:
+    - narrate format:cchat "Hello, this is the first line of the land protection guide."
+    - wait 3
+    - narrate format:cchat "And this is the second line of the land protection guide."
+    
+guide_talk_city:
+    type: task
+    script:
+    - narrate format:cchat "Hello, this is the first line of the city creation guide."
+    - wait 3
+    - narrate format:cchat "And this is the second line of the city creation guide."
+    
+guide_talk_ranks:
+    type: task
+    script:
+    - narrate format:cchat "Hello, this is the first line of the ranks guide."
+    - wait 3
+    - narrate format:cchat "And this is the second line of the ranks guide."
+    
+guide_talk_graveyards:
+    type: task
+    script:
+    - narrate format:cchat "Hello, this is the first line of the graveyards guide."
+    - wait 3
+    - narrate format:cchat "And this is the second line of the graveyards guide."
+    
+guide_talk_shops:
+    type: task
+    script:
+    - narrate format:cchat "Hello, this is the first line of the shops guide."
+    - wait 3
+    - narrate format:cchat "And this is the second line of the shops guide."
+    
+guide_talk_dnq:
+    type: task
+    script:
+    - narrate format:cchat "Hello, this is the first line of the dungeons and questing guide."
+    - wait 3
+    - narrate format:cchat "And this is the second line of the dungeons and questing guide."