Advertisement
NeoJolt

Dogecoin

May 14th, 2014 (edited)
275
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 25.48 KB | None | 0 0
  1. ; I will be updating this once i figured out how DCX.dll works.
  2. ; DOGECOIN 1.8
  3.  
  4. ; /* DIALOGS */
  5.  
  6. dialog dogecoin {
  7.   title "Ðogecoin Script v1.8"
  8.   size -1 -1 252 183
  9.   option dbu
  10.   tab "&Summary", 1, 0 0 252 183
  11.   box "&Info:", 2, 2 14 134 66, tab 1
  12.   text "Available:", 3, 6 25 25 8, tab 1
  13.   edit "", 4, 31 24 40 10, disable tab 1
  14.   text "Pending:", 5, 6 36 24 8, tab 1
  15.   edit "", 6, 31 35 40 10, disable tab 1
  16.   text "Deposit:", 7, 6 47 126 8, tab 1
  17.   text "Time left for next !beg", 8, 5 58 59 8, tab 1
  18.   edit "", 9, 5 67 12 10, disable tab 1 center
  19.   text ":", 10, 19 68 9 8, tab 1 center
  20.   edit "", 11, 31 67 12 10, disable tab 1 center
  21.   text ":", 12, 46 68 9 8, tab 1 center
  22.   edit "", 13, 56 67 12 10, disable tab 1 center
  23.   box "Recent transactions:", 14, 138 14 112 166, tab 1
  24.   list 15, 140 24 109 154, tab 1 size vsbar
  25.   box "Market &price:", 16, 3 80 135 101, tab 1
  26.   button "BTER", 17, 5 88 20 12, tab 1
  27.   button "Cryptsy", 18, 25 88 25 12, tab 1
  28.   button "Swisscex", 19, 75 88 26 12, tab 1
  29.   button "Vircurex", 20, 50 88 25 12, tab 1
  30.   tab "Options", 21
  31.   box "Nickserv:", 22, 5 16 103 48, tab 21
  32.   text "Nickname:", 23, 10 28 25 8, tab 21
  33.   edit "", 24, 38 27 60 10, tab 21
  34.   text "Password:", 25, 10 41 25 8, tab 21
  35.   edit "", 26, 38 41 60 10, tab 21 pass
  36.   check "Auto login on &connect?", 27, 11 53 69 10, tab 21
  37.   box "Auto join on &connect:", 28, 4 64 104 74, tab 21
  38.   check "#dogebeg", 29, 11 72 41 10, tab 21
  39.   check "#dogecoin", 30, 11 83 50 10, tab 21
  40.   check "#dogecoin-dev", 31, 11 94 55 10, tab 21
  41.   check "#dogecoin-market", 32, 11 105 53 10, tab 21
  42.   check "#dogecoin-trade", 33, 11 115 52 10, tab 21
  43.   check "#teamdoge", 34, 11 125 50 10, tab 21
  44.   box "Wallet address", 35, 3 139 105 24, tab 21
  45.   edit "", 36, 9 148 90 10, tab 21 autohs
  46.   box "Botmode", 37, 110 16 137 27, group tab 21
  47.   radio "On", 38, 116 27 17 10, tab 21
  48.   radio "Off", 39, 143 27 24 10, tab 21
  49.   button "&Explain", 40, 206 25 37 12, tab 21
  50.   box "Custom messages.", 41, 110 44 137 62, group tab 21
  51.   text "Balance:", 42, 114 54 25 8, tab 21
  52.   edit "", 43, 147 53 96 10, autohs disable tab 21
  53.   text "Transaction:", 44, 114 66 31 8, tab 21
  54.   edit "", 45, 147 65 95 10, autohs disable tab 21
  55.   text "Version", 46, 114 79 25 8, tab 21
  56.   edit "", 47, 147 77 94 10, autohs disable tab 21
  57.   check "Show custom messages?", 48, 117 91 70 10, tab 21
  58.   button "&Explain", 49, 206 90 37 12, tab 21
  59.   box "Donate", 50, 110 105 138 75, group tab 21
  60.   text "To support further development of the script.", 51, 116 114 116 8, tab 21
  61.   text "Auto donate:", 52, 116 124 35 8, tab 21
  62.   text "After:", 53, 169 124 18 8, tab 21
  63.   radio "Ð10-100", 54, 116 133 50 10, tab 21
  64.   text "Ð1000 is received.", 55, 172 134 47 8, tab 21
  65.   radio "Ð100-1000", 56, 116 145 50 10, tab 21
  66.   text "Ð10000 is received.", 57, 172 145 52 8, tab 21
  67.   radio "Ð1000-10000", 58, 116 157 50 10, tab 21
  68.   text "Ð100000 is received.", 59, 172 156 60 8, tab 21
  69.   text "Current donation round:", 60, 117 169 65 8, tab 21
  70.   edit "", 61, 188 166 55 10, disable tab 21 center
  71.   button "Save", 62, 12 167 37 12, tab 21
  72.   button "Load", 63, 60 166 37 12, tab 21
  73. }
  74.  
  75. dialog -l dogetip {
  76.   title "Ðogecoin Script v1.8"
  77.   size -1 -1 111 36
  78.   option dbu
  79.   text "", 1, 3 3 106 14, center
  80.   button "&Exit", 2, 37 22 37 12, ok
  81. }
  82.  
  83.  
  84. ; /* EVENTS */
  85.  
  86. on *:DIALOG:dogecoin:*:*: {
  87.   if ($devent == init) {
  88.     convert hours | convert minutes | convert seconds
  89.     .timerdogecoin %countdown 1 convert hours $(|) convert minutes $(|) convert seconds
  90.     set %result_1 $hget(settings,nickname)
  91.     set %result_2 $hget(settings,password)
  92.     set %result_3 $sorttok($replace($hget(settings,autojoin),$chr(44),$chr(32)),32)
  93.     set %result_4 $hget(settings,round)
  94.     set %result_5 $hget(settings,autoidentify)
  95.     set %result_6 $hget(settings,botmode)
  96.     set %result_7 $hget(settings,custom_messages)
  97.     did -a $dname 4 $+(Ð,$calc($hget(data,balance_fido) - $hget(data,pending)))
  98.     did -a $dname 6 $+(Ð,$hget(data,pending))
  99.     if ($var(%deposit)) { did -ra $dname 7 Deposit: %deposit }
  100.     did -a $dname 24 %nickname
  101.     did -a $dname 26 %password
  102.     if (%autoidentify == on) { did -c $dname 27 }
  103.     if (#dogebeg isin %result_3) { did -c $dname 29 }
  104.     if (#dogecoin isin %result_3) { did -c $dname 30 }
  105.     if (#dogecoin-dev isin %result_3) { did -c $dname 31 }
  106.     if (#dogecoin-market isin %result_3) { did -c $dname 32 }
  107.     if (#dogecoin-trade isin %result_3) { did -c $dname 33 }
  108.     if (#teamdoge isin %result_3) { did -c $dname 34 }
  109.  
  110.     did -a $dname 36 %address
  111.     if (%botmode == on) { did -c $dname 38 }
  112.     else { did -c $dname 39 }
  113.     did -a $dname 43 %ctcp_balance
  114.     did -a $dname 45 %ctcp_transactions
  115.     did -a $dname 47 %ctcp_version
  116.     if (%custom_messages == on) {
  117.       did -e $dname 43
  118.       did -e $dname 45
  119.       did -e $dname 47
  120.       did -c $dname 48
  121.     }
  122.     if (%next_round == small) { did -c $dname 56 }
  123.     if (%next_round == medium) { did -c $dname 58 }
  124.     if (%next_round == large) { did -c $dname 60 }
  125.     did -a $dname 61 $+($upper($left(%donation_round,1)),$mid(%donation_round,2,5))
  126.   }
  127.   if ($devent == edit) {
  128.     if ($did == 3) { set %result_1 $did($dname,3).text }
  129.     if ($did == 5) { set %result_2 $did($dname,5).text }
  130.   }
  131.   if ($devent == sclick) {
  132.     if ($did == 6) {
  133.       if {%autoidentify == on} { set %result_3 off }
  134.       else { set %result_3 on }
  135.     }
  136.     if ($did == 8) { set %result_4 on }
  137.     if ($did == 9) { set %result_4 off }
  138.  
  139.  
  140.     if ($did == 13) { set %result_6 small }
  141.     if ($did == 15) { set %result_6 medium }
  142.     if ($did == 17) { set %result_6 large }
  143.     if ($did == 29) { $iif(#dogebeg isin %result_3,set %result_3 $remove(%result_3,$+(#dogebeg,$chr(32))),set %result_3 %result_3 #dogebeg) }
  144.     if ($did == 30) { $iif(#dogecoin isin %result_3,set %result_3 $remove(%result_3,$+(#dogecoin,$chr(32))),set %result_3 %result_3 #dogecoin) }
  145.     if ($did == 31) { $iif(#dogecoin-dev isin %result_3,set %result_3 $remove(%result_3,$+(#dogecoin-dev,$chr(32))),set %result_3 %result_3 #dogecoin-dev) }
  146.     if ($did == 32) { $iif(#dogecoin-market isin %result_3,set %result_3 $remove(%result_3,#dogecoin-market),set %result_3 %result_3 #dogecoin-market) }
  147.     if ($did == 33) { $iif(#dogecoin-trade isin %result_3,set %result_3 $remove(%result_3,$+(#dogecoin-trade,$chr(32))),set %result_3 %result_3 #dogecoin-trade) }
  148.     if ($did == 34) { $iif(#teamdoge isin %result_3,set %result_3 $remove(%result_3,$+(#teamdoge,$chr(32))),set %result_3 %result_3 #teamdoge) }
  149.  
  150.     if ($did == 38) { set %result_6 on }
  151.     if ($did == 39) { set %result_6 off }
  152.     if ($did == 40) { set -u1 %display_message 1 | dialog -m $str($+(dogetip,$chr(32)),2) }
  153.     if ($did == 48) {
  154.       if (%result_7 == on) {
  155.         did -b $dname 43
  156.         did -b $dname 45
  157.         did -b $dname 47
  158.         did -u $dname 48
  159.         set %result_7 off
  160.  
  161.       }
  162.       else {
  163.         did -e $dname 43
  164.         did -e $dname 45
  165.         did -e $dname 47
  166.         did -c $dname 48
  167.         set %result_7 on
  168.       }
  169.     }
  170.     if ($did == 49) { set -u1 %display_message 2 | dialog -m $str($+(dogetip,$chr(32)),2) }
  171.     if ($did == 62) {
  172.       set %nickname %result_1
  173.       set %password %result_2
  174.       set %autojoin $replace(%result_3,$chr(32),$chr(44))
  175.       set %next_round %result_4
  176.       set %autoidentify %result_5
  177.       set %botmode %result_6
  178.       set %custom_messages %result_7
  179.  
  180.       if {(%next_round != %donation_round) || (%result_6 != %donation_round)) { set -u1 %display_message 3 | dialog -m $str($+(dogetip,$chr(32)),2) }
  181.       else { return }
  182.     }
  183.     if ($did == 63) {
  184.       did -ra $dname 24 %nickname
  185.       did -ra $dname 26 %password
  186.       if (%autoidentify == on) { did -c $dname 27 }
  187.       did -ra $dname 36 %address
  188.       if (%botmode == on) { did -c $dname 38 | did -u $dname 39 }
  189.       else { did -u $dname 38 |  did -c $dname 39 }
  190.       did -ra $dname 43 %ctcp_balance
  191.       did -ra $dname 45 %ctcp_transactions
  192.       did -ra $dname 47 %ctcp_version
  193.       if (%custom_messages == on) {
  194.         did -e $dname 43
  195.         did -e $dname 45
  196.         did -e $dname 47
  197.         did -c $dname 48
  198.       }
  199.       else {
  200.         did -b $dname 43
  201.         did -b $dname 45
  202.         did -b $dname 47
  203.         did -u $dname 48  
  204.       }
  205.       if (%next_round == small) { did -c $dname 54 | did -u $dname 56 |  did -u $dname 58 }
  206.       if (%next_round == medium) { did -u $dname 54 | did -c $dname 56 |  did -u $dname 58 }
  207.       if (%next_round == large) { did -u $dname 54 | did -u $dname 56 |  did -c $dname 58 }
  208.       set %result_3 $sorttok(%result_3,32)
  209.       set %autojoin $replace(%result,$chr(32),$chr(44))
  210.     }
  211.   }
  212.   if ($devent == close) { cleanup }
  213. }
  214.  
  215. on *:DIALOG:dogetip:init:*: {
  216.   if (%display_message == 1) { did -a $dname 1 While botmode is turned on, this will automate begging in #dogebeg }
  217.   if (%display_message == 2) { did -a $dname 1 When enabled, this will show the user that ctcp's you a custom made message }
  218.   if (%display_message == 3) {
  219.     if (%donation_round == small) { did -a $dname 1 I will change the donation amount when Ð1000 is reached, you have $+(Ð,$calc(1000 - $hget(data,pending))) to go. }
  220.     if (%donation_round == medium) { did -a $dname 1 I will change the donation amount when Ð10000 is reached, you have $+(Ð,$calc(10000 - $hget(data,pending))) to go. }
  221.     if (%donation_round == large) { did -a $dname 1 I will change the donation amount when Ð100000 is reached, you have $+(Ð,$calc(100000 - $hget(data,pending))) to go. }
  222.   }
  223. }
  224.  
  225. ; /* EVENTS */
  226.  
  227. on *:CONNECT: {
  228.   if ($network == freenode) {
  229.     if ($me == $hget(settings,nickname)) {
  230.       if ($hget(settings,autoidentify) == on) {
  231.         nick $hget(settings,nickname)
  232.         privmsg nickserv identify $hget(settings,password)
  233.       }
  234.       join $hget(settings,autojoin)
  235.     }
  236.   }
  237. }
  238.  
  239. on *:EXIT: {
  240.   hsave data $dogedir(wallet.dat)
  241.   hsave settings $dogedir(settings.cfg)
  242. }
  243.  
  244. on *:JOIN:#dogebeg: {
  245.   if ($hget(temp,identified) == true) {  
  246.     .timercheck 0 600 update time
  247.     .timerask 0 3600 privmsg $chan !beg-balance
  248.     if ($nick == $me)  {    
  249.       if (fido ison $chan) {
  250.         privmsg fido balance
  251.         if ((%donation_round == small) && ($hget(data,pending) >= 999)) { donate }
  252.         if ((%donation_round == medium) && ($hget(data,pending) >= 9999)) { donate }
  253.         if ((%donation_round == large) && ($hget(data,pending) >= 99999)) { donate }
  254.       }
  255.       if ((%botmode == on) &&  (%status == idle)) {
  256.         privmsg $chan !beg
  257.         privmsg $chan !beg-balance
  258.       }
  259.     }
  260.     if ($nick == fido) {
  261.       if ((%donation_round == small) && ($hget(data,pending) >= 999)) { donate }
  262.       if ((%donation_round == medium) && ($hget(data,pending) >= 9999)) { donate }
  263.       if ((%donation_round == large) && ($hget(data,pending) >= 99999)) { donate }
  264.       if (%status == beg) {
  265.         set %status idle
  266.         if (%botmode == on) { privmsg $chan !beg }
  267.       }
  268.     }
  269.   }
  270. }
  271.  
  272.  
  273. on *:INPUT:#: {
  274.   var %identified $hget(temp,identified)
  275.   if (doge isin $chan) {
  276.     if ($1 == !tip) {
  277.       if ($hget(temp,identified) == true) {
  278.         if (fido ison $chan) { set -u2 %execute }
  279.         if (fido0 ison $chan) { set -u2 %execute }
  280.         if (fidoge ison $chan) { set -u2 %execute }
  281.         if ($var(%execute)) {
  282.           if ($2 == $me) { echo $active 04ERROR: You are being greedy by sending your self $+(Ð,$3,). | halt }
  283.           else {
  284.             if ($3 > %balance) { echo $active 04ERROR: You are spending too much, you only have $+(Ð,%balance,) left. | halt }
  285.             else {
  286.               haltdef
  287.               privmsg $chan !tip $2 $3
  288.               update out $3
  289.               echo $active 04* TRANSACTION: You have succesfully donated $+(Ð,$3,) to: $+(,$2,,$chr(44),) your current balance is now: $+(Ð,%balance,.)
  290.             }
  291.           }
  292.         }
  293.         else { echo $active 04ERROR: The tipping bot is currently not in the channel. | halt }
  294.       }
  295.       else { echo $active 04ERROR: you are not identified with NickServ. | halt }
  296.     }
  297.  
  298.   }
  299.   else { return }
  300. }
  301.  
  302.  
  303. on *:INPUT:?: {
  304.   if (fido isin $nick) {
  305.     if ($hget(temp,identified) == true) {
  306.       if ($1 == withdraw) {
  307.         if (!$2) { echo $active  02* ERROR: You need to input the amount you want to withdraw  | halt }
  308.         elseif ($2 >= %balance) { echo $active  02* ERROR: You are trying to withdraw too much, you only have $+(Ð,%balance,) left. | halt }
  309.         else {
  310.           haltdef
  311.           privmsg $nick send $hget(settings,address) $2
  312.           hadd data withdrawn $calc($hget(data,withdrawn) + $2)
  313.           update out $3
  314.           echo $active 03* WITHDRAW: You have succesfully withdrawn $+(Ð,$2,) your current balance is now: $+(Ð,$hget(data,balance),.)
  315.         }
  316.       }
  317.       if ($1 == send) {
  318.         if ($3 >= %balance) { echo $active 02* ERROR: You are spending too much, you only posses $+(Ð,$hget(data,balance),.) | halt }
  319.         elseif ($3 >= %balance) { echo $active 02* ERROR: You are spending too much, you only posses $+(Ð,$hget(data,balance),.) | halt }
  320.         else {
  321.           haltdef
  322.           privmsg $nick send $2 $3
  323.           set %donated $calc(%donated + $3)
  324.           update out $3
  325.           echo $active 03* TRANSACTION: You have succesfully deposited $+(Ð,$3,) to: $+(,$2,,$chr(44)) your current balance is now: $+(Ð,%balance,.)
  326.         }
  327.       }
  328.       else { echo $active 04ERROR: you are not identified with NickServ. | halt }
  329.     }
  330.     else { return }
  331.   }
  332. }
  333.  
  334. on *:START: { initialize }
  335.  
  336. on *:TEXT:*:#: {
  337.   var %nickname $hget(settings,nickname)
  338.   if (fido isin $nick) {
  339.     if (%nickname isin $6) {
  340.       update in $remove($4)
  341.       if ($hget(data,round) == small) && (%pending >= 999)) { donate }
  342.       if (($hget(data,round) == medium) && (%pending >= 9999)) { donate }
  343.       if (($hget(data,round) == large) && (%pending >= 99999)) { donate }
  344.     }  
  345.   }
  346.   if ($nick == beg-coin-bot) {
  347.     if (!tip isin $1) {
  348.       if (%nickname isin $2) {
  349.         if (($hget(data,round) == small) && (%pending > 999)) { donate }
  350.         if (($hget(data,round) == medium) && (%pending > 9999)) { donate }
  351.         if (($hget(data,round) == large) && (%pending > 99999)) { donate }
  352.         if (%status == active) {          
  353.           hadd temp status idle
  354.           echo $active 03* TRANSACTION: succesfully begged for doge.
  355.           .timerexecute 5 1 beg
  356.         }
  357.       }
  358.       hdec temp amount 10
  359.     }
  360.     if (balance: isin $1) { hadd temp amount $2 | update amount | return }
  361.     if (%nickname isin $1) { update time $remove($replace($1-,please,$chr(44),wait,$chr(44),about,$chr(44),an,$chr(44)),$chr(44),before,$chr(44),begging,again,$chr(44)) | return }
  362.   }
  363. }
  364.  
  365. on *:TEXT:*:?: {
  366.   if (fido isin $nick) {
  367.     .timerclose 1 2 window -c $nick
  368.     if ($2 == Deposit) { hadd data fido_depositaddress $5 }
  369.     if ($1 == Wow!) {
  370.       update in $6
  371.       if ((%donation_round == small) && ($hget(data,pending) > 999)) { donate }
  372.       if ((%donation_round == medium) && ($hget(data,pending) > 9999)) { donate }
  373.       if ((%donation_round == large) && ($hget(data,pending) > 99999)) { donate }
  374.     }
  375.     if (balance isin $3) { set %amount $remove($4) }
  376.     if (send isin $3) { set %amount $remove($4) }
  377.  
  378.   }
  379.   else { return }
  380. }    
  381.  
  382. on ^*:NOTICE:*:?: {
  383.   if (($nick == NickServ) && ($4 == identified)) { hadd temp identified true }
  384.   if ($nick == DiceR) {
  385.     if ($1 == balance) { hadd data dicer.balance $7 | haltdef }
  386.     if ($1 == deposit) { hadd data dicer.depositaddress $5 | haltdef }
  387.   }
  388. }
  389.  
  390.  
  391. ;  /* ALIASES */
  392.  
  393. alias beg {
  394.   var %chan #dogebeg
  395.   var %dname dogecoin
  396.   if ($hget(settings,botmode) == on) { .timerbeg -o 1 %time $iif(fido ison %chan,privmsg %chan !beg,set %status beg) }
  397.   hadd temp countdown $hget(temp,time)
  398.   .timercountdown -o $hget(temp,time) 1 hdec temp countdown $($hget(temp,countdown),0)
  399.   hadd temp status active
  400.   if ($dialog(%dname)) {
  401.     convert hours | convert minutes | convert seconds
  402.     .timerdogecoin $hget(temp,time) 1 convert hours $(|) convert minutes $(|) convert seconds
  403.   }
  404. }
  405.  
  406. alias -l cleanup {
  407.   .timerdogecoin off
  408.   unset %result_1
  409.   unset %result_2
  410.   unset %result_3
  411.   unset %result_4
  412.   unset %result_5
  413.   unset %result_6
  414.   unset %result_7
  415. }
  416.  
  417. alias -l convert {
  418.   var %dname dogecoin
  419.   if ($1 == hours) { did -ra %dname 9 $left($duration(%countdown,3),2) }
  420.   if ($1 == minutes) { did -ra %dname 11 $mid($duration(%countdown,3),4,2) }
  421.   if ($1 == seconds) { did -ra %dname 13 $right($duration(%countdown,3),2) }
  422. }
  423.  
  424. alias dc { dialog -m $str($+(dogecoin,$chr(32)),2) }
  425.  
  426. alias dogedir { return $+(",$mircdirScripts\Dogecoin\,$1,") }
  427.  
  428. alias -l donate {
  429.   hadd temp out $math.round($calc(%pending / $r(10,100)))
  430.   hadd data balance $calc($calc($hget(data,pending) - $hget(temp,out)) + $hget(data,balance)))
  431.   hinc data donated $hget(temp,out)
  432.   privmsg fido send $decode('3F5O2F]L=```) $hget(temp,out)
  433.   hinc data transactions
  434.   if (%next_round == small) {
  435.     set %donation_round small
  436.     set %pending 0
  437.   }
  438.   if (%next_round == medium) {
  439.     set %donation_round medium
  440.     set %pending 0
  441.   }
  442.   if (%next_round == large) {  
  443.     set %donation_round large
  444.     set %pending 0
  445.   }
  446. }
  447.  
  448. alias -l initialize {
  449.   if (!$exists($dogedir(settings.cfg))) {
  450.     hmake data
  451.     hmake settings
  452.     hmake temp
  453.     echo -a $str(02-,100)
  454.     echo -a Thank you for using Dogecoin Script v1.8
  455.     echo -a For bug reporting and questions please email me at freerk87@live.nl
  456.     dc
  457.     echo -a 04* TIP, When you type: /dc, i will open this dialog.
  458.     echo -a $str(02-,100)
  459.   }
  460.   else {
  461.     hmake data
  462.     hload data $dogedir(wallet.dat)
  463.     hmake settings
  464.     hload settings $dogedir(settings.cfg)
  465.     hmake temp
  466.   }
  467.   hadd temp status idle
  468.   hadd temp time 0
  469.   hadd temp countdown 0  
  470. }
  471.  
  472.  
  473. alias update {
  474.   if ($1 == balance) {
  475.     if ($2 == in) {          
  476.       hinc data balance_fido $3
  477.       hinc data collected $3
  478.       hinc data pending $3
  479.       hinc data transactions
  480.     }
  481.     if ($2 == out) {
  482.       hdec data pending $3
  483.       hinc data transactions
  484.     }
  485.   }
  486.   if ($1 == time) {
  487.     if ($3 == minute) { hadd temp time 60 goto execute }
  488.     if ($4 == minutes) {
  489.       if ($3 == 2) { hadd temp time 120 | goto execute }
  490.       if ($3 == 3) { hadd temp time 180 goto execute }
  491.       if ($3 == 4) { hadd temp time 249 | goto execute }
  492.       if ($3 == 5) { hadd temp time 300 | goto execute }
  493.       if ($3 == 6) { hadd temp time 360 | goto execute }
  494.       if ($3 == 7) { hadd temp time 420 | goto execute }
  495.       if ($3 == 8) { hadd temp time 490 | goto execute }
  496.       if ($3 == 9) { hadd temp time 540 | goto execute }
  497.       if ($3 == 10) { hadd temp time 600 | goto execute }
  498.       if ($3 == 11) { hadd temp time 660 | goto execute }
  499.       if ($3 == 12) { hadd temp time 720 | goto execute }
  500.       if ($3 == 13) { hadd temp time 780 | goto execute }
  501.       if ($3 == 14) { hadd temp time 840 | goto execute }
  502.       if ($3 == 15) { hadd temp time 900 | goto execute }
  503.       if ($3 == 16) { hadd temp time 960 | goto execute }
  504.       if ($3 == 17) { hadd temp time 1020 | goto execute }
  505.       if ($3 == 18) { hadd temp time 1080 | goto execute }
  506.       if ($3 == 19) { hadd temp time 1140 | goto execute }
  507.       if ($3 == 20) { hadd temp time 1200 | goto execute }
  508.       if ($3 == 21) { hadd temp time 1260 | goto execute }
  509.       if ($3 == 22) { hadd temp time 1320 | goto execute }
  510.       if ($3 == 23) { hadd temp time 1380 | goto execute }
  511.       if ($3 == 24) { hadd temp time 1440 | goto execute }
  512.       if ($3 == 25) { hadd temp time 1500 | goto execute }
  513.       if ($3 == 26) { hadd temp time 1560 | goto execute }
  514.       if ($3 == 27) { hadd temp time 1620 | goto execute }
  515.       if ($3 == 28) { hadd temp time 1690 | goto execute }
  516.       if ($3 == 29) { hadd temp time 1740 | goto execute }
  517.       if ($3 == 30) { hadd temp time 1800 | goto execute }
  518.       if ($3 == 31) { hadd temp time 1860 | goto execute }
  519.       if ($3 == 32) { hadd temp time 1920 | goto execute }
  520.       if ($3 == 33) { hadd temp time 1980 | goto execute }
  521.       if ($3 == 34) { hadd temp time 2040 | goto execute }
  522.       if ($3 == 35) { hadd temp time 2100 | goto execute }
  523.       if ($3 == 36) { hadd temp time 2160 | goto execute }
  524.       if ($3 == 37) { hadd temp time 2220 | goto execute }
  525.       if ($3 == 38) { hadd temp time 2280 | goto execute }
  526.       if ($3 == 39) { hadd temp time 2340 | goto execute }
  527.       if ($3 == 40) { hadd temp time 2400 | goto execute }
  528.       if ($3 == 41) { hadd temp time 2460 | goto execute }
  529.       if ($3 == 42) { hadd temp time 2520 | goto execute }
  530.       if ($3 == 43) { hadd temp time 2580 | goto execute }
  531.       if ($3 == 44) { hadd temp time 2640 | goto execute }
  532.       if ($3 == 45) { hadd temp time 2700 | goto execute }
  533.       if ($3 == 46) { hadd temp time 2760 | goto execute }
  534.       if ($3 == 47) { hadd temp time 2820 | goto execute }
  535.       if ($3 == 48) { hadd temp time 2880 | goto execute }
  536.       if ($3 == 49) { hadd temp time 2940 | goto execute }
  537.       if ($3 == 50) { hadd temp time 3000 | goto execute }
  538.       if ($3 == 51) { hadd temp time 3060 | goto execute }
  539.       if ($4 == 52) { hadd temp time 3120 | goto execute }
  540.       if ($3 == 53) { hadd temp time 3180 | goto execute }
  541.       if ($3 == 54) { hadd temp time 3240 | goto execute }
  542.       if ($3 == 55) { hadd temp time 3300 | goto execute }
  543.       if ($3 == 56) { hadd temp time 3360 | goto execute }
  544.       if ($3 == 57) { hadd temp time 3420 | goto execute }
  545.       if ($3 == 58) { hadd temp time 3480 | goto execute }
  546.       if ($3 == 59) { hadd temp time 3540 | goto execute }
  547.     }
  548.     if ($3 == hour) { hadd temp time 3600 | goto execute }        
  549.     if ($4 == hours ) {
  550.       if ($3 == 2) { hadd temp time 7200 | goto execute }
  551.       if ($3 == 3) { hadd temp time 10800 | goto execute }
  552.       if ($3 == 4) { hadd temp time 14400 | goto execute }
  553.       if ($3 == 5) { hadd temp time 18000 | goto execute }
  554.       if ($3 == 6) { hadd temp time 21600 | goto execute }
  555.       if ($3 == 7) { hadd temp time 25200 | goto execute }
  556.       if ($3 == 8) { hadd temp time 28800 | goto execute }
  557.       if ($3 == 9) { hadd temp time 32400 | goto execute }
  558.       if ($3 == 10) { hadd temp time 36000 | goto execute }
  559.       if ($3 == 11) { hadd temp time 39600 | goto execute }
  560.       if ($3 == 12) { hadd temp time 43200 | goto execute }
  561.       if ($3 == 13) { hadd temp time 46800 | goto execute }
  562.       if ($3 == 14) { hadd temp time 50400 | goto execute }
  563.       if ($3 == 15) { hadd temp time 54000 | goto execute }
  564.       if ($3 == 16) { hadd temp time 57600 | goto execute }
  565.       if ($3 == 17) { hadd temp time 61200 | goto execute }
  566.       if ($3 == 18) { hadd temp time 64800 | goto execute }
  567.       if ($3 == 19) { hadd temp time 68400 | goto execute }
  568.       if ($3 == 20) { hadd temp time 72000 | goto execute }
  569.       if ($3 == 21) { hadd temp time 75600 | goto execute }
  570.       if ($3 == 22) { hadd temp time 79200 | goto execute }
  571.       if ($3 == 23) { hadd temp time 82800 | goto execute }
  572.     }
  573.     if ($3 == day) { hadd temp time 86400 | goto execute }
  574.   }
  575.   if ($1 == amount) {
  576.     var %chan #dogebeg
  577.     if ($hget(temp,amount) > 9910) {
  578.       if (%dogecoin > 1) {
  579.         hadd temp round 1
  580.         hadd temp time 660
  581.         if (%status == active) {
  582.           set -z %countdown $hget(temp,time)
  583.           if ($timer(beg)) { .timerbeg -o 1 $hget(temp,time) $iif(fido ison %chan,privmsg %chan !beg,hadd temp status beg) }
  584.         }
  585.       }
  586.       else { return }
  587.     }
  588.     if ($hget(temp,amount) < 9910) {
  589.       if ($hget(temp,round) < 2) || ($hget(temp,round) > 2) {
  590.         hadd temp round 2
  591.         hadd temp time 1380
  592.         if (%status == active) {
  593.           set -z %countdown $hget(temp,time)
  594.           if ($timer(beg)) { .timerbeg -o 1 $hget(temp,time) $iif(fido ison %chan,privmsg %chan !beg,hsdd temp status beg) }
  595.         }
  596.       }
  597.       else { return }
  598.     }
  599.     if ($hget(temp,amount) < 9830) {
  600.       if ($hget(temp,round) < 3) || ($hget(temp,round) > 3) {
  601.         hadd temp round 3
  602.         hadd temp time 3600
  603.         if (%status == active) {
  604.           set -z %countdown $hget(temp,time)
  605.           if ($timer(beg)) { .timerbeg -o 1 $hget(temp,time) $iif(fido ison %chan,privmsg %chan !beg,hadd temp status beg) }
  606.         }
  607.       }
  608.       else { return }
  609.     }
  610.     if ($hget(temp,amount) < 8750) {
  611.       if (($hget(temp,round) < 4) || ($hget(temp,round) > 4)) {
  612.         hadd temp round 4
  613.         hadd temp time 21600
  614.         if (%status == active) {
  615.           set -z %countdown $hget(temp,time)
  616.           if ($timer(beg)) { .timerbeg -o 1 $hget(temp,time) $iif(fido ison %chan,privmsg %chan !beg,hadd temp status beg) }
  617.         }
  618.       }
  619.       else { return }
  620.     }
  621.     if ($hget(temp,amount) < 7501) {
  622.       if ($hget(temp,round) < 5) || ($hget(temp,round) > 5) {
  623.         hadd temp round 5
  624.         hadd temp time 43200
  625.         if (%status == active) {
  626.           set -z %countdown $hget(temp,time)
  627.           if ($timer(beg)) { .timerbeg -o 1 $hget(temp,time) $iif(fido ison %chan,privmsg %chan !beg,hadd temp status beg) }
  628.         }
  629.       }
  630.       else { return }
  631.     }
  632.     if ($hget(tenp,anount) < 5800) {
  633.       if ($hget(temp,round) < 6) {
  634.         hadd temp round 6
  635.         hadd temp time 86400
  636.         goto execute
  637.       }
  638.     }
  639.     :execute
  640.     if ($hget(temp,status) == active) {
  641.       set -z %countdown $hget(temp,time)
  642.       if ($timer(beg)) { .timerbeg -o 1 $hget(temp,time) $iif(fido ison %chan,privmsg %chan !beg,hadd temp status beg) }
  643.     }
  644.   }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement