mIRC Home    About    Download    Register    News    Help

Print Thread
Nick store #1848 15/12/02 06:06 AM
Joined: Dec 2002
Posts: 6
A
auger Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
A
Joined: Dec 2002
Posts: 6
I've been trying to get my script to log nick changes and show then in a popup, all the nicks that have been changed but I havent been able to get how to do this, I used gettok and variable to store them but the variables has to be typed it, I know it is possible but i can seem to figure out how! help....

Re: Nick store #1849 15/12/02 06:16 AM
Joined: Dec 2002
Posts: 8
W
Wil Offline
Nutrimatic drinks dispenser
Offline
Nutrimatic drinks dispenser
W
Joined: Dec 2002
Posts: 8
The following will create a new window and echo every nick change in it that occurs in the channels that you are in at the time of the nick change.

on *:NICK:{ if ($window(@NickChange) == $null) { window -fk0 @NickChange 0 0 300 100 }
echo @NickChange Nick Change; [ $+ $nick to $newnick $+ ] | halt | haltdef }
}

Re: Nick store #1850 15/12/02 06:17 AM
Joined: Dec 2002
Posts: 111
F
Frog Offline
Vogon poet
Offline
Vogon poet
F
Joined: Dec 2002
Posts: 111
Do this..

on *:nick:write nicks.txt $nick changed nicks to $newnick

Then.. make a popup that does something like this..

.Nickchanges:say $read(nicks.txt,$$?"=Enter a line")

Something along the lines of that. Everytime someone changes a nick, it's write a new line in nicks.txt like..
"Frog changed nicks to Magus"
"Magus changed nicks to Frog"

And so on.


Experience The Void.. Are You Ready?
Re: Nick store #1851 15/12/02 06:19 AM
Joined: Dec 2002
Posts: 111
F
Frog Offline
Vogon poet
Offline
Vogon poet
F
Joined: Dec 2002
Posts: 111
Seems I was a tad too slow :x anyway, for storing, either way works. Just.. one's in a file, another's in a @Window (easier access)


Experience The Void.. Are You Ready?
Re: Nick store #1852 15/12/02 09:09 AM
Joined: Dec 2002
Posts: 1,321
H
Hammer Offline
Hoopy frood
Offline
Hoopy frood
H
Joined: Dec 2002
Posts: 1,321
I think $submenu is what you're describing. The ability to make your popups, themselves, dynamically change. blue-elf's $submenu tutorial can be found at


DALnet: #HelpDesk and #m[color:#FF0000]IR[color:#EEEE00]C
Re: Nick store #1853 15/12/02 10:30 AM
Joined: Dec 2002
Posts: 4
T
tsoglanos29 Offline
Self-satisified door
Offline
Self-satisified door
T
Joined: Dec 2002
Posts: 4
Prees Alt+r and paste the code below in you remote:

on *:NICK:{ set %Nstore %Nstore $+ $chr(44) $+ $nick $newnick }
alias Nstore {
if ($1 == begin) return -
if ($1 == end) return -
if ($gettok(%Nstore,$1,44)) return $ifmatch :/nick $ifmatch
}
menu nicklist {
&Nick store
.$submenu($Nstore($1))
}


DarkFire
Re: Nick store #1854 16/12/02 06:26 PM
Joined: Dec 2002
Posts: 6
A
auger Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
A
Joined: Dec 2002
Posts: 6
thanx all!!
my main idea once again was to log changes and show em in the channel popup.
what i do rite now is store them manually in variables and use $gettok(%nicks,1,32) to show then in the popup. I want them to automatically get stored in a vairable and as many nicks as i change.