Advertisement
xiebozhi

Kill Quest Issue

Dec 21st, 2012
342
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.66 KB | None | 0 0
  1. 17:48:14 [INFO] +- Getting interact script: 'QuestMaster'/bobbshields -+
  2. 17:48:14 [INFO] | ERROR! Could not find any scripts assigned!
  3. 17:48:14 [INFO] +---------------------+
  4. 17:48:14 [INFO] +- Parsing click trigger: 'QuestMaster'/bobbshields -+
  5. 17:48:14 [INFO] | Getting current step:
  6. 17:48:14 [INFO] | ...current step not found, assuming '1'.
  7. 17:48:14 [INFO] | ERROR! Could not find script at:
  8. 17:48:14 [INFO] | null.Steps.1.Click Trigger.Script
  9. 17:48:14 [INFO] | Check YML spacing, or is something spelled wrong in your script?
  10.  
  11. Assignment:
  12. Denizens:
  13. 'QuestMaster':
  14. Interact Scripts:
  15. - 0 StartZombie10
  16. - 10 EndZombie10
  17.  
  18.  
  19. Script:
  20. StartZombie10:
  21. Type: Interact
  22. Requirements:
  23. Mode: None
  24. Steps:
  25. 1:
  26. Proximity Trigger:
  27. Script:
  28. - CHAT "Hey, you there! You look strong, can you help me kill some things?"
  29. Click Trigger:
  30. Script:
  31. - CHAT "Can you help me? Just say Yes or No"
  32. Chat Trigger:
  33. '1':
  34. Trigger: /Yes/. I can.
  35. Script:
  36. #Tell the player what to do.
  37. - CHAT "I have a zombie problem! Zombies! everywhere!"
  38. - WAIT 1
  39. - CHAT "I'll pay you to clear them out for me. Kill 10 and come talk to me."
  40. #Start the Denizen listening for the killed Zombies, the KillComplete script will run once done.
  41. - LISTEN KILL TYPE:ENTITY NAME:ZOMBIE QTY:10 SCRIPT:KillZombie10Complete
  42. #set this script to step 2. So the player gets the hint message.
  43. - ZAP
  44. '2':
  45. Trigger: /No/. I cannot.
  46. Script:
  47. - CHAT "Are you sure? OK. maybe later?"
  48. 2:
  49. Click Trigger:
  50. Script:
  51. - CHAT "Kill 10 zombies please!"
  52.  
  53.  
  54. KillZombie10Complete:
  55. Type: Task
  56. Script:
  57. - FINISH
  58. - NARRATE "You have killed 10 zombie, return to John Q QuestGiver for your reward"
  59.  
  60. EndZombie10:
  61. Type: Trigger
  62. Requirements:
  63. Mode: All
  64. List: #Check if they finished the kill.
  65. - FINISHED KillZombie10Complete
  66. Steps:
  67. 1:
  68. Click Trigger:
  69. Script:
  70. - ENGAGE #Engage is used to keep the player from clicking twice.
  71. - CHAT "Thank you so much! Here, take this as a reward!"
  72. - GIVE SPONGE QTY:5
  73. - WAIT 1
  74. - CHAT "They'll be back soon enough, let me know if you want to kill some more!"
  75. #These next 2 commands reset the quest so it can be repeated. If you don't want it repeatable make a step 2 on this script and call ZAP instead.
  76. - ZAP 1 SCRIPT:StartKill
  77. - RESET FINISHED SCRIPT:KillZombie10Complete
  78. #Always disengagae after an Engage
  79. - DISENGAGE
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement