Afterburn1000

Afterburn1000

Joined
Dec 01, 2014
Occupation
Student
Location
United Kingdom
Website
Interests
Streaming, Gaming, Cooking, Mixology, Scripting, Biology and Challenges

Activity Stream

Afterburn1000 commented on a Page, [Beta] D&D style combat duelling system  -  Jun 15, 2016

Updated to Beta 1.5

Classes, experience, leveling and randomised magical attacks added. Also added a dropbox download link for all associated files not automatically generated by the snippet.

 Respond  
Afterburn1000 created a Page  -  Jun 09, 2015
2 400 

-EDITED- Current Version: Beta 1.5

Afterburn1000 commented on a Page, Bot Help?  -  Dec 03, 2014

Mayhaps you could add a points system, custom commands, a welcome system, link blocker and regulars system? It really depends on what you want the bot to do. Hopefully that'll give you a couple of ideas though.

apologies for the lack of code windows, have yet to learn how to do them, however for the sake of easier reading/copying of the script I put it in a pastebin http://pastebin.com/3KNw3iYH

Timers are very simple in mIRC, all you need to use is .timer(reference) [repeats] [interval] (action)

So for your command every 15 minutes it would be:

on *:TEXT:!ctt:#: {
if ((%floodctt) || ($($+(%,floodctt.,$nick),2))) { return }
set -u10 %floodctt On
set -u30 %floodctt. $+ $nick On
.timerctt 0 900 msg $chan Be sure to click this link to post to your friends on twitter and help grow the channel! It's Much appreciated! http://ctt.ec/adc2V
}

however if you want to use timers you may want to turn it off at some point, all you need to do for that is make a seperate command which uses .timer(reference) off.

Your !raid command doesn't work because you didn't include the brackets. Here is the command with the correct brackets, it should now work.

on *:TEXT:!raid:#: {
if ($nick isop #){
if (!$2) { msg $chan Must specify a streamer to raid }
elseif ($2) && (!$3) { msg $chan This is the end of the stream everyone! Its raid time! PogChamp Go to http://www.twitch.tv/ $+ $2 and once you see the sign say "Holy Heck! Its a Heckaber2 Raid" }
}

I cannot help you on why only on text triggers seem to be working for you, although it is possible you have a wildcard trigger (i.e. on :text::#: { ) Which "blocks" commands underneath it in the script window from being activated. When in doubt open a new script file and try the command in there.

Afterburn1000 commented on a Page, Need Help With A Simple Twitch Bot  -  Dec 01, 2014

Hey, I'm kinda new to mIRC myself however I think I can help you, I just can't hope to explain a great deal of the script to you myself.

This is also my first post on Hawkee so I don't know how to input the script as code, apologies.

I believe the script you are looking for is something along the lines of:

on :text:!Give points:#: {
if ($0 != 4) || ($4 !isnum) {
msg # Insufficient or incorrect parameters: use !Give points [user] [number]
Halt
}
if ($4 <= 0) {
msg # $nick you cannot give someone less than 1 point
halt
}
if ($readini(Points.ini,$+(#,.,$3),Points) = $null) {
msg # $nick I do not recognise that name, please check your spelling or that you have the correct name and try again.
Halt
}
else {
if ($readini(Points.ini,$+(#,.,$nick),Points) >= $4) {
writeini -n Points.ini $+(#,.,$3) Points $calc($readini(Points.ini,$+(#,.,$3),Points) + $4)
writeini -n Points.ini $+(#,.,$nick) Points $calc($readini(Points.ini,$+(#,.,$nick),Points) - $4)
msg # $nick has given $4 of their points to $3, $3 now has $readini(Points.ini,$+(#,.,$3),Points) points.
halt
}
elseif ($readini(Points.ini,$+(,.,$nick),Points) < $4) {
msg # $nick you do not have that many points to give.
halt
}
}
}

Now I will attempt to break what each segment means, as best I can.

on :text:!Give points:#: {
if ($0 != 4) || ($4 !isnum) { If there are more or less than 4 words in the chat message and the 4th word is not a number
msg # Insufficient or incorrect parameters: use !Give points [user] [number]
Halt
}
if ($4 < 1) { if the number is less than 1
msg # $nick you cannot give someone less than 1 point
halt
}
if ($readini(Points.ini,$+(#,.,$3),Points) = $null) { If the target doesn't exist (meaning isn't in the points system)
msg # $nick I do not recognise that name, please check your spelling or that you have the correct name and try again.
Halt
}
else {
if ($readini(Points.ini,$+(#,.,$nick),Points) >= $4) { if the user has more or equal points to those they are trying to give
writeini -n Points.ini $+(#,.,$3) Points $calc($readini(Points.ini,$+(#,.,$3),Points) + $4) Adds points to the target's points balance
writeini -n Points.ini $+(#,.,$nick) Points $calc($readini(Points.ini,$+(#,.,$nick),Points) - $4) removes points from the user's balance
msg # $nick has given $4 of their points to $3, $3 now has $readini(Points.ini,$+(#,.,$3),Points) points. displays the target's new balance
halt
}
elseif ($readini(Points.ini,$+(,.,$nick),Points) < $4) { If the user has less points than they are trying to give
msg # $nick you do not have that many points to give.
halt
}
}
}

I hope this helps. On a side note you may want to be careful who you allow to use this command, due to the possibility for someone with multiple accounts to add more points to one of their accounts.
If you definitely want to use the command you may also want to add some flood protection, I won't bother describing that as you may already know it.

Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.