Advertisement
Guest User

Untitled

a guest
Aug 20th, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.96 KB | None | 0 0
  1. ; !advice
  2. ON 1000:text:*wisdom*:#: {
  3. IF ($1 == %c $+ wisdom) {
  4. IF ($2 == on) { .enable #advicechan | .msg $chan 5The Advice Mode Has Just Been Enabled. | set %last.used.command advice on | set %last.person $nick | set %st.advice on | halt }
  5. IF ($2 == off) { .disable #advicechan | .msg $chan 5The Advice Mode Has Just Been Disabled. | set %last.used.command advice off | set %last.person $nick | unset %st.advice | halt }
  6. else { .notice $nick 5Incorrect command usage: %c $+ wisdom <on/off> | halt }
  7. }
  8. }
  9. #advicechan on
  10. ON *:TEXT:*advice*:*: {
  11. IF ($1 == %c $+ advice) {
  12. /set %exists { $exists( [ "C:\Program Files\mIRC\YB452\txt\Advice\advice_ [ $+ [ $2 ] [ $+ [ .txt" ] ] ] ] ) }
  13. IF ($3- == $null) {
  14. IF ($2 == $null) { msg $chan 5Proper syntax is $+ : 2,14!advice 2,14<topic> | halt }
  15. IF ($2 == topic) { /play -m1 $chan [ "C:\Program Files\mIRC\YB452\txt\Advice\advice_topic.txt" ] 750 | halt }
  16. IF (%exists == $true) { $read("C:\Program Files\mIRC\YB452\txt\Advice\advice_ [ $+ [ $2 ] [ $+ [ .txt" ] ] ] ,p ) | halt }
  17. IF (%exists == $false) { msg $chan 5I do not have any advice on this topic. | halt }
  18. }
  19. IF ($3 == add) {
  20. IF (($2 == topic) || ($2 == help)) { msg $chan 5That is a prohibited topic $nick $+ . | halt }
  21. IF ($level($address($nick,5)) >= 995) { { /write [ "C:\Program Files\mIRC\YB452\txt\Advice\advice_ [ $+ [ $2 ] [ $+ [ .txt" ] ] ] msg %chan 5 $4- ] | msg $chan 5Thanks for adding your advice $nick $+ ! }
  22. IF (%exists == $false) { /set %advice.count $calc(%advice.count + 1) | /write [ "C:\Program Files\mIRC\YB452\txt\Advice\advice_topic.txt" ] 5 [ %advice.count ] $+ . $2 | halt }
  23. }
  24. IF ($level($address($nick,5)) < 995) { msg $chan 5You do not have sufficient access to add advice. | halt }
  25. }
  26. ELSEIF ($3- != $null) { msg $chan 5Proper syntax is $+ : 2,14!advice 2,14<topic> | halt }
  27. }
  28. ELSE { halt }
  29. }
  30. #advicechan end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement