mIRC Home    About    Download    Register    News    Help

Print Thread
lol last help for now #137377 11/12/05 11:17 PM
Joined: Dec 2005
Posts: 13
E
el1te Offline OP
Pikka bird
OP Offline
Pikka bird
E
Joined: Dec 2005
Posts: 13
I need help adding in nick changes to my theme. This is what my theme looks like:



on ^*:text:*:#: {
echo $chan $form.text($nick, $address, $chan, $1-)
haltdef
}

on ^*:action:*:#: {
echo $chan $form.action($nick, $address, $chan, $1-)
haltdef
}

on ^*:join:#: {
echo $chan $form.join($nick, $address, $chan)
haltdef
}

on ^*:part:#: {
echo $chan $form.part($nick, $address, $chan, $1-)
haltdef
}

on ^*:quit: {
var %f.i = 1
while (%f.i <= $comchan($nick, 0)) {
%f.chan = $comchan($nick, %f.i)
echo $comchan($nick, %f.i) $form.quit($nick, $address, $comchan($nick, %f.i), $1-)
inc %f.i
}
haltdef
}

on ^*:mode:#: {
echo $chan $form.mode($nick, $address, $chan, $1-)
haltdef
}

on ^*:op:#: {
echo $chan $form.op($nick, $address, $chan, $1-)
haltdef
}

on ^*:deop:#: {
echo $chan $form.deop($nick, $address, $chan, $1-)
haltdef
}

on ^*:voice:#: {
echo $chan $form.mode($nick, $address, $chan, $1-)
haltdef
}

on ^*:devoice:#: {
echo $chan $form.mode($nick, $address, $chan, $1-)
haltdef
}

; Newly added, ON INPUT
on *:input:#: {
if ($left($1, 1) == /) && ($ctrlenter == $false) return
echo -a $form.selftext($active, $1-)
.msg $active $1-
halt
}


form_disp.mrc - contains the display identifiers for the custom text
alias form.join return --> joins[ $+ $3 $+ ] $1 ( $+ $2 $+ ) @ $time(h:nnt)

alias form.part {
if ($len($4)) return <-- parts[ $+ $3 $+ ] $1 ( $+ $2 $+ ) ( $+ $4- $+ ) @ $time(h:nnt)
else return <-- parts[ $+ $3 $+ ] $1 ( $+ $2 $+ ) @ $time(h:nnt)
}

alias form.quit {
if ($len($4)) return <-- quits[ $+ $3 $+ ] $1 ( $+ $2 $+ ) ( $+ $4- $+ ) @ $time(h:nnt)
else return <-- quits[ $+ $3 $+ ] $1 ( $+ $2 $+ ) @ $time(h:nnt)
}

alias form.mode return -!- mode[ $+ $3 $+ ] $1 ( $+ $2 $+ ) set mode ( $+ $4- $+ ) @ $time(h:nnt)
alias form.op return -!- op[ $+ $3 $+ ] $1 ( $+ $2 $+ ) set mode ( $+ $4- $+ ) @ $time(h:nnt)
alias form.deop return -!- deop[ $+ $3 $+ ] $1 ( $+ $2 $+ ) set mode ( $+ $4- $+ ) @ $time(h:nnt)
alias form.voice return -!- voice[ $+ $3 $+ ] $1 ( $+ $2 $+ ) set mode ( $+ $4- $+ ) @ $time(h:nnt)
alias form.devoice return -!- devoice[ $+ $3 $+ ] $1 ( $+ $2 $+ ) set mode ( $+ $4- $+ ) @ $time(h:nnt)

alias form.text return $time(h:nnt) ( $+ $1 $+ ) $4-
alias form.action return $time(h:nnt) ACTION ( $+ $1 $+ ) $4-

; Newly added, $form.selftext(window, message)
alias form.selftext return $time(h:nnt) ( $+ $me $+ ) $2-


Citizen_X creator of Citizen Script
Re: lol last help for now #137378 11/12/05 11:37 PM
Joined: Aug 2004
Posts: 7,252
R
RusselB Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
I'm not sure what help you're looking for. If it's the proper event to check for, then it's ON NICK

/help on nick

the ON NICK event doesn't return a channel in $chan, similar to the ON QUIT event (which you already have)

use $nick to reference the nick before the change & $newnick to reference it after the change. Some commands don't work well using $nick after it's been changed using the /nick command. Others work just fine.

Re: lol last help for now #137379 11/12/05 11:38 PM
Joined: Dec 2005
Posts: 13
E
el1te Offline OP
Pikka bird
OP Offline
Pikka bird
E
Joined: Dec 2005
Posts: 13
russ, my theme system doesnt use on *:blah:#: take a closer look


Citizen_X creator of Citizen Script
Re: lol last help for now #137380 11/12/05 11:42 PM
Joined: Aug 2004
Posts: 7,252
R
RusselB Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
It doesn't? Could've fooled me...especially when I'm seeing
Code:
 on ^*:text:*:#: {
echo $chan $form.text($nick, $address, $chan, $1-)
haltdef
}

on ^*:action:*:#: {
echo $chan $form.action($nick, $address, $chan, $1-)
haltdef
}

on ^*:join:#: {
echo $chan $form.join($nick, $address, $chan)
haltdef
}

on ^*:part:#: {
echo $chan $form.part($nick, $address, $chan, $1-)
haltdef
}

on ^*:quit: {
var %f.i = 1
while (%f.i &lt;= $comchan($nick, 0)) {
%f.chan = $comchan($nick, %f.i)
echo $comchan($nick, %f.i) $form.quit($nick, $address, $comchan($nick, %f.i), $1-)
inc %f.i
}
haltdef
}

on ^*:mode:#: {
echo $chan $form.mode($nick, $address, $chan, $1-)
haltdef
}

on ^*:op:#: {
echo $chan $form.op($nick, $address, $chan, $1-)
haltdef
}

on ^*:deop:#: {
echo $chan $form.deop($nick, $address, $chan, $1-)
haltdef
}

on ^*:voice:#: {
echo $chan $form.mode($nick, $address, $chan, $1-)
haltdef
}

on ^*:devoice:#: {
echo $chan $form.mode($nick, $address, $chan, $1-)
haltdef
}

; Newly added, ON INPUT
on *:input:#: {
if ($left($1, 1) == /) &amp;&amp; ($ctrlenter == $false) return
echo -a $form.selftext($active, $1-)
.msg $active $1-
halt
}
 


ALL KINDS OF ON *:EVENT style events

The rest of your code consists of custom aliases

Re: lol last help for now #137381 12/12/05 10:57 PM
Joined: Dec 2005
Posts: 13
E
el1te Offline OP
Pikka bird
OP Offline
Pikka bird
E
Joined: Dec 2005
Posts: 13
lol thats my bad but what is the command for when someone changes their nick it shows like the op one which is -!- mode[#el1te] Citizen_X (Citizen@netadmin.el1te.net) set mode (+v CitizenUser) @ 5:30p


Citizen_X creator of Citizen Script
Re: lol last help for now #137382 12/12/05 11:30 PM
Joined: Oct 2005
Posts: 1,741
G
genius_at_work Offline
Hoopy frood
Offline
Hoopy frood
G
Joined: Oct 2005
Posts: 1,741
Try this:
Code:
on ^*:nick: {
  var %f.i = 1
  while (%f.i &lt;= $comchan($newnick,0)) {
    %f.chan = $comchan($newnick,%f.i)
    echo $comchan($newnick,%f.i) $form.nick($nick,$newnick,$address,$comchan($newnick, %f.i))
    inc %f.i
  }
  haltdef
}

alias form.nick return &lt;-&gt; nicks[ $+ $4 $+ ] $1 -&gt; $2 ( $+ $3 $+ ) @ $time(h:nnt)


-genius_at_work

Re: lol last help for now #137383 14/12/05 12:44 AM
Joined: Dec 2005
Posts: 13
E
el1te Offline OP
Pikka bird
OP Offline
Pikka bird
E
Joined: Dec 2005
Posts: 13
Hey this problem has been fixed thanks to all

Last edited by el1te; 14/12/05 01:00 AM.

Citizen_X creator of Citizen Script