Paste #48462: Diff note for paste #48461

Date: 2018/07/07 16:05:03 UTC-07:00
Type: Diff Report

View Raw Paste Download This Paste
Copy Link


-npc_skin_save_command:
-    type: command
-    name: saveskin
-    usage: /saveskin [name]
-    description: Saves ye skin
-    permission: denizen.saveskin
-    script:
+helpjeff:
+  type: assignment
+  actions:
+    on assignment:
+    - trigger name:proximity state:true radius:10
+    on enter proximity:
+    - if <player.has_flag[chicken_cooldown]> {
-    - inject npc_skin_validate
-    - flag server npc_skins.<context.args.get[1].escaped>:<player.selected_npc.skin_blob>;<player.selected_npc.name>
-
-npc_skin_load_command:
-    type: command
-    name: loadskin
-    usage: /loadskin [name]
-    description: Loads ye skin
-    permission: denizen.saveskin
-    script:
-    - inject npc_skin_validate
-    - if !<server.has_flag[npc_skins.<context.args.get[1].escaped>]> {
-      - narrate "No skin found"
       - queue clear
-      }
-    - adjust <player.selected_npc> skin_blob:<server.flag[npc_skins.<context.args.get[1].escaped>]>
+    }
+    - flag player chicken_cooldown duration:15s
+    - narrate "You see a chicken man? What is with this town?! Either way, he's running around his wheat fields, mumbling to himself. It seems he's talking about possibly having a quest? Go up and right click on him and see what he has to say."
+  interact scripts:
+  - 10 helpjefffarm
 
-npc_skin_validate:
-    type: task
-    script:
-    - if !<player.has_permission[denizen.saveskin]||<<player.is_op||context.server>>> {
-      - narrate "Nope!"
-      - queue clear
-      }
-    - if <context.args.size> == 0 {
-      - narrate "/saveskin [name]"
-      - queue clear
-      }
-    - if <player.selected_npc||null> == null {
-      - narrate "Select an NPC!"
-      - queue clear
-      }
+helpjefffarm:
+    type: interact
+    steps:
+        1:
+            click trigger:
+                script:
+                - narrate "Thank Bawk you've come, <player.name>! I am in serious trouble! I need to get 50 bales of hay today so I can take them into town, but I'm just...so tired."
+                - wait 1
+                - narrate "Could you help a farmer out, Cluckers? (Type Yes/No)"
+            chat trigger:
+                1:
+                    trigger: /yes/
+                    script:
+                    - if <player.inventory.contains[wood_hoe].not> {
+                      - chat "Oh my gosh! Thank you so much! You're helping a farmer out for sure! Here, take this hoe and get to choppin!"
+                      - give wood_hoe quantity:1
+                    }
+                    else {
+                      - chat "Oh my gosh! Thanks so much! You're really helping me out here! Since you've already got a hoe, come back when you've got them 50 wheats!"
+                    }
+                    - flag player helpjeffyes
+                    - title "title:<yellow>Quest Accepted!!!" "subtitle:<white>Helping Jeff - Bring him 50 wheat." fadein:2s stay:4s fadeout:2s targets:<player.name>
+                    - zap step:2
+
+                2:
+                    trigger: /no/
+                    script:
+                    - chat "No? Well, that's alright. I could make it worth your while though. If you change your mind come on back!"
+        2:
+            click trigger:
+                script:
+                - if <player.inventory.contains[wheat].quantity[50]> {
+                    - take wheat quantity:50
+                    - chat "Thank you so much! These are perfect! Here's a little something for your trouble!"
+                    - give money quantity:75
+                    - give xp:100
+                    - mcmmo give skill: herbalist
+                    - flag player helpedjeff
+                    - zap step:3
+                }
+                else {
+                    - chat "That's not enough wheats! Come back when you have a few more, cluckers!"
+                    - wait 1
+                    - narrate "<npc.name> looks excited for you to bring all of the wheat! Looks like he's been recovering well too from the break!"
+                }
+        3:
+            click trigger:
+                script:
+                - if <player.has.flag[helpedjeff]>
+                  - chat "Say, since you're here, I have to take this wheat up to Priscllla. I know you're probably heading into the city anyways, so would you mind taking this wheat to her? (Type Yes/No)"
+                - if <player.has.flag[priscillano]>
+                  - chat "Did you change your mind about taking this wheat up to Priscialla? (Type Yes/No)"
+            chat trigger:
+                1:
+                  trigger: /yes/
+                  script:
+                  - chat "Faaantastic! Here's the wheat bawck, I mean, back."
+                  - wait 1s
+                  - give wheat quantity:50
+                  - flag player priscillayes
+                  - zap s@deliverwheats
+                2:
+                  trigger: /no/
+                  script:
+                  - chat "No worries, if you're not headed that way I won't mind. But if you change your mind, there's some goodies in it for ya, Cluckers!"
+                  - flag player priscillano