Forums
| Forum Main>>Questions>> irc script question |
mug
ID: 553318
Level: 44
Posts: 2446
Score: 567
| Thread created on Sun Dec 23, 2012 20:45:48 Last replied to on Sun Dec 23, 2012 22:05:42
|
anyone know what they are doing at all.
i am a nub so i'm just trying to set up the chain bot featured in cappucino's profile
the thing i am trying to do is to reset the hit count to 0 after the chain breaks.
link to script: pastebin.com/FAr9Q32a
In this part of the script (located near the bottom of the code)
}
alias -l hits {
inc %hits
msg $chan 8 Nice one $nick $+ , that's hit number %hits
.timerchain1 1 120 msg $chan 4Its been 2 min since the last hit
.timerchain2 1 $calc(%time - 100) msg $chan 4Only 1:30 left to hosp.
.timerchain3 1 $calc(%time - 70) msg $chan 4Chain will break in 1 min!
.timerchain4 1 $calc(%time - 40) msg $chan 4Chain will break in 30 sec. Hit NOW!
.timerchain5 1 %time msg $chan 8Chain broke.
}
once it announces the chain is broken
i am trying to add in with that that %hits equals 0, im just not sure hot to do a combo of 2 things in the code at once.
all i need is .timerchain5 to announce that it has broke AND to set %hits to 0
Last Edited: Sun Dec 23, 2012 20:47:07
| | | Super secret reinforced spam barrier 2.0 |
JimmyJames
ID: 581165
Level: 76
Posts: 11715
Score: 8604
| Posted on Sun Dec 23, 2012 21:35:30
|
.timerchain5 1 %time msg $chan 8Chain broke. | unset %hits
or just...
.timerchain5 1 %time msg $chan 8Chain broke.
.timerchain5 1 %time unset %hits
Last Edited: Sun Dec 23, 2012 21:36:00
| 
Buying bulk Boxes of Grenades 1mil each - Just start trade for fast sale | | Super secret reinforced spam barrier 2.0 |
mug
ID: 553318
Level: 44
Posts: 2446
Score: 567
| Posted on Sun Dec 23, 2012 21:50:24
|
[16:48:42] mug: 911
[16:48:43] RecklessBot: Nice one mug, that's hit number 1
[16:48:43] mug: 911
[16:48:43] RecklessBot: Nice one mug, that's hit number 1
[16:48:43] mug: 911
[16:48:44] RecklessBot: Nice one mug, that's hit number 1
[16:48:44] mug: 911
[16:48:44] RecklessBot: Nice one mug, that's hit number 1
[16:48:45] mug: 911
[16:48:45] RecklessBot: Nice one mug, that's hit number 1
that's from using the first one.
second one i think doesn't say that the chain is broke. i think i tried it earlier but ill test it again
2nd one
[16:54:55] RecklessBot: Its been 2 min since the last hit
[16:56:15] RecklessBot: Only 1:30 left to hosp.
[16:56:45] RecklessBot: Chain will break in 1 min!
[16:57:15] RecklessBot: Chain will break in 30 sec. Hit NOW!
[16:58:08] mug: test
16:59:23] mug: 911
[16:59:24] RecklessBot: Nice one mug, that's hit number 1
[16:59:26] mug: 911
[16:59:27] RecklessBot: Nice one mug, that's hit number 2
2nd one doesn't announce that the chain broke. just skips the first .timerchain5 and goes straight to the second one
Last Edited: Sun Dec 23, 2012 22:00:08
| | | Super secret reinforced spam barrier 2.0 |
XOR
ID: 743049
Level: 54
Posts: 5476
Score: 3025
| Posted on Sun Dec 23, 2012 22:05:42
|
By JimmyJames [581165]
.timerchain5 1 %time msg $chan 8Chain broke.
.timerchain6 1 %time unset %hits |
Fix'd
You overwrote the old timer.
| Ched, Hire me as a developer. Peek my profile!
God watches you have a poo. Serious. _ | |
|
|
|
Follow @TornRPG