Norowas

Color + Dice Bot

Oct 12th, 2015
7,200
0
Never
2
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 8.79 KB | None | 0 0
  1. alias coloron { set -n %color $1 }
  2. alias coloroff { unset %color }
  3. on *:input:*:{
  4.   if (%color) && ($left($1,1) !isin /!) && (c !isincs $chan(#).mode) {
  5.     haltdef
  6.     say $chr(3) $+ %color $+ $chr(2) $+ $chr(2) $+ $1-
  7.   }
  8. }
  9.  
  10. # Dice roller, by Kardafol
  11. #rolldice on
  12. on *:text:*!roll*:%dr.chan.list: {
  13.   ;flood protection
  14.   if (%dr.flood.e) {
  15.     if (%dr.flood.x. [ $+ [ # ] ] >= %dr.flood.t) return
  16.     inc %dr.flood.x. [ $+ [ # ] ]
  17.     if (!$timer(dr.flood.x. [ $+ [ # ] ])) .timerdr.flood.x. [ $+ [ # ] ] 1 %dr.flood.s unset %dr.flood.x. [ $+ [ # ] ]
  18.   }
  19.   if (%dr.gflood.e) {
  20.     if (%dr.gflood.c >= %dr.flood.t) return
  21.     inc %dr.gflood.c
  22.     if (!$timer(dr.gflood)) .timerdr.gflood 1 %dr.gflood.s unset %dr.gflood.c
  23.   }
  24.   ; syntax things, and error checking
  25.   if ((!$2) || ($2 == help)) {
  26.     describe # , tadi $nick lupa caranya ngelempar dadu.
  27.     return  
  28.   }
  29.  
  30.   var %x = $rolldice($2-)
  31.   if (-* iswm %x) {
  32.     describe # , $nick kok ga ngerti juga ya caranya ngelempar dadu.
  33.     return
  34.   }
  35.   else {
  36.     describe # , hari ini $nick melempar $2- dan mendapat %x $+ .
  37.   }
  38. }
  39. alias rd {
  40.   ; syntax things, and error checking
  41.   if ((!$1) || ($1 == help)) {
  42.     echo -a Syntax: <<dice>d<sides: 4/6/8/10/20/100 standard ad&d>|<number>>[<+/->...]. <> = required, [] = optional. $&
  43.       ... means you may repeat the expression. <number> is a number to add to the total without rolling a dice for it. The first part must be a roll. $&
  44.       Limit to <dice> is 100.
  45.     echo -a Examples: !roll 2d6+5, !roll 1d20, !roll 2d6+1d8-3. Bad examples: !roll 2d2+4, !roll 5+2d6, !roll 101d4+5
  46.     return  
  47.   }
  48.  
  49.   var %x = $rolldice($1-)
  50.   if (-* iswm %x) {
  51.     echo -a Your syntax is invalid. Possible errors: $gettok(%x,2-,32) $+ .
  52.     return
  53.   }
  54.   else {
  55.     echo -a You roll $1- $+ : %x
  56.   }
  57. }
  58. alias -l rolldice {
  59.   if (!$1) return -
  60.   ; Syntax checking:
  61.   var %s = $1-, %st = 09, %f = 1
  62.   if ($len(%s) > 100) {
  63.     return - ...(Males ah nulisnya, kepanjangan.)
  64.   }
  65.   while ($regsub(%s,/^((\d+)d\d+(?:[-+]|$)|\d+(?:[-+]|$))/,$null,%s)) {
  66.     if ((%f == 1) && (*d* !iswm $regml(1))) {
  67.       return - $+(%st,04,$regml(1),%s,14(Expression needs to start with xdx))
  68.     }
  69.     if ($regml(2) > 100) {
  70.       return - $+(%st,04,$regml(1),%s,14(xdx: x cannot exceed 100))
  71.     }
  72.     var %st = $iif(%f > 2,09...,09) $+ $regml(1)
  73.     inc %f
  74.   }
  75.   if (%s != $null) {
  76.     return - $+(%st,04,$iif($len(%s) > 10,$+($mid(%s,1,7),...),%s),14(error parsing expression, see red for possible errors))
  77.   }
  78.   if ((*+ iswm %st) || (*- iswm %st)) {
  79.     return - $+($mid(%st,1,$calc($len(%st) - 1)),04,$mid(%st,$calc($len(%st))),14(error parsing expression, see red for possible errors))
  80.   }
  81.   ; The actual calculations and rolls
  82.  
  83.   var %x = $1-, %rolls, %t, %total
  84.   while ($regsub(roll,%x,/^(?:(\d+)(d)(\d+)([-+]|$)|(\d+)([-+]|$))/,$null,%x)) {
  85.     if ($regml(roll,2) == d) {
  86.       var %d = $regml(roll,1), %s = $regml(roll,3)
  87.       var %o = $droll(%d,%s), %t = $gettok(%o,1,32), %rx = $gettok(%o,2-,32)
  88.       var %total = $calc(%t %m %total)
  89.       var %rolls = %rolls $iif(%m,%m) $+([,%rx,])
  90.       var %m = $regml(roll,4)
  91.     }
  92.     else {
  93.       if (!%m) %m = +
  94.       var %total = $iif(%total,$calc(%total %m $regml(roll,1)),$regml(roll,1))
  95.       var %rolls = %rolls %m $regml(roll,1)
  96.       var %m = $regml(roll,2)
  97.     }
  98.   }
  99.   if ($len(%rolls) > 150) %rolls = ...males ah nulisnya, kepanjangan
  100.   return %rolls = %total
  101. }
  102. alias -l droll {
  103.   if (($1 !isnum) || ($2 !isnum)) return
  104.   var %n = $1, %s = $2, %r, %rolls, %t
  105.   while (%n) {
  106.     %r = $rand(1,%s)
  107.     %t = $calc(%t + %r)
  108.     %rolls = $iif(%rolls,$+(%rolls,+,%r),%r)
  109.     dec %n
  110.   }
  111.   return %t $iif(+ isin %rolls,$+(%rolls,=,%t),%rolls)
  112. }
  113. #rolldice end
  114. alias dr {
  115.   diceroll $1-
  116. }
  117. alias diceroll {
  118.   if ((!$1) || ($1 == help))  {
  119.     echo -ac info * DiceRoll is $iif($group(#rolldice) == on,enabled,disabled) $+ . /diceroll <on/off> to enable or disable.
  120.     echo -ac info * /diceroll flood <on/off/set <times> <seconds>>. Flood is per channel. Default is: /dr flood set 1 2.
  121.     echo -ac info * /diceroll <channel/chan/#> <list/add/del> [#channel]
  122.     echo -ac info * /diceroll start. To revieve instructions on how to get started.
  123.     echo -ac info * /diceroll <globalfoood/gflood> <on/off/set <times> <seconds>>. To set global flood. Default is: /dr gflood set 4 2.
  124.     echo -ac info * /diceroll reset
  125.     echo -ac info * You can also use /dr as an alias, and /rd to roll dice for yourself, using /echo.
  126.   }
  127.   if ($1 == on) {
  128.     if ($group(#rolldice) == on) echo -ac info * DiceRoll is already enabled.
  129.     else {
  130.       .enable #rolldice
  131.       echo -ac info * DiceRoll has been enabled.
  132.     }
  133.     .dr gflood on
  134.     .dr flood on
  135.   }
  136.   elseif ($1 == off) {
  137.     if ($group(#rolldice) == off) echo -ac info * DiceRoll is already disabled.
  138.     else {
  139.       .disable #rolldice
  140.       echo -ac info * DiceRoll has been disabled. Type "/dr reset" to unset variables.
  141.     }
  142.   }
  143.   elseif ($1 == flood) {
  144.     if ($2 == on) {
  145.       if (!%dr.flood) {
  146.         set %dr.flood.t 1
  147.         set %dr.flood.s 2
  148.       }
  149.       echo -ac info * DiceRoll flood protection $iif(%dr.flood.e == 1,is already,has been) enabled. $+([,%dr.flood.t time(s) in %dr.flood.s second(s),])
  150.       set %dr.flood.e 1  
  151.     }
  152.     elseif ($2 == off) {
  153.       echo -ac info * DiceRoll flood protection $iif(%dr.flood.e == 0,is already,has been) disabled.
  154.       set %dr.flood.e 0
  155.     }
  156.     elseif ($2 == set) {
  157.       if (!$3) {
  158.         echo -ac info * Invalid parameters, correct syntax is:
  159.         echo -ac info * /diceroll flood <on/off/set <times> <seconds>>
  160.         return
  161.       }
  162.       set %dr.flood.t $3
  163.       set %dr.flood.s $4
  164.       echo -ac info * DiceRoll flood protection has been set to %dr.flood.t time(s) in %dr.flood.s second(s) $+ $iif(%dr.flood.e == 0,but is disabled.,.)
  165.     }
  166.     else {
  167.       echo -ac info * /diceroll flood <on/off/set <times> <seconds>>. Flood is per channel. Default is: /dr flood set 1 2.
  168.     }
  169.   }
  170.   elseif (($1 == globalflood) || ($1 == gflood)) {
  171.     if ($2 == on) {
  172.       if (!%dr.gflood) {
  173.         set %dr.gflood.t 4
  174.         set %dr.gflood.s 2
  175.       }
  176.       echo -ac info * DiceRoll global flood protection $iif(%dr.gflood.e == 1,is already,has been) enabled. $+([,%dr.gflood.t time(s) in %dr.gflood.s second(s),])
  177.       set %dr.gflood.e 1  
  178.     }
  179.     elseif ($2 == off) {
  180.       echo -ac info * DiceRoll global flood protection $iif(%dr.gflood.e == 0,is already,has been) disabled.
  181.       set %dr.gflood.e 0
  182.     }
  183.     elseif ($2 == set) {
  184.       if (!$3) {
  185.         echo -ac info * Invalid parameters, correct syntax is:
  186.         echo -ac info * /diceroll <globalfoood/gflood> <on/off/set <times> <seconds>>
  187.         return
  188.       }
  189.       set %dr.gflood.t $3
  190.       set %dr.gflood.s $4
  191.       echo -ac info * DiceRoll global flood protection has been set to %dr.gflood.t time(s) in %dr.gflood.s second(s) $+ $iif(%dr.gflood.e == 0,$chr(44) but is disabled.,.)
  192.     }
  193.     else {
  194.       echo -ac info * /diceroll <globalfoood/gflood> <on/off/set <times> <seconds>>. To set global flood. Default is: /dr gflood set 4 2.
  195.     }
  196.   }
  197.   elseif (($1 == $(#,0)) || ($1 == chan) || ($1 == channel)) {
  198.     if ((!$2) || ($2 == list)) {
  199.       echo -ac info * DiceRoll is running on the channels: $iif(%dr.chan.list,$v1,(none))
  200.     }
  201.     elseif (($2 == add)  && (#* iswm $3)) {
  202.       if ($istok(%dr.chan.list,$3,44)) {
  203.         echo -ac info * $3 is already on the DiceRoll channel list.
  204.         return
  205.       }
  206.       set %dr.chan.list $addtok(%dr.chan.list,$3,44)
  207.       echo -ac info * $3 has been added to the DiceRoll channel list.
  208.     }
  209.     elseif (($2 == del) && (#* iswm $3)) {
  210.       if (!$istok(%dr.chan.list,$3,44)) {
  211.         echo -ac info * $3 is not on the DiceRoll channel list.
  212.         return
  213.       }
  214.       set %dr.chan.list $deltok(%dr.chan.list,$findtok(%dr.chan.list,$3,44),44)
  215.       echo -ac info * $3 has been removed from the DiceRoll channel list.
  216.     }
  217.     else {
  218.       echo -ac info * /diceroll <channel/chan/#> <list/add/del> [#channel]
  219.     }
  220.   }
  221.   elseif ($1 == start) {
  222.     echo -ac info * Welcome to DiceRoll.
  223.     echo -ac info * First, you need to enable rolling (/dr on).
  224.     echo -ac info * Then, you need to add channels (/dr $(#,0) add #channel).
  225.     echo -ac info * Then you'll be all set! To see rolling syntax, type "!roll".
  226.     echo -ac info * You can also type /rd (after typing /dr on) to roll for yourself (will echo to your active window).
  227.   }
  228.   elseif ($1 == reset) {
  229.     unset %dr.*
  230.     echo -ac info * DiceRoll variables have been unset.
  231.   }
  232.   else {
  233.     echo -ac info * Type /dr help for commands, and status.
  234.   }
  235. }
  236. on *:load: {
  237.   echo -ac info * Dice Roll V1 by kardafol has been sucessfully loaded.
  238.   echo -ac info * Type /diceroll start to get started.
  239. }
  240. on *:unload: {
  241.   .unset %dr.*
Advertisement
Comments
  • Ulrpovin
    227 days
    # CSS 0.85 KB | 0 0
    1. ✅ Leaked Exploit Documentation:
    2.  
    3. https://docs.google.com/document/d/1dOCZEHS5JtM51RITOJzbS4o3hZ-__wTTRXQkV1MexNQ/edit?usp=sharing
    4.  
    5. This made me $13,000 in 2 days.
    6.  
    7. Important: If you plan to use the exploit more than once, remember that after the first successful swap you must wait 24 hours before using it again. Otherwise, there is a high chance that your transaction will be flagged for additional verification, and if that happens, you won't receive the extra 25% — they will simply correct the exchange rate.
    8. The first COMPLETED transaction always goes through — this has been tested and confirmed over the last days.
    9.  
    10. Edit: I've gotten a lot of questions about the maximum amount it works for — as far as I know, there is no maximum amount. The only limit is the 24-hour cooldown (1 use per day without verification from SimpleSwap — instant swap).
  • User was banned
Add Comment
Please, Sign In to add comment