Scripting
Moderators: Tier 3 Mods, Tier 1 Mods, Tier 2 Mods
Forum rules
Need help with something? Anything? Post here.
Need help with something? Anything? Post here.
Scripting
Hey,
I would like to starting learning more on how to script and how to like secure my scripts and make it so people can not have any way to abuse them, like flooding them etc... If there is someone with some time on there hands that would be willing to teach me somethings about scripting c++ that would be awesome!! thanks
~Andrew~
I would like to starting learning more on how to script and how to like secure my scripts and make it so people can not have any way to abuse them, like flooding them etc... If there is someone with some time on there hands that would be willing to teach me somethings about scripting c++ that would be awesome!! thanks
~Andrew~


Re: Scripting
2 things before you can get a good response:
1: C++ isn't scripting, it's programming (difference is readable source code vs obfuscated/packed source code).
2: Which kind of scripting are we speaking of, if at all? (I'm assuming IRC based on your post)
1: C++ isn't scripting, it's programming (difference is readable source code vs obfuscated/packed source code).
2: Which kind of scripting are we speaking of, if at all? (I'm assuming IRC based on your post)
Re: Scripting
if its about mIRC scripting, I could teach you some 
just join the IRC server (IRC.tsugaming.com) and talk to me in #hangout
Cya,
Thomas
just join the IRC server (IRC.tsugaming.com) and talk to me in #hangout
Cya,
Thomas
Re: Scripting
cool i didnt no that u are from MI go wolverines UM all the way (football that is)
Re: Scripting
Well, then we should have contact by another IRC server, Your suggest one?
Or Ill need to make a tutorial here.. but that takes alot of time
well Cya,
Thomas
Or Ill need to make a tutorial here.. but that takes alot of time
well Cya,
Thomas
Re: Scripting
oke, pm me a channel where you are 
Re: Scripting
Ok, here goes.
Say your script is:
And you want to protect it, so add a temp var to the floodme command. Like so:
Say your script is:
Code: Select all
on *:TEXT:*:#: {
if ($chan == #mychan) {
tokenize $strip($1-) 32
var %cmdchar = $left($1,1)
if (%cmdchar == $chr(33)) {
var %cmd = $right($1,-1)
if (%cmd == floodme) {
msg $chan Someone triggered my message!
}
}
}
}Code: Select all
on *:TEXT:*:#: {
if ($chan == #mychan) {
tokenize $strip($1-) 32
var %cmdchar = $left($1,1)
if (%cmdchar == $chr(33)) {
var %cmd = $right($1,-1)
if (%cmd == floodme) {
if (!%tmp) {
.set -u10 %tmp 1
msg $chan Someone triggered my message!
}
else { msg $chan Can't trigger it yet! }
}
}
}
}Re: Scripting
I don't even understand what that does, I'm not that advanced even though im sure that is pretty easy stuff. Cnb6 I sent you memo on Swiftirc. Thanks btw Drkpanoz








