Advertisement
Guest User

Untitled

a guest
Apr 30th, 2016
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.99 KB | None | 0 0
  1. Class:
  2. type: assignment
  3. interact scripts:
  4. - 10 ClassNew
  5.  
  6. ClassNew:
  7. type: interact
  8. steps:
  9. 1:
  10. click trigger:
  11. script:
  12. - chat "<yellow>What can I do for you. <player.name>?"
  13. - wait 1
  14. - ^narrate "<gray>Say: <green>1 <gray>or <green>2"
  15. - ^narrate "<green>1: <gray>I'm new to the server!"
  16. - ^narrate "<green>2: <gray>I'd like to change my class!"
  17. chat trigger:
  18. 1:
  19. trigger: //1// - My name's <player.name>. I just joined the server!
  20. script:
  21. - if <player.has_flag[notnew]> {
  22. - chat "<yellow>I swear I have seen you before, you already have a set class."
  23. } else {
  24. - chat "<yellow>Ah! I heard some rumors about a new guy around here, very nice to meet you, <player.name>!"
  25. - wait 3
  26. - chat "<yellow>Well, you have a huge decision to make, one that can change the fate of the Madness Community! You my friend, must decide what class you would like to be on this server."
  27. - wait 5
  28. - chat "<yellow>Why don't you take a look around at the various classes, be sure to be aware of their pro's and con's. Come visit me when you've decided!"
  29. - wait 3
  30. - narrate "<gray>Return to <npc.name> when you have decided your class."
  31. - ^narrate "<gray>There is a 7 day cooldown before you may change your class again."
  32. - zap step:2
  33. }
  34. trigger: //2// - Hi <npc.name>, I would like to change my class
  35. script:
  36. - if <player.flag[class_cooldown].is_expired> {
  37. - chat "Sure I would love to, but it'll cost you."
  38. - chat "Bring me back 10 gold and I will change your class for you"
  39. - zap step:3
  40. } else {
  41. - chat "Not so fast there, <player.name>! You still have <player.flag[class_cooldown].expiration> hours until you can change your class again"
  42. - zap step:1
  43. }
  44.  
  45. 2:
  46. click trigger:
  47. script:
  48. - chat "<yellow>That quick? Alright then, <player.name>, just gimme a minute."
  49. - wait 3
  50. - narrate "<gray> *strange noises*"
  51. - wait 1
  52. - narrate "<gray> *rustling"
  53. - chat "<yellow> Yes yes, here we go."
  54. - execute as_op "skill select"
  55. - ^flag <player> notnew:true
  56. - zap step:1
  57. 3:
  58. click trigger:
  59. script:
  60. - chat "<yellow>You have my gold?"
  61. - ^narrate "<gray>Say: <green>1 <gray>or <green>2"
  62. - ^narrate "<green>1: <gray>Yes I do"
  63. - ^narrate "<green>2: <gray>Nope"
  64. chat trigger:
  65. 1:
  66. trigger: //1// - I have 10 gold right here <npc.name>
  67. script:
  68. - if <inventory.contains.material[gold_ingot].quantity[10]> {
  69. - chat "Ah, right then. Here you go!"
  70. - wait 3
  71. - execute as_op "skill change"
  72. } else {
  73. - chat "Trying to trick me? I dont think so... "
  74. - narrate "<npc.name> walks away from you."
  75. - zap step:1
  76. }
  77. trigger: //2// - I don't have your gold, <npc.name>
  78. script:
  79. - chat "Well then, I have no business here. Goodbye"
  80. - narrate "<gray> *Walks away*"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement