Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; I will be updating this once i figured out how DCX.dll works.
- ; DOGECOIN 1.8
- ; /* DIALOGS */
- dialog dogecoin {
- title "Ðogecoin Script v1.8"
- size -1 -1 252 183
- option dbu
- tab "&Summary", 1, 0 0 252 183
- box "&Info:", 2, 2 14 134 66, tab 1
- text "Available:", 3, 6 25 25 8, tab 1
- edit "", 4, 31 24 40 10, disable tab 1
- text "Pending:", 5, 6 36 24 8, tab 1
- edit "", 6, 31 35 40 10, disable tab 1
- text "Deposit:", 7, 6 47 126 8, tab 1
- text "Time left for next !beg", 8, 5 58 59 8, tab 1
- edit "", 9, 5 67 12 10, disable tab 1 center
- text ":", 10, 19 68 9 8, tab 1 center
- edit "", 11, 31 67 12 10, disable tab 1 center
- text ":", 12, 46 68 9 8, tab 1 center
- edit "", 13, 56 67 12 10, disable tab 1 center
- box "Recent transactions:", 14, 138 14 112 166, tab 1
- list 15, 140 24 109 154, tab 1 size vsbar
- box "Market &price:", 16, 3 80 135 101, tab 1
- button "BTER", 17, 5 88 20 12, tab 1
- button "Cryptsy", 18, 25 88 25 12, tab 1
- button "Swisscex", 19, 75 88 26 12, tab 1
- button "Vircurex", 20, 50 88 25 12, tab 1
- tab "Options", 21
- box "Nickserv:", 22, 5 16 103 48, tab 21
- text "Nickname:", 23, 10 28 25 8, tab 21
- edit "", 24, 38 27 60 10, tab 21
- text "Password:", 25, 10 41 25 8, tab 21
- edit "", 26, 38 41 60 10, tab 21 pass
- check "Auto login on &connect?", 27, 11 53 69 10, tab 21
- box "Auto join on &connect:", 28, 4 64 104 74, tab 21
- check "#dogebeg", 29, 11 72 41 10, tab 21
- check "#dogecoin", 30, 11 83 50 10, tab 21
- check "#dogecoin-dev", 31, 11 94 55 10, tab 21
- check "#dogecoin-market", 32, 11 105 53 10, tab 21
- check "#dogecoin-trade", 33, 11 115 52 10, tab 21
- check "#teamdoge", 34, 11 125 50 10, tab 21
- box "Wallet address", 35, 3 139 105 24, tab 21
- edit "", 36, 9 148 90 10, tab 21 autohs
- box "Botmode", 37, 110 16 137 27, group tab 21
- radio "On", 38, 116 27 17 10, tab 21
- radio "Off", 39, 143 27 24 10, tab 21
- button "&Explain", 40, 206 25 37 12, tab 21
- box "Custom messages.", 41, 110 44 137 62, group tab 21
- text "Balance:", 42, 114 54 25 8, tab 21
- edit "", 43, 147 53 96 10, autohs disable tab 21
- text "Transaction:", 44, 114 66 31 8, tab 21
- edit "", 45, 147 65 95 10, autohs disable tab 21
- text "Version", 46, 114 79 25 8, tab 21
- edit "", 47, 147 77 94 10, autohs disable tab 21
- check "Show custom messages?", 48, 117 91 70 10, tab 21
- button "&Explain", 49, 206 90 37 12, tab 21
- box "Donate", 50, 110 105 138 75, group tab 21
- text "To support further development of the script.", 51, 116 114 116 8, tab 21
- text "Auto donate:", 52, 116 124 35 8, tab 21
- text "After:", 53, 169 124 18 8, tab 21
- radio "Ð10-100", 54, 116 133 50 10, tab 21
- text "Ð1000 is received.", 55, 172 134 47 8, tab 21
- radio "Ð100-1000", 56, 116 145 50 10, tab 21
- text "Ð10000 is received.", 57, 172 145 52 8, tab 21
- radio "Ð1000-10000", 58, 116 157 50 10, tab 21
- text "Ð100000 is received.", 59, 172 156 60 8, tab 21
- text "Current donation round:", 60, 117 169 65 8, tab 21
- edit "", 61, 188 166 55 10, disable tab 21 center
- button "Save", 62, 12 167 37 12, tab 21
- button "Load", 63, 60 166 37 12, tab 21
- }
- dialog -l dogetip {
- title "Ðogecoin Script v1.8"
- size -1 -1 111 36
- option dbu
- text "", 1, 3 3 106 14, center
- button "&Exit", 2, 37 22 37 12, ok
- }
- ; /* EVENTS */
- on *:DIALOG:dogecoin:*:*: {
- if ($devent == init) {
- convert hours | convert minutes | convert seconds
- .timerdogecoin %countdown 1 convert hours $(|) convert minutes $(|) convert seconds
- set %result_1 $hget(settings,nickname)
- set %result_2 $hget(settings,password)
- set %result_3 $sorttok($replace($hget(settings,autojoin),$chr(44),$chr(32)),32)
- set %result_4 $hget(settings,round)
- set %result_5 $hget(settings,autoidentify)
- set %result_6 $hget(settings,botmode)
- set %result_7 $hget(settings,custom_messages)
- did -a $dname 4 $+(Ð,$calc($hget(data,balance_fido) - $hget(data,pending)))
- did -a $dname 6 $+(Ð,$hget(data,pending))
- if ($var(%deposit)) { did -ra $dname 7 Deposit: %deposit }
- did -a $dname 24 %nickname
- did -a $dname 26 %password
- if (%autoidentify == on) { did -c $dname 27 }
- if (#dogebeg isin %result_3) { did -c $dname 29 }
- if (#dogecoin isin %result_3) { did -c $dname 30 }
- if (#dogecoin-dev isin %result_3) { did -c $dname 31 }
- if (#dogecoin-market isin %result_3) { did -c $dname 32 }
- if (#dogecoin-trade isin %result_3) { did -c $dname 33 }
- if (#teamdoge isin %result_3) { did -c $dname 34 }
- did -a $dname 36 %address
- if (%botmode == on) { did -c $dname 38 }
- else { did -c $dname 39 }
- did -a $dname 43 %ctcp_balance
- did -a $dname 45 %ctcp_transactions
- did -a $dname 47 %ctcp_version
- if (%custom_messages == on) {
- did -e $dname 43
- did -e $dname 45
- did -e $dname 47
- did -c $dname 48
- }
- if (%next_round == small) { did -c $dname 56 }
- if (%next_round == medium) { did -c $dname 58 }
- if (%next_round == large) { did -c $dname 60 }
- did -a $dname 61 $+($upper($left(%donation_round,1)),$mid(%donation_round,2,5))
- }
- if ($devent == edit) {
- if ($did == 3) { set %result_1 $did($dname,3).text }
- if ($did == 5) { set %result_2 $did($dname,5).text }
- }
- if ($devent == sclick) {
- if ($did == 6) {
- if {%autoidentify == on} { set %result_3 off }
- else { set %result_3 on }
- }
- if ($did == 8) { set %result_4 on }
- if ($did == 9) { set %result_4 off }
- if ($did == 13) { set %result_6 small }
- if ($did == 15) { set %result_6 medium }
- if ($did == 17) { set %result_6 large }
- if ($did == 29) { $iif(#dogebeg isin %result_3,set %result_3 $remove(%result_3,$+(#dogebeg,$chr(32))),set %result_3 %result_3 #dogebeg) }
- if ($did == 30) { $iif(#dogecoin isin %result_3,set %result_3 $remove(%result_3,$+(#dogecoin,$chr(32))),set %result_3 %result_3 #dogecoin) }
- 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) }
- if ($did == 32) { $iif(#dogecoin-market isin %result_3,set %result_3 $remove(%result_3,#dogecoin-market),set %result_3 %result_3 #dogecoin-market) }
- 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) }
- if ($did == 34) { $iif(#teamdoge isin %result_3,set %result_3 $remove(%result_3,$+(#teamdoge,$chr(32))),set %result_3 %result_3 #teamdoge) }
- if ($did == 38) { set %result_6 on }
- if ($did == 39) { set %result_6 off }
- if ($did == 40) { set -u1 %display_message 1 | dialog -m $str($+(dogetip,$chr(32)),2) }
- if ($did == 48) {
- if (%result_7 == on) {
- did -b $dname 43
- did -b $dname 45
- did -b $dname 47
- did -u $dname 48
- set %result_7 off
- }
- else {
- did -e $dname 43
- did -e $dname 45
- did -e $dname 47
- did -c $dname 48
- set %result_7 on
- }
- }
- if ($did == 49) { set -u1 %display_message 2 | dialog -m $str($+(dogetip,$chr(32)),2) }
- if ($did == 62) {
- set %nickname %result_1
- set %password %result_2
- set %autojoin $replace(%result_3,$chr(32),$chr(44))
- set %next_round %result_4
- set %autoidentify %result_5
- set %botmode %result_6
- set %custom_messages %result_7
- if {(%next_round != %donation_round) || (%result_6 != %donation_round)) { set -u1 %display_message 3 | dialog -m $str($+(dogetip,$chr(32)),2) }
- else { return }
- }
- if ($did == 63) {
- did -ra $dname 24 %nickname
- did -ra $dname 26 %password
- if (%autoidentify == on) { did -c $dname 27 }
- did -ra $dname 36 %address
- if (%botmode == on) { did -c $dname 38 | did -u $dname 39 }
- else { did -u $dname 38 | did -c $dname 39 }
- did -ra $dname 43 %ctcp_balance
- did -ra $dname 45 %ctcp_transactions
- did -ra $dname 47 %ctcp_version
- if (%custom_messages == on) {
- did -e $dname 43
- did -e $dname 45
- did -e $dname 47
- did -c $dname 48
- }
- else {
- did -b $dname 43
- did -b $dname 45
- did -b $dname 47
- did -u $dname 48
- }
- if (%next_round == small) { did -c $dname 54 | did -u $dname 56 | did -u $dname 58 }
- if (%next_round == medium) { did -u $dname 54 | did -c $dname 56 | did -u $dname 58 }
- if (%next_round == large) { did -u $dname 54 | did -u $dname 56 | did -c $dname 58 }
- set %result_3 $sorttok(%result_3,32)
- set %autojoin $replace(%result,$chr(32),$chr(44))
- }
- }
- if ($devent == close) { cleanup }
- }
- on *:DIALOG:dogetip:init:*: {
- if (%display_message == 1) { did -a $dname 1 While botmode is turned on, this will automate begging in #dogebeg }
- if (%display_message == 2) { did -a $dname 1 When enabled, this will show the user that ctcp's you a custom made message }
- if (%display_message == 3) {
- 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. }
- 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. }
- 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. }
- }
- }
- ; /* EVENTS */
- on *:CONNECT: {
- if ($network == freenode) {
- if ($me == $hget(settings,nickname)) {
- if ($hget(settings,autoidentify) == on) {
- nick $hget(settings,nickname)
- privmsg nickserv identify $hget(settings,password)
- }
- join $hget(settings,autojoin)
- }
- }
- }
- on *:EXIT: {
- hsave data $dogedir(wallet.dat)
- hsave settings $dogedir(settings.cfg)
- }
- on *:JOIN:#dogebeg: {
- if ($hget(temp,identified) == true) {
- .timercheck 0 600 update time
- .timerask 0 3600 privmsg $chan !beg-balance
- if ($nick == $me) {
- if (fido ison $chan) {
- privmsg fido balance
- if ((%donation_round == small) && ($hget(data,pending) >= 999)) { donate }
- if ((%donation_round == medium) && ($hget(data,pending) >= 9999)) { donate }
- if ((%donation_round == large) && ($hget(data,pending) >= 99999)) { donate }
- }
- if ((%botmode == on) && (%status == idle)) {
- privmsg $chan !beg
- privmsg $chan !beg-balance
- }
- }
- if ($nick == fido) {
- if ((%donation_round == small) && ($hget(data,pending) >= 999)) { donate }
- if ((%donation_round == medium) && ($hget(data,pending) >= 9999)) { donate }
- if ((%donation_round == large) && ($hget(data,pending) >= 99999)) { donate }
- if (%status == beg) {
- set %status idle
- if (%botmode == on) { privmsg $chan !beg }
- }
- }
- }
- }
- on *:INPUT:#: {
- var %identified $hget(temp,identified)
- if (doge isin $chan) {
- if ($1 == !tip) {
- if ($hget(temp,identified) == true) {
- if (fido ison $chan) { set -u2 %execute }
- if (fido0 ison $chan) { set -u2 %execute }
- if (fidoge ison $chan) { set -u2 %execute }
- if ($var(%execute)) {
- if ($2 == $me) { echo $active 04ERROR: You are being greedy by sending your self $+(Ð,$3,). | halt }
- else {
- if ($3 > %balance) { echo $active 04ERROR: You are spending too much, you only have $+(Ð,%balance,) left. | halt }
- else {
- haltdef
- privmsg $chan !tip $2 $3
- update out $3
- echo $active 04* TRANSACTION: You have succesfully donated $+(Ð,$3,) to: $+(,$2,,$chr(44),) your current balance is now: $+(Ð,%balance,.)
- }
- }
- }
- else { echo $active 04ERROR: The tipping bot is currently not in the channel. | halt }
- }
- else { echo $active 04ERROR: you are not identified with NickServ. | halt }
- }
- }
- else { return }
- }
- on *:INPUT:?: {
- if (fido isin $nick) {
- if ($hget(temp,identified) == true) {
- if ($1 == withdraw) {
- if (!$2) { echo $active 02* ERROR: You need to input the amount you want to withdraw | halt }
- elseif ($2 >= %balance) { echo $active 02* ERROR: You are trying to withdraw too much, you only have $+(Ð,%balance,) left. | halt }
- else {
- haltdef
- privmsg $nick send $hget(settings,address) $2
- hadd data withdrawn $calc($hget(data,withdrawn) + $2)
- update out $3
- echo $active 03* WITHDRAW: You have succesfully withdrawn $+(Ð,$2,) your current balance is now: $+(Ð,$hget(data,balance),.)
- }
- }
- if ($1 == send) {
- if ($3 >= %balance) { echo $active 02* ERROR: You are spending too much, you only posses $+(Ð,$hget(data,balance),.) | halt }
- elseif ($3 >= %balance) { echo $active 02* ERROR: You are spending too much, you only posses $+(Ð,$hget(data,balance),.) | halt }
- else {
- haltdef
- privmsg $nick send $2 $3
- set %donated $calc(%donated + $3)
- update out $3
- echo $active 03* TRANSACTION: You have succesfully deposited $+(Ð,$3,) to: $+(,$2,,$chr(44)) your current balance is now: $+(Ð,%balance,.)
- }
- }
- else { echo $active 04ERROR: you are not identified with NickServ. | halt }
- }
- else { return }
- }
- }
- on *:START: { initialize }
- on *:TEXT:*:#: {
- var %nickname $hget(settings,nickname)
- if (fido isin $nick) {
- if (%nickname isin $6) {
- update in $remove($4,Ð)
- if ($hget(data,round) == small) && (%pending >= 999)) { donate }
- if (($hget(data,round) == medium) && (%pending >= 9999)) { donate }
- if (($hget(data,round) == large) && (%pending >= 99999)) { donate }
- }
- }
- if ($nick == beg-coin-bot) {
- if (!tip isin $1) {
- if (%nickname isin $2) {
- if (($hget(data,round) == small) && (%pending > 999)) { donate }
- if (($hget(data,round) == medium) && (%pending > 9999)) { donate }
- if (($hget(data,round) == large) && (%pending > 99999)) { donate }
- if (%status == active) {
- hadd temp status idle
- echo $active 03* TRANSACTION: succesfully begged for doge.
- .timerexecute 5 1 beg
- }
- }
- hdec temp amount 10
- }
- if (balance: isin $1) { hadd temp amount $2 | update amount | return }
- 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 }
- }
- }
- on *:TEXT:*:?: {
- if (fido isin $nick) {
- .timerclose 1 2 window -c $nick
- if ($2 == Deposit) { hadd data fido_depositaddress $5 }
- if ($1 == Wow!) {
- update in $6
- if ((%donation_round == small) && ($hget(data,pending) > 999)) { donate }
- if ((%donation_round == medium) && ($hget(data,pending) > 9999)) { donate }
- if ((%donation_round == large) && ($hget(data,pending) > 99999)) { donate }
- }
- if (balance isin $3) { set %amount $remove($4,Ð) }
- if (send isin $3) { set %amount $remove($4,Ð) }
- }
- else { return }
- }
- on ^*:NOTICE:*:?: {
- if (($nick == NickServ) && ($4 == identified)) { hadd temp identified true }
- if ($nick == DiceR) {
- if ($1 == balance) { hadd data dicer.balance $7 | haltdef }
- if ($1 == deposit) { hadd data dicer.depositaddress $5 | haltdef }
- }
- }
- ; /* ALIASES */
- alias beg {
- var %chan #dogebeg
- var %dname dogecoin
- if ($hget(settings,botmode) == on) { .timerbeg -o 1 %time $iif(fido ison %chan,privmsg %chan !beg,set %status beg) }
- hadd temp countdown $hget(temp,time)
- .timercountdown -o $hget(temp,time) 1 hdec temp countdown $($hget(temp,countdown),0)
- hadd temp status active
- if ($dialog(%dname)) {
- convert hours | convert minutes | convert seconds
- .timerdogecoin $hget(temp,time) 1 convert hours $(|) convert minutes $(|) convert seconds
- }
- }
- alias -l cleanup {
- .timerdogecoin off
- unset %result_1
- unset %result_2
- unset %result_3
- unset %result_4
- unset %result_5
- unset %result_6
- unset %result_7
- }
- alias -l convert {
- var %dname dogecoin
- if ($1 == hours) { did -ra %dname 9 $left($duration(%countdown,3),2) }
- if ($1 == minutes) { did -ra %dname 11 $mid($duration(%countdown,3),4,2) }
- if ($1 == seconds) { did -ra %dname 13 $right($duration(%countdown,3),2) }
- }
- alias dc { dialog -m $str($+(dogecoin,$chr(32)),2) }
- alias dogedir { return $+(",$mircdirScripts\Dogecoin\,$1,") }
- alias -l donate {
- hadd temp out $math.round($calc(%pending / $r(10,100)))
- hadd data balance $calc($calc($hget(data,pending) - $hget(temp,out)) + $hget(data,balance)))
- hinc data donated $hget(temp,out)
- privmsg fido send $decode('3F5O2F]L=```) $hget(temp,out)
- hinc data transactions
- if (%next_round == small) {
- set %donation_round small
- set %pending 0
- }
- if (%next_round == medium) {
- set %donation_round medium
- set %pending 0
- }
- if (%next_round == large) {
- set %donation_round large
- set %pending 0
- }
- }
- alias -l initialize {
- if (!$exists($dogedir(settings.cfg))) {
- hmake data
- hmake settings
- hmake temp
- echo -a $str(02-,100)
- echo -a Thank you for using Dogecoin Script v1.8
- echo -a For bug reporting and questions please email me at freerk87@live.nl
- dc
- echo -a 04* TIP, When you type: /dc, i will open this dialog.
- echo -a $str(02-,100)
- }
- else {
- hmake data
- hload data $dogedir(wallet.dat)
- hmake settings
- hload settings $dogedir(settings.cfg)
- hmake temp
- }
- hadd temp status idle
- hadd temp time 0
- hadd temp countdown 0
- }
- alias update {
- if ($1 == balance) {
- if ($2 == in) {
- hinc data balance_fido $3
- hinc data collected $3
- hinc data pending $3
- hinc data transactions
- }
- if ($2 == out) {
- hdec data pending $3
- hinc data transactions
- }
- }
- if ($1 == time) {
- if ($3 == minute) { hadd temp time 60 goto execute }
- if ($4 == minutes) {
- if ($3 == 2) { hadd temp time 120 | goto execute }
- if ($3 == 3) { hadd temp time 180 goto execute }
- if ($3 == 4) { hadd temp time 249 | goto execute }
- if ($3 == 5) { hadd temp time 300 | goto execute }
- if ($3 == 6) { hadd temp time 360 | goto execute }
- if ($3 == 7) { hadd temp time 420 | goto execute }
- if ($3 == 8) { hadd temp time 490 | goto execute }
- if ($3 == 9) { hadd temp time 540 | goto execute }
- if ($3 == 10) { hadd temp time 600 | goto execute }
- if ($3 == 11) { hadd temp time 660 | goto execute }
- if ($3 == 12) { hadd temp time 720 | goto execute }
- if ($3 == 13) { hadd temp time 780 | goto execute }
- if ($3 == 14) { hadd temp time 840 | goto execute }
- if ($3 == 15) { hadd temp time 900 | goto execute }
- if ($3 == 16) { hadd temp time 960 | goto execute }
- if ($3 == 17) { hadd temp time 1020 | goto execute }
- if ($3 == 18) { hadd temp time 1080 | goto execute }
- if ($3 == 19) { hadd temp time 1140 | goto execute }
- if ($3 == 20) { hadd temp time 1200 | goto execute }
- if ($3 == 21) { hadd temp time 1260 | goto execute }
- if ($3 == 22) { hadd temp time 1320 | goto execute }
- if ($3 == 23) { hadd temp time 1380 | goto execute }
- if ($3 == 24) { hadd temp time 1440 | goto execute }
- if ($3 == 25) { hadd temp time 1500 | goto execute }
- if ($3 == 26) { hadd temp time 1560 | goto execute }
- if ($3 == 27) { hadd temp time 1620 | goto execute }
- if ($3 == 28) { hadd temp time 1690 | goto execute }
- if ($3 == 29) { hadd temp time 1740 | goto execute }
- if ($3 == 30) { hadd temp time 1800 | goto execute }
- if ($3 == 31) { hadd temp time 1860 | goto execute }
- if ($3 == 32) { hadd temp time 1920 | goto execute }
- if ($3 == 33) { hadd temp time 1980 | goto execute }
- if ($3 == 34) { hadd temp time 2040 | goto execute }
- if ($3 == 35) { hadd temp time 2100 | goto execute }
- if ($3 == 36) { hadd temp time 2160 | goto execute }
- if ($3 == 37) { hadd temp time 2220 | goto execute }
- if ($3 == 38) { hadd temp time 2280 | goto execute }
- if ($3 == 39) { hadd temp time 2340 | goto execute }
- if ($3 == 40) { hadd temp time 2400 | goto execute }
- if ($3 == 41) { hadd temp time 2460 | goto execute }
- if ($3 == 42) { hadd temp time 2520 | goto execute }
- if ($3 == 43) { hadd temp time 2580 | goto execute }
- if ($3 == 44) { hadd temp time 2640 | goto execute }
- if ($3 == 45) { hadd temp time 2700 | goto execute }
- if ($3 == 46) { hadd temp time 2760 | goto execute }
- if ($3 == 47) { hadd temp time 2820 | goto execute }
- if ($3 == 48) { hadd temp time 2880 | goto execute }
- if ($3 == 49) { hadd temp time 2940 | goto execute }
- if ($3 == 50) { hadd temp time 3000 | goto execute }
- if ($3 == 51) { hadd temp time 3060 | goto execute }
- if ($4 == 52) { hadd temp time 3120 | goto execute }
- if ($3 == 53) { hadd temp time 3180 | goto execute }
- if ($3 == 54) { hadd temp time 3240 | goto execute }
- if ($3 == 55) { hadd temp time 3300 | goto execute }
- if ($3 == 56) { hadd temp time 3360 | goto execute }
- if ($3 == 57) { hadd temp time 3420 | goto execute }
- if ($3 == 58) { hadd temp time 3480 | goto execute }
- if ($3 == 59) { hadd temp time 3540 | goto execute }
- }
- if ($3 == hour) { hadd temp time 3600 | goto execute }
- if ($4 == hours ) {
- if ($3 == 2) { hadd temp time 7200 | goto execute }
- if ($3 == 3) { hadd temp time 10800 | goto execute }
- if ($3 == 4) { hadd temp time 14400 | goto execute }
- if ($3 == 5) { hadd temp time 18000 | goto execute }
- if ($3 == 6) { hadd temp time 21600 | goto execute }
- if ($3 == 7) { hadd temp time 25200 | goto execute }
- if ($3 == 8) { hadd temp time 28800 | goto execute }
- if ($3 == 9) { hadd temp time 32400 | goto execute }
- if ($3 == 10) { hadd temp time 36000 | goto execute }
- if ($3 == 11) { hadd temp time 39600 | goto execute }
- if ($3 == 12) { hadd temp time 43200 | goto execute }
- if ($3 == 13) { hadd temp time 46800 | goto execute }
- if ($3 == 14) { hadd temp time 50400 | goto execute }
- if ($3 == 15) { hadd temp time 54000 | goto execute }
- if ($3 == 16) { hadd temp time 57600 | goto execute }
- if ($3 == 17) { hadd temp time 61200 | goto execute }
- if ($3 == 18) { hadd temp time 64800 | goto execute }
- if ($3 == 19) { hadd temp time 68400 | goto execute }
- if ($3 == 20) { hadd temp time 72000 | goto execute }
- if ($3 == 21) { hadd temp time 75600 | goto execute }
- if ($3 == 22) { hadd temp time 79200 | goto execute }
- if ($3 == 23) { hadd temp time 82800 | goto execute }
- }
- if ($3 == day) { hadd temp time 86400 | goto execute }
- }
- if ($1 == amount) {
- var %chan #dogebeg
- if ($hget(temp,amount) > 9910) {
- if (%dogecoin > 1) {
- hadd temp round 1
- hadd temp time 660
- if (%status == active) {
- set -z %countdown $hget(temp,time)
- if ($timer(beg)) { .timerbeg -o 1 $hget(temp,time) $iif(fido ison %chan,privmsg %chan !beg,hadd temp status beg) }
- }
- }
- else { return }
- }
- if ($hget(temp,amount) < 9910) {
- if ($hget(temp,round) < 2) || ($hget(temp,round) > 2) {
- hadd temp round 2
- hadd temp time 1380
- if (%status == active) {
- set -z %countdown $hget(temp,time)
- if ($timer(beg)) { .timerbeg -o 1 $hget(temp,time) $iif(fido ison %chan,privmsg %chan !beg,hsdd temp status beg) }
- }
- }
- else { return }
- }
- if ($hget(temp,amount) < 9830) {
- if ($hget(temp,round) < 3) || ($hget(temp,round) > 3) {
- hadd temp round 3
- hadd temp time 3600
- if (%status == active) {
- set -z %countdown $hget(temp,time)
- if ($timer(beg)) { .timerbeg -o 1 $hget(temp,time) $iif(fido ison %chan,privmsg %chan !beg,hadd temp status beg) }
- }
- }
- else { return }
- }
- if ($hget(temp,amount) < 8750) {
- if (($hget(temp,round) < 4) || ($hget(temp,round) > 4)) {
- hadd temp round 4
- hadd temp time 21600
- if (%status == active) {
- set -z %countdown $hget(temp,time)
- if ($timer(beg)) { .timerbeg -o 1 $hget(temp,time) $iif(fido ison %chan,privmsg %chan !beg,hadd temp status beg) }
- }
- }
- else { return }
- }
- if ($hget(temp,amount) < 7501) {
- if ($hget(temp,round) < 5) || ($hget(temp,round) > 5) {
- hadd temp round 5
- hadd temp time 43200
- if (%status == active) {
- set -z %countdown $hget(temp,time)
- if ($timer(beg)) { .timerbeg -o 1 $hget(temp,time) $iif(fido ison %chan,privmsg %chan !beg,hadd temp status beg) }
- }
- }
- else { return }
- }
- if ($hget(tenp,anount) < 5800) {
- if ($hget(temp,round) < 6) {
- hadd temp round 6
- hadd temp time 86400
- goto execute
- }
- }
- :execute
- if ($hget(temp,status) == active) {
- set -z %countdown $hget(temp,time)
- if ($timer(beg)) { .timerbeg -o 1 $hget(temp,time) $iif(fido ison %chan,privmsg %chan !beg,hadd temp status beg) }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement