Advertisement
Guest User

Untitled

a guest
Sep 4th, 2015
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.55 KB | None | 0 0
  1. var BOX.TYPES Start|coffer|trunk|chest|strongbox|skippet|caddy|crate|casket|box|Done
  2. var Count 0
  3.  
  4. echo ****************************
  5. echo **
  6. echo ** .disarmground <say/speak>
  7. echo **
  8. echo ****************************
  9.  
  10. DISARM:
  11. math Count add 1
  12. eval DISARM.BOX element("%BOX.TYPES","%Count")
  13. if %DISARM.BOX = Done then goto DONE
  14. if %DISARM.BOX = Start then goto DISARM
  15. counter set 1
  16. if_1 then send say Starting to disarm %DISARM.BOXs now..
  17. goto DISARM.START
  18.  
  19. DISARM.COUNTER.ADD:
  20. counter add 1
  21. goto DISARM.START
  22.  
  23. DISARM.ANNOUNCE:
  24. pause 1
  25. send SAY Up to the tenth %DISARM.BOX is done, moving on to the next.
  26. pause 1
  27. goto DISARM
  28.  
  29. DISARM.START:
  30. if %c = 1 then var BOX.COUNT FIRST
  31. if %c = 2 then var BOX.COUNT SECOND
  32. if %c = 3 then var BOX.COUNT THIRD
  33. if %c = 4 then var BOX.COUNT FOURTH
  34. if %c = 5 then var BOX.COUNT FIFTH
  35. if %c = 6 then var BOX.COUNT SIXTH
  36. if %c = 7 then var BOX.COUNT SEVENTH
  37. if %c = 8 then var BOX.COUNT EIGHTH
  38. if %c = 9 then var BOX.COUNT NINTH
  39. if %c = 10 then var BOX.COUNT TENTH
  40. if %c = 11 then goto DISARM.ANNOUNCE
  41. gosub DISARM.ID
  42. gosub DISARM.CAREFUL
  43. gosub clear
  44. goto DISARM.COUNTER.ADD
  45.  
  46. DISARM.ID:
  47. pause 1
  48. var LAST DISARM.ID
  49. matchre DISARM.CAREFUL not yet fully|at your skill
  50. matchre PAUSE ^\.\.\.wait|^Sorry, you may only type
  51. matchre DISARM.ID fails to reveal to you|fails to reveal to you what type
  52. matchre RETURN You guess it is already disarmed|Surely any fool|Even your memory can not be that short|Somebody has already located
  53. matchre DISARM Disarm what?|Disarm what\?|need to have the item in your hands or placed
  54. matchre DISARM.CAREFUL You can disarm the|You believe that the|good shot at disarming|You think this trap|has the edge|should not take
  55. matchre RETURN Roundtime
  56. send DISARM %BOX.COUNT %DISARM.BOX ID
  57. matchwait
  58.  
  59. DISARM.CAREFUL:
  60. pause 1
  61. var LAST DISARM.CAREFUL
  62. matchre PAUSE ^\.\.\.wait|^Sorry, you may only type
  63. matchre DISARM.ID You believe that the %DISARM.BOX is not yet fully|not yet fully
  64. matchre DISARM.CAREFUL fumbling fails to disarm|This is not likely to be a good thing|unable to make any
  65. matchre RETURN You are certain the %DISARM.BOX is not trapped|You guess it is already disarmed|DISARM HELP for syntax help|Roundtime
  66. matchre DISARM Disarm what?|Disarm what\?|need to have the item in your hands or placed
  67. SEND DISARM %BOX.COUNT %DISARM.BOX CAREFUL
  68. matchwait 10
  69. goto DISARM.CAREFUL
  70.  
  71. PAUSE:
  72. pause
  73. goto %LAST
  74.  
  75. RETURN:
  76. pause 0.5
  77. return
  78.  
  79. DONE:
  80. if_1 then send say Done! Make sure to identify them in case any were missed.
  81. echo **
  82. echo ** DONE!
  83. echo **
  84. send #flash
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement