Guest User

Untitled

a guest
Jun 23rd, 2018
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.41 KB | None | 0 0
  1. dialog Quotes {
  2. title "Quotes"
  3. size -1 -1 209 70
  4. option dbu
  5. edit "", 1, 0 9 209 34, multi
  6. text "Enter Quote to Save Here", 2, 70 0 64 9
  7. button "Save Quote", 3, 4 52 37 12
  8. button "Cancel", 4, 46 52 37 12
  9. button "View Quotes", 5, 124 52 37 12
  10. button "Play Quote", 6, 167 52 37 12
  11. text "By Vegeta", 7, 179 0 29 8
  12. }
  13. dialog Quotes2 {
  14. title "Quote"
  15. size -1 -1 209 70
  16. option dbu
  17. text "If there are more lines to your quote, enter the line number now", 1, 25 0 159 8
  18. edit "", 2, 75 19 50 10
  19. button "Enter", 3, 29 46 37 12
  20. button "Done", 4, 146 46 37 12
  21. }
  22. alias Quote dialog -m Quotes Quotes | set %QuoteChan $chan
  23. alias DontUseThisAlias dialog -m Quotes2 Quotes2
  24. on *:dialog:Quotes:sclick:3:{
  25. var %x = 1
  26. while (%x <= $did(1).lines) {
  27. write Quoter.txt %xinc $did(1,%x)
  28. inc %x
  29. inc %xinc
  30. }
  31. }
  32. on *:dialog:Quotes:sclick:4:{
  33. dialog -x Quotes Quotes
  34. }
  35. on *:dialog:Quotes:sclick:5:{
  36. window -e @quote
  37. play -e @quote C:\Users\Vegeta\AppData\Roaming\mIRC\Quoter.txt
  38. }
  39. on *:dialog:Quotes:sclick:6:{
  40. set %Quoterific $?=="Enter Quote Number"
  41. msg %QuoteChan Vegeta Quote %Quoterific $+ : $read(Quoter.txt, s, %Quoterific)
  42. unset %Quoterific
  43. /DontUseThisAlias
  44. }
  45. on *:dialog:Quotes2:sclick:3:{
  46. msg %QuoteChan $read(Quoter.txt, s, $did(2))
  47. dialog -x Quotes2 Quotes2
  48. /DontUseThisAlias
  49. }
  50. on *:dialog:Quotes2:sclick:4:{
  51. dialog -x Quotes2 Quotes2
  52. }
Add Comment
Please, Sign In to add comment