mIRC Home    About    Download    Register    News    Help

Print Thread
#169308 21/01/07 01:54 PM
Joined: Oct 2005
Posts: 75
C
Babel fish
OP Offline
Babel fish
C
Joined: Oct 2005
Posts: 75
ok this use to work on previous versions of mirc

Code:
#flyby on
On !*:JOIN:#:{
  if (% [ $+ [ $wildsite ] $+ ] .rd == $null) { set -u10 % [ $+ [ $wildsite ] $+ ] .rd on }
}
On !*@:PART:#:{
  if (% [ $+ [ $wildsite ] $+ ] .rd != $null) { 
    ban -u60 # $address($nick,1)
    splay warning.wav
    msg $chan 15,15 14,14 2,2 5,15 Door Revolving 2,2 12,15 triggered by 2,2 4,15 $nick 2,2 12,15 in 2,2 4,15 # 2,2 4,15 Banned 12for4 60 Seconds 2,2 14,14 15,15 
    notice $nick 5,5 4,15 You've been placed on a 60 Seconds Ban for Door Revolving in $chan 5,5 
    set %tmp1 $nick
    set %tmp2 $chan
    set %tmp3 $true
    timer 1 60 whois $nick
  }
}

raw 311:*:{
  if (%tmp3) {
    msg %tmp1 5,5 4,15 You are now Unbanned from %tmp2 $+  for Door Revolving 5,5  
    unset %tmp*
  }
}
#flyby end



after getting new 6.21 it wouldn't work anymore. it'll just give me this.

[05:48:49] * Invalid command: (host@some.ip.net)

can anyone help? any help appreciated thanks.

Joined: Oct 2006
Posts: 342
L
Fjord artisan
Offline
Fjord artisan
L
Joined: Oct 2006
Posts: 342
Quote:
raw 311 ---- nick username address * :info


learn learn learn
Joined: Oct 2005
Posts: 75
C
Babel fish
OP Offline
Babel fish
C
Joined: Oct 2005
Posts: 75
please excuse me for not understanding but i don't have a clue about raw events, can you explain?

Joined: Dec 2002
Posts: 1,535
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Dec 2002
Posts: 1,535
raw events are simply events that come from the server vs a channel or nickname. They can be manipulated in a basic or a complex way; whichever way you choose. Perfect example..... a /whois reply. That reply (among hundreds of others) can be changed VISUALLY via RAW scripting. Some other things you can do are to script:

/names reply
/admin reply
/motd reply
/links reply
/list reply

ban list reply
invites reply
exceptions reply

All of that with RAW scripting. Does that help a bit?


Those who fail history are doomed to repeat it
Joined: Oct 2005
Posts: 75
C
Babel fish
OP Offline
Babel fish
C
Joined: Oct 2005
Posts: 75
i'm sorry no, i just want to know whats wrong with my script and where the error is and can it be fixed...thanks for the help tho


Link Copied to Clipboard