Heh.
if you like FML, you are going to love MLIA:
http://mylifeisaverage.com/index.html
I decided to see if it'd work if I editted napa182's code for FML to work with MLIA. It works for me.
on $*:text:/^@mlia$/iS:#: { if (!$($+(%,mliaflood,$nick),2)) { set -u3 $+(%,mlia,$nick) on | if ($sock(mlia)) .sockclose mlia | unset %mlia.* | sockopen mlia mylifeisaverage.com 80 | sockmark mlia $r(1,10) $r(2,30) # } }
on *:sockopen:mlia: { sockwrite -nt $sockname GET $+(/page/,$gettok($sock(mlia).mark,2,32),/) HTTP/1.1 | sockwrite -nt $sockname Host: $+(mylifeisaverage.com,$str($crlf,2)) }
on *:sockread:mlia: {
var %mlia | sockread %mlia
if ($regex(%mlia,/\x09(.+\sMLIA)/)) { set %mlia.outcome $regml(1) | inc %mlia.ms }
if (%mlia.ms == $gettok($sock(mlia).mark,1,32)) { msg $gettok($sock(mlia).mark,3,32) 14[04My Life Is Average 14] %mlia.outcome | unset %mlia.* | sockclose mlia }
}
I thought it'd be nice to share it with others who don't go to mircscripts.org
lol. I thought that'd make sense to people.
If you used somebody else's snippet you must include a URL to the original.
If people don't like that I found something cool and decided to share it, Hawkee or somebody can take the code down for me.
I never said I wanted it to specifically connect to that site o_o; I was talking in general. So how about you stop attempting to seem cool by making pointless code? lol.
I just mean, if the script were meant to connect to say, a dictionary website, and /browse was the part to enter the word you wish to find a definition for in, and $2 being that word (input by the user)? Would it work to do that?
on *:text:*:*: {
if ($istok(%text.1 %text.2,$1,32)) { msg $chan $gettok(%reply.1 %reply.2 %reply.3 %reply.4,$r(1,4),32) }
}
I don't see where that'd look for my variable %randomreply.
on *:text:*:*: {
set %randomreply $r(1,4)
I am trying to use that to reply depending on what the $r(1,4) sets, not just randomly reply with one of my four %reply.N's.
Lay off it, people. The script may be useless, but he's learning, right? My first script was a lame PicWin Animation thing, his is a dialog. So what if it has no use to us?
So, instead of being a bunch of useless TROLLS you can try to kindly point him in the right direction. Not everyone can do the more complicated scripts on their first try.
Twango, you're doing fine. Keep it up, but try doing something a bit more complicated. Like, maybe you could try to make a dialog clock or something.
The script does what he wants it to do, and nothing more or less. So technically, the script works. Just because it does nothing for you does not mean it is useless. For example, some beginner to mIRC dialog's could use this as a basic example towards making layouts and using basic dialog options.
EDIT--
Oh, yeah. There is a bracket mismatch like sunslayer said. But, some people might not understand what you mean.
At the end of the code you have two closing brackets:
}
}
But only one opening bracket. The start is correct, but since you only need one, it should be:
alias twango /dialog -m twango twango
dialog Twango {
size -1 -1 500 500
title "Twango infromation Dialog"
tab "Info about Twango", 1, 0 0 500 500
tab "Server info about twango", 2, 0 3 500 500
tab "Twango's Channels", 6, 0 6 1 1
text "Twango is a mIRC scripter (see ##mirc on freenode or #script on coldfront)", 4, 0 50 700 300, tab 1
text "Twango likes to be on the server coldfront (irc.coldfront.net) he generally likes to be on his channel #chattychatness just whois him", 3, 0 50 500 500, tab 2
text "he posts to hawkee, twango other than scripting plays MMORPG FPS and makes websites", 5, 0 100 700 300, tab 1
text "his main channel is #chattychatness #fcMount #mircscript and #chanserv", 7, 0 100 700 300, tab 6
button "Close", 9, 200 400 50 50, ok
}
Why make this script so complicated? I see no point in wasting so much time on something so useless.
Also, instead of making commands for /set whatever you should make it ask for the %publicchan and whatnot on load.
on *:load {
set %publicchan $$?="What is the public channel?"
}
And that's SIMPLE So....
EDIT--
Remove the ASCII logo. It can get in the way of the code. Instead of uploading something and being a little douche about it and saying:
"anyway if you dont like it remove it"
You can stop being a little stuck up child and remove it yourself. When somebody makes a comment on something you post for people to see, why don't you just make it user-friendly? Don't argue people when they try to help you on your code.
When I did your code, I got an error message saying:
[08:28:07] -> -(Oblivion@xxx.xxx.xx.xx)- Yes (Oblivion@xxx.xxx.xx.xx), I'm an IRCop. Is there something I can help you with?
(Oblivion@xxx.xxx.xx.xx) No such nick/channel
So I made this:
on *:SNOTICE:*WHOIS*: {
NOTICE $2 4,12Yes $2 $+ , I'm an IRCop. Is there something I can help you with?
}
I think it works like that because in the SNOTICE saying who WHOISed you, it looks something like:
-irc.trinetchat.com- *** Serenity (Oblivion@xxx.xxx.xx.xx) did a /whois on you.
And you are looking for the person who whoised you, not their address, since it won't NOTICE an address; in this case $2 is the nick of the person.