Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.68 KB | None | 0 0
  1. alias quantify {
  2. write -c quantify1.txt
  3. write -c quantify2.txt
  4. write -c quanitfy3.txt
  5. if ($isfile($1)) {
  6. var %1 $lines($1)
  7. while (%1 >= 1) {
  8. var %write $read($1, %1)
  9. write quantify1.txt %write
  10. dec %1
  11. }
  12. while ($read(quantify1.txt) != $null) {
  13. var %quantify1-2 $read(quantify1.txt,1)
  14. if (!$read(quantify2.txt, sn, %quantify1-2)) {
  15. write quantify2.txt %quantify1-2 ( $+ $chr(2) $+ x1 $+ $chr(2) $+ )
  16. write -dl1 quantify1.txt
  17. }
  18. elseif ($read(quantify2.txt, sn, %quantify1-2)) {
  19. var %readn $readn
  20. var %readeh = $read(quantify2.txt, sn, %quantify1-2)
  21. var %readehcalc.1 = $remove(%readeh,$chr(40),$chr(120),$chr(41),$chr(2))
  22. var %readehcalc.2 = $calc(%readehcalc.1 + 1)
  23. var %readehcalc = $chr(40) $+ $+ $chr(2) $+ $chr(120) $+ %readehcalc.2 $+ $chr(2) $+ $chr(41)
  24. write -l $+ %readn quantify2.txt %quantify1-2 %readehcalc
  25. write -dl1 quantify1.txt
  26. }
  27. }
  28. var %1 1
  29. unset %prizes
  30. while (%1 <= $lines(quantify2.txt)) {
  31. set %prizes $replace($addtok(%prizes,$read(quantify2.txt, %1),44),$chr(44),$chr(44) $+ $chr(32))
  32. inc %1
  33. }
  34. if (!$2) {
  35. var %oldprizes %prizes
  36. var %prizes $chr(3) $+ %agtheme %oldprizes
  37. return %prizes
  38. write -c quantifynick.txt
  39. }
  40. else {
  41. if ($2 == off) {
  42. return %prizes
  43. }
  44. else {
  45. echo -a Unknow command $qt($2) $+ .
  46. var %oldprizes %prizes
  47. var %prizes $chr(3) $+ %agtheme %oldprizes
  48. return %prizes
  49. write -c quantifynick.txt
  50. }
  51. }
  52. }
  53. else {
  54. return $1 is not a file.
  55. }
  56. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement