_MM_IKKE

helpcmd.ini

Nov 21st, 2018
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 6.57 KB | None | 0 0
  1. [script]
  2. n0=on 500,543:TEXT:*:#: { halt }
  3. n1=on *:LOAD: {
  4. n2=  echo -at Loaded help script
  5. n3=  echo -at No new variables added, all are global
  6. n4=}
  7. n5=on *:UNLOAD: {
  8. n6=  echo -at Unloaded help script
  9. n7=  echo -at No variables unset, all are global
  10. n8=}
  11. n9=on *:TEXT:!usage*:#:{
  12. n10=  if ($me == %bot1 && $1 == !usage) {
  13. n11=    if ($2) {
  14. n12=      {
  15. n13=        if ($left($2,1) == $chr(33)) { var %cmd = $2 }
  16. n14=        else { var %cmd = $chr(33) $+ $2 }
  17. n15=      }
  18. n16=      {
  19. n17=        if ($readini(lists\cmdlist.ini,%cmd,active) != $null) {
  20. n18=          {
  21. n19=            if ($readini(lists\cmdlist.ini,%cmd,active) == 0) { var %status = (4disabled) }
  22. n20=            elseif ($readini(lists\cmdlist.ini,%cmd,status) == h) { var %status = (2halfops only) }
  23. n21=            elseif ($readini(lists\cmdlist.ini,%cmd,status) == o) { var %status = (2ops only) }
  24. n22=            elseif ($readini(lists\cmdlist.ini,%cmd,status) == q) { var %status = (2owners only) }
  25. n23=            elseif ($readini(lists\cmdlist.ini,%cmd,status) == i) { var %status = (2[MM]IKKE only) }
  26. n24=          }
  27. n25=
  28. n26=          {
  29. n27=            if ($readini(lists\cmdlist.ini,%cmd,usage) == none) {
  30. n28=              scon $bot_say($chan) msg $chan Usage: This command has no parameters %status
  31. n29=            }
  32. n30=            else {
  33. n31=              scon $bot_say($chan) msg $chan Usage: %cmd $readini(lists\cmdlist.ini,%cmd,usage) %status
  34. n32=            }
  35. n33=          }
  36. n34=        }
  37. n35=        else {
  38. n36=          scon $bot_say($chan) msg $chan 4ERROR:1 Command does not exist
  39. n37=        }
  40. n38=      }
  41. n39=    }
  42. n40=    else {
  43. n41=      scon $bot_say($chan) msg $chan 4ERROR:1 Usage: !usage <command>
  44. n42=    }
  45. n43=  }
  46. n44=}
  47. n45=on *:TEXT:!status*:#:{
  48. n46=  if ($me == %bot1 && $1 == !status) {
  49. n47=    if ($2) {
  50. n48=      {
  51. n49=        if ($left($2,1) == $chr(33)) { var %cmd = $2 }
  52. n50=        else { var %cmd = $chr(33) $+ $2 }
  53. n51=      }
  54. n52=
  55. n53=      {
  56. n54=        if ($readini(lists\cmdlist.ini,%cmd,active) != $null) {
  57. n55=          if ($readini(lists\cmdlist.ini,%cmd,active) == 0) { var %status = (4disabled) }
  58. n56=
  59. n57=          if ($readini(lists\cmdlist.ini,%cmd,status) == v) { scon $bot_say($chan) msg $chan Everyone can use this command %status }
  60. n58=          elseif ($readini(lists\cmdlist.ini,%cmd,status) == h) { scon $bot_say($chan) msg $chan Only halfops can use this command %status }
  61. n59=          elseif ($readini(lists\cmdlist.ini,%cmd,status) == o) { scon $bot_say($chan) msg $chan Only ops can use this command %status }
  62. n60=          elseif ($readini(lists\cmdlist.ini,%cmd,status) == q) { scon $bot_say($chan) msg $chan Only owners can use this command %status }
  63. n61=          elseif ($readini(lists\cmdlist.ini,%cmd,status) == i) { scon $bot_say($chan) msg $chan Only [MM]IKKE can use this command %status }
  64. n62=          else { scon $bot_say($chan) msg $chan 4ERROR:1 Unknown. Please report this as a bug (!report). }
  65. n63=        }
  66. n64=        else {
  67. n65=          scon $bot_say($chan) msg $chan 4ERROR:1 Command does not exist
  68. n66=        }
  69. n67=      }
  70. n68=    }
  71. n69=    else {
  72. n70=      scon $bot_say($chan) msg $chan 4ERROR:1 Usage: !status <command>
  73. n71=    }
  74. n72=  }
  75. n73=}
  76. n74=on *:TEXT:!help:#: {
  77. n75=  if ($me == %bot1 && $chan != #Somoon) {
  78. n76=    scon $bot_say($chan) msg $chan Say !help <command>.
  79. n77=  }
  80. n78=}
  81. n79=on *:TEXT:!help:?: {
  82. n80=  if ($me == %bot1 && $chan != #Somoon) {
  83. n81=    .msg $nick Say !help <command>.
  84. n82=  }
  85. n83=}
  86. n84=on *:TEXT:!help*:#: {
  87. n85=  if ($me == %bot1 && $1 == !help) {
  88. n86=    if ($2 != $null) {
  89. n87=      {
  90. n88=        if ($left($2,1) == $chr(33)) { var %cmd = $2 }
  91. n89=        else { var %cmd = $chr(33) $+ $2 }
  92. n90=      }
  93. n91=
  94. n92=      {
  95. n93=        if ($readini(lists\cmdlist.ini,%cmd,active) != $null) {
  96. n94=          {
  97. n95=            if ($readini(lists\cmdlist.ini,%cmd,active) == 0) { var %status = (4disabled) }
  98. n96=            elseif ($readini(lists\cmdlist.ini,%cmd,status) == h) { var %status = (2halfops only) }
  99. n97=            elseif ($readini(lists\cmdlist.ini,%cmd,status) == o) { var %status = (2ops only) }
  100. n98=            elseif ($readini(lists\cmdlist.ini,%cmd,status) == q) { var %status = (2owners only) }
  101. n99=            elseif ($readini(lists\cmdlist.ini,%cmd,status) == i) { var %status = (2[MM]IKKE only) }
  102. n100=          }
  103. n101=
  104. n102=          var %bot_say.tmp = $bot_say($chan,3)
  105. n103=
  106. n104=          scon %bot_say.tmp msg $chan $readini(lists\cmdlist.ini,%cmd,help)
  107. n105=
  108. n106=          if ($readini(lists\cmdlist.ini,%cmd,usage) == none) {
  109. n107=            scon %bot_say.tmp msg $chan Usage: This command has no parameters %status
  110. n108=          }
  111. n109=          else {
  112. n110=            scon %bot_say.tmp msg $chan Usage: %cmd $readini(lists\cmdlist.ini,%cmd,usage) %status
  113. n111=          }
  114. n112=        }
  115. n113=        else {
  116. n114=          scon $bot_say($chan) msg $chan 4ERROR:1 Command does not exist
  117. n115=        }
  118. n116=      }
  119. n117=    }
  120. n118=    else {
  121. n119=      scon $bot_say($chan) msg $chan 4ERROR:1 Usage: !help <command>
  122. n120=    }
  123. n121=  }
  124. n122=}
  125. n123=on *:TEXT:!help*:?: {
  126. n124=  if ($1 == !help) {
  127. n125=    if ($2 != $null) {
  128. n126=      {
  129. n127=        if ($left($2,1) == $chr(33)) { var %cmd = $2 }
  130. n128=        else { var %cmd = $chr(33) $+ $2 }
  131. n129=      }
  132. n130=
  133. n131=      {
  134. n132=        if ($readini(lists\cmdlist.ini,%cmd,active) != $null) {
  135. n133=          {
  136. n134=            if ($readini(lists\cmdlist.ini,%cmd,active) == 0) { var %status = (4disabled) }
  137. n135=            elseif ($readini(lists\cmdlist.ini,%cmd,status) == h) { var %status = (2halfops only) }
  138. n136=            elseif ($readini(lists\cmdlist.ini,%cmd,status) == o) { var %status = (2ops only) }
  139. n137=            elseif ($readini(lists\cmdlist.ini,%cmd,status) == q) { var %status = (2owners only) }
  140. n138=            elseif ($readini(lists\cmdlist.ini,%cmd,status) == i) { var %status = (2[MM]IKKE only) }
  141. n139=          }
  142. n140=
  143. n141=          .msg $nick $readini(lists\cmdlist.ini,%cmd,help)
  144. n142=
  145. n143=          if ($readini(lists\cmdlist.ini,%cmd,usage) == none) {
  146. n144=            .msg $nick Usage: This command has no parameters %status
  147. n145=          }
  148. n146=          else {
  149. n147=            .msg $nick Usage: %cmd $readini(lists\cmdlist.ini,%cmd,usage) %status
  150. n148=          }
  151. n149=        }
  152. n150=        else {
  153. n151=          .msg $nick 4ERROR:1 Command does not exist
  154. n152=        }
  155. n153=      }
  156. n154=    }
  157. n155=    else {
  158. n156=      .msg $nick 4ERROR:1 Usage: !help <command>
  159. n157=    }
  160. n158=  }
  161. n159=}
Add Comment
Please, Sign In to add comment