Advertisement
Guest User

BeanScript

a guest
Aug 26th, 2015
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.63 KB | None | 0 0
  1. BeanScript:
  2. type: assignment
  3. interact scripts:
  4. - 10 BeanStart
  5. BeanStart:
  6. type: interact
  7. steps:
  8. 1:
  9. click trigger:
  10. script:
  11. - chat "Ello there <player.name>! I'm <npc.name>!"
  12. - if <player.flag[bean_cooldown].is_expired> {
  13. - wait 1
  14. - chat "Anyways, could you help me get something? --> Chat Yes or No"
  15. - zap step:2
  16. } else {
  17. - chat "Woah! You still need to wait <player.flag[bean_cooldown].expiration> seconds."
  18. }
  19. 2:
  20. chat trigger:
  21. 1:
  22. trigger: /Yes/, I can help you out, what do you need?
  23. script:
  24. - chat "I need 10 Bertie Botts Beans! ->clownfish<- If you could find them I'd be glad to reward ya!"
  25. - narrate "Go get <npc.name> Bertie Botts Beans!"
  26. - zap step:3
  27. 2:
  28. trigger: /No/ I do not have time for this!
  29. script:
  30. - chat "Fine then. I'll find someone else!"
  31. - zap step:1
  32. 3:
  33. click trigger:
  34. script:
  35. - if <player.inventory.contains[349:2]> {
  36. - ^TAKE 349:2 QTY:10
  37. - chat "Oh great you have them!"
  38. - wait 1
  39. - chat "Here is your reward!"
  40. - GIVE MONEY QTY:350
  41. - narrate "<npc.name> has rewarded you with <gold>$350!"
  42. - narrate "<blue>You have completed this quest! You must wait 1 minute to do it again!"
  43. - flag <player> bean_cooldown d:1m
  44. - zap step:1
  45. } else {
  46. - chat "Come back to me when you have the beans!"
  47. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement