mIRC Home    About    Download    Register    News    Help

Print Thread
Page 1 of 2 1 2
#39114 31/07/03 10:51 PM
Joined: Jul 2003
Posts: 1
D
dr3as Offline OP
Mostly harmless
OP Offline
Mostly harmless
D
Joined: Jul 2003
Posts: 1
i want to write /opme and then i check if a specify nick is online and if the host match with the host i have set, then send a command to the nick

#39115 01/08/03 03:41 AM
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
Code:
[/color]
[color:green]alias opme {[/color]
[color:red]mode # +o $me[/color]
[color:purple]who $1[/color]
[color:pink]}[/color]
[color:brown]raw[/color][color:blue]3[/color][color:green]5[/color][color:red]2[/color][color:#666666]:*:{[/color]
[color:green]if (G. isin $1-) { echo -at $6 is offline }[/color]
[color:blue]else { commands }[/color]
[color:brown]}[/color]
[color:pink]

Code:
[/color]
[color:pink]$6 = the nickname you who'd[/color]
[color:yellow]e.g: /opme blah[/color]
[color:purple]$6 = blah in raw 352[/color]  
[color:purple]

Code:
^code^


new username: tidy_trax
#39116 01/08/03 03:54 AM
Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
That code doesn't make sense. The only way you can do /mode # +o $me is if you are already an op, and if you are already an op, then there is no sense in setting +o on yourself. The only way to make a /opme command is if the network has a chanserv (or if the channel has a bot) and you can use that to op yourself. Additionally, I have no idea why you are checking if "G." is in the WHO reply, the flag is "G" means they are away, not "G." And as usual, I'm sure you know of some server out there that does this so I'll just quote from RFC1459:
352 RPL_WHOREPLY "<channel> <user> <host> <server> <nick> <H|G>[*][@|+] :<hopcount> <real name>"

Note how the flags are "H" or "G" not "H" or "G.". Furthermore, your code makes even less sense by assuming /away and not being online are the same thing, which is pure stupidity. If you want to tell if someone is online, you have to either use mIRC's built in /notify system, or use a /ison, not a /who. Oh and lets not forget you check if "G." is in $1-, which means if my realname is set to "greg." by your script, that is the same thing as be not being online.

Why don't you try actually testing your code before you post something that in reality, does NOTHING like what the poster requested.

#39117 01/08/03 03:58 AM
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
i cant test my code because i deleted mirc, but thats what i used to use......
also instead of making a stupidly long(sad)post like that you could of just said: that doesnt work.


new username: tidy_trax
#39118 01/08/03 04:04 AM
Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
Why was it sad? What is sad is that you give out false information giving the impression you know what you're talking about when you have no clue. Why is it sad, that I, trying to be helpful, pointed out your errors so you wouldn't make them again? When you write a paper do you prefer when the instructor says "bad paper" or when you are told WHY it was a bad paper. I prefer the latter since I can then (crazy idea) make sure I don't make the same mistakes again. But I guess not everyone wants to learn from their mistakes, you clearly are content with your lack of information, and thats fine, however, it doesn't mean you have to give false information to users. If you uninstalled mIRC and therefore can't test the code, then try this... DON'T OFFER YOUR HELP. I've yet to see you make one piece of code that actually did what it was supposed to. So if you couldn't do it when you had mIRC and could test things, how the hell do you expect to do it when you are blindly writing code that you have no idea how to write?

#39119 01/08/03 04:10 AM
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
another one of your stupid comparisons......
as i said,you could of said:
your code doesnt work coz of <this,this and this>
not: your an idiot for thinking theyre the same thing.
.......
....


new username: tidy_trax
#39120 01/08/03 04:18 AM
Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
If I said, "You're an idiot for thinking they're the same thing" then I appologize for that, that isn't what I meant to say at all. What I meant to say was, "You're an idiot."

#39121 01/08/03 04:20 AM
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
thanks blush
and your an ignorant fool but i can write what i think of you in 1 line, not a stupid essay.


new username: tidy_trax
#39122 01/08/03 05:23 AM
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
Code:
alias opme {
  set %opme [color:green]nickname[/color]
  ison %opme
}
raw 303:*:{
  if ( %opme ) &amp;&amp; ( $2 == $null ) || ( $2 == %opme ) {
    if ( $2 == %opme ) {
      msg %opme [color:green]command[/color]
    }
    else {
      echo -a %opme isn't online.
    }
    unset %opme
    haltdef
  }
}
^Should work

#39123 01/08/03 03:50 PM
Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
An ignorant fool? That means a lot coming from someone who has proven himself to know NOTHING.

#39124 01/08/03 04:04 PM
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
if i knew nothing,you wouldn't be seeing this message smirk.


new username: tidy_trax
#39125 01/08/03 11:41 PM
Joined: Dec 2002
Posts: 2,985
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 2,985
Settle petals. Why don't you go down to the Police Boys Club and have a boxing/wrestling match. laugh

Codemastr is right about one thing though, you do post alot of untested code here that doesn't work. And when you are advised of this you repeat the offence over and over.

#39126 01/08/03 11:48 PM
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
as i said,i cant test it.


new username: tidy_trax
#39127 01/08/03 11:49 PM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
if you cant test it, either dont post it or post "untested". To use wasting your and other's time for somthing that is useless and doesnt answer a user's question.


-KingTomato
#39128 01/08/03 11:53 PM
Joined: Dec 2002
Posts: 2,985
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 2,985
Why are you on a mIRC forum if you don't use mIRC for?

#39129 02/08/03 12:00 AM
Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
Because if he left he couldn't call me a "ignorant fool" anymore.

#39130 02/08/03 12:29 AM
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
because there are still certain people i can help and i don't see why i shouldnt try and help even though i quit.


new username: tidy_trax
#39131 02/08/03 12:30 AM
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
i could still call you it on mircscripts cool


new username: tidy_trax
#39132 02/08/03 12:42 AM
Joined: Dec 2002
Posts: 2,985
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 2,985
When I think someone is wrong I don't resort to namecalling, all that does is make people think you or your reply is not genuine. Maybe Mircscripts.org is the place for namecalling - this place certainly isn't.

I still don't think it is a worthwhile contribution to place code here that doesn't work. There is no reason why you cannot have a copy of mIRC on your machine to test code before posting if you want to contribute here. I test all but the very simplest code when I post such material. That way I don't have to write another 15 posts verify correctness every time.

I also think your signature is juvenile.

#39133 02/08/03 01:05 AM
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
cant be arsed to argue with ya :tongue:


new username: tidy_trax
#39134 02/08/03 03:02 AM
Joined: Dec 2002
Posts: 1,527
_
Hoopy frood
Offline
Hoopy frood
_
Joined: Dec 2002
Posts: 1,527
why someone that has deleted thier mIRC would post so many usless scriptlets to others to use or attempt to use is beyond me ..... thats like me posting girlscout cookie recipes ..... altho since im not a girlscout and dont know how to bake cookies that would be rather pointless of me wouldnt it? ...... well then again it may make perfect sense to u ......


D3m0nnet.com
#39135 02/08/03 02:09 PM
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
i can actually script, sorry if i read his post wrong, sorry for trying to help, sorry for typing, sorry for existing.
(you flame me for every single thing i do on here.)


new username: tidy_trax
#39136 02/08/03 03:17 PM
Joined: Dec 2002
Posts: 1,527
_
Hoopy frood
Offline
Hoopy frood
_
Joined: Dec 2002
Posts: 1,527
i flame you because u havent contributed but maybe one or two things in all of your 1000+ posts. and now it comes out that u no longer even use mirc? talk about hypocracy.


D3m0nnet.com
#39137 02/08/03 05:00 PM
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
slight exageration.....


new username: tidy_trax
#39138 03/08/03 04:31 AM
Joined: Dec 2002
Posts: 1,527
_
Hoopy frood
Offline
Hoopy frood
_
Joined: Dec 2002
Posts: 1,527
exaggeration on your part not mine. if u intend to keep helping ppl when u think u can actually script please redownload yourself a mirc and test your code before posting it ... or post it with an appended message saying untested as i dont even own a copy of mirc.


D3m0nnet.com
#39139 03/08/03 03:44 PM
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
you're exagerating, i think i have helped a few more than 2-3 people frown


new username: tidy_trax
#39140 03/08/03 04:38 PM
Joined: Dec 2002
Posts: 2,962
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
Nobody cares at this point. Anybody who read this thread surely lost the will to live at least 7 posts ago. For the love of God people, just stop posting to this thread.


Spelling mistakes, grammatical errors, and stupid comments are intentional.
Page 1 of 2 1 2

Link Copied to Clipboard