Advertisement
Guest User

Untitled

a guest
Jun 24th, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.29 KB | None | 0 0
  1.  
  2. on *:start: {
  3. if ($hget(score,$nick)) { hmake score }
  4. cs hmake mtime 50
  5. cs hmake rtime 50
  6. }
  7.  
  8. on $*:TEXT:/^[.!@]login/Si:#chanspy: {
  9. if ($chan == #BNC) { halt }
  10. if (%loggedin [ $+ [ $nick ] ] == Yes) {
  11. notice $nick (10ERROR1): You are already logged in, to logout type !logout | halt
  12. }
  13. set %login $nick
  14. ns status $nick
  15. }
  16. on *:NOTICE:*:?: {
  17. if ($nick == NickServ) {
  18. if (%login) {
  19. if (*3* iswm $1-) {
  20. notice %login (10LOGIN1): You are now logged in with the address:10 $address(%login,2)
  21. set %loggedin $+ %login Yes
  22. unset %login
  23. }
  24. else {
  25. notice %login (10ERROR1): You are not identified, please do10 /ns identify password 1to login.
  26. unset %login
  27. }
  28. }
  29. }
  30. }
  31. on $*:TEXT:/^[.!@]logout/Si:#chanspy: {
  32. if ($chan == #BNC) { halt }
  33. if (%loggedin [ $+ [ $nick ] ] == No) {
  34. notice $nick (10ERROR1): You arent even logged in! To login do !login provided your identified with NickServ | halt
  35. }
  36. if (%loggedin [ $+ [ $nick ] ] == Yes) {
  37. notice $nick (10LOGOUT1): You have been logged out!
  38. }
  39. set %loggedin $+ $nick No
  40. }
  41.  
  42. On $*:TEXT:/^[!@.](grab|take)/Si:#: {
  43. if (%loggedin [ $+ [ $nick ] ] == Yes) {
  44. if ($hget(score,$nick)) == $null) {
  45. if ($hget(wtime,$nick)) { .notice $nick $logo2(NOTICE) 14You must wait7 $duration($hget(wtime,$nick)) 14before using this command again.
  46. halt
  47. }
  48. var %X $rand(30,60)
  49. hinc -m ($hget(score,$nick)) Treats %X if
  50. .notice $nick $logo2(NOTICE) 14You got7 %X 14sweets from the jar, You now have7 $hget($+(Totals.,$nick),Treats) 14sweets!
  51. hadd -z wtime $nick $r(30,60)
  52. }
  53. }
  54. On $*:TEXT:/^[!@.](rob)/Si:#: {
  55. if (%loggedin [ $+ [ $nick ] ] == Yes) {
  56. if ($hget(score,$nick)) == $null) {
  57. if ($hget(rtime,$nick)) { .notice $nick $logo2(NOTICE) 14You must wait7 $duration($hget(wtime,$nick)) 14before using this command again.
  58. halt
  59. }
  60. var %X $rand(30,60)
  61. hinc -m ($hget(score,$nick)) Treats %X if
  62. .notice $nick $logo2(NOTICE) 14You got7 %X 14sweets from the jar, You now have7 $hget($+(Totals.,$nick),Treats) 14sweets!
  63. hadd -z rtime $nick $r(750,900)
  64. }
  65. }
  66. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement